350-901 · Question #39
Based on the provided API interaction diagram, what is the final article headline after all client requests have been processed?
The correct answer is D. The article headline is "Top Headlines". After all client requests in the interaction sequence are processed, the last write operation sets the article headline to 'Top Headlines'.
Question
Options
- AThe article is marked as "Conflicted"
- BThe article headline is "Monday Headlines"
- CThe article headline is "Today Headlines"
- DThe article headline is "Top Headlines"
How the community answered
(36 responses)- A8% (3)
- B14% (5)
- C3% (1)
- D75% (27)
Why each option
After all client requests in the interaction sequence are processed, the last write operation sets the article headline to 'Top Headlines'.
A 'Conflicted' state would only result from a conflict-detection mechanism such as optimistic locking with ETags, which is not indicated as the outcome of the final request.
'Monday Headlines' represents an intermediate value set by an earlier request that was subsequently overwritten by a later operation.
'Today Headlines' is another intermediate value from an earlier request in the sequence that was replaced by the final write.
In a typical API interaction diagram showing sequential PATCH or PUT requests, each request overwrites the previous value of the resource field. The final request in the sequence is the authoritative state of the resource, and based on the diagram the last operation sets the headline to 'Top Headlines', which becomes the persisted value returned by subsequent GET requests.
Concept tested: REST API sequential resource update final state
Topics
Community Discussion
No community discussion yet for this question.