A chat app built on Cortex Agents must keep context across turns without storing history itself. What does Snowflake provide?
- Exam domain
- Agents with Cortex Agents
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
Threads, which persist conversation context across turns
Snowflake documents that applications call agents through the agent:run REST API, and threads persist conversation context so the client does not manage state.
Remember: Threads keep multi-turn context.
In detail
- Threads keep context.
- agent:run API.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. AI_SUMMARIZE_AGG over the chat logWrong
Summarizing logs is not conversation state.
B. A larger warehouseWrong
Warehouse size does not hold chat state.
C. Threads, which persist conversation context across turnsRight
Threads keep multi-turn context.
D. A new agent object for every turn, which stores the previous answer in its instructionsWrong
Creating agents per turn is wasteful and not how context works.
Use case
An illustrative scenario, not a real incident.
Illustrative: a support app passes a thread id so the agent remembers the order number from turn one.
See it in different ways
sequenceDiagram participant P0 as App participant P1 as agentrun participant P2 as Thread P0->>P1: turn 2 + thread id P1->>P2: load context P1-->>P0: answer
How to read this chart
- 1. App sends "turn 2 + thread id" to agentrun.
- 2. agentrun sends "load context" to Thread.
- 3. App gets a reply from agentrun: "answer".
flowchart LR S0["Create a thread"] --> S1["Call agentrun"] --> S2["Reuse the thread id"]
How to read this chart
- Read it in order: Create a thread, then Call agentrun, then Reuse the thread id.