nerdexam
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…

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

300-535 question #76 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)
  • A
    8% (5)
  • B
    72% (44)
  • C
    5% (3)
  • D
    15% (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.

Full 300-535 Practice