Automation and Artificial Intelligence
A script calls a Catalyst Center Intent API to start a task and receives HTTP 202 with a payload containing a taskId and a url. What should the script do next?
Show the answer
Correct answerC. Query the task URL until the task completes, then read its result.
AWhy not this: 202 is a success-class code, not an authentication failure that needs a new token.
BWhy not this: 202 only confirms acceptance; the task may still fail or be running.
CWhy this is right: 202 Accepted means the work is asynchronous, so poll the task URL for final status.
DWhy not this: A wrong method gives 405 Method Not Allowed, not 202.
A 202 means Catalyst Center accepted the request for asynchronous processing. The taskId and url in the payload are used to poll the task API for its final status and result. Treating 202 as completion is wrong, because the work may not have finished.