CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
  • Week 1
    • 1.The Relationship and Differences Between AI, Machine Learning, and Deep Learning
    • 2.Learning Types: Supervised, Unsupervised, and Reinforcement Learning
    • 3.Problems Where ML Fits vs. Problems Where It Doesn't
    • 4.Key Terms: Model, Training, Inference, Feature, Label, Overfitting
    • 5.Week 1 Review: AI/ML Fundamentals
  • Week 2
  • Week 3
  • Week 4
  • Week 5
    • 1.Principles of Responsible AI: Fairness, Bias, Transparency, Explainability, Robustness, Privacy
    • 2.AWS Responsible AI Tools: SageMaker Clarify, Model Monitor, Bedrock Guardrails, AI Service Cards
    • 3.AI Security: IAM Least Privilege, Data Encryption, PII Protection, PrivateLink, the Shared Responsibility Model
    • 4.Data Governance and Compliance: Data Provenance and Quality, Model Governance, Auditing and Logging, Legal and Ethical Considerations of Generative AI
    • 5.Week 5 Comprehensive Review: Tying Responsible AI, Security, and Governance Together
  • Week 6
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← AIF-C01/Week 5/Day 2

Based on the AIF-C01 exam guide·Report an error

AIF-C01· AssociateWeek 5 · Day 2~37 min read

Day 2 - AWS Responsible AI Tools: SageMaker Clarify, Model Monitor, Bedrock Guardrails, AI Service Cards

📌 Key Takeaways

  • SageMaker Clarify = bias measurement (before and after training) + explanation based on feature attribution. One tool handles both fairness and explainability.
  • SageMaker Model Monitor = monitors a deployed model for data quality, model quality, bias drift, and feature attribution drift. It only alerts you; it does not fix anything.
  • Amazon Bedrock Guardrails = safeguards applied to the input and output of generative AI. It filters harmful content, denied topics, words, sensitive information, and departures from the source.
  • AWS AI Service Cards = transparency documents in which AWS discloses the intended uses and limits of its own AI services and models. Documenting your own model is the job of SageMaker Model Cards.
  • The exam asks "which tool fits this problem situation?" Pin down the pairing of principle and tool, together with which stage of the lifecycle it applies to.

The Tool Mapping at a Glance

Today's topic is how to put into practice with AWS the principles you learned yesterday (fairness, bias, transparency, explainability, robustness, privacy). AWS provides a managed tool for each principle.

ToolPrinciple it addressesOne-line role
SageMaker ClarifyFairness/bias, explainabilityBias measurement + feature importance explanation
SageMaker Model MonitorRobustness/reliability (operations)Monitors quality and drift of deployed models
Bedrock GuardrailsSafety/privacyHarmful content filters, PII masking, topic restriction
AI Service CardsTransparencyPublic documents on the intended uses, limits, and fairness of AWS AI services

This table is today's core. On the exam, "I want to check whether a model is biased against a particular group" → Clarify; "I want to see whether performance degrades over time after deployment" → Model Monitor; "I want to block profanity and personal information in chatbot output" → Guardrails; "I want to know the limits and recommended uses of this AWS AI service" → AI Service Cards.

SageMaker Clarify: Bias Measurement + Explainability

Amazon SageMaker Clarify is the centerpiece of the responsible AI tools. It does two things.

  1. Bias Detection: Measures bias in both data and models.
    • Pre-training bias: Whether a particular group (for example, gender or age) is distributed unevenly in the training data itself.
    • Post-training bias: Whether the trained model's predictions are discriminatory between groups.
    • It automatically computes several statistical metrics (class imbalance, prediction gaps, and so on).
  2. Explainability: Computes and shows how much each input feature contributed to a prediction, based on SHAP values. It produces explanations such as "the credit score feature had the largest effect on this loan being rejected."
Question Clarify answersWhat is neededTiming
Is the training data skewed toward a particular group?The dataset onlyBefore training
Do the model's predictions differ between groups?The dataset + the trained model's predictionsAfter training
How much did each feature contribute to this prediction?The trained modelAfter training, after deployment
How much does the prediction change if one feature changes?The trained model (partial dependence plots)After training
  • Pre-training bias measurement can be done even without a model. A passage that says "I want to check data imbalance before training the model" also points to Clarify.
  • Clarify measures and reports bias. It does not automatically remove bias. Re-collecting data or balancing it is done by people.
  • The resulting reports can also serve as model governance material to submit to risk and compliance teams or external regulators.

Clarify can be used at any stage: before training (data), after training (model), and after deployment (inference). In particular, combined with Model Monitor it can also monitor whether the bias of a deployed model grows over time (bias drift). So remember Clarify as one tool that bundles the two principles of "bias and explanation."

SageMaker Model Monitor: Post-Deployment Quality Monitoring

Deploying a model is not the end. As time passes and real-world data differs from the training data (data drift), model performance quietly worsens. SageMaker Model Monitor automatically watches the deployed model endpoint.

Monitoring typeWhat it checks for changeExample
Data qualityWhether the distribution of input data has changed from training (statistical drift)The age distribution of customers differs from launch
Model qualityWhether a performance metric such as accuracy has fallen below the baselineAccuracy against the ground truth declines
Bias drift(Integrated with Clarify) Whether bias worsens over timeThe approval-rate gap for a particular group widens
Feature attribution driftWhether the explainability pattern has changedIncome used to matter most, but now region matters most
  • You set a baseline, and if actual traffic deviates from that baseline, it sends an alert through CloudWatch. The baseline is usually built from the dataset used to train the model.
  • You can monitor not only real-time endpoints but also batch transform jobs that run periodically.
  • To check model quality you need the actual ground truth. The ground truth often arrives later than the prediction (you only learn whether a loan actually went delinquent months later), so data quality monitoring, which works without ground truth, gives the first signal of anomalies.

⚠️ Trap: Model Monitor is not a tool that "automatically fixes the model." It is a monitoring tool that detects anomalies and notifies you. When a problem is found, a person must decide on retraining and redeployment. An option phrased as "the model heals itself" is a trap.

Bedrock Guardrails: Safeguards for Generative AI

Amazon Bedrock Guardrails is a feature that places safety and privacy barriers on generative AI (LLM) applications. It applies to both input (the user prompt) and output (the model response). In older documents and questions it also appears under the name "Guardrails for Amazon Bedrock." It is the same feature.

FeatureRole
Content filtersBlock harmful content such as hate, violence, sexual content, and insults
Denied TopicsRestrict the application from covering particular topics (for example, medical advice, investment solicitation)
Sensitive information (PII) filtersMask or block personal information such as names, national ID numbers, and card numbers
Word filtersBlock specific words such as banned terms and competitor names
Contextual grounding checkChecks whether a response departs from the provided source (hallucination)
  • The content filter categories are Hate, Insults, Sexual, Violence, Misconduct, and Prompt Attack. You can adjust the filter strength per category, and images are covered as well as text.
  • The sensitive information filter lets you choose between blocking and masking. Besides the predefined types, you can also define your own patterns with regular expressions (for example, an internal employee ID format).
  • The contextual grounding check is meaningful when there are source documents, as in RAG. It filters out responses that add content not in the source or that are unrelated to the question.
  • In addition to the table above, there are Automated Reasoning checks. This feature verifies the accuracy of a response against logical rules defined in advance.
  • You can also define for yourself the message to return to the user when a filter is triggered.

In this way Guardrails takes charge of both safety (blocking harmful output) and privacy (protecting PII). Because it is a policy separate from the model itself, its strength is that it applies in the same way whichever FM you use. There is also an API (ApplyGuardrail) that inspects text without invoking a model, so you can apply the same standards to models outside Bedrock.

As a hypothetical case, a bank built a customer service chatbot on Bedrock. With Guardrails it ① automatically masked account numbers and national ID numbers that customers typed in (PII filter), ② blocked requests like "recommend an investment stock" as a denied topic because of regulatory risk, and ③ blocked profanity and discriminatory remarks with the content filter. Even when the model was swapped out, this policy stayed in place, so the safety standard could be applied consistently.

AI Service Cards: Public Documents for Transparency

AWS AI Service Cards are documents that AWS publishes about its own AI services (for example, Amazon Rekognition and Textract). Each card contains the service's recommended use cases, design choices, considerations on fairness and accuracy, limitations, and guidance for responsible use.

  • This is an implementation of the transparency principle. It lets users know in advance "what uses this AI service is suited to and where to be careful."
  • Cards are issued not only for AWS AI services but also for AWS models such as Amazon Nova.

AI Service Cards are a kind of "nutrition label." Even if you cannot look inside the model yourself, AWS helps responsible use by disclosing "this service was evaluated with this kind of data, has these limitations, and should not be used for these purposes." If the exam asks "which transparency material tells you the intended uses and limits of an AWS AI service?", the answer is AI Service Cards.

Two Similarly Named Documents: AI Service Cards and SageMaker Model Cards

Both are "cards" and both are documents for transparency, so they are easily mixed up. The criterion that separates them is who writes it and what it describes.

CategoryAWS AI Service CardsAmazon SageMaker Model Cards
Who writes itAWSThe customer who built the model (our team)
What it describesAWS's AI services and modelsThe ML model we trained
What it containsIntended uses and constraints, responsible AI design decisions, best practices for achieving performanceIntended uses, risk rating, training details and metrics, evaluation results and observations, considerations and recommendations
UseCheck suitability and limits before using the serviceResponding to audits, sharing model usage guidelines, governance reporting
  • The risk rating in Model Cards is chosen from unknown, low, medium, and high. A loan approval model has a higher risk rating than an email classification model.
  • Model Cards can be exported as a PDF and shared with stakeholders, and when you edit one, new versions accumulate, leaving a change history.
  • If the passage says "published by AWS" or "limits of an AWS service," it is AI Service Cards; if it says "record the uses and evaluation results of our model in one place," it is Model Cards.

Placing the Tools by Lifecycle Stage

Even for the same tool, knowing "when to use it" prevents confusion.

StageWhat you want to doTool
Model/service selectionCheck the uses and limits of an AWS serviceAI Service Cards
Model selection (generative)Compare several FMs on the same criteriaModel evaluation in Amazon Bedrock
Before trainingMeasure whether the data is skewedSageMaker Clarify
After trainingMeasure differences in predictions between groups, explain the basis of predictionsSageMaker Clarify
Before deploymentDocument the model's uses, risks, and evaluation resultsSageMaker Model Cards
In operation (traditional ML)Monitor drift and quality degradationSageMaker Model Monitor
In operation (generative)Filter input and output in real timeAmazon Bedrock Guardrails
In operation (human review)Hand low-confidence predictions to a personAmazon Augmented AI (A2I)
  • Model evaluation in Amazon Bedrock provides automatic (programmatic) evaluation, evaluation scored by humans, and evaluation that uses another LLM as the judge. You can also evaluate whether a knowledge base (RAG) finds relevant information well and answers appropriately. If Clarify handles bias and explanation for traditional ML, this handles the response quality of FMs.
  • Amazon A2I is the service that implements the Human-in-the-Loop you learned yesterday. It sends predictions with low model confidence, or randomly sampled predictions, to human reviewers. For common cases such as Textract document extraction and Rekognition inappropriate-image detection, there are prebuilt review workflows.

⚠️ Trap: AWS documentation notes that SageMaker Clarify, SageMaker Model Monitor, and Amazon A2I are no longer open to new customers, while existing customers can keep using them. That does not mean the division of roles among these names has vanished from the exam. What the exam asks about is the pairing of roles: "bias measurement and explanation = Clarify, post-deployment monitoring = Model Monitor, human review = A2I."

Telling Apart the Confusing Pairs

Confusing pairQuestion that separates themAnswer
Clarify vs Model MonitorIs it measured once, or watched continuously?Measurement/explanation = Clarify, continuous monitoring = Model Monitor
Clarify vs GuardrailsDoes it analyze predictions of traditional ML, or block input and output of generative AI?Analysis = Clarify, blocking = Guardrails
Model Monitor vs GuardrailsDoes it watch statistical change, or filter individual responses?Trend monitoring = Model Monitor, per-response filter = Guardrails
Model Monitor vs CloudWatchIs it the quality of the model, or the health of the system?Drift = Model Monitor, latency/errors/resources = CloudWatch
AI Service Cards vs Model CardsIs it a document written by AWS, or by us?AWS = AI Service Cards, us = Model Cards
Guardrails vs prompt instructionsDo you ask the model, or enforce from outside the model?Ask = prompt, enforce = Guardrails
  • The last row matters in practice. Writing "do not reveal personal information" in a system prompt is hoping the model will comply, while Guardrails inspects the model response separately and filters it out.
  • Also know what Guardrails does not do. It does not measure bias in the training data, it does not retrain the model, and it does not record who called the API (that is CloudTrail on Day 4).

Principle → Tool Quick Review

  • You want to measure bias and explain decisions → SageMaker Clarify
  • You monitor whether a deployed model gets worse over time → SageMaker Model Monitor
  • You block harmful or sensitive content in generative AI output → Bedrock Guardrails
  • You look at the uses and limits of an AWS AI service in a public document → AI Service Cards
Clue in the passageAnswer
"Check the gender imbalance of the dataset numerically before training"SageMaker Clarify
"Submit to a regulator which features affected each prediction"SageMaker Clarify
"Automatic alert if the input data distribution changes six months after launch"SageMaker Model Monitor
"Keep the chatbot from mentioning competitor names"Bedrock Guardrails (word filter)
"Keep the chatbot from giving legal advice"Bedrock Guardrails (denied topics)
"Check that a RAG response is based on the retrieved documents"Bedrock Guardrails (contextual grounding check)
"Check what uses Amazon Rekognition must not be used for"AWS AI Service Cards
"Submit our credit model's uses, risk rating, and evaluation results for audit"SageMaker Model Cards
"Only a person checks the document extraction results with low confidence"Amazon A2I

Tomorrow we widen our view to AI security (IAM least privilege, data encryption, PII protection, PrivateLink, the shared responsibility model). If responsible AI is "ethics and trust," security is "technical defense."

📖 Glossary

  • SHAP value: A number that shows how much each input feature contributed to a single prediction.
  • Feature attribution: The degree to which a feature pushed a prediction up or down.
  • Drift: The phenomenon in which the properties of data or a model in operation differ from those at training time.
  • Baseline: The normal range set in advance to judge drift. It is usually built from the training data.
  • Denied Topics: Topics defined in Guardrails that the application must not cover.
  • Masking: Displaying personal information with parts hidden rather than deleting it. Example: replacing a card number with asterisks.
  • Contextual grounding check: A check of whether a model's response is actually based on the provided source documents.
  • AI Service Card: A document in which AWS discloses the uses, limits, and design decisions of its own AI services.
  • Model Card: A document in which the team that built a model records the model's uses, risks, training, and evaluation.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

A data scientist wants to measure whether specific age groups are overrepresented in training data and check if model prediction results are discriminatory between groups. They also want to explain the basis of each prediction (feature contribution). What's the most appropriate AWS tool?

Question 2

A generative AI chatbot needs to mask personal ID numbers and card numbers in user input, block profanity, and prevent covering specific topics like "investment recommendations." What's the appropriate feature?

Question 3

Which statement about Amazon SageMaker Model Monitor is correct?

Question 4

What is the primary purpose of AWS AI Service Cards?

Question 5

Which connection between responsible AI principle and supporting AWS tool is correct?

PreviousPrinciples of Responsible AI: Fairness, Bias, Transparency, Explainability, Robustness, PrivacyWeek 5 · Day 1Next AI Security: IAM Least Privilege, Data Encryption, PII Protection, PrivateLink, the Shared Responsibility ModelWeek 5 · Day 3

Official references

  • AIF-C01 official exam page(opens in a new tab)
  • Amazon SageMaker AI documentation(opens in a new tab)
  • Amazon Bedrock documentation(opens in a new tab)
  • Amazon CloudWatch documentation(opens in a new tab)

On this page

  • Key Takeaways
  • The Tool Mapping at a Glance
  • SageMaker Clarify: Bias Measurement + Explainability
  • SageMaker Model Monitor: Post-Deployment Quality Monitoring
  • Bedrock Guardrails: Safeguards for Generative AI
  • AI Service Cards: Public Documents for Transparency
  • Two Similarly Named Documents: AI Service Cards and SageMaker Model Cards
  • Placing the Tools by Lifecycle Stage
  • Telling Apart the Confusing Pairs
  • Principle → Tool Quick Review
  • Glossary
  • Practice Questions