All exams← All AWS Certified AI Practitioner (AIF-C01) notes

Responsible AI, bias, fairness & safety: AWS Certified AI Practitioner (AIF-C01) revision notes

Revision notes

Why responsible AI matters for the exam

AWS AI Practitioner tests whether you understand the risks generative AI and ML introduce, and which AWS tools/features address each risk. Think in categories: bias, fairness, explainability, safety/toxicity, transparency, privacy, and governance.

Core concepts

  • Bias: systematic skew in a model's outputs, usually because training data under-represents or misrepresents a group. Can enter at data collection, labelling, or model design stages.
  • Fairness: outputs should not disadvantage protected groups (age, gender, ethnicity, disability, etc). There is no single fairness metric - AWS SageMaker Clarify offers several (e.g. class imbalance, difference in positive proportions).
  • Explainability: the ability to say why a model produced a result. SHAP values (used inside Clarify) are the standard technique tested.
  • Transparency: giving users and stakeholders visibility into how a system works, its limitations, and intended use - AWS publishes 'service cards' and model cards for this.
  • Toxicity and safety: filtering harmful, hateful, or unsafe content from generative outputs.
  • Hallucination: a generative model producing confident but false or fabricated information - a generative-AI-specific risk, not really a 'bias' issue.

Key AWS tools (exam favourites)

  • Amazon SageMaker Clarify: detects bias in training data and model predictions (pre-training and post-training bias metrics) and provides explainability via SHAP.
  • Amazon SageMaker Model Monitor: watches deployed models for data drift, quality drift, and bias drift over time.
  • Amazon Augmented AI (A2I): inserts human review into ML predictions, useful for low-confidence or high-stakes decisions.
  • Guardrails for Amazon Bedrock: configurable filters for denied topics, harmful content, PII redaction, word filters, and grounding/relevance checks to reduce hallucination.
  • AWS AI Service Cards: AWS's own transparency documents describing intended use, limitations, and performance of AWS AI services.

AWS's Responsible AI pillars

AWS names eight core dimensions: fairness, explainability, privacy and security, safety, controllability, veracity and robustness, governance, and transparency. You do not need to recite all eight verbatim, but recognise them when listed as answer options.

Common mistakes

  • Confusing bias (a data/model property) with fairness (an outcome/impact property) - bias causes unfairness, but they are not the same word for the exam's purposes.
  • Thinking more training data automatically fixes bias - it only helps if the new data addresses the specific under-representation.
  • Forgetting that human-in-the-loop (A2I) is a control, not an automatic fix - it needs correct escalation thresholds.
  • Assuming Bedrock Guardrails stops all hallucination - it reduces risk (via grounding checks) but cannot guarantee zero hallucinations.
  • Mixing up SageMaker Clarify (bias/explainability) with SageMaker Model Monitor (ongoing drift detection) - Clarify is more about the 'why', Monitor is about 'is it changing over time'.

Key facts

Flashcards

What is the difference between bias and fairness in AWS's Responsible AI framing?
Bias is a systematic skew in data or model outputs; fairness is about whether outcomes are equitable across protected groups. Bias causes unfairness, but they are distinct concepts.
tap to reveal
Which AWS service detects bias in training data and model predictions?
Amazon SageMaker Clarify - it reports pre-training and post-training bias metrics.
tap to reveal
Which technique does SageMaker Clarify use for explainability?
SHAP (SHapley Additive exPlanations) values, which attribute a prediction to individual input features.
tap to reveal
What does Amazon SageMaker Model Monitor do?
Watches deployed models over time for data drift, model quality drift, and bias drift.
tap to reveal
What is Amazon Augmented AI (A2I) used for?
Inserting human review into ML predictions, particularly for low-confidence or high-stakes decisions.
tap to reveal
What are Guardrails for Amazon Bedrock?
Configurable safety controls for Bedrock models that filter denied topics, block harmful content, redact PII, apply word filters, and run grounding checks.
tap to reveal
What is hallucination in generative AI?
When a model produces confident but false or fabricated information, a risk specific to generative AI.
tap to reveal
Name the eight pillars of AWS's Responsible AI framework.
Fairness, explainability, privacy and security, safety, controllability, veracity and robustness, governance, and transparency.
tap to reveal
What is an AWS AI Service Card?
A transparency document from AWS describing an AI service's intended use, limitations, and performance characteristics.
tap to reveal
Can Bedrock Guardrails guarantee zero hallucinations?
No - grounding and relevance checks reduce hallucination risk but cannot guarantee it never happens.
tap to reveal
At what stages can bias enter an ML system?
Data collection, data labelling, and model design - not only from the raw training dataset.
tap to reveal
What is the exam-relevant difference between transparency and explainability?
Transparency gives overall visibility into how a system works and its limitations; explainability justifies why a specific output was produced.
tap to reveal
Which SageMaker tool would you use to escalate uncertain model predictions to a human reviewer?
Amazon Augmented AI (A2I).
tap to reveal
Does adding more training data always fix bias?
No - it only helps if the new data specifically addresses the under-representation causing the bias.
tap to reveal
Practice questions

Responsible AI, bias, fairness & safety: 5 practice questions

Q1. A company is training a resume-screening model and discovers it rejects applicants from a particular postcode area at a much higher rate than others, even though postcode is not an explicit input. What is this an example of?
  • A.  Proxy bias, where a correlated feature acts as a stand-in for a protected attribute
  • B.  Overfitting caused by too many training epochs
  • C.  Data drift between training and inference environments
  • D.  Model latency degradation under high request volume
Show answer & explanation
✓ Answer: A. Proxy bias, where a correlated feature acts as a stand-in for a protected attribute
Proxy bias occurs when a feature that is not itself protected (like a related demographic signal correlated with postcode) still encodes information about a protected attribute, causing disparate outcomes. Overfitting and latency are unrelated technical issues, and this scenario has nothing to do with request volume.
Q2. Which AWS service is purpose-built to detect statistical bias in datasets and machine learning model predictions, both before and after training?
  • A.  Amazon Comprehend
  • B.  Amazon Macie
  • C.  AWS Trusted Advisor
  • D.  Amazon SageMaker Clarify
Show answer & explanation
✓ Answer: D. Amazon SageMaker Clarify
SageMaker Clarify computes bias metrics on datasets (pre-training) and model outputs (post-training) and generates explainability reports using SHAP values. Comprehend does NLP tasks like sentiment, Macie scans for sensitive data in S3, and Trusted Advisor gives cost/security/performance checks, none of which measure fairness.
Q3. In SageMaker Clarify, the metric 'Difference in Positive Proportions in Labels' (DPL) measures what?
  • A.  The difference in average inference latency between two model versions
  • B.  The gap in the rate of positive outcomes between a facet of interest and the rest of the population in the ground-truth labels
  • C.  The correlation between two continuous numerical features
  • D.  The percentage of missing values in a protected attribute column
Show answer & explanation
✓ Answer: B. The gap in the rate of positive outcomes between a facet of interest and the rest of the population in the ground-truth labels
DPL is a pre-training bias metric that compares how often a favourable label appears for one group versus another in the training data itself, before any model is built. It has nothing to do with latency, missing data, or feature correlation, which are separate data-quality concerns.
Q4. Which of AWS's core dimensions of responsible AI addresses the ability to understand and evaluate why a model produced a particular output?
  • A.  Explainability
  • B.  Governance
  • C.  Robustness
  • D.  Controllability
Show answer & explanation
✓ Answer: A. Explainability
Explainability is the dimension concerned with understanding a model's reasoning, often via tools like SHAP-based feature attribution. Controllability is about monitoring and steering AI behaviour, robustness is about consistent performance under varying conditions, and governance is about policies and accountability structures.
Q5. A healthcare startup wants to prevent its Amazon Bedrock-powered chatbot from discussing topics like investment advice, which fall outside its intended purpose. Which Bedrock Guardrails feature should they configure?
  • A.  Sensitive information filters
  • B.  Contextual grounding check
  • C.  Denied topics
  • D.  Word filters
Show answer & explanation
✓ Answer: C. Denied topics
Denied topics let you define categories of conversation the model should refuse to engage with, such as financial advice, using a short description and example phrases. Contextual grounding checks validate factual consistency against source content, sensitive information filters redact PII, and word filters block specific profane or custom words rather than entire topics.
Test yourself
See the AWS Certified AI Practitioner (AIF-C01) page

More AWS Certified AI Practitioner (AIF-C01) topics