nerdexam
Cisco

200-901 · Question #528

Refer to the exhibit. What are two results of running the RESTCONF query? (Choose two.)

The correct answer is C. GigabitEthernet2 becomes shut down. D. Descriptions for two interfaces are applied. Running a RESTCONF query that modifies interface configurations will result in specific changes based on the data sent.

Understanding and Using APIs

Question

Refer to the exhibit. What are two results of running the RESTCONF query? (Choose two.)

Exhibit

200-901 question #528 exhibit

Options

  • AGigabitEthernet1 becomes shut down.
  • BInterfaces are created as containers.
  • CGigabitEthernet2 becomes shut down.
  • DDescriptions for two interfaces are applied.
  • EThe module left-interfaces:interfaces is created.

How the community answered

(29 responses)
  • A
    3% (1)
  • C
    93% (27)
  • E
    3% (1)

Why each option

Running a RESTCONF query that modifies interface configurations will result in specific changes based on the data sent.

AGigabitEthernet1 becomes shut down.

GigabitEthernet1 would only become shut down if the RESTCONF query specifically targeted its `enabled` state with a 'false' value, which is not implied by the provided correct answers related to GigaEthernet2's shutdown and descriptions.

BInterfaces are created as containers.

Interfaces are generally pre-existing or created through specific YANG models, not typically 'created as containers' by a simple PATCH operation to modify existing interface properties like description or enabled status.

CGigabitEthernet2 becomes shut down.Correct

If the RESTCONF query targets `ietf-interfaces:interfaces/interface=GigabitEthernet2/ietf-interfaces:enabled` and sets its value to 'false' (or similar configuration to disable), GigabitEthernet2 will become administratively shut down.

DDescriptions for two interfaces are applied.Correct

If the RESTCONF query includes configuration data to set the `ietf-interfaces:description` for both GigabitEthernet1 and GigabitEthernet2, then descriptions for these two interfaces will be applied.

EThe module left-interfaces:interfaces is created.

The module `left-interfaces:interfaces` is not a standard IETF module and a RESTCONF PATCH operation does not 'create' a YANG module; it modifies data instances defined by modules.

Concept tested: RESTCONF PATCH operations on network interfaces

Source: https://www.ietf.org/rfc/rfc8040.txt

Topics

#RESTCONF#YANG#Network Automation#Interface Configuration

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice