200-901 Question 197
Single answerA network engineer is using NETCONF to manage network devices in their infrastructure. They want to retrieve the current configuration of a specific device. Which NETCONF operation should they use?
- A
edit-config
- B
get-config
- C
get
- D
copy-config
Show answer and explanation
Correct answer: B
Explanation
The 'get-config' operation in NETCONF is used to retrieve configuration data from a specified datastore (such as 'running', 'startup', or 'candidate'). This makes it suitable for fetching the current configuration of a device. Other operations like 'edit-config' and 'copy-config' are used for modifying or duplicating configurations, while 'get' is used for operational data retrieval.
- A. Incorrect.
The 'edit-config' operation is used to modify the configuration of a device, not retrieve it.
- B. Correct.
The 'get-config' operation is the correct choice for retrieving the configuration of a device. It allows the user to fetch specific configuration data from the running, startup, or candidate datastore.
- C. Incorrect.
The 'get' operation is used to retrieve operational state data or device-specific details, not configuration data specifically.
- D. Incorrect.
The 'copy-config' operation is used to copy configuration data from one datastore to another, not to retrieve it.