Courseiva
Guidelines for Responsible AIhardMultiple ChoiceObjective-mapped

How to Mitigate Bias in Machine Learning Models Responsibly

Exhibit

Refer to the exhibit.
```
{
  "ModelName": "credit-risk-v1",
  "InputName": "features",
  "JobName": "bias-report-20240101",
  "ProcessingJob": {
    "ProcessingResources": {
      "ClusterConfig": {
        "InstanceCount": 1,
        "InstanceType": "ml.m5.large"
      }
    }
  },
  "AppSpecification": {
    "ImageUri": "683313688378.dkr.ecr.us-west-2.amazonaws.com/sagemaker-clarify-processing:1.0"
  },
  "Config": {
    "BiasConfig": {
      "Label": "approved",
      "Facet": ["gender"],
      "GroupVariable": ["age_group"]
    }
  },
  "OutputConfig": {
    "S3OutputPath": "s3://my-bucket/bias-reports/"
  }
}

A data scientist runs the SageMaker Clarify job shown in the exhibit for a credit risk model. After reviewing the results, they find a high bias metric for the gender facet. Which action is most consistent with responsible AI?

Quick Answer

The answer is to investigate the root cause and retrain with balanced data. This is correct because responsible AI demands mitigating bias at its source rather than superficially masking it; SageMaker Clarify detects statistical bias, but only a root-cause analysis—checking for skewed data collection, labeling errors, or proxy features like zip codes—allows you to retrain with balanced data that genuinely reduces the bias metric. On the AWS Certified AI Practitioner AIF-C01 exam, this scenario tests your understanding that fairness is a core principle of responsible AI, and a common trap is assuming removing a sensitive attribute like gender eliminates bias, when in reality correlated proxies can perpetuate it. Remember the mnemonic: “Don’t delete the feature, dig for the source.”

⚠ Common exam trap

The AIF-C01 exam often tests the misconception that simply removing a sensitive attribute (like gender) is sufficient to eliminate bias, but the trap here is that proxy features can still encode the same bias, making root-cause investigation and balanced retraining the only responsible action.

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

Investigate the root cause and retrain with balanced data

Responsible AI requires understanding and mitigating bias at its source, not just masking it. Investigating the root cause (e.g., data collection bias, labeling bias, or proxy features) and retraining with balanced data directly addresses the high bias metric detected by SageMaker Clarify, aligning with AWS's principle of fairness. Simply removing the gender attribute may not eliminate bias if other features act as proxies, and increasing the threshold does not fix the underlying model bias.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Proceed with deployment because the model is already in production

    Why it's wrong here

    Deploying a biased model is irresponsible.

  • Remove the gender attribute from the training data and retrain

    Why it's wrong here

    Removing attributes may not remove proxy bias.

  • Investigate the root cause and retrain with balanced data

    Why this is correct

    Root cause analysis and retraining address bias.

  • Increase the acceptance threshold for the model

    Why it's wrong here

    Threshold adjustment does not fix bias.

About these practice questions

One of 619 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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

3 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. Refer to the exhibit. An AWS customer runs SageMaker Clarify to evaluate bias in their training data. The report shows multiple metrics with status 'violated'. What should the customer do next?

medium
  • A.Use data augmentation to balance the dataset
  • B.Reduce the number of features
  • C.Retrain the model with more data
  • D.Ignore the metrics because thresholds are too strict

Why A: Data augmentation directly addresses the root cause of bias violations in training data: imbalanced representation of sensitive groups. SageMaker Clarify metrics like Class Imbalance (CI) or Difference in Positive Proportions in Labels (DPPL) flag when certain demographic groups are underrepresented. Augmenting the dataset with synthetic samples or additional real data for the underrepresented group reduces these imbalances, which is the recommended first step before retraining the model.

Variation 2. A data science team is building a resume screening model and wants to ensure it does not exhibit gender bias. Which TWO actions are most effective for mitigating bias? (Choose TWO.)

easy
  • A.Apply adversarial debiasing techniques during training.
  • B.Use a more complex deep learning model.
  • C.Remove the gender attribute and all correlated features from the dataset.
  • D.Regularly audit model predictions for disparate impact across genders.
  • E.Ensure the training dataset has equal numbers of male and female candidates.

Why A: Adversarial debiasing is a technique that trains a primary model to perform the main task (e.g., resume screening) while simultaneously training an adversarial model to predict the protected attribute (e.g., gender) from the primary model's outputs. The primary model is penalized when the adversary can successfully predict gender, forcing it to learn representations that are less correlated with gender. This directly reduces gender bias in the model's predictions without requiring the removal of potentially useful correlated features.

Variation 3. A healthcare organization is developing a clinical decision support system using Amazon Bedrock with a large language model (LLM) to analyze patient symptoms and suggest potential diagnoses. The system must comply with HIPAA and internal responsible AI guidelines. During testing, the model occasionally generates diagnoses that are inconsistent with established medical guidelines and shows a tendency to recommend more aggressive treatments for patients from certain demographic groups. The team has already implemented data encryption, access controls, and basic content filtering. They need to further reduce biased and unsafe outputs without delaying the deployment timeline. What should the team do next?

hard
  • A.Increase the logging of all model inputs and outputs to Amazon CloudWatch and set up alarms for any mentions of protected attributes.
  • B.Replace the current LLM with a different pre-trained model that has been benchmarked for lower bias on medical datasets.
  • C.Fine-tune the model using a curated dataset of anonymized patient records that is balanced across demographic groups and aligned with clinical guidelines.
  • D.Apply stronger content filtering rules using Amazon Comprehend Medical to block any diagnosis that contains demographic-related terms.

Why C: Fine-tuning the model with a balanced, curated dataset directly addresses both the bias and clinical accuracy issues at the model level, which is the most effective approach for reducing biased and unsafe outputs without delaying deployment. This method adjusts the model's internal weights to align with established medical guidelines and demographic fairness, rather than relying on post-processing filters or logging that do not fix the root cause. Since the team has already implemented basic content filtering, fine-tuning provides a targeted, efficient solution that can be completed within a reasonable timeline.

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.