AWS conceptsAWS Certified Generative AI Developer - ProfessionalAI safety
AIP-C01 AI safety, security and governance: what it tests
What AIP-C01 asks about guardrails, Block, Mask and Detect actions, PII that slips past filters, and the audit trails governance questions expect.
3 min read
With invocation logging on, the CloudWatch Logs input field keeps the original request even when a guardrail intervenes. In Detect mode, a guardrail takes no action and only reports what it found in the trace response.
01 What does the exam test about AI safety, security and governance?
You reach a mock question where every option names a guardrail, and they all sound right. The skills cover content safety for inputs and outputs, privacy for sensitive data, and traceable compliance.
What the exam asks about each main objective
- 3.1 Safety controlsBedrock guardrails, Comprehend pre-processing filters, Lambda post-processing, API Gateway response filtering
- 3.3 GovernanceProgrammatic model cards, Glue data lineage, CloudTrail audit logs, CloudWatch Logs decision logs
- 3.2 Data privacyComprehend and Macie PII detection, data masking, S3 Lifecycle retention policies
Defense in depth means layers: a Comprehend pre-filter, Bedrock guardrails, Lambda validation and API Gateway filtering.
02 How does a guardrail act on what it finds?
Those questions often turn on the guardrail's action, which you set separately for prompts with inputAction and for responses with outputAction.
Block, Mask and Detect side by side
Block
- Blocks the content
- Returns blocked messaging
Mask
- Replaces PII with tags such as {NAME}
- Sensitive information filters only
Detect
- Takes no action
- Reports findings in the trace
Filter strength matters too: at HIGH, content is blocked even when the evaluation returns a confidence of LOW.
Mask works only with sensitive information filters.
03 Where can PII still slip through?
Masking a response does not clean every copy of the data. The sensitive information filter evaluates text only, so PII in tool call arguments, tool results or tool definitions is neither blocked nor masked.
The match field in GuardrailPiiEntityFilter trace output also holds the original value, and invocation logs keep the original request, so use CloudWatch log data protection for logs.
A masked answer can still leave raw PII in tool fields, traces and invocation logs.
04 Which tools keep governance traceable?
Governance questions then ask how you prove it. The guide names AWS Glue Data Catalog to register data sources, metadata tagging for source attribution and CloudTrail for audit logging.
SageMaker Model Cards create an immutable record of intended uses, risk ratings, training details and evaluation results.
For an auditable record of a model's intended use and risk, think SageMaker Model Cards.
Summary
- Guardrail actions are set per direction with inputAction and outputAction.
- PII in tool fields, trace match fields and invocation logs is not masked.
- Glue Data Catalog, CloudTrail and model cards make GenAI systems traceable.
Sources
- Exam Guide (AIP-C01) AWS Certified Generative AI Developer - Professional (opens in a new tab)
- Remove PII from conversations by using sensitive information filters - Amazon Bedrock (opens in a new tab)
- Options for handling harmful content detected by Amazon Bedrock Guardrails - Amazon Bedrock (opens in a new tab)
- Model governance to manage permissions and track model performance - Amazon SageMaker AI (opens in a new tab)