How to Block Violent Bedrock Responses for Children
Short answer
B Apply Amazon Bedrock Guardrails content filters to model responses at high strength with a block action and lower the flow's inference temperature.
Question
Early testing of the solution results in some responses that are historically inaccurate, violent, and not appropriate for children. A GenAI developer must prevent the solution from responding to prompts inaccurately and inappropriately.
Which solution will meet this requirement?
Key Takeaways
The unsafe content is being produced by the model in its output, so output-side guardrails plus a lower temperature are required — the trap is filtering only the prompts or bolting on a second corrective model call.
The scenario tests how to stop Amazon Bedrock from producing violent, child-inappropriate and historically inaccurate answers in an Amazon Nova Pro knowledge-base flow. Applying Amazon Bedrock Guardrails content filters to the model responses at high strength with a block action, and lowering the flow's inference temperature, is the configuration that meets the requirement.
Common mistake: Option D is the most common wrong pick: learners assume filtering the incoming prompts blocks the problem, but the violent and inaccurate material is generated by the model itself, so prompt-only guardrails never see it. Option A is also tempting because it adds a cleanup model call, but raising the temperature worsens the problem and the extra Nova call breaks the sub-second latency target.
Expert Analysis
Why the Answer Is Correct
Option B applies Amazon Bedrock Guardrails content filters directly to the model responses, which is where the violent and inappropriate content is actually being emitted. Setting filter strength to High with the guardrail action set to Block guarantees those responses never reach the children, and attaching the guardrail to the Bedrock flow enforces it on every path through the solution. Reducing the inference temperature from 0.7 lowers token randomness, which reduces hallucinated historical inaccuracies and over-dramatized output. Together, output filtering and a lower temperature address both the safety and the accuracy defects with no added latency.
Why the Other Options Are Wrong
Option D targets only the prompt (input) side, so model-generated violent or fabricated history passes through untouched because the user prompts themselves may be perfectly benign. Option A raises temperature, which increases randomness and makes both inaccuracy and unsafe elaboration worse, while the second Nova call adds round-trip latency that jeopardizes the stated sub-second response requirement. Option C misuses Amazon Bedrock Data Automation, which is built for document and media content extraction rather than filtering a knowledge base at response time, and it again increases the temperature. Neither A nor C enforces an actual policy-based block on unsafe model output.
Community Comment Notes
The single commenter, TNT87, selected option B, quoting the reasoning as "Configure Amazon Bedrock guardrails for the model responses by using content filters" with a high strength and block action. That reasoning matches the requirement because the offending content appears in the generated responses, not in the students' questions. The vote data is unavailable here, so the verdict rests on the technical reading of where the unsafe content originates.
Official Reference
https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html
This link opens the official vendor documentation in a new tab.
Exam Strategy
When unsafe or inaccurate content appears in generated outputs, choose guardrails applied to model responses rather than prompts, and pair them with a lower temperature. Reject any option that raises temperature or adds an extra model call when a sub-second latency budget is stated.
Frequently Asked Questions
Why filter model responses instead of prompts when the content is violent?
Does lowering temperature alone prevent inappropriate answers?
Discussion 1 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 1
-
TNT87 👍 1 Answered BConfigure Amazon Bedrock guardrails for the model responses by using content filters. Set the content filter strength high and set the guardrail action to block. Add the guardrail to the flow. Reduce the inference temperature in the flow.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AIP-C01 Questions
Access 110 questions with complete answers and detailed explanations.
View Full AIP-C01 Practice Test →