Skip to main content
Welcome. This article summarizes Domain 6 (Security and Compliance) and highlights the exam-relevant concepts, services, and patterns you must know for the AWS Certified DevOps Engineer — Professional exam. Domain 6 at a glance
  • Weight on the exam: 17%
  • Focus areas: identity at scale (IAM), encryption and key management, threat detection and response, and compliance automation.
  • Four security pillars covered: Identity, Encryption, Detection, and Compliance.
The primary services and concepts to focus on:
  • AWS Organizations (Service Control Policies, SCPs)
  • AWS KMS (Key Management Service)
  • AWS Secrets Manager and AWS Systems Manager Parameter Store
  • Amazon GuardDuty, Amazon Inspector, Amazon Macie, and Amazon Detective
  • AWS Security Hub, AWS Config, CloudTrail, CloudWatch
  • Network protections (Security Groups, Network ACLs, AWS WAF, AWS Shield)
These items appear frequently in exam scenarios and practical architectures. Below is a structured summary with exam-focused guidance.

Organizations and Service Control Policies (SCPs)

Service control policies (SCPs) provide organization-wide guardrails. Key points:
  • SCPs are deny-based permission boundaries applied at the organization, OU, or account level.
  • SCPs do not grant permissions; they define the maximum permissions an account can have.
  • The effective permission requires:
    1. The action is allowed by the applicable SCPs (SCPs must not explicitly deny it).
    2. The IAM principal’s identity-based policies grant the action.
    3. Any resource-based policies or permission boundaries must also allow the action.
  • An explicit deny in any applicable policy stops the request.
Important: SCPs only limit permissions — they never grant them. When troubleshooting “access denied” in a multi-account environment, check SCPs first if the account is under an Organization.
A presentation slide titled "IAM at Scale – Organizations and SCPs" that compares AWS Organizations and Service Control Policies. It lists that AWS Organizations provides centralized account management, consolidated billing and hierarchical OUs, while SCPs are deny-based permission boundaries applied to OUs or accounts and evaluated before IAM policies.

Cross-account access patterns

Best practice for cross-account access:
  • Use IAM roles in the target account with:
    • A trust policy that allows principals from the source account to assume the role.
    • A permissions policy attached to the role that grants the needed actions on resources.
  • Use externalId or more restrictive trust conditions when third-party access is allowed to reduce risk of confused deputy attacks.
  • Consider AWS IAM Identity Center (formerly AWS Single Sign-On) to centralize human access and reduce per-account role management.
A presentation slide titled "Cross-Account Access Patterns" that lists four numbered AWS best-practice items: IAM roles for cross-account access, trust policy configuration, permission policy assignment, and external ID protection. The slide includes brief descriptions for each item and a © KodeKloud note.

AWS KMS — Key Management and Envelope Encryption

AWS KMS provides managed cryptographic keys and APIs for crypto operations. Know the KMS key types and typical usage patterns: Envelope encryption pattern (common exam topic):
  1. Generate a data key via KMS.
  2. Use the plaintext data key to encrypt large data objects (S3 objects, DB data).
  3. Store the data key encrypted (ciphertext) alongside the object; decrypt via KMS when needed.
  4. Use KMS grants or IAM policies to control who/what can decrypt the data key.
KMS features to remember:
  • Supports symmetric and asymmetric keys.
  • Automatic rotation is available for customer-managed symmetric CMKs (know when rotation is applicable).
  • KMS can perform cryptographic operations so you don’t have to handle key material directly.
A presentation slide titled "AWS KMS – Encryption at Scale" showing four feature boxes: Customer Master Keys, Access Control Model, Envelope Encryption, and Automatic Key Rotation.

Secrets Manager vs. Systems Manager Parameter Store

Choose the right secrets storage based on feature needs and cost. Use automatic rotation as an exam clue. If a question mentions automatic secret rotation, Secrets Manager is most likely the intended service.
A slide comparing AWS Secrets Manager and AWS Systems Manager Parameter Store, showing four points each: rotation, pricing, best use cases, and integrations. The left column highlights Secrets Manager (automatic rotation, $0.40/secret/month, good for DB credentials), and the right column summarizes Parameter Store (manual rotation, free tier available, good for config data).

Threat detection and findings aggregation

