nerdexam
Cisco

350-501 · Question #619

Refer to the exhibit. What is the effect of this REST API script?

The correct answer is C. It enables the interface immediately when executed. A REST API script that modifies an interface's operational state to 'up' or 'enabled' will immediately activate the interface when executed.

Automation and Assurance

Question

Refer to the exhibit. What is the effect of this REST API script?

Exhibit

350-501 question #619 exhibit

Options

  • AIt creates the interface in an enabled state.
  • BIt disables the interface until a configurable timer expires and then enables it.
  • CIt enables the interface immediately when executed.
  • DIt shuts down the interface until the interface is manually turned up.

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    93% (26)

Why each option

A REST API script that modifies an interface's operational state to 'up' or 'enabled' will immediately activate the interface when executed.

AIt creates the interface in an enabled state.

The script described primarily modifies the state of an *existing* interface. While an interface might be enabled upon creation, the core effect of setting its state to 'up' is enablement, not creation.

BIt disables the interface until a configurable timer expires and then enables it.

REST API calls for state changes are generally immediate. There is no standard behavior for a simple command to enable an interface to involve a configurable timer for delayed activation.

CIt enables the interface immediately when executed.Correct

When a REST API script is executed to set an interface's administrative state to 'up' or 'enabled' (e.g., typically `admin-state: up` in a YANG-based model), the interface immediately transitions to an operational state. This allows the interface to begin processing and forwarding network traffic without delay.

DIt shuts down the interface until the interface is manually turned up.

Shutting down an interface would involve setting its `admin-state` to 'down' or 'disabled'. Setting the state to 'up' is the opposite action, bringing the interface online rather than taking it offline.

Concept tested: REST API for network device interface state

Topics

#REST API#Network Automation#Interface Configuration

Community Discussion

No community discussion yet for this question.

Full 350-501 Practice