Security (26%)
Domain 2 is 26% of the scored content of the AWS Certified Developer – Associate (DVA-C03) exam. AWS facts were checked against current AWS documentation in November 2026.
| Task | Statement |
|---|---|
| 2.1 | Implement authentication and authorization mechanisms for applications and AWS services |
| 2.2 | Implement encryption and manage sensitive data by using AWS services |
| 2.3 | Identify and mitigate security risks associated with using and integrating AI services into application development |
Overview
Domain 2: Security AWS Certified Developer – Associate (DVA-C03): identities, encryption, secrets and AI risks in application code
Welcome to Domain 2 of the AWS Certified Developer Associate exam, DVA-C03: Security. It is 26 percent of the scored content, about 13 of the 50 scored questions.
Task 2.1 is authentication and authorization: federation, Cognito, fine-grained permissions, assuming roles with S T S, presigned U R Ls and signed A P I calls.
Task 2.2 is encryption and sensitive data: encryption at rest and in transit, K M S and data keys, certificates, masking personal data, and secret management.
Task 2.3 is new: A I security risks, with model access, private connectivity, guardrails, safe agents and protecting sensitive data in logs.
Throughout, temporary credentials from roles beat long-term access keys.
And envelope encryption is the pattern behind most A W S encryption.
The key: nothing secret ever lives in source code, images or plain environment variables.
Exam key takeaway: Domain 2 tests secure identities and access, encryption with KMS, secret handling, sensitive-data controls, and safe use of AI services in applications.
2.1 Implement authentication and authorization mechanisms for applications and AWS services
Identities for Users and Code Task 2.1 · Who signs in, and how code gets credentials
| Who | Mechanism | Key Point |
|---|---|---|
| App end users | Cognito user pools: sign-up, sign-in, MFA, OAuth 2.0 and OIDC tokens | Social and SAML federation |
| App users calling AWS | Cognito identity pools exchange tokens for STS credentials | Role per user or group |
| API authorization | Cognito authorizer, Lambda authorizer, IAM auth on API Gateway | Validate tokens before code |
| Code on AWS | IAM roles: instance profile, Lambda execution role, ECS task role | Never access keys in code |
| Developers and CLI | IAM Identity Center sign-in; aws sso login profiles | Short-lived CLI credentials |
| Cross-account code | sts:AssumeRole with trust policy; external ID for third parties | Temporary credentials |
Task 2.1 starts with identities. Application users sign in through Cognito user pools, which handle sign-up, sign-in, M F A and issue OAuth 2.0 and OpenID Connect tokens, with social and SAML federation.
When those users call A W S directly, Cognito identity pools exchange their tokens for temporary S T S credentials scoped by role.
API Gateway can authorize with a Cognito authorizer, a Lambda authorizer for custom tokens, or I A M signature authentication.
Code running on A W S uses roles: an instance profile, a Lambda execution role or an E C S task role, never access keys.
Developers use I A M Identity Center for short-lived C L I credentials, rather than long-term keys on laptops.
Code that works across accounts calls S T S AssumeRole on a role whose trust policy allows it, with an external I D for third parties.
Exam key takeaway: Cognito user pools sign users in, identity pools give them AWS credentials, API Gateway authorizers protect APIs, and code always uses roles and STS, never stored keys.
Permissions, Presigned URLs and Signing Task 2.1 · Fine-grained access, MFA, time-limited links and authenticated calls
- Policy evaluation: I A M evaluates all policies together: an explicit deny wins, then any allow, otherwise access is implicitly denied. Identity, resource, boundary, session and organization policies all apply.
- Fine-grained conditions: Conditions give fine-grained access, such as dynamodb leading keys for per-user items, S3 prefixes for per-user folders, or principal tags.
- MFA: Require M F A with the multi-factor auth present condition, and from the C L I get temporary credentials with GetSessionToken and an M F A code.
- S3 presigned URLs: S3 presigned U R Ls grant time-limited uploads or downloads, signed with the creator's credentials. They last up to seven days, and no longer than the signing credentials.
- CloudFront signed URLs: CloudFront signed U R Ls and signed cookies, using a trusted key group, protect private content at the edge, while origin access control locks the bucket to CloudFront.
- Signed API calls: The S D Ks sign every A W S request with Signature Version 4. Custom H T T P calls to I A M-protected APIs must be signed the same way.
Exam key takeaway: Explicit deny wins, conditions give per-user access, MFA can be required, presigned URLs last up to 7 days, CloudFront signed URLs protect edge content, and SDKs sign with SigV4.
2.2 Implement encryption and manage sensitive data by using AWS services
Encryption at Rest and in Transit Task 2.2 · Server-side or client-side, and how KMS fits in
| Option | How It Works | Choose When |
|---|---|---|
| SSE-S3 | S3-managed keys; default for new objects | Baseline, no key control |
| SSE-KMS / DSSE-KMS | KMS keys you control; every use logged | Audit, separate key permissions |
| SSE-C | You supply the key in each request | Disabled by default on new buckets (2026) |
| Client-side | Encrypt before sending; AWS Encryption SDK | Data must never be plaintext in AWS |
| Envelope encryption | GenerateDataKey: plaintext key encrypts data; store encrypted key | KMS Encrypt limit is 4 KB |
| In transit | TLS everywhere; ACM public certs; AWS Private CA for internal | Enforce with aws:SecureTransport |
Task 2.2 is encryption. S3 encrypts every new object by default with S S E-S3, using S3-managed keys.
S S E-K M S uses K M S keys you control, with separate key permissions and every use logged in CloudTrail. Dual-layer D S S E-K M S applies two layers.
S S E-C uses keys you send with each request. Since April 2026, it is disabled by default on new general purpose buckets.
Client-side encryption, for example with the A W S Encryption S D K, encrypts before data leaves your application.
For data larger than 4 kilobytes, use envelope encryption: GenerateDataKey returns a plaintext data key to encrypt the data and an encrypted copy to store with it. Decrypt the data key with K M S later.
In transit, use T L S everywhere, with A C M public certificates on load balancers and CloudFront, AWS Private C A for internal services, and bucket policies that deny requests without secure transport.
Exam key takeaway: SSE-S3 is the default, SSE-KMS adds control and audit, SSE-C is off by default on new buckets, envelope encryption handles large data, and TLS with ACM or Private CA protects transit.
Secrets and Sensitive Data Task 2.2 · Store secrets safely, generate keys for development, and protect PII and PHI
- Secrets Manager: Secrets Manager stores secrets and rotates them automatically, with built-in rotation for databases. Code calls GetSecretValue at run time and caches the result.
- Parameter Store: Systems Manager Parameter Store holds configuration and KMS-encrypted SecureString values, with no storage charge for standard parameters, but no built-in rotation.
- KMS key use: Code uses K M S through Encrypt, Decrypt, GenerateDataKey and ReEncrypt, and needs permission in both the key policy and I A M.
- Dev certificates and SSH: For development, create E C 2 key pairs or skip S S H keys entirely with Session Manager, and issue test T L S certificates from AWS Private C A.
- Find and mask PII: To protect personal and health data, Amazon Macie finds it in S3, and CloudWatch Logs data protection policies detect and mask it in log events.
- Limit access: Limit access with least privilege and separate keys per data class, and tokenize or redact sensitive fields before storing them where possible.
Exam key takeaway: Use Secrets Manager for rotating secrets and Parameter Store for config, call KMS with proper permissions, avoid SSH keys with Session Manager, and find and mask PII with Macie and Logs data protection.
2.3 Identify and mitigate security risks associated with using and integrating AI services into application development
Securing AI Services in Applications Task 2.3 · New in DVA-C03: access, privacy, filtering, agents and logs
| Risk | Control | Detail |
|---|---|---|
| Who can use which model | IAM policies and SCPs on bedrock:InvokeModel by model ID | Serverless models on by default |
| Data leaving the network | VPC interface endpoints (PrivateLink) to Bedrock | No internet path |
| Training on your data | Bedrock does not use prompts or outputs to train models | Check each provider's terms |
| Harmful or leaking output | Bedrock Guardrails: content filters, denied topics, PII redaction | Apply to inputs and outputs |
| Prompt injection | Guardrails prompt attack filter; tag untrusted content | Never trust retrieved text |
| Secrets in logs | Mask PII in invocation logs; restrict log access | Logs data protection |
Task 2.3 is new. Access to Bedrock models is controlled with I A M policies and S C Ps on invoke actions by model I D. Serverless models are available by default, and Anthropic models need a one-time use-case form.
For data privacy, reach Bedrock through V P C interface endpoints, so traffic never crosses the internet.
Bedrock does not use your prompts or completions to train A W S or third-party models.
Bedrock Guardrails filter harmful content, block denied topics, and detect and redact personal or health data, on both inputs and outputs.
Guardrails also detect prompt attacks, and you should treat retrieved or user-supplied text as untrusted input.
Model invocation logs may contain sensitive content, so mask it with CloudWatch Logs data protection and restrict who can read the logs.
Exam key takeaway: Control model access with IAM and SCPs, use VPC endpoints, rely on Bedrock not training on your data, filter with Guardrails including prompt attacks, and mask sensitive content in logs.
Securing AI Agent Interactions Task 2.3 · Tools, sessions and human approval
- Tool authorization: Secure agents start with tool authorization: expose only approved tools, each with a least-privilege role. AgentCore Gateway controls which tools an agent can call.
- Per-user identity: AgentCore Identity lets agents act with the signed-in user's own tokens, so downstream A P Is enforce that user's permissions.
- Session isolation: Isolate sessions so one user's context never leaks to another. AgentCore Runtime runs each session in its own isolated environment.
- Human in the loop: Require human approval before sensitive actions, such as payments or deletions, using Step Functions task tokens or the agent returning control to the application.
- Limit blast radius: Limit the blast radius with rate limits, spending caps and allow lists of actions.
- Audit everything: And audit everything: trace each tool call, keep CloudTrail for A P I use, and redact sensitive fields in traces and logs.
Exam key takeaway: Authorize tools with least privilege, act with users' own identities, isolate sessions, require human approval for sensitive actions, cap the blast radius, and audit with masked logs.
Review
Exam Distractors: What to Reject Answers that work but leak credentials or skip a control
- Access keys hard-coded in a Lambda function. Execution role credentials.
- KMS Encrypt on a 5 MB file. GenerateDataKey envelope encryption.
- Making a bucket public for a one-time download. Presigned URL.
- Parameter Store when rotation is required. Secrets Manager rotation.
- Prompt instructions as the only AI safety control. Bedrock Guardrails.
- Agent with admin rights to all APIs. Least-privilege tools and approvals.
Exam key takeaway: Reject hard-coded keys, KMS Encrypt for big data, public buckets for sharing, Parameter Store for rotation, prompt-only safety, and over-privileged agents.
Where current AWS differs from the exam guide
- Since April 2026, new S3 general purpose buckets have SSE-C disabled by default.
- The Bedrock "Model access" page was retired: serverless models are available by default and access is controlled with IAM and SCPs; Anthropic models need a one-time use-case form.
References
- AWS Certified Developer – Associate exam page — checked Nov 30, 2026
Check your understanding
Mobile users must upload photos directly to their own S3 folder.Show answerHide answer
Answer
Cognito identity pool with prefix policy.Partner needs to download one report for 24 hours.Show answerHide answer
Answer
S3 presigned URL.Encrypt 2 GB files with a key you control.Show answerHide answer
Answer
KMS GenerateDataKey (envelope).Database password must rotate every 30 days automatically.Show answerHide answer
Answer
Secrets Manager rotation.Chatbot must never return customers' phone numbers.Show answerHide answer
Answer
Guardrails PII redaction.