Course menuMLA-C02

Exams / MLA-C02 / Bias and class imbalance / Question 1

MLA-C02 practice question: Bias and class imbalance (1 of 3)

Data Preparation for ML and AI A free question from our original MLA-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

A regional bank is training a small-business loan approval model. Applications from one age group make up only 9 percent of the training data, and the team has not yet checked whether the dataset itself favors any group.

The bank's ML platform team already runs SageMaker Clarify jobs for its other credit models. The new check must measure dataset-level bias before any model is trained, using the protected attribute in the data, and store the results with the training data for the model-risk team.

Which approach meets these requirements?

Choose one answer.

  1. A. Run a Clarify job that computes SHAP values on the trained model, and review which features drive each prediction.
  2. B. Run a SageMaker Clarify processing job that computes pre-training bias metrics, such as class imbalance and difference in proportions of labels, for the age-group facet.
  3. C. Generate a Glue DataBrew profile of the applications, and review the column distributions for the age-group field with the model-risk team.
  4. D. Set up a Model Monitor data quality monitor on the endpoint after deployment and review its violations weekly.
Show the answer and explanation

Answer: B

  • A. Wrong: SHAP values explain a trained model's predictions, which is a different task. The stem asks for dataset-level bias before training.
  • B. Right: Correct. Clarify pre-training bias metrics measure the dataset itself, including class imbalance and label proportions across a facet, and the job writes a report to S3. This fits the requirement to check before training. Learn more: Pre-training data bias with SageMaker Clarify (opens in a new tab)
  • C. Wrong: A profile shows distributions but does not compute bias metrics for a facet or label proportions. The team needs the bias measures for the model-risk review.
  • D. Wrong: This runs after the model is deployed and checks incoming data against a baseline, so it cannot check the training dataset before training. It also does not compute the bias metrics.

Explanation

Clarify pre-training bias metrics measure the dataset before training, including class imbalance and label proportions across a protected group, and the results are written to S3 for review. SHAP explains trained predictions, DataBrew profiles without bias metrics, and Model Monitor runs only after deployment.

Study

Keep practicing

Answer questions with a score at the end, or practice just this topic with the explanation after each one. No sign-up needed.

Want more on Bias and class imbalance? The 5 full-length practice sets have 5 more Bias and class imbalance questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets