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.
Question
Options
- Apaging API calls
- Basynchronous API calls
- Cbatch API calls
- Dsynchronous API calls
How the community answered
(31 responses)- B90% (28)
- C6% (2)
- D3% (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.
Paging API calls break large result sets into smaller chunks but do not inherently introduce complex call state tracking beyond managing the current page.
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.
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.
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
Community Discussion
No community discussion yet for this question.