Cisco CCNP Enterprise 350-401 ENCOR YANG Controller APIs and REST Responses Practice Test
Topic 20 covers yang, controller apis and rest responses for the Cisco Certified Specialist – Enterprise Core certification. These original practice questions apply the verified 350-401 objectives to practical decisions and troubleshooting. Select one answer unless a fixed number is requested. For broader preparation, visit the Cisco 350-401 ENCOR Exam Dumps page. Each option includes an explanation of the relevant behavior and scenario constraints.
Question 1
An engineer is designing an automation client. The device exposes configuration through RESTCONF, but the team is debating whether YANG is the API transport. Which statement is accurate?
Correct Answer: C
Correct Answer
Answer C is correct because YANG describes data schema and semantics, while RESTCONF provides an HTTP-based protocol for accessing YANG-modeled resources.
Incorrect Answers
Answer A is incorrect because YANG can model data used by multiple interfaces; NETCONF is the protocol and is not interchangeable with the model language.
Answer B is incorrect because YANG is a standards-based modeling language and is not simply a proprietary CLI parser.
Answer D is incorrect because YANG is a modeling language and does not provide transport encryption or replace HTTPS.
Answer E is incorrect because Controller authentication tokens are separate from YANG data modeling and are not YANG schemas.
Question 2
A YANG module models sites. Each site can contain multiple devices, and every device entry has a unique serial number. Which TWO schema constructs best represent these requirements? Choose TWO.
Correct Answers: A, D
Correct Answers
Answer A is correct because A container is suitable for grouping related child data under a single structural node.
Answer D is correct because A YANG list represents repeated entries and can define keys that identify individual entries.
Incorrect Answers
Answer B is incorrect because A leaf represents a single value and should not replace a repeated structured list in this design.
Answer C is incorrect because Notifications report events and are not the required structural construct for repeated configured entries.
Answer E is incorrect because Containers are specifically used to hold child nodes, so this claim reverses their basic structural role.
Answer F is incorrect because YANG lists can model repeated configuration or state data without requiring an RPC merely because entries repeat.
Question 3
A YANG snippet declares `leaf mtu { type uint16; }`. A client reads the schema before constructing a payload. What should the client infer?
Correct Answer: C
Correct Answer
Answer C is correct because A leaf represents one value, and the declared uint16 type constrains the modeled value to that data type.
Incorrect Answers
Answer A is incorrect because The YANG model can be exposed by supported model-driven interfaces, including RESTCONF where available.
Answer B is incorrect because A leaf becomes a list key only when the enclosing list explicitly names it in the key statement.
Answer D is incorrect because Numeric type does not determine configuration status; config versus state depends on the schema context and statements.
Answer E is incorrect because The type only constrains the leaf value and does not assign controller-specific task semantics.
Question 4
A YANG list named `interface` uses `key “name”`. The payload contains two entries with names `GigabitEthernet1` and `GigabitEthernet2`. Which TWO conclusions are valid? Choose TWO.
Correct Answers: E, F
Correct Answers
Answer E is correct because A YANG list key supplies the identifying value used to distinguish individual list entries.
Answer F is correct because List keys are intended to uniquely identify entries in that list, so duplicate key values would violate the modeled identity.
Incorrect Answers
Answer A is incorrect because Keying does not determine whether modeled nodes are configuration or operational state.
Answer B is incorrect because A key identifies entries but does not impose the list’s cardinality unless separate schema constraints do so.
Answer C is incorrect because HTTP method selection depends on the intended RESTCONF operation, not merely on the presence of a YANG key.
Answer D is incorrect because A list key is a schema identity mechanism and provides no encryption by itself.
Question 5
A monitoring system needs the configured interface description and the live packet counter for the same interface. Which TWO observations correctly separate configuration from operational state? Choose TWO.
Correct Answers: D, E
Correct Answers
Answer D is correct because A configured description is persistent intended state that an operator or automation system sets on the device.
Answer E is correct because Packet counters are observed runtime state rather than desired configuration values.
Incorrect Answers
Answer A is incorrect because A single YANG model can include both configuration and operational state nodes, so module membership alone does not decide this.
Answer B is incorrect because Retrieval method does not convert configured state into operational-only data; GET can read modeled configuration as well.
Answer C is incorrect because A persistent configured description remains configuration state after reboot when the configuration is retained.
Answer F is incorrect because Administrative state does not turn a runtime traffic counter into desired configuration data.
Question 6
An automation pipeline rejects a candidate payload before sending it because a required list key is missing. What benefit of using the YANG schema is being applied?
Correct Answer: D
Correct Answer
Answer D is correct because Schema validation can detect required structural elements and type constraints before a request reaches the device.
Incorrect Answers
Answer A is incorrect because A schema can validate representation and constraints but cannot prove that a technically valid change is appropriate for the live network.
Answer B is incorrect because A structurally valid payload still requires authentication and authorization on the target service.
Answer C is incorrect because Schema validation does not discover or replace the protocol used to reach the device.
Answer E is incorrect because Local schema validation does not establish that every target device supports identical modules or revisions.
Question 7
A YANG leaf for a percentage permits values from 0 through 100. An application tries to submit 125. Which statement best describes the schema’s role?
Correct Answer: A
Correct Answer
Answer A is correct because YANG type and range constraints can restrict values that are structurally acceptable for a modeled leaf.
Incorrect Answers
Answer B is incorrect because JSON representation does not override a narrower semantic range defined by the YANG schema.
Answer C is incorrect because YANG constraints describe data and do not encrypt request values.
Answer D is incorrect because Validation constraints generally reject invalid values rather than silently changing the operator’s requested value.
Answer E is incorrect because Invalid modeled input is a validation issue and does not inherently create a controller task.
Question 8
A multi-vendor automation team has an industry-defined interface model and a Cisco-native model available for the same device family. Which assessment is most accurate?
Correct Answer: C
Correct Answer
Answer C is correct because Shared models can reduce vendor coupling, whereas native models can represent features that are specific to a vendor or platform.
Incorrect Answers
Answer A is incorrect because A common model cannot be assumed to cover every vendor extension or release-specific capability.
Answer B is incorrect because Similar names do not prove equivalent namespaces, semantics, constraints, revisions, or platform support.
Answer D is incorrect because NETCONF and RESTCONF can expose vendor-native YANG models when the device advertises and supports them.
Answer E is incorrect because Model choice and transport security are separate concerns controlled by the interface and session configuration.
Question 9
An application was tested against one IOS XE release. Before using a YANG path on a newly upgraded switch, what should the application verify first?
Correct Answer: B
Correct Answer
Answer B is correct because Capability discovery verifies what models the actual device and release expose instead of assuming prior support remains unchanged.
Incorrect Answers
Answer A is incorrect because IP reachability is necessary for access but does not prove the required model is advertised.
Answer C is incorrect because Model support and revisions can change, so historical success is not sufficient evidence for the upgraded target.
Answer D is incorrect because Success on an unrelated resource does not establish capability for the intended YANG module and path.
Answer E is incorrect because Hostname equality has no direct relationship to support for a specific YANG module or revision.
Question 10
A payload passes YANG validation and would set an interface MTU to 9000. The adjacent device supports only 1500 bytes and the change would break the link’s intended traffic. What conclusion should the automation system make?
Correct Answer: D
Correct Answer
Answer D is correct because The value can satisfy the model while still violating an external network requirement such as peer compatibility.
Incorrect Answers
Answer A is incorrect because Platforms can support larger MTUs, and the relevant issue here is the stated peer requirement rather than a universal fixed value.
Answer B is incorrect because Prechange policy and topology validation can be necessary even when the payload itself is schema-valid.
Answer C is incorrect because A syntactically and semantically valid local setting can still be wrong for the broader network design.
Answer E is incorrect because The schema validates the local modeled request and does not coordinate configuration on an unrelated neighbor.
Question 11
A script needs the serial number, management IP address, and platform identifier for devices already known to Catalyst Center. Which API category should it query first?
Correct Answer: D
Correct Answer
Answer D is correct because Inventory APIs are designed to return attributes about managed devices such as identity and management addressing.
Incorrect Answers
Answer A is incorrect because Task APIs report asynchronous operation state and do not replace device inventory resources.
Answer B is incorrect because Health APIs focus on observed condition and performance rather than being the primary inventory source for device identity.
Answer C is incorrect because Issue resources describe detected problems and recommendations rather than serving as the authoritative device inventory query.
Answer E is incorrect because Template APIs manage configuration intent and deployment workflows rather than simply retrieving current inventory attributes.
Question 12
An operations dashboard already knows a switch’s inventory identity and now needs its current network-health condition. Which API family best matches the new requirement?
Correct Answer: E
Correct Answer
Answer E is correct because Health and assurance resources expose observed network, site, device, and client condition rather than static identity alone.
Incorrect Answers
Answer A is incorrect because Task counts describe asynchronous platform work and do not represent the switch’s network-health condition.
Answer B is incorrect because Authentication is required for access but does not itself return the requested network-health measurements.
Answer C is incorrect because Inventory can identify the device but does not substitute for health-oriented assurance data.
Answer D is incorrect because Templates describe intended configuration actions rather than the current observed health state.
Question 13
A Catalyst Center POST request to deploy configuration returns a task identifier immediately. The script receives no evidence yet that the device changed. What should the script infer?
Correct Answer: A
Correct Answer
Answer A is correct because An asynchronous task identifier indicates that the operation has been accepted for processing, not that downstream device work has already succeeded.
Incorrect Answers
Answer B is incorrect because Controller operations can be asynchronous, so request acceptance alone does not prove device-side completion.
Answer C is incorrect because Blind resubmission can duplicate work; the appropriate action is to follow the task status and result details.
Answer D is incorrect because Catalyst Center uses asynchronous tasks for operations, making a task identifier expected for supported workflows.
Answer E is incorrect because Task IDs identify platform work and should not be confused with managed-device inventory identifiers.
Question 14
A Catalyst Center operation returns task ID `abc123` and status `PENDING`. Which TWO actions are appropriate for a robust client? Choose TWO.
Correct Answers: A, E
Correct Answers
Answer A is correct because Task metadata can point to additional result information that explains the outcome of the asynchronous operation.
Answer E is correct because The task resource exists specifically to expose progress and terminal SUCCESS or FAILURE state for asynchronous operations.
Incorrect Answers
Answer B is incorrect because Pending means the task has not yet reached a terminal success or failure state.
Answer C is incorrect because Authentication renewal follows token lifetime and policy; the task identifier itself does not require a new token for each query.
Answer D is incorrect because Inventory deletion is unrelated to determining the status of the submitted asynchronous operation.
Answer F is incorrect because A successful retrieval can return a task whose own status is PENDING or FAILURE, so payload state still must be interpreted.
Question 15
A workflow must discover devices, confirm current health, deploy a configuration intent, and prove the deployment completed. Which THREE API stages are necessary? Choose THREE.
Correct Answers: A, B, F
Correct Answers
Answer A is correct because Deployment intent and asynchronous task verification together establish whether the requested controller work completed.
Answer B is correct because Inventory establishes the target devices and identifiers used by later workflow steps.
Answer F is correct because Health resources provide the current observed condition required by the workflow before deployment.
Incorrect Answers
Answer C is incorrect because Reachability to the controller does not provide device inventory, health evidence, or deployment completion state.
Answer D is incorrect because YANG keys identify modeled list entries and do not substitute for controller workflow operations.
Answer E is incorrect because Authentication success grants API access but says nothing about the outcome of a later device change.
Question 16
A central script must obtain the current list of SD-WAN edge devices known to Cisco Catalyst SD-WAN Manager. Where should the script direct the management query?
Correct Answer: D
Correct Answer
Answer D is correct because SD-WAN Manager provides centralized REST operations for device monitoring, inventory, provisioning, and management.
Incorrect Answers
Answer A is incorrect because EEM history is local event information and does not replace the management-plane API’s inventory capability.
Answer B is incorrect because OMP is a control-plane protocol and edge user traffic is separate from centralized management API inventory.
Answer C is incorrect because Underlay routing does not provide authoritative centralized SD-WAN Manager inventory for all managed edges.
Answer E is incorrect because Device inventory and management information are explicit SD-WAN Manager API use cases.
Question 17
An SD-WAN integration needs to read tunnel-health statistics without changing policy. Which API intent best fits that requirement?
Correct Answer: B
Correct Answer
Answer B is correct because Monitoring endpoints are intended to retrieve observed state without submitting a policy or configuration change.
Incorrect Answers
Answer A is incorrect because The Manager already exposes REST APIs and does not require an unrelated agent for a basic API query.
Answer C is incorrect because Reading monitoring data does not require changing centralized policy.
Answer D is incorrect because Management API traffic is separate from the overlay’s user data forwarding path.
Answer E is incorrect because Destructive inventory operations are unnecessary and inappropriate for a read-only monitoring requirement.
Question 18
A developer wants to automate SD-WAN configuration centrally without logging into every edge CLI. Which component should be treated as the management-plane API endpoint?
Correct Answer: D
Correct Answer
Answer D is correct because SD-WAN Manager exposes the centralized REST API used for controlling, configuring, monitoring, and integrating the overlay.
Incorrect Answers
Answer A is incorrect because Catalyst Center and SD-WAN Manager have separate APIs; a task URL from one controller does not become the other’s endpoint.
Answer B is incorrect because The transport provider’s router is part of the underlay and is not the customer’s centralized SD-WAN management API endpoint.
Answer C is incorrect because OMP distributes overlay control information and is not an HTTP REST endpoint for external automation clients.
Answer E is incorrect because User-facing data interfaces forward traffic and are not the centralized management-plane API service.
Question 19
An SD-WAN Manager API operation returns an operation identifier and indicates that work is still in progress. What should the client do before declaring success?
Correct Answer: A
Correct Answer
Answer A is correct because An in-progress response explicitly means the requested work has not yet reached a confirmed terminal outcome.
Incorrect Answers
Answer B is incorrect because Repeated submissions can create duplicate or conflicting work and do not replace following the original operation state.
Answer C is incorrect because Existing forwarding can continue independently and does not prove a new management operation completed.
Answer D is incorrect because A completed HTTP exchange can carry an in-progress application state and therefore does not prove the requested controller operation succeeded.
Answer E is incorrect because REST management platforms can expose asynchronous task or operation state; switching protocols is not required by the presence of a task identifier.
Question 20
A branch continues forwarding existing application traffic while the administrator’s SD-WAN Manager API session expires. Which explanation is most accurate?
Correct Answer: C
Correct Answer
Answer C is correct because The REST session serves centralized management while edge devices perform data-plane forwarding using their current operational state.
Incorrect Answers
Answer A is incorrect because The administrator’s management-session expiry does not establish controller or overlay control-plane failure.
Answer B is incorrect because User traffic does not flow through the external management client’s REST session.
Answer D is incorrect because Managed edges do not require an external automation client to remain continuously connected for every forwarded packet.
Answer E is incorrect because API authentication state is distinct from the keys and protocols used by SD-WAN data-plane tunnels.
Question 21
A Catalyst Center GET request for tasks returns HTTP 200 and a JSON response containing the requested task records. What does the 200 indicate?
Correct Answer: E
Correct Answer
Answer E is correct because The documented endpoint uses 200 for a successful request, while the task objects inside the payload carry their own operational status.
Incorrect Answers
Answer A is incorrect because Successful access to one endpoint does not grant unlimited authorization across unrelated resources.
Answer B is incorrect because A successful read can return PENDING, FAILURE, or SUCCESS task records.
Answer C is incorrect because HTTP success for reading tasks does not force each task’s application status to be successful.
Answer D is incorrect because This is a GET retrieval, and 200 indicates successful retrieval rather than creation of a new task.
Question 22
A controller API responds that a submitted operation has been accepted for asynchronous processing and provides a task identifier, but the task is not finished. Which TWO conclusions are correct? Choose TWO.
Correct Answers: D, F
Correct Answers
Answer D is correct because An accepted asynchronous request can later succeed or fail, so terminal task state still matters.
Answer F is correct because The task identifier is the correlation value needed to query the asynchronous operation after submission.
Incorrect Answers
Answer A is incorrect because Asynchronous workflows intentionally separate initial submission from later result retrieval.
Answer B is incorrect because Task IDs correlate work and are not credentials that authorize later API access.
Answer C is incorrect because Acceptance occurs before all downstream execution evidence is necessarily available.
Answer E is incorrect because Doing so would confuse request acceptance with the later outcome of asynchronous work.
Question 23
A Catalyst Center request receives HTTP 400 with an error indicating that a required query value has invalid syntax. What is the best interpretation?
Correct Answer: D
Correct Answer
Answer D is correct because The documented 400 response indicates a request the server could not understand, such as invalid syntax.
Incorrect Answers
Answer A is incorrect because The stated 400 response identifies a client-request problem rather than a gateway or service timeout.
Answer B is incorrect because A malformed request is not evidence that the requested work was accepted for execution.
Answer C is incorrect because A missing resource is distinct from a request whose syntax or parameters are invalid.
Answer E is incorrect because A forbidden response aligns with an authorization problem rather than the stated malformed-request error.
Question 24
Two API calls fail differently. Call A returns 401 because its credentials are missing. Call B returns 403 after the controller recognizes the credentials but denies the requested operation. Which TWO interpretations are correct? Choose TWO.
Correct Answers: E, F
Correct Answers
Answer E is correct because The documented 401 condition indicates missing or invalid client authentication credentials.
Answer F is correct because The documented 403 condition means the server recognizes the credentials but refuses the action due to authorization.
Incorrect Answers
Answer A is incorrect because HTTP status numbers are categorical response codes, not a numeric scale of permission success.
Answer B is incorrect because Authentication and authorization failures do not establish whether the target resource exists.
Answer C is incorrect because Recognized credentials can remain insufficient; the relevant permission or role must be addressed.
Answer D is incorrect because Both are access-control responses from a reachable controller rather than evidence of service unavailability.
Question 25
A GET request for `/tasks/does-not-exist` reaches Catalyst Center and returns 404 for that identifier. Other API requests to the controller succeed. What should the client conclude first?
Correct Answer: E
Correct Answer
Answer E is correct because The documented 404 condition concerns a resource that does not exist, while successful calls prove the controller remains reachable.
Incorrect Answers
Answer A is incorrect because Invalid or missing credentials are handled separately from a resource-not-found condition.
Answer B is incorrect because A nonexistent task resource cannot be equated with an existing task whose application status is FAILURE.
Answer C is incorrect because A server must respond to produce this HTTP status, and other successful requests further contradict an outage.
Answer D is incorrect because The issue is the requested identifier, not the use of HTTP as the controller API protocol.
Question 26
A deployment response contains `{“taskId”:”7f9″}`. The API documentation states that deployments are asynchronous. What should the client do with `7f9`?
Correct Answer: A
Correct Answer
Answer A is correct because The identifier correlates the submitted asynchronous work with later status and result retrieval.
Incorrect Answers
Answer B is incorrect because Authentication tokens and task identifiers have different purposes and security semantics.
Answer C is incorrect because A controller task ID does not automatically become a key in unrelated YANG resource models.
Answer D is incorrect because The identifier is valuable precisely because it supports subsequent task-state lookup.
Answer E is incorrect because A task identifier represents controller work and is not a managed-device hardware identifier.
Question 27
A filtered inventory GET returns HTTP 200 and `{“response”:[]}`. The filter is valid and no devices currently match it. What is the best interpretation?
Correct Answer: E
Correct Answer
Answer E is correct because A successful response with an empty array can legitimately mean that zero resources match the request.
Incorrect Answers
Answer A is incorrect because Authorization failures use their own status and should not be inferred merely from an empty successful collection.
Answer B is incorrect because An empty collection is a valid successful result when no entries satisfy the filter.
Answer C is incorrect because The stated 200 status and valid filter indicate the request was understood and completed.
Answer D is incorrect because The payload supplies no evidence of a deletion; it simply reports no matching resources at query time.
Question 28
A RESTCONF PATCH fails and the returned error identifies the modeled path `/interfaces/interface[name=’Gi1′]/mtu` as violating a schema constraint. Which response detail is most useful for correction?
Correct Answer: B
Correct Answer
Answer B is correct because The path directs the client to the exact modeled node whose value or operation violates the server’s YANG-based validation.
Incorrect Answers
Answer A is incorrect because Server software identity does not identify which requested modeled value violated the schema constraint.
Answer C is incorrect because Inventory totals do not explain why the specific RESTCONF modeled path failed validation.
Answer D is incorrect because Routing state is unrelated to the stated model-validation error for the requested MTU node.
Answer E is incorrect because Presentation order has no bearing on RESTCONF validation of a YANG resource path.
Question 29
A controller returns HTTP 409 and states that the target resource is already being edited by another workflow. What should the client infer?
Correct Answer: E
Correct Answer
Answer E is correct because The documented conflict response describes a resource state that prevents the requested operation, such as an edit conflict.
Incorrect Answers
Answer A is incorrect because Missing or invalid authentication is represented separately from a resource-state conflict.
Answer B is incorrect because Receiving a structured conflict response shows that the controller is reachable and processing the request.
Answer C is incorrect because A conflict means the requested operation has not been established as successful and requires resolution or retry logic.
Answer D is incorrect because A conflict often implies the resource does exist but is currently in a state that blocks the operation.
Question 30
An API returns 100 devices per page. The first response contains 100 devices and metadata showing 240 total matches with the next offset at 101. Which TWO actions are necessary to build a complete result? Choose TWO.
Correct Answers: A, E
Correct Answers
Answer A is correct because The first page covers only part of the 240 matching resources, so additional pages are required.
Answer E is correct because A robust client should aggregate the paginated result and handle retries without counting the same resource twice.
Incorrect Answers
Answer B is incorrect because Offsets and page limits are used specifically to retrieve subsequent portions of large result sets.
Answer C is incorrect because The total is result metadata describing match count, not asynchronous work correlation.
Answer D is incorrect because Deletion is unrelated to navigating a paginated read and would be destructive.
Answer F is incorrect because HTTP success applies to the individual page and does not override pagination metadata showing more matches.
Popular posts
Recent Posts
