A claims process branches on rules written in code, such as amount thresholds, but some steps need model reasoning. Which ADK approach fits?
- Exam domain
- Developing custom agents~33% of the exam
- Difficulty
- Hard
- In this mock
- 15 questions on this domainPractise this domain
Why the exam asks this
Orchestrating and coordinating agentic workflows.
Objective in the exam guide: Selecting and coordinating multiagent handoffs and workflows (e.g., parallel agents, sequential agents, and graph workflow) using Google Cloud tools (e.g., Agent Identity, Agent Registry, Agent Runtime, and agent policies).
Graph workflows mix deterministic logic with model reasoning.
Why D is the answer
A graph workflow that mixes deterministic code nodes with AI steps
ADK graph workflows combine AI reasoning with deterministic code logic, so fixed business rules stay in code and only judgement calls go to the model.
Remember: Rules in code, judgement in the model.
How it works
A graph workflow lets you define nodes and edges, including plain code nodes for fixed rules.
Model steps go only where reasoning is needed.
Clues in the question
The words that point to the answer, and what each one tells you.
- rules written in code
- Deterministic nodes.
- some steps need model reasoning
- AI nodes in the same graph.
In detail
- Keep thresholds and compliance checks deterministic.
- Use the model where judgement is needed.
- Test the code branches with ordinary unit tests.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A Workflow Builder chat agent with no toolsWrong
A chat agent with no tools cannot run the process.
B. A single LLM agent that decides every branch itselfWrongMost tempting
Leaving rules to the model makes them unreliable.
Why it tempts: It makes rule-based branches unpredictable.
C. A parallel workflow that runs every branch at onceWrong
Running every branch at once is wasteful and wrong.
D. A graph workflow that mixes deterministic code nodes with AI stepsRight
Rules in code, judgement in the model.
Use case
An illustrative scenario, not a real incident.
Illustrative: claims under a limit are approved by code, while larger ones go to a model that reads the evidence and then to a person.
See it in different ways
flowchart TD
Q{"How do the steps relate?"}
Q -->|"Each needs the one before"| A0["Sequential"]
Q -->|"Independent of each other"| A1["Parallel"]
Q -->|"Repeat until a condition"| A2["Loop"]
Q -->|"Branches decided by code and model"| A3["Graph workflow"]How to read this chart
- At "How do the steps relate?": if "Each needs the one before", go to "Sequential"; if "Independent of each other", go to "Parallel"; if "Repeat until a condition", go to "Loop"; if "Branches decided by code and model", go to "Graph workflow".
flowchart TD
Q{"Is the rule fixed?"}
Q -->|"Yes, a threshold"| A0["Code node"]
Q -->|"No, needs judgement"| A1["Model step"]How to read this chart
- At "Is the rule fixed?": if "Yes, a threshold", go to "Code node"; if "No, needs judgement", go to "Model step".