nerdexam
Cisco

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'.

Understanding and Using APIs

Question

Based on the provided API interaction diagram, what is the final article headline after all client requests have been processed?

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)
  • A
    8% (3)
  • B
    14% (5)
  • C
    3% (1)
  • D
    75% (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'.

AThe article is marked as "Conflicted"

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.

BThe article headline is "Monday Headlines"

'Monday Headlines' represents an intermediate value set by an earlier request that was subsequently overwritten by a later operation.

CThe article headline is "Today Headlines"

'Today Headlines' is another intermediate value from an earlier request in the sequence that was replaced by the final write.

DThe article headline is "Top Headlines"Correct

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

#API interaction#Resource state management#HTTP methods#API workflow

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice