Courseiva
mediumMultiple ChoiceObjective-mapped

CCNP Practice Question: An engineer is using the Cisco IOS-XE RESTCONF…

An engineer is using the Cisco IOS-XE RESTCONF API to create a new loopback interface. The following JSON payload is sent in a POST request to '/restconf/data/ietf-interfaces:interfaces':

```json

{

"ietf-interfaces:interface": [

{
      "name": "Loopback100",
      "description": "Management Loopback",
      "type": "iana-if-type:softwareLoopback",
      "enabled": true,

"ietf-ip:ipv4": {

"address": [
          {
            "ip": "192.168.1.1",
            "netmask": "255.255.255.0"
          }
        ]
      }
    }
  ]
}

```

What is the correct HTTP method and URL for this operation?

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

POST /restconf/data/ietf-interfaces:interfaces

To create a new resource, the POST method is used. The URL should point to the collection of interfaces. The payload includes the 'ietf-interfaces:interface' list. The correct URL is '/restconf/data/ietf-interfaces:interfaces'.

Answer analysis

Option-by-option breakdown

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

  • POST /restconf/data/ietf-interfaces:interfaces

    Why this is correct

    POST is used to create a new resource under the interfaces collection.

  • PUT /restconf/data/ietf-interfaces:interfaces

    Why it's wrong here

    PUT is used to replace or create a specific resource, not a collection.

  • PATCH /restconf/data/ietf-interfaces:interfaces

    Why it's wrong here

    PATCH is used for partial updates.

  • POST /restconf/data/ietf-interfaces:interfaces/interface=Loopback100

    Why it's wrong here

    That URL would be for a specific interface, but the payload contains the interface list.

About these practice questions

One of 1,175 original 350-401 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 350-401 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 350-401 exam.