Courseiva
mediumMultiple ChoiceObjective-mapped

200-901 Practice Question: Refer to the exhibit

Exhibit

Refer to the exhibit.
```
{
  "hostname": "Router1",
  "interfaces": [
    {
      "name": "GigabitEthernet0/0",
      "ip": "10.1.1.1",
      "mask": "255.255.255.0",
      "enabled": true
    },
    {
      "name": "GigabitEthernet0/1",
      "ip": "192.168.1.1",
      "mask": "255.255.255.0",
      "enabled": false
    }
  ]
}
```

Refer to the exhibit. A Python script uses the Cisco IOS-XE RESTCONF API to retrieve the device configuration. The returned JSON is shown. What must be done to enable the GigabitEthernet0/1 interface using the API?

⚠ Common exam trap

Cisco often tests the distinction between PUT (full replace) and PATCH (partial update) in RESTCONF, where candidates mistakenly choose PUT thinking it can be used for single-field changes, but that would require sending the entire resource payload.

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

Send a PATCH request to the interface resource with the JSON payload {"enabled": true}.

RESTCONF uses PATCH for partial updates. To enable an interface, you only need to send the specific field that changes ({"enabled": true}) to the interface resource URI, which modifies the configuration without replacing the entire resource.

Answer analysis

Option-by-option breakdown

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

  • Send a PATCH request to the interface resource with the JSON payload {"enabled": true}.

    Why this is correct

    PATCH partially updates the resource; changing enabled to true will enable the interface.

  • Send a DELETE request to the interface resource.

    Why it's wrong here

    DELETE removes the interface, not what is needed.

  • Send a GET request to the interface resource and parse the response.

    Why it's wrong here

    GET retrieves data but does not modify the configuration.

  • Send a PUT request to the interface resource with the entire JSON payload.

    Why it's wrong here

    PUT replaces the entire resource; it can be used but is heavy-handed; the exhibit only requires changing one field.

About these practice questions

One of 989 original 200-901 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.