You are designing an agentic workflow where an agent needs to maintain conversational context and remember user preferences across multiple disparate sessions over several weeks. Which architectural component should you implement?
A persistent semantic memory store retains embeddings of user preferences and prior interactions beyond a single session, then retrieves relevant fragments into the context pipeline at each turn. This satisfies the stem's requirement for continuity across disparate sessions spanning weeks, which ephemeral in-context history alone cannot provide.
Why this answer
Maintaining conversational context and user preferences across disparate sessions over weeks requires a persistent memory layer that survives beyond a single session or context window. A persistent semantic memory store integrated with the agent's context pipeline allows the agent to retrieve relevant past interactions and preferences via embeddings, enabling long-term personalization. This is the standard architectural pattern for long-horizon agent memory.
Exam trap
AI-103 often tests the misconception that a larger context window replaces the need for persistent memory, when in fact cross-session memory requires an external store regardless of context size.
How to eliminate wrong answers
Option A is wrong because even a 1,000,000-token context window is bounded and would require resending all history every request, which is cost-prohibitive, slow, and still cannot span weeks of sessions without exceeding limits. Option C is wrong because a stateless function with zero memory persistence explicitly cannot remember anything across sessions, which is the opposite of the requirement. Option D is wrong because storing conversation history in a client-side cookie is insecure, size-limited (typically 4KB), and not accessible server-side for semantic retrieval, making it unsuitable for long-term memory.