Question 487 of 619
Removing Stereotypes from Training Data to Mitigate Bias
A media company uses a generative AI model to automatically create image captions for user-uploaded photos. During quality assurance, testers discover that the model sometimes generates captions that include stereotypes based on gender and race, even when the photos do not contain people. For example, a photo of a kitchen produces captions like 'woman cooking,' and a photo of a sports car generates 'man driving.' The company wants to launch the feature soon but recognizes the reputational risk. They have a limited budget and need to implement a solution that reduces harmful stereotypes without overly restricting the captions' creativity. The team has access to the model's training data, which is a large public dataset of image-caption pairs. Which approach should the team prioritize?
Quick Answer
The correct approach is to filter the training data to remove or downweight pairs with stereotypes, then fine-tune the model. This directly addresses the root cause of bias by cleansing the dataset of harmful associations before the model learns from them, which is far more effective than applying superficial post-hoc filters that might also suppress valid creative captions. On the AWS Certified AI Practitioner AIF-C01 exam, this scenario tests your understanding of bias mitigation at the data preparation stage, a key concept in the Responsible AI domain. A common trap is to assume a post-processing filter is sufficient, but the exam emphasizes that modifying training data is the most direct and cost-effective way to remove stereotypes from training data without overly restricting model creativity. Memory tip: think “clean the source, not the output”—data filtering before fine-tuning is like weeding a garden before planting new seeds.
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
✓
Filter the training data to remove or downweight pairs with stereotypes, then fine-tune the model
To reduce stereotypical associations, the most effective approach is to filter and rebalance the training data by removing or downweighting caption pairs that contain stereotypes, and then fine-tune the model. This directly addresses the data source of bias. Adding a post-hoc filter may catch some stereotypes but could also remove valid captions. Using a different model without data changes may not help. Limiting to object-only descriptions reduces creativity and may not meet product goals.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Replace the generative model with a simpler classification model that only describes objects
Why it's wrong here
A classification model that only describes objects cannot generate captions, which is the core requirement; it outputs predefined labels rather than natural language, so it fails to produce any captions at all, let alone creative ones. This option is tempting because a classifier would reliably avoid stereotypes by ignoring social context, making it a correct choice if the goal were simply to tag objects without generating descriptive text.
- ✗
Use a different pre-trained generative model that is larger and more accurate
Why it's wrong here
A larger model may still have similar biases if trained on similar data.
- ✓
Filter the training data to remove or downweight pairs with stereotypes, then fine-tune the model
Why this is correct
Cleaning training data and fine-tuning directly reduces learned stereotypes.
- ✗
Add a post-processing filter that checks captions for known stereotype patterns and blocks them
Why it's wrong here
Post-processing can miss subtle stereotypes and may over-block.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on AIF-C01
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company uses an AI system to automate loan approvals. The model uses demographic features and achieves high accuracy, but the company wants to ensure compliance with responsible AI guidelines. Which practice best balances performance and fairness?
hard- A.Use demographic features but with minimal monitoring
- B.Use a complex black-box model and rely on post-hoc explanations
- ✓ C.Remove sensitive attributes and monitor for proxy bias
- D.Optimize the model solely for accuracy on historical data
Why C: Removing sensitive attributes (e.g., race, gender) from the training data directly addresses fairness by preventing the model from explicitly using these features. However, simply removing them is insufficient; monitoring for proxy bias (e.g., zip code or income correlating with race) is critical to ensure the model does not inadvertently learn discriminatory patterns through correlated features. This approach balances performance by retaining predictive power from non-sensitive features while actively auditing for fairness violations.
Variation 2. A hospital uses an AI system to prioritize patients for organ transplant based on predicted survival rates. The system was trained on historical data that includes socioeconomic factors. A review reveals that the system systematically assigns lower priority to patients from lower-income neighborhoods, even when medical urgency is similar. The hospital's ethics board demands an immediate remedy. The data science team is small and must act quickly. What should the hospital do to address this fairness issue most effectively?
easy- A.Discontinue the AI system and have all prioritization done by a human committee
- ✓ B.Retrain the model with only medically relevant features, after removing socioeconomic factors and correlated proxies
- C.Apply a re-weighting penalty to boost priority for low-income patients
- D.Use a different model type, such as a random forest instead of gradient boosting, on the same data
Why B: The best course is to retrain the model using only medically relevant features, removing socioeconomic factors and correlated proxies. This directly addresses the source of bias. Adding a penalty for low-income patients is artificial and may not reflect medical reality. Relying solely on human review delays the issue and introduces potential inconsistency. Using a different model without data changes may not eliminate bias.
Last reviewed: Jun 23, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.