Security and Compliance (17%)
Domain 6 is 17% of the scored content of the AWS Certified DevOps Engineer – Professional (DOP-C02) exam. AWS facts were checked against current AWS documentation in November 2026.
| Task | Statement |
|---|---|
| 6.1 | Implement techniques for identity and access management at scale |
| 6.2 | Apply automation for security controls and data protection |
| 6.3 | Implement security monitoring and auditing solutions |
Overview
Domain 6: Security and Compliance AWS Certified DevOps Engineer – Professional (DOP-C02): identity at scale, automated controls and security monitoring
Welcome to Domain 6 of the AWS Certified DevOps Engineer Professional exam, DOP-C02: Security and Compliance. It is 17 percent of the scored content, about 11 of the 65 scored questions.
Task 6.1 is identity and access at scale: roles for humans and machines, federation with Identity Center, permissions boundaries, S C Ps, attribute-based access and credential rotation.
Task 6.2 is automating security controls and data protection: network security, certificates, encryption and keys, sensitive data discovery, and multi-account rollout.
Task 6.3 is security monitoring and auditing: CloudTrail, Config, Flow Logs, drift, GuardDuty, Inspector, Access Analyzer, and alerts on anomalous events.
Least privilege means temporary credentials and narrowly scoped policies.
Defense in depth means layers: edge, network, identity and data controls together.
The key: security findings should route through EventBridge to automatic remediation.
Exam key takeaway: Domain 6 tests least-privilege identity at scale, automating encryption and network controls across accounts, and turning security findings into alerts and automatic remediation.
6.1 Implement techniques for identity and access management at scale
Identity and Access at Scale Task 6.1 · The right identity and policy for each need
| Need | Use | Detail |
|---|---|---|
| Workforce access to many accounts | IAM Identity Center + IdP | Permission sets, MFA, short sessions |
| Workloads on AWS | IAM roles: instance profiles, task and execution roles | No long-term keys |
| Workloads outside AWS | IAM Roles Anywhere, OIDC federation | CI systems assume roles via OIDC |
| Delegate role creation safely | Permissions boundaries | Cap what created roles can do |
| Scale access by attributes | ABAC with tags and session tags | One policy for many teams |
| Rotate machine secrets | Secrets Manager rotation | Lambda rotation on a schedule |
Task 6.1 is identity at scale. Workforce users sign in through IAM Identity Center federated with the corporate identity provider, receiving permission sets in each account with M F A.
Workloads use roles: instance profiles for EC2, task roles for E C S, execution roles for Lambda, and pod identities for E K S, never long-term keys.
Workloads outside A W S use IAM Roles Anywhere, and external C I systems such as GitHub Actions assume roles through O I D C federation instead of stored keys.
Permissions boundaries let developers create roles without exceeding a defined maximum.
Attribute-based access control matches principal tags to resource tags, so one policy serves many teams.
Machine secrets such as database passwords rotate automatically in Secrets Manager.
Exam key takeaway: Federate humans through Identity Center, give workloads roles, use Roles Anywhere or OIDC outside AWS, delegate with boundaries, scale with ABAC, and rotate secrets automatically.
Policies and Guardrails Task 6.1 · How permissions combine
- Explicit deny wins: Task 6.1 continues with evaluation. An explicit deny in any applicable policy always wins; otherwise some policy must allow the action.
- SCPs and RCPs: S C Ps and R C Ps cap what member accounts can do, but never grant permissions themselves.
- Resource policies: Resource-based policies on buckets, keys, queues, functions and secrets grant access, and cross-account access needs both sides to allow it.
- Session policies: Session policies passed on AssumeRole narrow a single session further.
- MFA and STS: Require M F A with policy conditions, and use S T S for short-lived credentials.
- Validate policies: Access Analyzer validates policies and runs custom checks in pipelines, blocking policies that grant new or critical access.
Exam key takeaway: Explicit deny wins, SCPs and RCPs cap, resource policies grant and need both sides cross-account, session policies narrow, MFA and STS limit risk, and Access Analyzer checks policies in CI.
6.2 Apply automation for security controls and data protection
Encryption and Data Protection Task 6.2 · Keys, certificates and sensitive data
| Need | Service | Automate By |
|---|---|---|
| Encryption at rest | AWS KMS customer managed keys | Default encryption: EBS, S3, RDS |
| Dedicated key hardware | AWS CloudHSM, KMS custom key store | Single-tenant HSMs you control |
| Encryption in transit | ACM certificates; TLS policies | Auto-renew with DNS validation |
| Private PKI | AWS Private CA | Internal certs for services and devices |
| Find sensitive data | Amazon Macie | Automated discovery across the org |
| Secrets | Secrets Manager, Parameter Store SecureString | Rotation and cross-Region replicas |
Task 6.2 is data protection. Encrypt at rest with K M S customer managed keys, and enforce defaults such as E B S encryption by default and S3 default encryption.
When regulations demand dedicated hardware, use CloudHSM, directly or as a K M S custom key store.
Encrypt in transit with A C M certificates, which renew automatically with D N S validation, and enforce T L S with listener and bucket policies.
Internal services and devices get certificates from A W S Private C A.
Amazon Macie discovers sensitive data in S3 automatically across the organization.
Store secrets in Secrets Manager with rotation and cross-Region replicas, or Parameter Store secure strings for configuration.
Exam key takeaway: Use KMS keys with default encryption, CloudHSM when required, ACM and TLS policies in transit, Private CA internally, Macie for discovery, and Secrets Manager for rotating secrets.
Defense in Depth, Automated Task 6.2 · Layered network and account controls applied everywhere
- Edge: Task 6.2 continues with layers. At the edge, A W S WAF applies managed rules and rate limits, and Shield protects against D Dos attacks.
- Network: In the network, security groups, network A C Ls and routing segment traffic, and Network Firewall inspects it.
- Firewall Manager: Firewall Manager applies WAF, security group and Network Firewall policies across the organization, including new accounts.
- Security Hub: Security Hub checks security standards and aggregates findings, configured centrally with policies for every account.
- Control Tower controls: Control Tower applies preventive, detective and proactive controls per O U.
- Systems Manager: Systems Manager patches and hardens instances across accounts with patch policies and State Manager.
Exam key takeaway: Layer WAF and Shield at the edge, security groups, NACLs and Network Firewall inside, and apply them org-wide with Firewall Manager, Security Hub, Control Tower and Systems Manager.
6.3 Implement security monitoring and auditing solutions
Security Monitoring and Auditing Task 6.3 · Detect threats and misconfigurations, then alert
| Service | Detects | Automate |
|---|---|---|
| AWS CloudTrail | Every API call; org trail; Lake queries | Log file validation; KMS encryption |
| Amazon GuardDuty | Threats: exposed keys, crypto mining, recon | EventBridge to isolation runbooks |
| Amazon Inspector | Vulnerabilities in EC2, images, Lambda | Patch now; rebuild images |
| IAM Access Analyzer | External and unused access | Remove access; archive rules |
| AWS Config | Public buckets, unencrypted volumes, open ports | Automatic remediation |
| Flow Logs and drift | Unexpected traffic; changed stacks | Athena queries; drift alerts |
Task 6.3 is monitoring and auditing. CloudTrail records every A P I call with an organization trail, validated and encrypted, and CloudTrail Lake for S Q L queries.
GuardDuty detects threats such as exposed credentials being used, crypto mining and reconnaissance; route findings through EventBridge to isolation runbooks.
Amazon Inspector finds software vulnerabilities in EC2, container images and Lambda, triggering patching or rebuilds.
IAM Access Analyzer finds resources shared outside the organization and unused access to remove.
AWS Config detects risky configurations, such as public buckets, unencrypted volumes or open ports, and remediates them automatically.
V P C Flow Logs show unexpected traffic, and CloudFormation drift detection shows stacks changed outside code.
Exam key takeaway: CloudTrail records and validates API calls, GuardDuty detects threats, Inspector finds vulnerabilities, Access Analyzer finds external access, Config remediates, Flow Logs and drift reveal surprises.
Review
Exam Distractors: What to Reject Answers that use long-term keys, grant too much, or only report
- IAM user access keys stored in the CI system. OIDC federation to a role.
- An SCP to grant developers S3 access. SCPs only limit; grant in IAM.
- One IAM policy per team, copied 40 times. ABAC with tags.
- Weekly manual review of GuardDuty findings. EventBridge to automatic response.
- Self-signed certificates on public endpoints. ACM certificates.
- Security groups set by hand in each new account. Firewall Manager policies.
Exam key takeaway: Reject CI access keys, SCPs as grants, copied per-team policies, manual finding reviews, self-signed public certificates, and hand-set security groups.
Where current AWS differs from the exam guide
- Resource control policies (RCPs) joined SCPs in November 2024.
- Amazon Inspector Classic reached end of support on May 20, 2026; current Inspector scans continuously.
References
- AWS Certified DevOps Engineer – Professional exam page — checked Nov 30, 2026
Check your understanding
GitHub Actions deploys to AWS without stored keys.Show answerHide answer
Answer
OIDC identity provider and role.Developers create Lambda roles, but never admin.Show answerHide answer
Answer
Permissions boundary condition.Isolate an instance when GuardDuty flags it.Show answerHide answer
Answer
EventBridge to a runbook.Same WAF rules on every ALB in the org.Show answerHide answer
Answer
AWS Firewall Manager.Find credit card numbers in S3 across accounts.Show answerHide answer
Answer
Amazon Macie.