Courseiva
mediumMultiple ChoiceObjective-mapped

200-901 Practice Question: Needs to automate the deployment of a new VLAN on…

A network engineer needs to automate the deployment of a new VLAN on multiple Cisco switches using RESTCONF. Which URL structure should be used to create a VLAN with ID 100?

⚠ Common exam trap

Cisco often tests the distinction between PUT and POST in RESTCONF, where candidates mistakenly use POST to create a specific resource instance (like a VLAN by ID) instead of PUT, or confuse the '/operations' RPC path with data resource manipulation.

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

PUT /restconf/data/Cisco-IOS-XE-vlan:vlans/vlan=100

RESTCONF uses the HTTP PUT method to create or replace a specific data resource, and the URL path follows the YANG module structure. Here, 'Cisco-IOS-XE-vlan:vlans/vlan=100' targets the VLAN list entry with ID 100, creating it if it does not exist. This aligns with RESTCONF's resource-oriented design, where PUT on a specific data node performs a create or replace operation.

Answer analysis

Option-by-option breakdown

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

  • PUT /restconf/data/Cisco-IOS-XE-vlan:vlans/vlan=100

    Why this is correct

    PUT creates or replaces the VLAN resource at the specified URI.

  • POST /restconf/operations/Cisco-IOS-XE-vlan:create-vlan

    Why it's wrong here

    This is an RPC operation, not a data resource creation.

  • POST /restconf/data/Cisco-IOS-XE-vlan:vlans/vlan=100

    Why it's wrong here

    POST is not used to create a specific resource; PUT is appropriate.

  • PUT /restconf/config/vlan/100

    Why it's wrong here

    This path is not compliant with the YANG module namespace.

Visual reference

Switch VLAN 10 Sales (192.168.10.0/24) PC-A PC-B VLAN 20 HR (192.168.20.0/24) PC-C PC-D Router VLANs isolate traffic — inter-VLAN routing requires a Layer 3 device

About these practice questions

This 200-901 question is part of Courseiva's 989-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 200-901 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-901 exam.