exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 308 discussion

Actual exam question from Cisco's 350-401
Question #: 308
Topic #: 1
[All 350-401 Questions]

A network administrator is preparing a Python script to configure a Cisco IOS XE-based device on the network. The administrator is worried that colleagues will make changes to the device while the script is running.
Which operation of the ncclient manager prevents colleagues from making changes to the devices while the script is running?

  • A. m.lock(config='running')
  • B. m.lock(target='running')
  • C. m.freeze(target='running')
  • D. m.freeze(config='running')
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
ihateciscoreally
Highly Voted 1 year, 8 months ago
thank you for covering this in OCG!
upvoted 13 times
...
AbdullahMohammad251
Most Recent 7 months, 2 weeks ago
Selected Answer: B
Only the lock owner can perform edit operations when a lock is active on the running-config datastore. Other NETCONF sessions (users) can only parse read operations while the lock is active. The lock operation takes a mandatory parameter "target" that is the name of the configuration datastore to be locked. When a lock is active, the <edit-config> and <copy-config> operations are prohibited. https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/1610/b_1610_programmability_cg/configuring_yang_datamodel.html
upvoted 1 times
...
[Removed]
11 months, 2 weeks ago
Selected Answer: B
B is correct
upvoted 1 times
[Removed]
11 months, 1 week ago
This operation acquires a lock on the configuration or operational datastore of the device, ensuring that other users can´t modify it until the lock is released.
upvoted 1 times
...
...
[Removed]
3 years, 11 months ago
The given response is correct
upvoted 2 times
...
wqoiqw
4 years, 4 months ago
If the clear configuration lock command is specified while a NETCONF global lock is being held, a full synchronization of the configuration is scheduled and a warning syslog message is produced. This command clears only the parser configuration lock. The following is a sample RPC that shows the <lock> operation: <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <lock> <target> <running/> </target> </lock> </rpc> https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/1610/b_1610_programmability_cg/configuring_yang_datamodel.html#ariaid-title6
upvoted 3 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