|
|
|
|
|
by etc_host
2933 days ago
|
|
Question 2 of 20
Which of the following is a valid reason for why idempotence is useful in API design?
A. Due to the rise of distributed systems, idempotence has become necessary in order to scale any large-scale application.
B. Given the unreliability of networks, idempotence allows developers to build robust API’s that allow for retry attempts.
C. Idempotence is actually not as useful in API design and is instead more useful when designing database schemas.
D. Idempotence is important to prevent clients from sending multiple duplicate API requests.
E. I don't know
Wow, you're really going to try and estimate my level, based on opinions? No thanks. Not without a write-in option.P.S. My opinion is that, idempotence only useful, if you draw the conclusion that ceding control of your systems to external entities is useful. At which point you compromise your system based on communicated assumptions for how something should be, and not necessarily how things are behind the wall you can never see the other side of. In other words, the subtext of this question is: Do you like delegation of responsibility? The correct answer is yes.
Meanwhile, this question deals in buzz-wordy jargon. The answer you may provide, cannot be presumed as correct, without proper interpretation of the dictionary definition, according to the popularity of in-group consensus, and the chaining of the awareness of other preferred buzzwords as social cues for the expectation of a proper answer. |
|
"Useful" doesn't mean "preferred over other alternatives". You're overthinking the test due to having more advanced qualifications.
Idempotence, as you know, allows operations to be retried without the maintenance of state to detect duplicate operation, and so the correct answer is simply B.
A is somewhat of a distractor since use of idempotent API's is possibly relevant in building scalable systems. Idempotence isn't the cornerstone of scalability, though.
C is nonsense; and D is opposite: idempotence allows clients to freely send duplicate API requests. Prevention or detection of duplicates is required when idempotence doesn't hold.
I don't see the point of including E; only a complete moron would not guess among the other answers to have a chance at being right. Very odd to see "I don't know" in a multiple choice test.