AIF-C01 Applications of Foundation Models Practice Question
A financial services firm uses Amazon Bedrock with Anthropic Claude to analyze earnings call transcripts. They need the model to output results in a strict JSON schema for downstream processing. The model occasionally returns prose or invalid JSON. Which Amazon Bedrock feature should they use to enforce the output structure?
⚠ Common exam trap
Many exam-takers confuse content filtering or logging features with output formatting controls, when only tool use with a defined schema actually constrains the model to produce structured JSON.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Converse API with a tool definition that specifies the JSON schema as input parameters.
The Converse API's tool use capability lets you define a tool whose input schema is the desired JSON structure. The model then returns arguments conforming to that schema when it invokes the tool, providing reliable structured output. Guardrails, logging, and sampling parameters do not enforce a schema, so they cannot guarantee valid JSON for downstream processing.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Increase the top_p value to 1.0 to make the output more deterministic.
Why it's wrong here
Top_p controls nucleus sampling and does not enforce a format. Setting top_p to 1.0 considers all tokens, which can increase variability, not determinism. Even if it reduced randomness, it would not guarantee valid JSON. This parameter influences token selection, not output structure, so it cannot satisfy the schema requirement.
- ✗
Guardrails for Amazon Bedrock with a denied topics policy.
Why it's wrong here
Guardrails for Amazon Bedrock filters harmful or restricted content based on policies like denied topics, but it does not enforce a specific output schema such as JSON. It can block or mask content, not shape the model's response format. Using it here would not reliably produce valid JSON for downstream parsing, so it does not solve the structural requirement.
- ✓
Converse API with a tool definition that specifies the JSON schema as input parameters.
Why this is correct
The Converse API supports tool use, where you define a tool with a JSON schema for its input parameters. When the model decides to use the tool, it returns structured arguments matching that schema, effectively enforcing JSON output. This is the intended mechanism in Amazon Bedrock for reliable structured generation, and it works across supported models without custom parsing hacks.
- ✗
Model invocation logging to Amazon CloudWatch.
Why it's wrong here
Model invocation logging captures requests and responses for auditing and monitoring. It does not alter or constrain the model's output format. While useful for debugging why invalid JSON occurred, it is a passive observability feature and cannot enforce a schema. It fails to ensure the model returns structured JSON in the first place.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AIF-C01 question from scratch — 862 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint
This AIF-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AIF-C01 exam.