Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 200-901 topic 1 question 80 discussion

Actual exam question from Cisco's 200-901
Question #: 80
Topic #: 1
[All 200-901 Questions]

What is a difference between a synchronous API and an asynchronous API?

  • A. Synchronous API calls require an authentication header to be sent while asynchronous calls do not require authentication.
  • B. Synchronous API calls are returned immediately while asynchronous calls do not guarantee an immediate response.
  • C. An asynchronous API can make offline calls while synchronous APIs do not have this capability.
  • D. An asynchronous API can make a larger number of calls in a specified time period than a synchronous API.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
https://stackoverflow.com/questions/36213948/what-is-the-difference-between-asynchronous-calls-and-callbacks

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
arthurb
Highly Voted 2 years, 2 months ago
B is not correct Synchronous API calls are blocking calls that do not return until either the change has been completed or there has been an error. For asynchronous calls, the response to the API call is returned immediately with a polling URL while the request continues to be processed. In heavier load conditions, it can be more efficient to submit multiple async calls and periodically check the status than to wait for each call to complete before submitting the next one.
upvoted 11 times
ThePokemonNuzlockingMaster
1 year, 10 months ago
This is correct, see below for source: https://developer.cisco.com/docs/packaged-contact-center/#!synchronous-vs-asynchronous-writes/synchronous-vs-asynchronous-writes
upvoted 2 times
...
aplicacion101
1 year, 6 months ago
Netacad Synchronous APIs respond to a request directly, usually providing data (or another appropriate response) immediately
upvoted 1 times
...
...
anagy11
Highly Voted 2 years ago
Selected Answer: B
Definitely B
upvoted 6 times
concepcionz
1 year, 4 months ago
Synchronous does NOT return immediately, it returns when either the change has been completed or there was an error. Asynchronous call does return immediately
upvoted 2 times
...
...
knowyourself7
Most Recent 8 months, 1 week ago
Selected Answer: B
Correct answer
upvoted 2 times
...
knowyourself7
8 months, 1 week ago
Selected Answer: B
correct answer
upvoted 2 times
...
throwaway_account
10 months ago
Selected Answer: D
Async call will give you the callback URL immediately, while a sync call won't respond until it's done doing whatever you told it to do.
upvoted 2 times
...
nunyabeez
1 year, 1 month ago
This is another terribly written question. When considering answer B, is it talking about the actual data we're looking for or just a response in general? If it's talking about the actual data we want, then synchronous would be faster. If it's talking about any response at all, then async would be faster as it gets the callback now so you can fetch the data later. So if we're going strictly on the face value of the wording of the question without inferring anything else, answer D would make more sense.
upvoted 2 times
...
mellohello
1 year, 3 months ago
Selected Answer: B
In general, a synchronous API call is a request made by a client that waits for a response before moving on to the next task. The client is blocked or "stuck" until it receives a response from the server. This means that the client is unable to perform any other actions or processes until it receives the response. On the other hand, an asynchronous API call is a request made by a client that does not wait for a response before moving on to the next task. The client is able to continue performing other actions or processes while it waits for a response from the server. This means that the client is able to handle multiple requests simultaneously, rather than having to wait for one request to be completed before moving on to the next. The other options are not accurate. A synchronous or asynchronous API call may or may not require authentication, and there is no inherent difference in the offline capabilities or the number of calls that can be made in a specified time period between the two types of API calls.
upvoted 2 times
...
concepcionz
1 year, 4 months ago
Selected Answer: D
Synchronous API calls are blocking calls that do not return until either the change has been completed or there has been an error Asynchronous the response to the API call is returned immediately with a polling URL while the request continues to be processed https://developer.cisco.com/docs/packaged-contact-center/#!synchronous-vs-asynchronous-writes/synchronous-vs-asynchronous-writes
upvoted 1 times
...
SR_Cisco
1 year, 5 months ago
Selected Answer: D
https://developer.cisco.com/docs/packaged-contact-center/#!synchronous-vs-asynchronous-writes/synchronous-vs-asynchronous-writes
upvoted 2 times
...
aplicacion101
1 year, 6 months ago
Selected Answer: B
B is correct Netacad 4.2.2 Benefits of a synchronous API design Synchronous APIs enable the application to receive data immediately. If the API is designed correctly, the application will have better performance because everything happens quickly. However, if it is not designed correctly, the API request will be a bottleneck because the application has to wait for the response. When are APIs asynchronous? APIs are usually designed to be asynchronous when the request is an action that takes some time for the server to process, or if the data is not readily available. For example, if the server has to make a request to a remote service to fetch the data, it cannot guarantee that it will receive the data immediately to send back to the client. Just because an API is asynchronous does not necessarily mean that the client will not get the data immediately. It only means that an immediate response with data is not guaranteed.
upvoted 2 times
...
macxsz
1 year, 9 months ago
Selected Answer: D
I go for D because the others dont make sense
upvoted 3 times
...
ThePokemonNuzlockingMaster
1 year, 10 months ago
Selected Answer: D
D is correct: https://developer.cisco.com/docs/packaged-contact-center/#!synchronous-vs-asynchronous-writes/synchronous-vs-asynchronous-writes
upvoted 3 times
...
daloslav
2 years ago
Selected Answer: D
D is correct
upvoted 3 times
...
dumbdump
2 years ago
In the case of synchronous APIs, the expectation is that there will be an immediate return of data. The application requests data and waits for it until a value is returned. In the case of asynchronous APIs, the availability of a resource, service or data store may not be immediate. These APIs may provide a callback to the requester when the requested resource is ready. B) DEFINITELY
upvoted 5 times
...
dumbdump
2 years ago
D is correct. Asynchronous API should receive an answer immediately
upvoted 1 times
...
Indersingh
2 years, 2 months ago
Answer shoud be: D For asynchronous calls, the response to the API call is returned immediately with a polling URL while the request continues to be processed. In heavier load conditions, it can be more efficient to submit multiple async calls and periodically check the status than to wait for each call to complete before submitting the next one.
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...