AIF-C01 Domains 4 and 5: Responsible AI and Security

Part 6 of 6 in the AIF-C01 exam prep series for developers. Previous: Agentic AI on AWS.
The last two domains share one theme: trust. Domain 4 asks whether an AI system is fair, safe, and explainable. Domain 5 asks whether it's secure, auditable, and compliant. They overlap heavily. Bedrock Guardrails is named in both, and human oversight and transparency run through both, so this post covers them together.
Together they carry 28% of the exam, the same as Domain 3. For developers, Domain 5 is the easier half: IAM, encryption, and logging are familiar ground. Domain 4 is mostly vocabulary, but the exam likes pairs of near-synonyms, so precision matters.
Domains at a glance#
| Domain 4: Responsible AI | Domain 5: Security, compliance, governance | |
|---|---|---|
| Weight | 14% (~7 questions) | 14% (~7 questions) |
| Tasks | 4.1 Develop AI systems responsibly · 4.2 Transparent and explainable models | 5.1 Secure AI systems · 5.2 Governance and compliance |
Objective checklist#
| # | Objective | Section |
|---|---|---|
| 4.1.1 | Features of responsible AI | Dimensions of responsible AI |
| 4.1.2 | Tools to identify responsible AI features (Bedrock Guardrails) | Amazon Bedrock Guardrails |
| 4.1.3 | Responsible model selection, including sustainability | Choosing a model responsibly |
| 4.1.4 | Legal risks of generative AI | Legal risks |
| 4.1.5 | Characteristics of datasets | Datasets, bias, and variance |
| 4.1.6 | Effects of bias and variance | Datasets, bias, and variance |
| 4.1.7 | Tools to detect and monitor bias, trustworthiness, and truthfulness | Detecting and monitoring bias |
| 4.2.1 | Transparent and explainable models vs. those that aren't | Transparency and explainability |
| 4.2.2 | Tools to identify transparent and explainable models | Transparency and explainability |
| 4.2.3 | Trade-offs between safety and transparency | Trade-offs |
| 4.2.4 | Human-centered design for explainable AI | Human-centered design |
| 5.1.1 | AWS services to secure AI systems | Security services |
| 5.1.2 | Source citation and documenting data origins | Data origins and lineage |
| 5.1.3 | Secure data engineering | Secure data engineering |
| 5.1.4 | Security and privacy considerations | Threats, controls, and audit trails |
| 5.1.5 | Hallucination detection and grounding | Hallucination detection and grounding |
| 5.2.1 | AWS services for governance and compliance | Governance services |
| 5.2.2 | Data governance strategies | Data governance strategies |
| 5.2.3 | Governance protocols, including the GenAI Security Scoping Matrix | Governance protocols |
Responsible AI#
Dimensions of responsible AI#
The guide names six features:
| Feature | Meaning |
|---|---|
| Bias | Systematic skew in data or outputs that disadvantages certain groups |
| Fairness | Outcomes that don't discriminate against individuals or groups |
| Inclusivity | The system works well for diverse users, languages, and contexts |
| Robustness | Reliable behavior under unexpected, noisy, or adversarial inputs |
| Safety | Avoids harmful outputs and harmful consequences for people and society |
| Veracity | Outputs are truthful and accurate |
AWS's broader responsible AI framework adds:
- explainability: understanding why a model produced an output
- privacy and security: control over how personal data is used
- transparency: disclosing how the system works and its limits
- governance: processes that enforce responsible practices
- controllability: the ability to steer and correct model behavior
Amazon Bedrock Guardrails#
Guardrails is the tool the guide names for responsible AI (4.1.2), and it reappears as a security service in 5.1.1. It applies configurable safeguards to both user inputs and model outputs.
| Policy | What it does |
|---|---|
| Content filters | Detect and block harmful text or images in categories such as hate, insults, sexual content, violence, and misconduct, with adjustable strength |
| Prompt attack detection | Detects prompt injection and jailbreak attempts |
| Denied topics | Blocks subjects you define, such as investment advice in a banking app |
| Word filters | Blocks exact words and phrases, such as profanity or competitor names |
| Sensitive information filters | Block or mask PII (such as names, account numbers, and addresses) and custom patterns defined by regular expressions |
| Contextual grounding checks | Flag responses that aren't supported by the source content or aren't relevant to the question; the main hallucination control for RAG |
| Automated Reasoning checks | Validate responses against logical rules you define, with explainable results |
Figure: Guardrails check both directions. Input checks stop harmful or manipulative prompts; output checks catch harmful, sensitive, or ungrounded responses.
Guardrails works with models on Bedrock and, through its standalone API, with self-hosted and third-party models. It can also be enforced through IAM, so that every inference call must use a guardrail.
Choosing a model responsibly#
Objective 4.1.3 highlights environmental considerations and sustainability:
- Right-size the model. A smaller model that meets the requirement uses far less energy per request.
- Reuse before you train. Using or fine-tuning a pre-trained model avoids the enormous footprint of pre-training.
- Use efficient hardware. AWS Trainium and AWS Inferentia are designed for energy-efficient training and inference.
- Consider the model's whole life. Energy is spent in both training and every inference call.
Responsible selection also covers the model's documented intended uses, its known limitations, and its licensing terms.
Legal risks#
| Risk | Example | Mitigations |
|---|---|---|
| Intellectual property infringement | Output reproduces copyrighted text, code, or images | Check model provider indemnity and licensing; filter and review outputs; track data sources |
| Biased model outputs | A hiring assistant ranks candidates unfairly | Bias testing, diverse data, human review |
| Loss of customer trust | A public chatbot gives offensive or wrong answers | Guardrails, evaluation, disclosure that it's AI |
| End-user risk | Users act on harmful or incorrect advice | Scope limits (denied topics), disclaimers, human escalation |
| Hallucinations | Fabricated facts presented as true | Grounding, citations, validation (see 5.1.5) |
Datasets, bias, and variance#
Good datasets (4.1.5) are:
- inclusive: they represent all the groups the model will serve.
- diverse: varied sources, contexts, and conditions.
- curated: from trustworthy, vetted sources.
- balanced: no class or group is badly over- or under-represented.
Bias and variance (4.1.6) describe how a model fits its data:
| Underfitting | Good fit | Overfitting | |
|---|---|---|---|
| Bias | High | Low | Low |
| Variance | Low | Low | High |
| Symptom | Poor on training and test data | Good on both | Excellent on training, poor on new data |
| Cause | Model too simple, too few features | Model too complex, too little data, memorizing noise | |
| Fixes | More features, more complex model, train longer | More data, data augmentation, regularization, simpler model, early stopping |
These errors aren't only statistical. If one demographic group is under-represented, a model can fit that group poorly while looking accurate overall, producing unfair outcomes for exactly the people the data missed.
Detecting and monitoring bias#
Objective 4.1.7 names three methods:
- Analyzing label quality: wrong or inconsistent labels teach bias.
- Human audits: people review samples of inputs and outputs.
- Subgroup analysis: measure performance separately for each group, not just overall.
On AWS:
| Tool | Role |
|---|---|
| SageMaker Clarify | Detects bias in data before training and in predictions after training, and explains predictions with feature attributions (SHAP) |
| SageMaker Model Monitor | Watches deployed models for data drift, quality drift, and bias drift |
| Bedrock Model Evaluation | Scores foundation models on responsible AI dimensions such as toxicity and robustness |
| Human review (human-in-the-loop) | People check low-confidence or high-risk outputs |
Transparency and explainability#
| Term | Meaning |
|---|---|
| Transparency | Openness about how the system works: training data, intended use, limitations, and the fact that AI is involved |
| Explainability | The ability to explain why the model produced a specific output |
| Interpretability | How easily a human can understand the model's internal logic directly |
| Transparent and explainable | Not transparent or explainable |
|---|---|
| Linear and logistic regression, decision trees, rule-based systems | Deep neural networks, large language models, complex ensembles |
| You can trace why a decision was made | You need external tools to approximate why |
Tools to identify transparent and explainable models (4.2.2):
- SageMaker Model Cards document a model: intended use, training data, evaluation results, risk rating, and limitations.
- SageMaker Clarify explains predictions with feature attributions.
- Bedrock Model Evaluations produce comparable quality and responsible AI scores for foundation models.
- Open-source models, data, and licensing let you inspect weights, training data, and permitted uses.
- AWS AI Service Cards are AWS's own documentation of intended uses and limitations for its AI services.
Trade-offs#
Objective 4.2.3 says transparency and safety don't always pull in the same direction:
- Interpretability vs. performance. Simple, explainable models are often less accurate on complex tasks. Measure both and choose deliberately.
- Transparency vs. security. Publishing too much about a model, its prompts, or its filters can help attackers evade them or expose intellectual property.
- Safety filters vs. usefulness. Aggressive filtering blocks harm but also blocks legitimate requests.
Human-centered design#
Objective 4.2.4 names two principles, and a third follows naturally from them:
- User-feedback mechanisms: let users rate, flag, and correct outputs, and feed that back into improvement.
- AI decision transparency: show why, through citations, confidence, and key factors, and say clearly that AI is involved.
- Keep humans in control: easy escalation to a person, the ability to override, and design that supports human decisions rather than replacing them in high-stakes cases.
Securing AI systems#
The shared responsibility model for AI#
Figure: AWS secures the infrastructure; you secure what you put on it and how you use it. The more you manage yourself (EC2 over SageMaker over Bedrock), the more of the stack is yours.
Security services for AI#
| Service or feature | Role in securing AI |
|---|---|
| IAM roles, policies, and permissions | Least-privilege access to models, data, and tools; one scoped role per application or agent |
| Encryption (AWS KMS) | Encrypt data at rest, including training data, model artifacts, and logs, with keys you control; TLS protects data in transit |
| Amazon Macie | Uses ML to discover and classify sensitive data such as PII in S3, for example before that data goes into training or a knowledge base |
| AWS PrivateLink | Private connectivity from your VPC to services like Bedrock, so traffic never crosses the public internet |
| AWS Secrets Manager | Stores and rotates credentials, such as API keys your application or agents use |
| Shared responsibility model | Defines what AWS secures and what you secure |
| Amazon Bedrock Guardrails | Filters harmful, sensitive, or ungrounded content in inputs and outputs |
| AgentCore Identity | Authenticates who can invoke an agent and brokers scoped credentials when the agent acts for a user |
| Policy in AgentCore | Deterministic, Cedar-based rules on which tool calls an agent may make, enforced outside the model |
Bedrock also doesn't use your prompts and outputs to train its base models or share them with model providers, and customized models stay private to your account.
Least privilege in practice: this IAM policy lets an application invoke exactly one approved model, and nothing else in Bedrock.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "InvokeOneApprovedModel",
"Effect": "Allow",
"Action": [
"bedrock:InvokeModel",
"bedrock:InvokeModelWithResponseStream"
],
"Resource": "arn:aws:bedrock:us-east-1::foundation-model/amazon.nova-lite-v1:0"
}
]
}
Illustrative only; the exam never asks you to read policies. In a real account you'd also allow any inference profile the application uses.
Data origins and lineage#
Objective 5.1.2 is about knowing where data and answers come from:
| Concept | What it means | AWS support |
|---|---|---|
| Source citation | Answers point to the documents they came from | Bedrock Knowledge Bases citations |
| Data lineage | Tracking data from origin through every transformation into a model | Pipeline metadata, SageMaker lineage tracking |
| Data cataloging | A searchable inventory of datasets, schemas, and owners | AWS Glue Data Catalog |
| Model documentation | Recording training data, intended use, and evaluation | SageMaker Model Cards |
Secure data engineering#
| Practice (5.1.3) | Examples |
|---|---|
| Assess data quality | Validate completeness, accuracy, consistency, and freshness before training or indexing |
| Privacy-enhancing technologies | Masking, tokenization, anonymization and pseudonymization, differential privacy |
| Data access control | IAM, fine-grained permissions with AWS Lake Formation, least privilege on S3 buckets |
| Data integrity | Validation checks, checksums, versioning, and restricted write access so training data and knowledge sources can't be silently altered |
Threats, controls, and audit trails#
| Consideration (5.1.4) | What it means | Controls |
|---|---|---|
| Prompt injection | Input or retrieved content overrides instructions | Guardrails prompt attack filter; separate instructions from data; least privilege |
| Data leakage prevention | Sensitive data appears in outputs or reaches the wrong users | Sensitive information filters; scoped retrieval; don't put secrets in prompts |
| Output filtering and validation | Checking responses before they're shown or acted on | Guardrails output checks; schema and business-rule validation |
| Toxicity | Harmful, hateful, or abusive content | Guardrails content filters |
| Encryption at rest and in transit | Protecting stored and moving data | KMS; TLS |
| Threat detection and vulnerability management | Finding attacks and weaknesses | Amazon Inspector for vulnerabilities; monitoring and alerting |
| Infrastructure protection | Network-level isolation | VPCs, security groups, PrivateLink |
| Audit trails and logging for AI interactions | Recording what happened, for investigation and compliance | See the diagram below |
Figure: Which service logs what. CloudTrail records API activity, not content. To keep the actual prompts and responses, turn on model invocation logging.
Hallucination detection and grounding#
Models predict plausible text, and plausible isn't the same as true. New objective 5.1.5 names three techniques for the gap (RAG grounding, output validation, confidence scoring), and several AWS features support them:
| Technique | How it works |
|---|---|
| RAG grounding | Supply authoritative retrieved content and instruct the model to answer only from it |
| Citations | Require each claim to point to a source; claims without one are suspect |
| Contextual grounding check (Guardrails) | Scores whether the response is supported by the source and relevant to the question, and blocks it below a threshold |
| Automated Reasoning checks (Guardrails) | Verify responses against formal rules you define |
| Output validation | Check format, schema, and business rules, and cross-check facts against a system of record |
| Confidence scoring | Use retrieval scores or model confidence to route low-confidence answers to a human |
| LLM-as-a-judge | A second model scores faithfulness continuously |
| Permission to say "I don't know" | An explicit instruction; cheap and surprisingly effective |
Governance and compliance#
Governance services#
| Service | What it does | Scenario trigger |
|---|---|---|
| AWS Config | Records resource configurations over time and evaluates them against compliance rules | "Track configuration changes," "is this resource compliant?" |
| Amazon Inspector | Automated vulnerability scanning of EC2 instances, container images, and Lambda functions | "Find software vulnerabilities," "CVEs" |
| AWS Artifact | On-demand access to AWS compliance reports (such as SOC and ISO) and agreements | "Download AWS's compliance reports for our auditors" |
| AWS CloudTrail | Records API calls: who did what, when, and from where | "Audit who invoked or changed a resource" |
| AWS Trusted Advisor | Best-practice checks across cost, performance, security, fault tolerance, and service limits | "Recommendations to improve our account" |
| AWS Well-Architected Tool | Reviews workloads against AWS's architecture pillars | "Review our architecture against best practices" |
Data governance strategies#
| Strategy (5.2.2) | What it covers |
|---|---|
| Data lifecycles | How data is created, stored, used, archived, and deleted |
| Logging | Recording data access and model interactions |
| Residency | Keeping data in the Regions or countries the law requires |
| Monitoring and observation | Watching data quality, access patterns, and model behavior over time |
| Retention | How long data and logs are kept, and deleting them when the period ends |
Governance protocols and the Scoping Matrix#
Objective 5.2.3 lists the processes that make governance real:
- Policies: written rules for acceptable AI use.
- Review cadence: scheduled reviews of models and applications.
- Review strategies: what gets reviewed, how, and by whom.
- Governance frameworks: such as the Generative AI Security Scoping Matrix.
- Transparency standards: what gets documented and disclosed.
- Team training requirements: everyone who builds or uses AI knows the rules.
The Generative AI Security Scoping Matrix classifies GenAI use by how much of it you own. The more you own, the more security, governance, and compliance responsibility you carry.
| Scope | Description | Example |
|---|---|---|
| 1. Consumer app | Using a public GenAI service | Employees using a public chatbot |
| 2. Enterprise app | A third-party SaaS product with GenAI features | A CRM's built-in AI assistant |
| 3. Pre-trained models | Building your app on an existing model through an API | An app on Amazon Bedrock base models |
| 4. Fine-tuned models | Customizing an existing model with your data | A Bedrock model fine-tuned on your support tickets |
| 5. Self-trained models | Training a model from scratch on your data | A model trained on SageMaker AI from the ground up |
Service cheat sheet#
| Service or feature | One line |
|---|---|
| Bedrock Guardrails | Content filters, prompt attacks, denied topics, word filters, PII, grounding and reasoning checks |
| SageMaker Clarify | Bias metrics and feature-attribution explanations |
| SageMaker Model Cards | Documentation of a model's purpose, data, performance, and limits |
| SageMaker Model Monitor | Drift and bias-drift monitoring in production |
| AWS AI Service Cards | AWS's documentation of its AI services' intended uses and limits |
| IAM | Who can do what to which resource |
| AWS KMS | Encryption keys |
| Amazon Macie | Finds sensitive data in S3 |
| AWS PrivateLink | Private connectivity, off the public internet |
| AWS Secrets Manager | Stores and rotates credentials |
| AWS CloudTrail | API audit log |
| Bedrock model invocation logging | Full prompts and responses to CloudWatch Logs or S3 |
| Amazon CloudWatch | Metrics, logs, alarms |
| AWS Config | Configuration history and compliance rules |
| Amazon Inspector | Vulnerability scanning |
| AWS Artifact | AWS compliance reports and agreements |
| AWS Trusted Advisor | Best-practice recommendations |
| AWS Glue Data Catalog | Inventory of datasets and schemas |
| AWS Lake Formation | Fine-grained data lake permissions |
Commonly confused#
| If the scenario says… | Answer | Not… | Because |
|---|---|---|---|
| Explain which features drove a prediction | SageMaker Clarify | Model Cards | Clarify measures; Model Cards document |
| Document intended use and limitations for auditors | SageMaker Model Cards | Clarify | Documentation, not measurement |
| Record who called the Bedrock API | CloudTrail | Model invocation logging | API activity, not content |
| Retain every prompt and response | Model invocation logging | CloudTrail | CloudTrail doesn't capture content |
| Track whether resource configurations stay compliant | AWS Config | CloudTrail | Config tracks state; CloudTrail tracks API calls |
| Find PII sitting in S3 buckets | Amazon Macie | Amazon Inspector | Inspector finds software vulnerabilities |
| Download SOC 2 reports for an audit | AWS Artifact | AWS Audit Manager | Artifact holds AWS's reports; Audit Manager isn't in scope |
| Store an API key an agent uses | Secrets Manager | KMS | KMS manages encryption keys, not application secrets |
| Keep Bedrock traffic off the internet | PrivateLink | Encryption | Network path, not data protection |
| Great on training data, poor on new data | Overfitting (high variance) | Underfitting | Memorized the training set |
| Poor on both training and test data | Underfitting (high bias) | Overfitting | Model too simple |
| Block responses not supported by retrieved documents | Contextual grounding check | Denied topics | Grounding, not subject matter |
| Agent must never do X | Policy in AgentCore | Guardrails | Actions vs. content |
Practice questions#
Q1 (matching). Match each requirement to the AWS service that meets it.
| Requirement | |
|---|---|
| 1. Continuously evaluate whether resource configurations meet compliance rules | |
| 2. Scan container images and Lambda functions for known vulnerabilities | |
| 3. Download AWS's ISO and SOC compliance reports | |
| 4. Identify which user called a model-invocation API and when | |
| 5. Get recommendations on cost, security, and service limits |
Services: AWS Artifact, AWS Trusted Advisor, AWS Config, AWS CloudTrail, Amazon Inspector.
Show answer
1 → Config, 2 → Inspector, 3 → Artifact, 4 → CloudTrail, 5 → Trusted Advisor.
Q2 (ordering). Order the Generative AI Security Scoping Matrix scopes from lowest to highest ownership.
- A. Fine-tuned models
- B. Consumer app
- C. Self-trained models
- D. Pre-trained models
- E. Enterprise app
Show answer
B → E → D → A → C.
Consumer app, enterprise app, pre-trained models, fine-tuned models, self-trained models. Security and governance responsibility grows with each step.
Q3. An auditor asks a company to provide documentation of a credit model's intended use, training data, evaluation results, and known limitations. What should the company use?
- A. SageMaker Clarify
- B. SageMaker Model Cards
- C. AWS Artifact
- D. Amazon Macie
Show answer
Answer: B. Model Cards document a model's purpose, data, performance, and limitations.
- A measures bias and explains predictions but isn't the documentation record.
- C provides AWS's compliance reports, not yours.
- D finds sensitive data in S3.
Q4 (multiple response). A bank's customer chatbot must never give investment advice and must never reveal customers' account numbers. Which TWO Bedrock Guardrails policies should the bank configure?
- A. Denied topics
- B. Contextual grounding check
- C. Sensitive information filters
- D. Word filters for the phrase "account number"
- E. Automated Reasoning checks
Show answer
Answer: A and C. Denied topics block investment advice as a subject. Sensitive information filters block or mask account numbers, including through custom regex patterns.
- B checks grounding, not subject matter.
- D would block a phrase, not the numbers themselves.
- E validates responses against logical rules, which is more than this requirement needs.
Q5. A model scores 99% accuracy on training data but 70% on new data. What is happening, and what helps?
- A. Underfitting; use a simpler model
- B. Overfitting; add more training data or apply regularization
- C. Underfitting; train for fewer epochs
- D. Data drift; retrain on the same data
Show answer
Answer: B. A large gap between training and test performance is overfitting (high variance). More data, regularization, a simpler model, or early stopping all help.
- A and C describe the opposite problem and the wrong fixes.
- D is about changes over time in production, not a training-versus-test gap.
Q6. A RAG-based HR assistant sometimes answers with policy details that don't exist in the retrieved documents. Which combination best reduces this?
- A. Fine-tune the model on the HR documents
- B. Instruct the model to answer only from retrieved content, and enable the Guardrails contextual grounding check
- C. Increase the temperature
- D. Switch to a larger model
Show answer
Answer: B. Grounding instructions plus a contextual grounding check detect and block unsupported answers.
- A doesn't reliably prevent fabrication.
- C makes it worse.
- D doesn't address grounding.
Q7. Before using a large S3 dataset to fine-tune a model, a company must find any personally identifiable information in it. Which service should it use?
- A. Amazon Macie
- B. Amazon Inspector
- C. AWS Config
- D. AWS Trusted Advisor
Show answer
Answer: A. Macie discovers and classifies sensitive data in S3.
- B scans for software vulnerabilities.
- C tracks configuration compliance.
- D gives account-level recommendations.
Q8. Security policy requires that traffic from an application in a VPC to Amazon Bedrock never traverses the public internet. What should the team use?
- A. AWS KMS
- B. AWS PrivateLink (a VPC interface endpoint)
- C. Amazon Macie
- D. AWS Artifact
Show answer
Answer: B. PrivateLink provides private connectivity from the VPC to Bedrock.
- A encrypts data but doesn't change the network path.
- C and D are unrelated to network traffic.
Q9. A healthcare company must retain the full text of every prompt sent to its Bedrock-based assistant, and every response, for compliance review. What should it enable?
- A. AWS CloudTrail
- B. Amazon Bedrock model invocation logging
- C. AWS Config
- D. SageMaker Model Monitor
Show answer
Answer: B. Model invocation logging captures request and response content and delivers it to CloudWatch Logs or S3.
- A records API calls, not their content.
- C tracks configuration.
- D monitors SageMaker model drift.
Q10. A company fine-tunes an Amazon Bedrock foundation model with its own customer data. Which scope of the Generative AI Security Scoping Matrix applies?
- A. Scope 2: Enterprise app
- B. Scope 3: Pre-trained models
- C. Scope 4: Fine-tuned models
- D. Scope 5: Self-trained models
Show answer
Answer: C. Customizing an existing model with your own data is Scope 4.
- B would be using the base model as-is.
- D would mean training from scratch.
Key takeaways#
- Responsible AI features: bias, fairness, inclusivity, robustness, safety, veracity. AWS adds explainability, privacy, transparency, governance, and controllability.
- Guardrails filters inputs and outputs. Know each policy's trigger:
- "Don't discuss X" → denied topics.
- "Never show PII" → sensitive information filters.
- "Stick to the sources" → contextual grounding check.
- "Resist manipulation" → prompt attack detection.
- Overfitting = high variance (great on training, poor on new data). Underfitting = high bias (poor everywhere).
- Clarify measures bias and explains; Model Cards document. Both stay exam-relevant despite maintenance mode.
- Shared responsibility: AWS secures the infrastructure; you secure data, access, configuration, and usage.
- Security services: IAM for access, KMS for encryption, Macie for PII in S3, PrivateLink for private traffic, Secrets Manager for credentials. For agents, add AgentCore Identity and Policy.
- Logging:
- CloudTrail → who called what.
- Model invocation logging → prompt and response content.
- CloudWatch → metrics and alarms.
- AgentCore Observability → agent traces.
- Hallucinations: ground with RAG, validate outputs, score confidence, check grounding. Never fine-tune it away.
- Governance five: Config, Inspector, Artifact, CloudTrail, Trusted Advisor. The Scoping Matrix's five scopes run from consumer app to self-trained model.
Series cram sheet#
The whole series in one table, for exam eve.
| If you see… | Think… |
|---|---|
| Deterministic rule, exact outcome required | No ML at all |
| Regulated industry plus explain each decision | Traditional ML (plus Clarify) |
| One large or slow request, answer later | Asynchronous inference |
| Whole dataset, offline | Batch inference |
| Intermittent traffic, scale to zero | Serverless inference |
| Missing a positive is dangerous | Recall |
| Sentiment or entities in text | Comprehend |
| Forms and tables from scanned documents | Textract |
| Speech → text / text → speech | Transcribe / Polly |
| Images and video, moderation | Rekognition |
| Same long system prompt on every call | Prompt caching |
| Mixed easy and hard traffic | Intelligent Prompt Routing |
| Same question, different answers | Lower temperature |
| Current, proprietary, or citable facts | RAG with Bedrock Knowledge Bases |
| Consistent tone or format | Fine-tuning |
| Domain vocabulary gap, lots of unlabeled text | Continued pre-training |
| One narrow task, inference too expensive | Distillation |
| Summarization / translation / paraphrase metric | ROUGE / BLEU / BERTScore |
| Open-ended quality at scale | LLM-as-a-judge |
| Prompts changing with no history | Bedrock Prompt Management |
| Business stakeholder asks "was it worth it?" | ROI, cost per interaction, task completion rate |
| Read-only Q&A vs. multi-step actions | RAG vs. agent |
| Fixed, auditable sequence | Workflow / graph pattern |
| Connect agents to tools / to other agents | MCP / A2A |
| Agent degrades in long sessions or has too many tools | Context engineering |
| Build agent logic in code / run it in production | Strands Agents / AgentCore |
| Developer IDE / business-user workspace / legacy modernization | Kiro / Amazon Quick / AWS Transform |
| Must never say / do / touch | Guardrails / AgentCore Policy / IAM |
| Who called the API / what was said | CloudTrail / model invocation logging |
| PII in S3 / vulnerabilities / AWS compliance reports | Macie / Inspector / Artifact |
That's the series. Good luck on the exam.
Sources#
- AIF-C01 exam guide, Domains 4 and 5 and revisions
- Amazon Bedrock Guardrails and product page
- Amazon Bedrock model invocation logging
- Amazon SageMaker Clarify and SageMaker Model Cards
- Securing generative AI: the Generative AI Security Scoping Matrix (AWS Security Blog)
- AWS shared responsibility model
- AWS service availability updates, June 30, 2026
Originally published at https://iuriio.com/blog/posts/2026/09/aif-c01-part-6-responsible-ai

