AIF-C01 Applications of Foundation Models Practice Question
A marketing agency uses a foundation model to generate images for social media campaigns. Some generated images have contained violent or inappropriate content, damaging the brand. The agency needs to prevent such content from being displayed automatically. They are using Amazon Bedrock for image generation with Stable Diffusion. What is the most effective way to filter out inappropriate images?
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
✓
Enable the safety checker in Amazon Bedrock's image generation models.
Amazon Bedrock's image generation models (including Stable Diffusion) have a built-in safety checker that automatically detects and blocks NSFW or inappropriate content during generation, preventing such images from being output without manual effort. Option A (Amazon Rekognition) adds cost and latency for post-generation analysis, while Option B (manual review) is not scalable. Option C (restricting the prompt) is unreliable as models can still generate inappropriate content from seemingly safe prompts.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use Amazon Rekognition to analyze images after generation.
Why it's wrong here
Amazon Rekognition detects inappropriate content only after generation, so offending images already exist and require a separate moderation call before display. It is tempting as a managed moderation service, but Bedrock Guardrails filters content within the generation pipeline, blocking violent imagery before it reaches the agency.
- ✗
Manually review all images before posting.
Why it's wrong here
Manual review cannot scale to automated social media output and delays publishing, so inappropriate images may still reach the brand's channels. It is tempting for accuracy, but the requirement is automatic prevention; Bedrock Guardrails applies configurable content filters to generated images without human intervention.
- ✗
Restrict the prompt to avoid triggering keywords.
Why it's wrong here
Prompt restrictions only reduce the likelihood of triggering keywords; they cannot guarantee exclusion, since diffusion models can still produce violent imagery from benign prompts. It is tempting as a low-effort control, but Bedrock Guardrails enforces deterministic content filtering on outputs regardless of the prompt wording.
- ✓
Enable the safety checker in Amazon Bedrock's image generation models.
Why this is correct
Enabling the safety checker activates Bedrock's built-in content filters, which evaluate each generated image against violence and inappropriate-content thresholds before returning it. This directly satisfies the agency's need to block harmful output automatically at generation time, rather than relying on manual review or post-hoc moderation of images already displayed.
Go deeper
Related to this question
About these practice questions
One of 862 original AIF-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.