Skip to main content
In this lesson we cover the final domain: shared responsibility and the security foundations for AWS. Topics include the core protection pillars, security automation and multi-account governance, and monitoring and posture management. This content maps closely to Security and Compliance — Task 6.2 (apply automation for security controls and data protection) and represents about 17% of the exam coverage at the time of this recording.
A presentation slide titled "Foundations of AWS Security – Building a Secure Cloud Environment" showing a cloud and shield icon alongside three security areas (Data Protection, Identity & Access Management, Infrastructure Security) and an AWS Certified DevOps Engineer Professional badge.

Core concept: The shared responsibility model

Understanding who is responsible for which security controls is fundamental for both the exam and production systems. Responsibility changes depending on the service model (IaaS, PaaS, SaaS) and the degree of customer control. Key rules:
  • If you can configure, access, or manage a component, you are responsible for securing it.
  • If AWS manages underlying infrastructure you cannot see or touch (hardware, underlying host OS for many managed services), AWS is responsible.
  • Many controls still require customer action — for example, enabling encryption, configuring access controls, or patching OS-level components that you run.
A slide titled "Service — Specific Responsibility Models" showing a three-column chart mapping AWS Services (EC2, ECS/EKS, RDS) to AWS responsibilities and customer responsibilities. It illustrates the responsibility shift from AWS managing infrastructure/platform to customers managing OS patching, applications, and data.
Examples:
  • Amazon EC2: you manage the guest OS, apply patches, configure applications, and secure data. See Amazon Elastic Compute Cloud (EC2).
  • Amazon RDS: AWS manages the underlying host OS and can handle engine patching if configured, while you manage database users, encryption selection, and backup/restore configuration. See AWS RDS.
  • SaaS services: AWS handles most platform and infrastructure responsibilities, but you still control data, identity, and relevant configuration options.
Principles to adopt:
  • Defense-in-depth
  • Immutable infrastructure (reduce configuration drift and patching surface)
  • Automated patching and secure baseline configurations
An infrastructure protection diagram showing client requests flowing through AWS WAF, Amazon CloudFront, an Application Load Balancer, Kong (API gateway), and Nginx to a CSP application. Below it are implementation principles: Defence in depth, Immutable infrastructure, Automated patching, and Secure baseline configurations.

Network, edge protections, and logging

AWS operates the VPC fabric and provides managed edge services (WAF, CloudFront) and network primitives (security groups, NACLs). You are responsible for configuring and operating those controls for your workloads:
  • AWS ensures network isolation and low-level VPC operation.
  • You configure security groups, NACLs, ALB rules, WAF rules, and any reverse proxies or API gateways.
  • Enable and protect logging, encryption, and exposure checks for resources you manage.
Example secure Amazon S3 bucket (CloudFormation snippet) demonstrating encryption, logging, public access blocks, and versioning:

Data protection responsibilities

Data protection remains a primary customer responsibility to configure and enforce:
  • Encryption at rest and in transit (KMS, CloudHSM, TLS)
  • Key management, key rotation, and access controls (AWS KMS)
  • Backups, retention policies and immutable storage (S3 Versioning, Glacier)
  • Immutable logging and secure log storage (CloudTrail, S3 with MFA Delete when appropriate)

Security automation across the SDLC

Automate security checks and enforcement throughout development and deployment:
  • Pre-commit and CI/CD hooks for linting and static analysis
  • Policy-as-code to block unsafe infra changes before they reach production
  • Automated detection (scanning and runtime monitoring) and remediation processes
Automate enforcement: use policy-as-code to stop insecure deployments, compliance-as-code to detect deviations, and remediation-as-code to automatically fix or quarantine issues when found.
A diagram titled "Implementing Security Automation Across All Pillars" showing CI/CD and cross‑pillar automation workflows that use AWS services (Source → Build → Test → AWS and AWS CodeBuild/CodeDeploy → Lambda). The right side shows an AWS Lambda hub invoking configuration and security services like AWS Config, Security Hub, IAM, and Systems Manager.
Common automation tools and patterns (AWS-first focus):
  • Infrastructure-as-Code: AWS CloudFormation, AWS CDK (exam emphasis on native IaC). (Real-world may also use Terraform / OpenTofu.)
  • Policy-as-Code: cfn-guard, OPA integrations, or built-in guardrails via AWS Config and Service Control Policies (SCPs).
  • Scanning and testing: Trivy, Checkov, tfsec, and SCA tools for dependency and container scans.
  • Detection & remediation: AWS Config rules, AWS Security Hub, Lambda-driven remediation, Config Conformance Packs, Systems Manager Automation.
  • Multi-account governance: AWS Organizations + SCPs to centrally restrict or require actions (for example, deny S3 bucket deletion across accounts).
Tooling summary table: Note: exam questions typically emphasize AWS-native services and integrations. Third-party tools may be referenced but are rarely the primary focus.

Multi-account governance and monitoring

When managing tens to hundreds of accounts, adopt patterns for centralization and consistency:
  • Centralize audit and access logs: CloudTrail, AWS Config, VPC Flow Logs aggregated into a central logging account and protected storage.
  • Protect immutable logs and define retention policies.
  • Enforce consistent IAM and resource policies via AWS Organizations and SCPs.
  • Implement cross-account monitoring and alerting with Security Hub, GuardDuty, and CloudWatch.
A posture dashboard should reflect metrics such as encryption coverage, logging coverage, IAM policy compliance, control consistency, incident response time, and identified gaps (e.g., unencrypted S3 buckets or accounts missing CloudTrail). These metrics drive prioritized remediation.
A slide titled "AWS Security Posture Dashboard" showing a table of security metrics, icon references, values and notes. Examples include IAM policy compliance 75%, control consistency 80%, logging coverage 90%, encryption coverage 85%, incident response time 15 mins, and gaps like 3 unencrypted S3 buckets and 2 accounts missing CloudTrail.

Final checklist (what to master for this domain)

  • Know shared responsibility boundaries for IaaS, PaaS, and SaaS.
  • Identify which security controls are customer-managed vs AWS-managed in common services (EC2, RDS, S3).
  • Automate security across the SDLC: policy-as-code, detection, and remediation.
  • Use AWS-native services for multi-account governance, logging, and posture management: AWS Config, Security Hub, CloudTrail, KMS, Organizations.
  • Implement defense-in-depth, secure baselines, immutable logging, and automated remediation to reduce operational risk.
Study these patterns and services with exam scenarios that emphasize native AWS integrations and automated enforcement.

Watch Video