Question 1
Topic: Network Automation Foundation
Skill tested: Constructs a RESTCONF JSON payload that follows an interface YANG data model.
An automation service must enable GigabitEthernet2 on an IOS XE device through RESTCONF. The relevant YANG tree shows a list named `interface`, keyed by `name`, with a `config` container containing `name`, `description`, and `enabled` leaves. The server uses the standard RESTCONF JSON representation and expects the request body to represent the interface list entry, not the enclosing module. Which payload correctly enables the interface named GigabitEthernet2 and sets its description to `Uplink to distribution`?
The YANG list is named `interface`, so its JSON representation is an array of entries, with the module-qualified list name used here and each entry containing its key and `config` container. The `enabled` leaf is a boolean, not the string `"true"`. The question specifies that the request body is the interface list entry representation rather than the top-level `interfaces` container, which rules out B. A omits the list and config structure, while D has the wrong object shape, omits the key at the entry level, and encodes a boolean as a string.