An Agent SDK app needs to try a risky alternative approach on an existing session while keeping the original conversation intact to return to. What should it use?
- Exam domain
- Agentic Architecture & Orchestration27% of the exam
- Difficulty
- Medium
- In this mock
- 14 questions on this domainPractise this domain
Why the exam asks this
Manage session state, resumption, and forking
Objective in the exam guide: Manage session state, resumption, and forking
Session state is a named task statement.
Why C is the answer
Fork the session, which creates a new session starting with a copy of the original history
Fork creates a new session with a copy of the original history, so you can try a different direction and still go back.
How it works
Continue resumes the most recent session; resume takes a specific session ID.
Fork creates a new session starting with a copy of the original history.
The original stays available to return to.
Clues in the question
The words that point to the answer, and what each one tells you.
- Keep the original intact
- Fork, not resume.
In detail
- Resume continues the same session.
- Capture session IDs so you can resume or fork later.
Side by side with look-alikes
| Option | Original kept? |
|---|---|
| Fork | Yes |
| Resume | No |
| Fresh session | Loses context |
| Recreate from logs | Fragile |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Start a fresh session with no historyWrong
A fresh session loses context.
B. Delete the session and recreate it from logsWrong
Recreating from logs is fragile.
C. Fork the session, which creates a new session starting with a copy of the original historyRight
Fork creates a new session with a copy of the original history, so you can try a different direction and still go back.
D. Resume the same session and overwrite its historyWrongMost tempting
Resuming changes the original path.
Why it tempts: Resume keeps context. But it changes the only copy of the path.
In practice
- Store session IDs with the task record.