This 200-301 practice question tests your understanding of ai and network operations. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Network Topology
You are connected to R1. Use RESTCONF to retrieve all operational interface statistics from the ietf-interfaces YANG module, then modify the description of GigabitEthernet0/1 to 'Link to R2 via RESTCONF' using a PATCH request. The device is reachable at 203.0.113.1 with port 443, username 'admin', password 'cisco123'. Identify the error that would occur if you used a PATCH with Content-Type: application/json instead of application/yang-data+json.
R1# show running-config | section interface GigabitEthernet0/1
interface GigabitEthernet0/1
description Original description
ip address 192.0.2.1 255.255.255.252
no shutdown
!
R1# show ip interface brief
Interface IP-Address Status Protocol
GigabitEthernet0/0 203.0.113.1 up up
GigabitEthernet0/1 192.0.2.1 up up
Loopback0 10.1.1.1 up up
A
The server returns a 415 Unsupported Media Type error because RESTCONF requires the Content-Type header to be application/yang-data+json.
RESTCONF mandates the use of the YANG media type 'application/yang-data+json' for request and response bodies. Using 'application/json' violates this requirement, causing the server to reject the request with a 415 Unsupported Media Type error.
B
The server returns a 400 Bad Request error because the JSON payload is malformed when using application/json.
Why wrong: This is incorrect because the payload itself is not malformed; the issue is the Content-Type header. A 400 error would indicate a syntax error in the request, not a media type mismatch.
C
The server returns a 404 Not Found error because the URI is incorrect when using application/json.
Why wrong: This is incorrect because the URI remains valid regardless of the Content-Type. A 404 error indicates the resource was not found, which is unrelated to the media type.
D
The server returns a 204 No Content response but ignores the description change because application/json is not supported.
Why wrong: This is incorrect because the server will not process the request at all if the Content-Type is unsupported. A 204 response would indicate success, which does not occur here.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The server returns a 415 Unsupported Media Type error because RESTCONF requires the Content-Type header to be application/yang-data+json.
The correct base URI for RESTCONF is https://203.0.113.1/restconf. To retrieve operational interface statistics, use GET with the path /data/ietf-interfaces:interfaces-state/interface. For the PATCH to modify the description, the URI must target /data/ietf-interfaces:interfaces/interface=GigabitEthernet0/1 with a JSON payload containing the 'description' leaf. The required Content-Type and Accept headers must be 'application/yang-data+json'. Using 'application/json' will result in a 415 Unsupported Media Type error because RESTCONF requires the specific YANG media type.
Key principle: NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✓
The server returns a 415 Unsupported Media Type error because RESTCONF requires the Content-Type header to be application/yang-data+json.
Why this is correct
RESTCONF mandates the use of the YANG media type 'application/yang-data+json' for request and response bodies. Using 'application/json' violates this requirement, causing the server to reject the request with a 415 Unsupported Media Type error.
Related concept
Static NAT maps one inside address to one outside address.
✗
The server returns a 400 Bad Request error because the JSON payload is malformed when using application/json.
Why it's wrong here
This is incorrect because the payload itself is not malformed; the issue is the Content-Type header. A 400 error would indicate a syntax error in the request, not a media type mismatch.
✗
The server returns a 404 Not Found error because the URI is incorrect when using application/json.
Why it's wrong here
This is incorrect because the URI remains valid regardless of the Content-Type. A 404 error indicates the resource was not found, which is unrelated to the media type.
✗
The server returns a 204 No Content response but ignores the description change because application/json is not supported.
Why it's wrong here
This is incorrect because the server will not process the request at all if the Content-Type is unsupported. A 204 response would indicate success, which does not occur here.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The 200-301 exam frequently reuses these exact scenarios with slightly different constraints.
✓The server returns a 415 Unsupported Media Type error because RESTCONF requires the Content-Type header to be application/yang-data+json.Correct answer▾
Why this is correct
RESTCONF mandates the use of the YANG media type 'application/yang-data+json' for request and response bodies. Using 'application/json' violates this requirement, causing the server to reject the request with a 415 Unsupported Media Type error.
✗The server returns a 400 Bad Request error because the JSON payload is malformed when using application/json.Wrong answer — click to see why▾
Why this is wrong here
The specific factual error is that a 400 Bad Request is not triggered by an incorrect Content-Type; it is triggered by malformed syntax or invalid data.
Why candidates choose this
Candidates might think that using a different media type would cause a parsing error, leading to a 400 response.
✗The server returns a 404 Not Found error because the URI is incorrect when using application/json.Wrong answer — click to see why▾
Why this is wrong here
The specific factual error is that the Content-Type header does not affect resource discovery; it only affects how the server interprets the payload.
Why candidates choose this
Candidates might confuse the error code for a missing resource with a media type error, especially if they have seen 404 errors in other contexts.
✗The server returns a 204 No Content response but ignores the description change because application/json is not supported.Wrong answer — click to see why▾
Why this is wrong here
The specific factual error is that an unsupported media type results in a client error (4xx), not a success response (2xx).
Why candidates choose this
Candidates might think the server silently ignores the unsupported media type and returns a success code, which is a common misconception about REST APIs.
Analysis generated from the official 200-301blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Common exam traps
Common exam trap: NAT rules depend on direction and matching traffic
NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.
Detailed technical explanation
How to think about this question
NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.
KKey Concepts to Remember
Static NAT maps one inside address to one outside address.
PAT allows many inside hosts to share one public address using ports.
Inside local and inside global describe the private and translated addresses.
NAT ACLs identify traffic for translation, not always security filtering.
TExam Day Tips
→Identify inside and outside interfaces first.
→Check whether the scenario needs static NAT, dynamic NAT or PAT.
→Do not confuse NAT matching ACLs with normal packet-filtering intent.
Key takeaway
NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
Real-world example
How this comes up in practice
A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this 200-301 question in full detail.
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related 200-301 NAT questions on configuration and troubleshooting.
AI and Network Operations — This question tests AI and Network Operations — Static NAT maps one inside address to one outside address..
What is the correct answer to this question?
The correct answer is: The server returns a 415 Unsupported Media Type error because RESTCONF requires the Content-Type header to be application/yang-data+json. — The correct base URI for RESTCONF is https://203.0.113.1/restconf. To retrieve operational interface statistics, use GET with the path /data/ietf-interfaces:interfaces-state/interface. For the PATCH to modify the description, the URI must target /data/ietf-interfaces:interfaces/interface=GigabitEthernet0/1 with a JSON payload containing the 'description' leaf. The required Content-Type and Accept headers must be 'application/yang-data+json'. Using 'application/json' will result in a 415 Unsupported Media Type error because RESTCONF requires the specific YANG media type.
What should I do if I get this 200-301 question wrong?
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related 200-301 NAT questions on configuration and troubleshooting.
What is the key concept behind this question?
Static NAT maps one inside address to one outside address.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This 200-301 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 200-301 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.