300-435 exam dumps

300-435 practice question 224 of 322

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

300-435 Question 224

Single answer

A network engineer is tasked with automating the deployment of device configurations across multiple branches using Cisco DNA Center's Template APIs. The engineer creates a new template within the API and wants to apply it to a specific device. After retrieving the device ID, what is the correct next step to apply the template?

  1. A

    Use the POST /template-programmer/apply API endpoint with the template ID, target device ID, and required parameters.

  2. B

    Use the GET /template-programmer/templates API endpoint to fetch all templates and then apply the template directly.

  3. C

    Use the PATCH /devices/config API endpoint to push the template configuration to the device.

  4. D

    Use the PUT /template-programmer/apply API endpoint to replace the device's current configuration with the new template.

Show answer and explanation

Correct answer: A

Explanation

To apply a template using Cisco DNA Center's Template API, the POST /template-programmer/apply endpoint must be used. This requires specifying the template ID, the target device ID, and any required parameters. Other endpoints, such as GET or PATCH, are used for different operations like retrieving templates or modifying configurations directly, but they are not used for applying templates.

  • A. Correct.

    This is the correct endpoint to apply a template in Cisco DNA Center. It requires the template ID, target device ID, and any necessary parameters to successfully apply the configuration.

  • B. Incorrect.

    This endpoint retrieves the list of available templates but does not apply them. It is used for querying templates, not deploying them.

  • C. Incorrect.

    This endpoint is not used for applying templates in Cisco DNA Center. It is typically used for modifying device configurations directly.

  • D. Incorrect.

    The PUT method is not the correct HTTP method for applying templates. Cisco DNA Center's Template API uses POST for this operation.

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