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.
Question
Refer to the exhibit. What are two results of running the RESTCONF query? (Choose two.)
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)- A3% (1)
- C93% (27)
- E3% (1)
Why each option
Running a RESTCONF query that modifies interface configurations will result in specific changes based on the data sent.
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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.
