exam questions

Exam 1z0-134 All Questions

View all questions & answers for the 1z0-134 exam

Exam 1z0-134 topic 1 question 72 discussion

Actual exam question from Oracle's 1z0-134
Question #: 72
Topic #: 1
[All 1z0-134 Questions]

Examine the domain diagram:

You are asked to write a WLST scrip that will print the current available heap size for server04.
Assuming:
✑ all servers are running
✑ you have just started an offline, interactive WLST session
✑ a domain-scoped node manager is running on each machine, listening o port :5556
✑ the username/password "weblogic/Welcome1" maps to a valid domain administrator and Node Manager client
Which two code options will accomplish this task? (Choose two.)

  • A. connect(weblogic,Welcome1,host00.acme.com:7001) domainRuntime() x = getMBean(/ServerRuntimes/server04/JVMRuntime/server04) print x.getHeapFreeCurrent()
  • B. connect(weblogic,Welcome1,host02.acme.com:7201) serverRuntime() x = getMBean(/JVMRuntime/server04) print x.getHeapFreeCurrent()
  • C. connect(weblogic,Welcome1,host00.acme.com:7001) serverRuntime() x = getMBean(/JVMRuntime/server04) print x.getHeapFreeCurrent()
  • D. nmConnect(weblogic,Welcome1,host02.acme.com:5556) serverRuntimes() x=getMBean(/server04/JVMRuntime/server04) print x.getHeapFreeCurrent()
  • E. nmConnect(weblogic,Welcome1,host00.acme.com:5556) domainRuntime() x=getMBean(/ServerRuntimes/server04/JVMRuntime/server04) print x.getHeapFreeCurrent()
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️
A: We can connect to AdminServer through host00.acme.com:7001 with the connect command.
The domainRuntime()command navigates to the last MBean to which you navigated in the domain Runtime hierarchy or to the root of the hierarchy,
DomainRuntimeMBean. This read-only hierarchy stores the runtime MBeans that represent your current domain.
E: The nmConnect connects WLST to Node Manager to establish a session. After connecting to Node Manager, you can invoke any Node Manager commands via WLST. We should use DomainRuntime() not serverRuntime() as the node manager is domain-scoped.
Incorrect Answers:
B: We must connect to AdminServer through host00.acme.com:7001, not through host02.acme.com:7201
C: We should use DomainRuntime() not serverRuntime() as the node manager is domain-scoped.
D: We should use DomainRuntime() not serverRuntime() as the node manager is domain-scoped.
Reference:
https://docs.oracle.com/cd/E13222_01/wls/docs100/config_scripting/reference.html#wp1068902

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
chrishillinger
2 years, 7 months ago
Selected Answer: CD
According to this link https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/wlapi/weblogic/management/runtime/JVMRuntimeMBean.html getHeapFreeCurrent is a function of JVMRunTime - which means that the correct answers should be CD
upvoted 1 times
benjro
2 years, 5 months ago
indeed the method is pertaining the JVMRuntimeMBean (present in both serverRuntime and domainRuntime) which can be access for all the servedrs only from DomainRuntime , in ServerRuntime only the Admin methods are present.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago