Question 16
Domain 4: Assembling and Deploying ApplicationsAn application needs to save conversation state between sessions and later query that saved data in a structured way. Which configuration best meets this requirement?
Correct answer: B
Explanation
Use a persistent datastore when an application must retain intermediate memory or structured information beyond a single session and retrieve it later. — official.txt
Why each option is right or wrong
A. Configure temporary in-memory storage that resets when the session ends
Intermediate memory must be stored persistently to be retrieved after sessions end.
B. Configure a persistent datastore to store and retrieve the application's intermediate memory
The requirement is to save conversation state between sessions and later query it as structured data. The source material states to set up a persistent datastore for storing and retrieving intermediate memory or structured information used by an application or agent, which directly matches this use case.
C. Configure a stateless processing layer that handles requests without saving prior results
A stateless layer does not retain intermediate memory for later retrieval.
D. Configure output formatting rules so responses follow a consistent structure
Structured output formatting does not store information for later retrieval.