300-435 exam dumps

300-435 practice question 195 of 322

Automating Cisco Enterprise Solutions. Professional level, Cisco. Free question with the correct answer and a full explanation.

300-435 Question 195

Select 3

You are automating a network troubleshooting process using Cisco DNA Center's Command Runner APIs. The goal is to execute a series of show commands on devices to gather operational data. Which of the following steps is required to ensure successful execution of the Command Runner API?

  1. A

    Ensure the target devices are added and managed in Cisco DNA Center.

  2. B

    Obtain the Cisco DNA Center API token for authentication.

  3. C

    Configure a webhook to receive the output of the executed commands.

  4. D

    Specify the device IDs and the commands to be executed in the API request payload.

  5. E

    Enable the RESTCONF protocol on each target device.

Show answer and explanation

Correct answers: A, B, D

Explanation

To successfully use Cisco DNA Center's Command Runner API, you must ensure that the target devices are managed within Cisco DNA Center, authenticate the API call using an API token, and provide the correct payload containing the device IDs and commands. Configuring webhooks or enabling RESTCONF is not related to this specific API functionality.

  • A. Correct.

    Correct: The Command Runner API can only be used on devices that are added and managed in Cisco DNA Center. Without this, the API cannot identify or interact with the devices.

  • B. Correct.

    Correct: An API token is required for authenticating API calls to Cisco DNA Center, including the Command Runner API.

  • C. Incorrect.

    Incorrect: Configuring a webhook is not required for using Command Runner APIs. The output is retrieved directly from the API response or through follow-up API queries.

  • D. Correct.

    Correct: The device IDs (to identify the devices) and the specific commands (e.g., 'show version') must be included in the API request payload for successful execution.

  • E. Incorrect.

    Incorrect: RESTCONF is not required for using the Command Runner API. This protocol is unrelated to the execution of show commands via the Command Runner.

Timed practice exam

Take a 300-435 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam