nerdexam
Cisco

350-501 · Question #383

Refer to the exhibit. An engineer at a new ISP must configure many Cisco devices in the data center. To make the process more efficient, the engineer decides to automate the task with a REST API…

The correct answer is A. Configure the IP address for the existing loopback interface. The JSON script automates the process of assigning or reconfiguring an IPv4 address on an existing loopback interface on a Cisco device using a REST API.

Automation and Assurance

Question

Refer to the exhibit. An engineer at a new ISP must configure many Cisco devices in the data center. To make the process more efficient, the engineer decides to automate the task with a REST API. Which action does this JSON script automate?

Exhibit

350-501 question #383 exhibit

Options

  • AConfigure the IP address for the existing loopback interface.
  • BConfigure a physical interface on the router with an IP address and then create a loopback
  • CConfigure a physical interface on the router with an IP address.
  • DDelete the existing loopback Interface and replace it with a new loopback interface.

How the community answered

(40 responses)
  • A
    75% (30)
  • B
    5% (2)
  • C
    13% (5)
  • D
    8% (3)

Why each option

The JSON script automates the process of assigning or reconfiguring an IPv4 address on an existing loopback interface on a Cisco device using a REST API.

AConfigure the IP address for the existing loopback interface.Correct

Based on typical REST API (RESTCONF) payloads for Cisco IOS XR, a JSON script targeting an interface named 'Loopback0' and containing an `ipv4-network` block is used to configure or update the IP address of that specific loopback interface.

BConfigure a physical interface on the router with an IP address and then create a loopback

This option is incorrect because configuring a physical interface and creating a loopback would require specific JSON structures for both, which is not implied by a single task focused on a loopback's IP.

CConfigure a physical interface on the router with an IP address.

This option is incorrect because the JSON would specify a physical interface name (e.g., GigabitEthernet) if it were configuring a physical interface, not a loopback interface.

DDelete the existing loopback Interface and replace it with a new loopback interface.

This option is incorrect because deleting and replacing an interface would typically involve a DELETE operation followed by a PUT/POST, or a PUT operation replacing the entire configuration, not simply updating an IP address.

Concept tested: REST API for network device configuration

Source: https://www.cisco.com/c/en/us/td/docs/iosxr/ncs5000/restconf/66x/b-restconf-cg-ncs5k-66x.html

Topics

#REST API#Network Automation#JSON#Loopback Interface

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice