300-435 exam dumps

300-435 practice question 227 of 322

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

300-435 Question 227

Single answer

You are automating the deployment of network configurations using Cisco DNA Center Template APIs. You have created a CLI-based template and want to apply it to a specific device. Which API operation must you use to apply the template, and what additional data must you include in the request to ensure successful execution?

  1. A

    POST /template-programmer/apply with the template ID and target device ID in the request body

  2. B

    PUT /template-programmer/apply with the template name and device hostname in the request body

  3. C

    GET /template-programmer/apply with the template ID in the query parameters

  4. D

    POST /template-programmer/apply with the template ID, target device ID, and any required template parameters in the request body

Show answer and explanation

Correct answer: D

Explanation

The correct API operation to apply a template in Cisco DNA Center is POST /template-programmer/apply. This operation requires including the template ID to specify which template to apply, the target device ID to identify where the template will be applied, and any required template parameters (if the template includes variables). Without these components, the request will fail to execute properly.

  • A. Incorrect.

    Incorrect. While the POST method is correct, this option does not include the required template parameters, which are necessary for executing templates that use variables.

  • B. Incorrect.

    Incorrect. The PUT method is not used for applying templates in Cisco DNA Center Template APIs. Additionally, using the template name and device hostname instead of IDs is not supported.

  • C. Incorrect.

    Incorrect. The GET method is not used to apply templates; it is typically used for retrieving information, not for execution.

  • D. Correct.

    Correct. This option uses the POST method, which is correct for applying templates, and includes the necessary template ID, target device ID, and any required template parameters, ensuring the template can be executed successfully.

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