A travel agent built in Foundry must remember each traveler's seat and meal preferences across separate conversations, weeks apart. What should you add?
- Exam domain
- Plan and manage an Azure AI solution25–30% of the exam
- Difficulty
- Medium
- In this mock
- 17 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Choose appropriate memory, tool, and knowledge integration services for agent solutions.
Personalization across sessions is a top agent feature. The exam checks you know the managed service for it and how it is scoped.
Why D is the answer
A memory store with the memory search tool, scoped per user
Foundry Agent Service memory is managed long-term memory: it extracts preferences from conversations and makes them available in later sessions, segmented by user scope.
Remember: Across sessions, use long-term memory scoped per user.
How it works
Short-term memory is the current conversation. Long-term memory keeps distilled knowledge across sessions.
Memory in Foundry Agent Service is a managed long-term memory: you create a memory store, attach the memory search tool, and the service extracts and consolidates what matters.
The scope parameter separates memories by user, so one traveler never sees another's preferences.
Clues in the question
The words that point to the answer, and what each one tells you.
- Across separate conversations, weeks apart
- Long-term memory.
- Each traveler
- Per-user scope.
In detail
- Memory types include user profile memory, chat summary memory and procedural memory.
- The user_profile_details setting tells memory what to keep, and what to avoid, such as sensitive data.
Side by side with look-alikes
| Approach | Survives a new session? | Per user? |
|---|---|---|
| Memory store + memory search tool | Yes | Yes, by scope |
| Larger context window | No | n/a |
| All preferences in the system prompt | Yes | No, everyone sees all |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A larger context window on the modelWrongMost tempting
A context window only covers the current conversation.
Why it tempts: More context sounds like more memory. But it ends with the conversation, so nothing carries to the next one.
B. A longer system prompt listing every traveler's preferencesWrong
A prompt listing every traveler does not scale and exposes other people's data.
C. A new conversation thread for every messageWrong
New threads per message lose even short-term context.
D. A memory store with the memory search tool, scoped per userRight
Across sessions, use long-term memory scoped per user.
In practice
- Set user_profile_details to the preferences that matter and exclude sensitive data.
- Set a default TTL so old memories expire under your retention policy.
Use case
An illustrative scenario, not a real incident.
A traveler says "aisle seat, vegetarian meals" in March, and the agent books accordingly in April without asking again.
See how it works
sequenceDiagram participant T as Traveler participant A as Agent participant M as Memory store (scope: traveler) T->>A: Session 1: aisle seat, vegetarian A->>M: Extract and store preferences T->>A: Session 2, weeks later: book a flight A->>M: Memory search M-->>A: Aisle, vegetarian A-->>T: Booked an aisle seat with a vegetarian meal
How to read this chart
- 1. Traveler sends "Session 1: aisle seat, vegetarian" to Agent.
- 2. Agent sends "Extract and store preferences" to Memory store (scope: traveler).
- 3. Traveler sends "Session 2, weeks later: book a flight" to Agent.
- 4. Agent sends "Memory search" to Memory store (scope: traveler).
- 5. Agent gets a reply from Memory store (scope: traveler): "Aisle, vegetarian".
- 6. Traveler gets a reply from Agent: "Booked an aisle seat with a vegetarian meal".