Domain 1 · 17% of the exam
Agents and Workflows
Choosing between a workflow and an agent for a set of requirements, error tolerance and audit needs; orchestrator and subagent decomposition; self-hosted harness or managed runtime; building Agent SDK agents and hooks that make required actions deterministic; and diagnosing a misbehaving agent to the missing pattern.
- 1.1Choosing a Workflow, an Agent and a RuntimeDecide between a workflow and an agent from how predictable the path is, how costly an error would be and what the audit trail must show; split work between an orchestrator and subagents only where the pieces are independent; and run the agent in a self-hosted harness or a managed, sandboxed runtime depending on who must control the environment.
- 1.2Building Agents with the Agent SDK and HooksBuild agents with the Agent SDK or your own loop so that the loop ends correctly, tool calls and results stay paired, tools and permissions match each role, and anything that must always or never happen is enforced by hooks and code rather than by prompt instructions.
- 1.3Diagnosing a Misbehaving AgentRead a trace of a misbehaving agent, name the design pattern that is missing or misapplied (loop termination, subagent isolation, memory, context-window management, error reporting or verification), and apply the pattern that corrects the behavior instead of tuning the prompt.