A workflow must classify an incoming request, then send it to one of three different prompts depending on the class, and post-process the result. Which Bedrock feature builds this without custom orchestration code?
- Exam domain
- Foundation Model Integration, Data Management, and Compliance31% of the exam
- Difficulty
- Medium
- In this mock
- 28 questions on this domainPractise this domain
Why the exam asks this
Task 1.6: Implement prompt engineering strategies and governance for FM interactions.
Objective in the exam guide: Skill 1.6.6: Design complex prompt systems to handle sophisticated tasks (for example, by using Amazon Bedrock Prompt Flows for sequential prompt chains, conditional branching based on model responses).
Real tasks often need several prompts in sequence with decisions in between. Building that by hand means glue code to maintain; the managed option is what the exam expects you to know.
Why D is the answer
Amazon Bedrock Flows
Bedrock Flows links prompts, conditions and processing steps into one workflow.
Remember: Chained prompts with branching: Amazon Bedrock Flows.
How it works
Amazon Bedrock Flows connects nodes such as prompts, conditions, knowledge bases and code into a workflow.
A condition node can branch on a previous model output, so a classification step can route to different prompts.
Flows can be built visually, which also makes them accessible to less technical team members.
Clues in the question
The words that point to the answer, and what each one tells you.
- Classify, then route to one of three prompts
- A chain with conditional branching.
- Without custom orchestration code
- A managed flow builder.
In detail
- Flows supports sequential prompt chains and conditional branching on model output.
- Reusable prompts from Prompt Management can be used as steps.
Side by side with look-alikes
| Feature | Chains prompts with branching? |
|---|---|
| Bedrock Flows | Yes |
| Guardrails | No |
| Provisioned Throughput | No |
| Invocation logging | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Amazon Bedrock GuardrailsWrongMost tempting
Guardrails filters content; it does not chain prompts.
Why it tempts: Guardrails also sits between steps in a Bedrock application, so it sounds like plumbing. But it filters content; it cannot route between prompts.
B. Provisioned ThroughputWrong
Provisioned Throughput reserves capacity.
C. Model invocation loggingWrong
Logging records calls; it does not route them.
D. Amazon Bedrock FlowsRight
Chained prompts with branching: Amazon Bedrock Flows.
In practice
- Keep each prompt in Prompt Management and reference it from the flow.
- Test each branch with examples of its class.
Use case
An illustrative scenario, not a real incident.
A support team builds a flow that classifies tickets, routes billing ones to a billing prompt and formats every reply the same way.
See how it works
flowchart LR
I["Request"] --> C["Classify prompt"]
C --> B{"Class?"}
B -->|"Billing"| P1["Billing prompt"]
B -->|"Technical"| P2["Technical prompt"]
B -->|"Other"| P3["General prompt"]
P1 --> F["Format reply"]
P2 --> F
P3 --> FHow to read this chart
- "Request" leads to "Classify prompt".
- "Classify prompt" leads to "Class?".
- At "Class?": if "Billing", go to "Billing prompt"; if "Technical", go to "Technical prompt"; if "Other", go to "General prompt".
- "Billing prompt" leads to "Format reply".
- "Technical prompt" leads to "Format reply".
- "General prompt" leads to "Format reply".