Skip to content
AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep

Lesson 6 of 6 · 12 min

x
6/6

Security and Compliance (17%)

Video lesson: DOP-C02 Domain 6: Security and Compliance

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.

TaskStatement
6.1Implement techniques for identity and access management at scale
6.2Apply automation for security controls and data protection
6.3Implement 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

NeedUseDetail
Workforce access to many accountsIAM Identity Center + IdPPermission sets, MFA, short sessions
Workloads on AWSIAM roles: instance profiles, task and execution rolesNo long-term keys
Workloads outside AWSIAM Roles Anywhere, OIDC federationCI systems assume roles via OIDC
Delegate role creation safelyPermissions boundariesCap what created roles can do
Scale access by attributesABAC with tags and session tagsOne policy for many teams
Rotate machine secretsSecrets Manager rotationLambda 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

NeedServiceAutomate By
Encryption at restAWS KMS customer managed keysDefault encryption: EBS, S3, RDS
Dedicated key hardwareAWS CloudHSM, KMS custom key storeSingle-tenant HSMs you control
Encryption in transitACM certificates; TLS policiesAuto-renew with DNS validation
Private PKIAWS Private CAInternal certs for services and devices
Find sensitive dataAmazon MacieAutomated discovery across the org
SecretsSecrets Manager, Parameter Store SecureStringRotation 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

ServiceDetectsAutomate
AWS CloudTrailEvery API call; org trail; Lake queriesLog file validation; KMS encryption
Amazon GuardDutyThreats: exposed keys, crypto mining, reconEventBridge to isolation runbooks
Amazon InspectorVulnerabilities in EC2, images, LambdaPatch now; rebuild images
IAM Access AnalyzerExternal and unused accessRemove access; archive rules
AWS ConfigPublic buckets, unencrypted volumes, open portsAutomatic remediation
Flow Logs and driftUnexpected traffic; changed stacksAthena 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

  1. IAM user access keys stored in the CI system. OIDC federation to a role.
  2. An SCP to grant developers S3 access. SCPs only limit; grant in IAM.
  3. One IAM policy per team, copied 40 times. ABAC with tags.
  4. Weekly manual review of GuardDuty findings. EventBridge to automatic response.
  5. Self-signed certificates on public endpoints. ACM certificates.
  6. 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

  1. AWS Certified DevOps Engineer – Professional exam page — checked Nov 30, 2026

Check your understanding

  • GitHub Actions deploys to AWS without stored keys.Show answer

    Answer

    OIDC identity provider and role.
  • Developers create Lambda roles, but never admin.Show answer

    Answer

    Permissions boundary condition.
  • Isolate an instance when GuardDuty flags it.Show answer

    Answer

    EventBridge to a runbook.
  • Same WAF rules on every ALB in the org.Show answer

    Answer

    AWS Firewall Manager.
  • Find credit card numbers in S3 across accounts.Show answer

    Answer

    Amazon Macie.

Next step: take a DOP-C02 practice exam

You have reached the end of the course. Take practice exam 1 without notes, check your score by domain, then go back to the lessons for your weakest domain before the next exam. There are 10 exams with 750 questions in all, and every answer is explained.

Previous

Progress is saved in this browser.

Finish Course