Courseiva
Automation and AssurancemediumMultiple ChoiceObjective-mapped

350-501 Automation and Assurance Practice Question

A service provider is implementing network automation using YANG data models. They need to ensure that the automation solution supports both configuration and operational state data retrieval. Which NETCONF operation should be used to retrieve operational state data?

⚠ Common exam trap

Cisco often tests the distinction between <get> and <get-config>, trapping candidates who assume <get-config> retrieves all data because it is the most commonly used operation for reading configurations.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

<get>

The <get> NETCONF operation retrieves both configuration and operational state data from a device, making it the correct choice for this requirement. Unlike <get-config>, which only returns configuration data, <get> accesses the running datastore and includes state data such as interface statistics, routing tables, and system status. This aligns with RFC 6241, where <get> is defined as the operation to retrieve combined config and state information.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • <edit-config>

    Why it's wrong here

    Used to edit configuration, not retrieve data.

  • <get-config>

    Why it's wrong here

    Retrieves only configuration data, not operational state.

  • <get>

    Why this is correct

    Retrieves both configuration and operational state data.

  • <lock>

    Why it's wrong here

    Used to lock a datastore, not retrieve data.

About these practice questions

Courseiva writes every 350-501 question from scratch — 971 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 350-501 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-501 exam.