DOP-C02 security and compliance explained

Updated November 23, 2026

Security and Compliance is 17% of DOP-C02 scored content. For a DevOps engineer the emphasis is automation: apply least privilege, rotate credentials, enforce guardrails and detect problems across many accounts without manual review. The guide splits it into identity at scale, automated security controls and data protection, and security monitoring and auditing.

6.1 Identity and access at scale

You should know the IAM building blocks and when each applies: users, groups, roles, identity providers, identity-based and resource-based policies, session policies, permissions boundaries and SCPs. Federation through IAM Identity Center or an external identity provider is preferred over long-lived users. The guide lists least privilege design, role-based and attribute-based access control, automated credential rotation with Secrets Manager, MFA and STS.

ControlWhat it does
Identity-based policyGrants permissions to a principal
Resource-based policyGrants access on a resource, including cross-account
Permissions boundaryCaps what a role or user could ever be granted
SCPCaps what accounts in an organization can do
Session policyNarrows a temporary session

An action is allowed only if nothing denies it and every relevant ceiling permits it.

6.2 Automating security controls and data protection

Network controls such as security groups, network ACLs, Network Firewall, WAF and Shield; certificates through ACM; and data protection with encryption at rest and in transit using KMS, CloudHSM and ACM. The guide asks for defense in depth and automation across accounts and Regions with Security Hub, Organizations, Control Tower and Systems Manager. Macie discovers sensitive data in S3 at scale.

6.3 Security monitoring and auditing

This covers detective services: CloudTrail for API activity, Config for configuration history and rules, GuardDuty for threat detection, Security Hub for aggregated findings, Detective for investigation and Inspector for vulnerability assessment. Know which service answers which question. Who called this API? CloudTrail. Was this setting compliant last Tuesday? Config. Is there suspicious behaviour? GuardDuty.

Patterns that recur

  • Replace stored credentials with roles and temporary credentials.
  • Rotate secrets automatically instead of by calendar reminder.
  • Enforce encryption through a policy or Config rule rather than trusting teams.
  • Aggregate findings centrally and route high severity to a response workflow.

Example questions

Question 1. A developer needs to create IAM roles for application teams but must never be able to grant more than a defined set of permissions. Which mechanism enforces this?

  • A. Require MFA for the developer
  • B. A resource-based policy on the bucket
  • C. Enable CloudTrail data events
  • D. A permissions boundary that the developer must attach to every role created
Show answer

Answer: D

A permissions boundary attached to roles the developer creates limits the maximum permissions those roles can have, whatever policies are attached. Adding MFA does not cap permissions, a resource policy applies to a resource and detective logging does not prevent anything.

Want more questions like this? Full DOP-C02 practice tests →

Question 2. A security team wants findings from GuardDuty, Inspector and other services from all accounts shown in one place and prioritised. What should be used?

  • A. AWS Security Hub with an administrator account
  • B. AWS CloudTrail alone
  • C. AWS Service Catalog
  • D. Amazon Route 53
Show answer

Answer: A

Security Hub aggregates and normalizes findings across accounts and services. CloudTrail logs API calls but does not aggregate findings, Service Catalog manages approved products and Route 53 is a DNS service.

Want more questions like this? Full DOP-C02 practice tests →

Question 3. Compliance requires that every new EBS volume in the organization is encrypted, and violations must be found automatically. Which is the best fit for detection?

  • A. A yearly manual audit
  • B. An AWS Config rule that checks volume encryption across accounts
  • C. An email reminder to all teams
  • D. A security group rule
Show answer

Answer: B

An AWS Config rule evaluates resources continuously against the encryption requirement and reports non-compliance, and it can trigger remediation. A yearly audit is far too slow, an email asking teams to comply is not a control and a security group does not affect volume encryption.

Want more questions like this? Full DOP-C02 practice tests →

Next

Read the worth-it assessment or return to the study plan for week three.