nerdexam
Cisco

300-435 · Question #137

Which consumption pattern requires call states when working with an API?

The correct answer is B. asynchronous API calls. Asynchronous API calls require tracking the state of a request because the operation completes at a later time, necessitating mechanisms to monitor its progress and eventual result.

Network Automation Foundation

Question

Which consumption pattern requires call states when working with an API?

Options

  • Apaging API calls
  • Basynchronous API calls
  • Cbatch API calls
  • Dsynchronous API calls

How the community answered

(31 responses)
  • B
    90% (28)
  • C
    6% (2)
  • D
    3% (1)

Why each option

Asynchronous API calls require tracking the state of a request because the operation completes at a later time, necessitating mechanisms to monitor its progress and eventual result.

Apaging API calls

Paging API calls break large result sets into smaller chunks but do not inherently introduce complex call state tracking beyond managing the current page.

Basynchronous API callsCorrect

Asynchronous API calls do not block the calling process, meaning the response is not immediately available; instead, the system continues other tasks and requires mechanisms like callbacks or polling to track the eventual completion and state of the original request. This necessity for tracking the request's progress or outcome introduces the need for managing call states.

Cbatch API calls

Batch API calls group multiple requests into one, which streamlines communication but doesn't necessarily introduce the need for complex call state management for the batch itself once submitted.

Dsynchronous API calls

Synchronous API calls block the calling process until a response is received, eliminating the need to track an ongoing 'call state' as the process waits for completion.

Concept tested: API consumption patterns and state management

Topics

#API consumption patterns#Asynchronous API calls#Call states#API interaction

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice