Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

HomeCertifications350-401TopicsREST APIs and Data Models
Free · No Signup RequiredCisco · 350-401

350-401 REST APIs and Data Models Practice Questions

20+ practice questions focused on REST APIs and Data Models — one of the most tested topics on the ENCOR 350-401 exam. Each question includes a detailed explanation so you learn why the right answer is correct.

Start REST APIs and Data Models Practice

Exam Domains

ArchitectureEnterprise Network DesignSD-Access ArchitectureSD-WAN ArchitectureQoS ArchitectureVirtualizationNetwork Function VirtualizationAll domains →

Study Tools

Practice TestMock ExamFlashcardsAll Topics

Sample REST APIs and Data Models Questions

Practice all 20+ →
1.

A network engineer is automating the configuration of a new VLAN on a Cisco Catalyst 9000 switch using RESTCONF. The engineer sends a PUT request to the URI 'https://switch/restconf/data/Cisco-NX-OS-device:Native/VlanList' with a JSON payload containing the VLAN details. The switch responds with a 405 Method Not Allowed error. What is the most likely cause of this error?

A.The engineer used the wrong URI; the correct URI should include a specific VLAN ID.
B.The engineer should have used the POST method instead of PUT to create a new list entry.
C.The payload format is incorrect; the engineer must use XML instead of JSON.
D.The switch does not support RESTCONF for VLAN configuration; NETCONF must be used instead.

Explanation: The PUT method is typically used to create or replace a resource, but for list entries in RESTCONF, the POST method is used to add a new entry. The 405 error indicates that the method is not allowed for the specified URI. The engineer should use POST to add a new VLAN entry to the list.

2.

An engineer is using a Python script to retrieve interface statistics from a Cisco IOS-XE device via the REST API. The script sends a GET request to 'https://device/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1/statistics' and receives a 404 Not Found response. The interface exists and is operational. What is the most likely issue?

A.The interface name must be URL-encoded because it contains a slash.
B.The URI is incorrect; statistics are under 'interfaces-state' not 'interfaces'.
C.The device requires authentication; the script must include a valid token.
D.The REST API is not enabled on the device; the engineer must enable it first.

Explanation: The 404 error indicates the resource was not found. In RESTCONF, the URI must use the correct encoding for interface names, especially if they contain special characters like a slash. The interface name 'GigabitEthernet1' should be URL-encoded as 'GigabitEthernet1' (no encoding needed here), but the issue is that the URI path must match the YANG module structure exactly. The statistics data is often under a separate container like 'interfaces-state' in the ietf-interfaces model, not directly under 'interface'. The correct URI for operational statistics is typically 'ietf-interfaces:interfaces-state/interface=GigabitEthernet1/statistics'.

3.

A network team is using Ansible with the iosxr_config module to push configuration changes to a Cisco IOS-XR router. The playbook uses the REST API via the 'ansible_connection: restconf' setting. The engineer notices that the changes are applied but the playbook reports 'changed: false' even when changes were made. What is the most likely reason for this behavior?

A.The REST API on the router does not return a proper response, so Ansible cannot determine if a change occurred.
B.The engineer should use the 'uri' module with the REST API instead of the 'iosxr_config' module.
C.The playbook is missing the 'gather_facts: no' directive, causing Ansible to skip change detection.
D.The router requires a commit operation after configuration changes, and Ansible does not perform that.

Explanation: When using RESTCONF, the Ansible module may not detect changes if the module does not properly parse the response from the device. However, in this scenario, the issue is that the 'iosxr_config' module is designed for CLI-based connections, not RESTCONF. The correct approach is to use a module like 'iosxr_restconf' or a generic 'uri' module. The 'ansible_connection: restconf' is not a valid connection type for Ansible; Ansible uses 'network_cli' or 'ansible.netcommon.restconf' connection plugin. The engineer should use the 'uri' module or a dedicated RESTCONF module.

4.

An engineer is developing a script to automate the backup of running configurations from multiple Cisco IOS-XE devices using RESTCONF. The script sends a GET request to 'https://device/restconf/data/Cisco-IOS-XE-native:native/configuration' and receives a 501 Not Implemented error. What is the most likely cause?

A.The device does not support RESTCONF; the engineer must use NETCONF for configuration backup.
B.The URI is incorrect; the running configuration is under 'ietf-netconf-monitoring:netconf-state/capabilities'.
C.The URI is incorrect; the running configuration is accessed via the 'Cisco-IOS-XE-native:native' module without the '/configuration' suffix.
D.The request must use the POST method instead of GET to retrieve the running configuration.

Explanation: The 501 error indicates that the server does not support the functionality required to fulfill the request. In this case, the URI is incorrect because the running configuration is typically accessed via the 'ietf-netconf-monitoring' module or a specific Cisco module like 'Cisco-IOS-XE-native:native' but the path should be '/restconf/data/Cisco-IOS-XE-native:native' without '/configuration'. However, the more common issue is that the running configuration is not directly available via RESTCONF; it is available via NETCONF or via the 'operational' datastore. The correct approach is to use the 'ietf-netconf-monitoring' module or the 'cisco-native' module with the correct path.

5.

A network engineer is using the Cisco DNA Center REST API to retrieve the list of network devices. The engineer sends a GET request to '/dna/intent/api/v1/network-device' and receives a 400 Bad Request response. The API documentation indicates that the request requires a query parameter 'siteId'. What should the engineer do to resolve the issue?

A.Include the 'siteId' query parameter in the request URL.
B.Change the HTTP method to POST because GET is not supported for this endpoint.
C.Add an 'Authorization' header with a valid token because the API requires authentication.
D.Use a different API endpoint, such as '/dna/intent/api/v1/site', to retrieve device information.

Explanation: A 400 Bad Request typically indicates a malformed request, such as missing required parameters. The API documentation specifies that 'siteId' is required, so the engineer must include it as a query parameter in the request.

+15 more REST APIs and Data Models questions available

Practice all REST APIs and Data Models questions

How to master REST APIs and Data Models for 350-401

1. Baseline your knowledge

Start with 10 questions to gauge your current understanding of REST APIs and Data Models. This tells you whether you need a concept refresher or just practice.

2. Review every explanation

For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.

3. Focus on exam traps

REST APIs and Data Models questions on the 350-401 frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.

4. Reach 80% consistently

Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.

Frequently asked questions

How many 350-401 REST APIs and Data Models questions are on the real exam?

The exact number varies per candidate. REST APIs and Data Models is tested as part of the ENCOR 350-401 blueprint. Practicing with targeted REST APIs and Data Models questions ensures you can handle any format or difficulty that appears.

Are these 350-401 REST APIs and Data Models practice questions free?

Yes. Courseiva provides free 350-401 practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.

Is REST APIs and Data Models one of the harder 350-401 topics?

Difficulty is subjective, but REST APIs and Data Models is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.

Ready to practice?

Launch a full REST APIs and Data Models practice session with instant scoring and detailed explanations.

Start REST APIs and Data Models Practice →

Topic Info

Topic

REST APIs and Data Models

Exam

350-401

Questions available

20+