nerdexam
Cisco

300-435 · Question #148

Refer to the exhibit. A POST request is sent to the Cisco Catalyst Center (formerly DNA Center) REST API to implement a network configuration change. Which information must be included in the…

The correct answer is B. discovery task ID and a status URL. Cisco Catalyst Center REST API POST responses for configuration tasks are asynchronous and return a task ID along with a status URL so the caller can poll for completion.

Controller-Based Network Automation

Question

Refer to the exhibit. A POST request is sent to the Cisco Catalyst Center (formerly DNA Center) REST API to implement a network configuration change. Which information must be included in the response block?

Exhibit

300-435 question #148 exhibit

Options

  • Aprogress of the discovery task
  • Bdiscovery task ID and a status URL
  • Clist of discovered devices
  • D403 - Unauthorized message

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    84% (21)
  • C
    8% (2)
  • D
    4% (1)

Why each option

Cisco Catalyst Center REST API POST responses for configuration tasks are asynchronous and return a task ID along with a status URL so the caller can poll for completion.

Aprogress of the discovery task

Discovery progress is a separate concern tracked through the task polling mechanism - it is not returned directly in the initial POST response block.

Bdiscovery task ID and a status URLCorrect

Cisco Catalyst Center uses an asynchronous task model for configuration changes. A POST request immediately returns an HTTP 202 Accepted response containing a task ID and a URL the client can use to poll the task status, rather than waiting for the operation to complete. This allows long-running operations to be tracked without blocking the API caller.

Clist of discovered devices

A list of discovered devices is the final result of a completed discovery task, retrieved after polling the task status URL, not in the initial response.

D403 - Unauthorized message

A 403 Unauthorized message would indicate missing or invalid authentication credentials, not a successful POST response.

Concept tested: Cisco Catalyst Center async POST response task ID

Source: https://developer.cisco.com/docs/dna-center/api/2-3-7/

Topics

#Cisco Catalyst Center API#REST API#Asynchronous Operations#Task Management

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice