复习清单
Security, Compliance, and Governance for AI Solutions
这个领域的要点,几屏读完,考前再看一遍。
这份复习清单暂时以英文显示。
5.1Access, keys and network
- AWS secures the cloud and the AI service. You secure your data, access and use of the model.
- More managed service, fewer duties. Custom models and training data are yours to protect.
- IAM: roles and policies. Least privilege. Default is deny. Roles give temporary credentials.
- Encryption at rest (storage) and in transit (TLS). Cover data, prompts, embeddings and model files.
- AWS KMS: owned, managed and customer managed keys. Customer managed gives most control.
- Amazon Macie finds sensitive data in Amazon S3, before training.
- AWS PrivateLink: private path from a VPC to Amazon Bedrock. It does not set permissions.
5.1Access, keys and network
- AgentCore Identity gives agents an identity. Policy in AgentCore limits their tool actions.
Control who may call a model
Manage encryption keys
Find PII in stored data
Keep traffic off the internet
Filter prompts and answers
Store training data and documents
| You need to | Use |
|---|---|
| Control who may call a model | |
| Manage encryption keys | |
| Find PII in stored data | |
| Keep traffic off the internet | |
| Filter prompts and answers | Amazon Bedrock Guardrails |
| Store training data and documents |
1 / 2
Control who may call a model
Manage encryption keys
Find PII in stored data
Keep traffic off the internet
| You need to | Use |
|---|---|
| Control who may call a model | |
| Manage encryption keys | |
| Find PII in stored data | |
| Keep traffic off the internet |
2 / 2
Filter prompts and answers
Store training data and documents
| You need to | Use |
|---|---|
| Filter prompts and answers | Amazon Bedrock Guardrails |
| Store training data and documents |
5.1Identity, storage and network
- IAM: users, groups, roles, policies. Protect the root user with MFA. IAM Identity Center for staff sign-in.
- Amazon Bedrock does not train base models on your prompts or share them with model providers.
- Amazon S3 holds AI data. Block Public Access on by default. SSE-S3 by default, SSE-KMS for your key. Versioning keeps old copies.
- S3 classes by access: Standard, Intelligent-Tiering (unknown), IA, One Zone-IA, Glacier tiers. Lifecycle rules move or delete data.
- VPC: private subnet has no internet route. Interface endpoint (PrivateLink) for Bedrock. Gateway endpoint for S3 or DynamoDB. NAT gateway: out only.
- SageMaker AI network isolation: container has no network access.
5.1Identity, storage and network
- AWS Secrets Manager stores and rotates API keys and passwords. KMS holds encryption keys.
5.1Data and documentation
- Data lineage: path of data from source through every change.
- Data catalog: searchable inventory of datasets, owners and versions.
- Source citation: show which source an answer used, so people can check it.
- Amazon SageMaker Model Cards document purpose, training data, evaluation and limits.
- Secure data engineering: data quality, privacy-enhancing technologies, access control, integrity.
- Privacy-enhancing technologies: masking, anonymization, tokenization, encryption.
- Integrity: data not altered. It guards against poisoning.
5.1Threats and hallucinations
- Prompt injection: hidden instructions override the rules.
- Data leakage: private data appears in an answer.
- Filter inputs before the model. Validate outputs after it.
- Audit trail: who called the model, and when. Log AI interactions.
- Old rules still apply: patching, network protection, threat detection.
- Hallucination: confident but false answer.
- RAG grounding: answer from retrieved trusted documents, with citations.
- Confidence scoring: low confidence goes to a human.
- Contextual grounding check in Guardrails blocks answers the source does not support.
Prompt injection
- Input checks, guardrails, least privilege
Data leakage
- Sensitive information filters, encryption
Toxic output
- Content filters
Weak software
- Scan and patch
Poisoned data
- Trusted sources, integrity checks
Hallucination
- RAG grounding, validation, review
| Threat | Defense |
|---|---|
| Prompt injection | Input checks, guardrails, least privilege |
| Data leakage | Sensitive information filters, encryption |
| Toxic output | Content filters |
| Weak software | Scan and patch |
| Poisoned data | Trusted sources, integrity checks |
| Hallucination | RAG grounding, validation, review |
1 / 2
Prompt injection
- Input checks, guardrails, least privilege
Data leakage
- Sensitive information filters, encryption
Toxic output
- Content filters
Weak software
- Scan and patch
| Threat | Defense |
|---|---|
| Prompt injection | Input checks, guardrails, least privilege |
| Data leakage | Sensitive information filters, encryption |
| Toxic output | Content filters |
| Weak software | Scan and patch |
2 / 2
Poisoned data
- Trusted sources, integrity checks
Hallucination
- RAG grounding, validation, review
| Threat | Defense |
|---|---|
| Poisoned data | Trusted sources, integrity checks |
| Hallucination | RAG grounding, validation, review |
5.2AWS services for compliance
- AWS Config: records resource configuration, checks rules, shows compliant or not.
- Amazon Inspector: scans EC2, container images and Lambda for software vulnerabilities.
- AWS Artifact: download AWS compliance reports (SOC, ISO) and accept agreements.
- AWS CloudTrail: audit trail of API calls, such as who invoked a model. Event history shows 90 days of management events.
- AWS Audit Manager: collects audit evidence, including a generative AI framework. Closed to new accounts since 30 April 2026.
- CloudTrail does not hold prompt text. Bedrock model invocation logging does, once turned on.
5.2AWS services for compliance
- AWS Trusted Advisor: best practice checks. Six categories, including security and cost.
- Amazon CloudWatch: metrics, logs and alarms for usage, latency and tokens.
Does my setup follow the rules?
Who did what, and when?
How is it running? Alarm me
Is my software vulnerable?
Show me AWS compliance reports
Do I follow best practice?
Collect audit evidence for me
| Question | Use |
|---|---|
| Does my setup follow the rules? | |
| Who did what, and when? | |
| How is it running? Alarm me | |
| Is my software vulnerable? | |
| Show me AWS compliance reports | |
| Do I follow best practice? | |
| Collect audit evidence for me |
1 / 2
Does my setup follow the rules?
Who did what, and when?
How is it running? Alarm me
Is my software vulnerable?
| Question | Use |
|---|---|
| Does my setup follow the rules? | |
| Who did what, and when? | |
| How is it running? Alarm me | |
| Is my software vulnerable? |
2 / 2
Show me AWS compliance reports
Do I follow best practice?
Collect audit evidence for me
| Question | Use |
|---|---|
| Show me AWS compliance reports | |
| Do I follow best practice? | |
| Collect audit evidence for me |
5.2Data governance and processes
- Data lifecycle: collect, store, use, retain, delete.
- Residency: where data is stored. Choose the AWS Region to control it.
- Retention: keep data only as long as required, then delete it. S3 lifecycle rules do it.
- AWS Lake Formation: central permissions for a data lake.
- Logging and monitoring: record access, watch for unusual use.
- Governance framework: roles, rules and decision paths.
- Review cadence is how often. Review strategies are how.
- Transparency standards: document and disclose how AI is used.
- Training requirements: all AI users learn the rules.
5.2Data governance and processes
- Standards: ISO/IEC 42001 (AI management), ISO 27001, SOC, HIPAA, GDPR, EU AI Act, NIST AI RMF.
- AWS Well-Architected Tool: workload review, with ML, Generative AI and Responsible AI Lenses.
5.2Generative AI Security Scoping Matrix
- AWS framework: five scopes, from consumer app to self-trained model.
- Higher scope: more control, more to secure.
- Five disciplines: governance and compliance, legal and privacy, risk management, controls, resilience.
- Amazon Bedrock with a ready model is scope 3.
1 Consumer app
- What staff may enter
2 Enterprise app
- Data, access, settings
3 Pre-trained model
- App, prompts, access
4 Fine-tuned model
- Plus training data and model
5 Self-trained model
- Everything about the model
| Scope | You own |
|---|---|
| 1 Consumer app | What staff may enter |
| 2 Enterprise app | Data, access, settings |
| 3 Pre-trained model | App, prompts, access |
| 4 Fine-tuned model | Plus training data and model |
| 5 Self-trained model | Everything about the model |
考试陷阱
- “Who may invoke the model” → IAM, not AWS KMS or PrivateLink
- “Find personal data in training data in Amazon S3” → Amazon Macie, not Guardrails
- “Block a prompt that holds personal data at run time” → Amazon Bedrock Guardrails, not Macie
- “Keep Bedrock traffic off the public internet” → AWS PrivateLink, not IAM
- “Who called the model, and when” → AWS CloudTrail, not Amazon CloudWatch
- “Alarm when token use spikes” → Amazon CloudWatch, not CloudTrail
- “Resource configuration against rules” → AWS Config, not Trusted Advisor
考试陷阱
- “Scan containers for vulnerabilities” → Amazon Inspector, not Macie
- “Download SOC or ISO reports” → AWS Artifact, not AWS Config
- “Collect my own audit evidence” → AWS Audit Manager, not AWS Artifact
- “Private path to Bedrock” → interface endpoint. “Private path to S3 or DynamoDB” → gateway endpoint
- “Store and rotate API keys” → AWS Secrets Manager, not AWS KMS
- “Unknown access pattern” → S3 Intelligent-Tiering, not Standard-IA
- “Document a model’s purpose and limits” → Amazon SageMaker Model Cards, not data lineage
考试陷阱
- “Answer only from company documents” → RAG grounding, not a larger model
- “Build on a foundation model with no changes” → scope 3 of the Scoping Matrix, not scope 5