Familiarize yourself with the detection services and how they integrate:
  • Amazon GuardDuty — agentless threat detection using VPC Flow Logs, DNS logs, CloudTrail events, and other telemetry. Detects reconnaissance, instance compromise, and account compromise using ML and anomaly detection.
  • Amazon Inspector — vulnerability and configuration assessment for compute: EC2, Lambda, and container images. Some assessments require an agent for deeper host-level checks.
  • Amazon Macie — discovery and classification of sensitive data (PII) in S3 buckets.
  • Amazon Detective — investigation tool that visualizes relationships between entities and events to accelerate forensic analysis.
  • AWS Security Hub — centralized aggregation of findings from GuardDuty, Inspector, Macie, and partners. Security Hub provides standards (CIS, PCI, AWS Foundational) and integrates with EventBridge for automated workflows and cross-account actions.
Tip: Security Hub is often the central point for automated remediation because it aggregates findings and triggers EventBridge rules to start response playbooks.
An AWS Security Hub infographic titled "Centralized Security Posture Management" with a vertical timeline. It lists numbered features including Aggregate Findings, Security Standards, Automated Response, and Cross‑Account View.

AWS Config — Inventory, rules, and remediation

AWS Config is the canonical service for tracking resource configuration and compliance posture. Key Config capabilities:
  • AWS Managed Rules and authorable custom rules (Lambda-backed or AWS Config Rules).
  • Auto-remediation using Systems Manager Automation documents or Lambda functions.
  • Conformance Packs to bundle rules and remediation into a standard (e.g., CIS, HIPAA).
  • Aggregator to collect Config data across accounts and regions for centralized auditing and compliance reporting.
Use Config to detect drift and non-compliant resources; pair it with remediation actions to enforce compliance workflows.
A slide titled "AWS Config for Compliance" showing four feature boxes: AWS Managed Rules, Auto-Remediation, Conformance Packs, and Aggregator, each with a short description. The slide is © KodeKloud.

Network security: defense in depth

Network controls operate at multiple layers — apply them together for best protection:
  • Security Groups — instance / ENI-level stateful firewall.
  • Network ACLs — subnet-level stateless filters.
  • AWS WAF — web application firewall to protect APIs and web apps from common OWASP threats.
  • AWS Shield — DDoS protection; Shield Standard is included at no charge, Shield Advanced is paid and includes DRT support and additional protections.
A slide titled "Network Security Layers" showing "Defense in Depth for AWS Networks" with four numbered layers: 01 Security Groups, 02 Network ACLs, 03 AWS WAF, and 04 AWS Shield.

CloudTrail — auditing and forensic logging

CloudTrail provides the audit trail for API activity and is essential for forensic investigations and compliance:
  • Management events: control-plane operations such as IAM, EC2 instance lifecycle, and configuration changes.
  • Data events: resource-level operations such as S3 object access and Lambda function invocations.
  • Log file integrity validation: optional feature to detect tampering of CloudTrail logs.
  • Organization Trails: capture events across multiple accounts into a single trail for centralized logging.
Combine CloudTrail with CloudWatch Logs, CloudWatch Events/EventBridge, and AWS Config for a comprehensive logging and alerting architecture.
A presentation slide titled "CloudTrail – Security Auditing" listing four points: Management Events, Data Events, Log File Integrity, and Organization Trail. Each point has a brief description about what is logged (e.g., control plane operations, S3/Lambda access), integrity checks, and multi-account logging.

Exam-focused recap (what to master)

  • Organizations + SCPs: centralized guardrails and deny-based account boundaries.
  • AWS KMS: key types, envelope encryption pattern, and when automatic key rotation applies.
  • Secrets Manager vs Parameter Store: automatic rotation is the key differentiator.
  • GuardDuty: understand the telemetry it uses (VPC Flow Logs, DNS, CloudTrail) and the types of detections it surfaces.
  • Security Hub: aggregation point for findings and often the trigger for automated remediation using EventBridge.
  • AWS Config: inventory, continuous compliance checks, and auto-remediation patterns.
A presentation slide titled "Key Takeaways" showing a numbered list of AWS security services and their roles. It lists: SCPs = guardrails, AWS KMS = envelope encryption, AWS GuardDuty = threat detection, AWS Security Hub = aggregation, and AWS Config = compliance automation.
Exam tip: If a question references centralized deny boundaries, think Organizations + SCPs. If it mentions automatic secret rotation, choose Secrets Manager. If telemetry-based, agentless threat detection is described, GuardDuty is usually relevant.
Note: AWS Config performs auditing, inventory, and compliance checks — it does not actively block changes by itself. To enforce and remediate, combine Config with Systems Manager, Lambda, or other automation tooling. Further reading and references If you’d like, I can convert these notes into flashcards, practice questions, or diagrams to help you study Domain 6 more effectively.

Watch Video