Cisco
300-535 · Question #76
Refer to the exhibit. An engineer needs a script to immediately change the hostname of the target endpoint. The hostname must revert to the previous hostname after rebooting. Which command must be use
The correct answer is B. edited_config = mgr.edit_config(target='running',. To change the configuration immediately but have it revert after a reboot, the configuration must be applied to the running datastore, not the startup (which persists across reboots). Changes to the running datastore are lost after a reboot unless they are also saved to startup.
Design for Cisco Cloud Automation
Question
Refer to the exhibit. An engineer needs a script to immediately change the hostname of the target endpoint. The hostname must revert to the previous hostname after rebooting. Which command must be used?
Exhibit
Options
- Aedited_config = mgr.edit_config(target='failover',
- Bedited_config = mgr.edit_config(target='running',
- Cedited_config = mgr.edit_config(target='boot',
- Dedited_config = mgr.edit_config(target='startup',
How the community answered
(61 responses)- A8% (5)
- B72% (44)
- C5% (3)
- D15% (9)
Explanation
To change the configuration immediately but have it revert after a reboot, the configuration must be applied to the running datastore, not the startup (which persists across reboots). Changes to the running datastore are lost after a reboot unless they are also saved to startup.
Topics
#NETCONF#edit-config#running datastore#ncclient
Community Discussion
No community discussion yet for this question.
