D3: Sessions, State & Memory Bank
Google Cloud Professional Agentic Architect exam practice questions · 12 flashcards
Question
What is a session?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Sessions, State & Memory Bank practice questions and answers
- What is a session?A single conversation thread containing events (messages, tool calls) and state.
- What is session state?Key-value data for the current conversation, readable and writable by agents and tools.
- State key prefixes in ADK?No prefix: session. user: per user across sessions. app: app-wide. temp: current turn only.
- What are managed sessions?Agent Platform Sessions: Google-managed persistent session storage for agents.
- Short-term vs long-term memory?Short-term: session context. Long-term: knowledge persisted across sessions.
- What is Agent Platform Memory Bank?Managed long-term memory that extracts, consolidates and retrieves facts about users across sessions.
- How does Memory Bank generate memories?From conversation history using an LLM to extract meaningful facts.
- How are memories retrieved?By scope (e.g. user) and similarity to the current context.
- InMemorySessionService use?Local development and testing only; data is lost on restart.
- Production session storage options?Agent Platform Sessions or a database (e.g. Cloud SQL).
- Why scope memories per user?Personalization and privacy; one user's data isn't shown to another.
- Where can fast session caching be done?Memorystore for Redis.