Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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