A shopping assistant should remember a customer's sizes and preferences the next time they come back, days later. What do you use?
- Exam domain
- Developing custom agents~33% of the exam
- Difficulty
- Medium
- In this mock
- 15 questions on this domainPractise this domain
Why the exam asks this
Designing and building agentic workflows in code.
Objective in the exam guide: Configuring sessions and memory (e.g., Agent Platform Memory Bank and managed sessions).
Sessions and memory solve different problems, and the exam checks you know which is which.
Why D is the answer
Memory Bank, which keeps facts across sessions
Sessions hold the history of one conversation. Memory Bank gives agents long-term memory by extracting, storing and retrieving information across sessions.
Remember: Across sessions, use Memory Bank.
How it works
Memory Bank stores facts about a user that persist across sessions.
A later session can retrieve them, such as a customer's sizes.
Clues in the question
The words that point to the answer, and what each one tells you.
- days later
- Across sessions, so memory.
In detail
- Memory Bank is a managed feature of Agent Runtime.
- Store facts, not whole transcripts.
- Let users see and delete what is remembered.
Side by side with look-alikes
| Store | Scope |
|---|---|
| Memory Bank | Across sessions |
| Session | One conversation |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A longer system instruction listing every customerWrong
Instructions cannot hold per-customer facts at scale.
B. A larger context window in the current sessionWrong
A context window ends with the session.
C. The session's turn history for the conversationWrongMost tempting
Session history covers one conversation only.
Why it tempts: Session history belongs to one conversation.
D. Memory Bank, which keeps facts across sessionsRight
Across sessions, use Memory Bank.
Use case
An illustrative scenario, not a real incident.
Illustrative: a customer mentions a size once. A week later the assistant filters results to that size without asking.
See it in different ways
mindmap
root(("Agent memory"))
n1["Sessions"]
n2["One conversation"]
n3["Turn history and state"]
n4["Memory Bank"]
n5["Across sessions"]
n6["Extracted facts about a user"]How to read this chart
- The centre is "Agent memory".
- "Sessions" covers "One conversation", "Turn history and state".
- "Memory Bank" covers "Across sessions", "Extracted facts about a user".
sequenceDiagram participant P0 as Customer participant P1 as Agent participant P2 as Memory Bank P0->>P1: I wear size M P1->>P2: store preference P0->>P1: new session show jackets P1->>P2: recall preferences P2-->>P1: size M
How to read this chart
- 1. Customer sends "I wear size M" to Agent.
- 2. Agent sends "store preference" to Memory Bank.
- 3. Customer sends "new session show jackets" to Agent.
- 4. Agent sends "recall preferences" to Memory Bank.
- 5. Agent gets a reply from Memory Bank: "size M".