Courseiva
Automation →hardMultiple Choice

CCNP Automation Practice Question

A network automation team is using the Cisco DNA Center Intent API to create a new site hierarchy and assign devices. The API call to create the site returns HTTP 202 Accepted, but a subsequent call to assign a device to that site fails with an error that the site does not exist. The team is polling the task endpoint but has not yet received a success status. What is the most likely explanation?

⚠ Common exam trap

The trap here is treating a 202 Accepted response as immediate success, when it only means the request was queued for asynchronous processing.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The 202 response means the request is processed asynchronously, and the site is not available until the associated task completes successfully

Cisco DNA Center Intent API operations such as site creation are asynchronous and return HTTP 202 Accepted with a task ID. The site is not available for subsequent operations until the task completes successfully. The team must poll the task endpoint until it reports success before attempting to assign devices to the new site, which resolves the site-not-found error.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    The 202 response means the request is processed asynchronously, and the site is not available until the associated task completes successfully

    Why this is correct

    Cisco DNA Center returns HTTP 202 Accepted for asynchronous operations, including site creation. The response includes a task ID, and the site is not fully created until that task reaches a success state. The device assignment fails because the site does not yet exist. The team must poll the task endpoint until completion before proceeding.

  • ✗

    The site creation API requires a PUT instead of a POST, so the site was never created

    Why it's wrong here

    The Cisco DNA Center Intent API uses POST to create a site, and a 202 response indicates the request was accepted for asynchronous processing. Switching to PUT would not be appropriate for creation and would not explain the failure. The issue is timing, not the HTTP method used for creation.

  • ✗

    The device assignment must be performed before site creation, so the order of operations is reversed

    Why it's wrong here

    Device assignment requires the target site to exist first, so the order cannot be reversed. Assigning a device before creating the site would also fail. The error explicitly states the site does not exist, confirming that site creation must complete before assignment. The problem is not the sequence but the incomplete asynchronous task.

  • ✗

    The API token expired between the two calls, causing the second call to fail with a site-not-found error

    Why it's wrong here

    An expired token would result in an authentication error such as HTTP 401 Unauthorized, not a site-not-found error. The error message specifically indicates the site does not exist, which points to the asynchronous creation not having completed. Token expiration is unrelated to this specific failure and would present differently.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

One of 1,923 original 350-401 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Cisco exam blueprint

This 350-401 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 350-401 exam.