Skip to content

Chapter 9 of 11

AWS Security Best Practices

Apply layered identity, data, network, detection, vulnerability, and recovery controls.

44 minutes 10 quick checksBy Subha Prasad
Lesson 9 of 11Course navigation

Lesson content

Read, practise, then check your understanding

AWS Security Best Practices

Cloud security is an operating discipline rather than one product. AWS provides identity, encryption, configuration, threat-detection, vulnerability, and audit services, while customers must select, configure, monitor, and improve controls for their workload.

Core ideas

  • A multi-account landing zone separates workloads, limits blast radius, and centralizes security services.
  • KMS controls encryption keys and policies; envelope encryption lets services protect large data efficiently.
  • Security Hub aggregates findings, while services such as GuardDuty and Inspector provide specialized detection.
  • Backups need protected access, independent copies, retention controls, and verified recovery.

Design and operating model

Establish identity federation and MFA, deny unnecessary public access, encrypt data, centralize audit logs, patch images, scan dependencies, and enforce baselines through infrastructure as code and policy. Prioritize findings by exposed attack path and business impact instead of treating every alert equally.

Example

Resources:
  TrainingKey:
    Type: AWS::KMS::Key
    Properties:
      EnableKeyRotation: true
      KeyPolicy:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal: { AWS: !Sub 'arn:aws:iam::${AWS::AccountId}:root' }
            Action: 'kms:*'
            Resource: '*'

Run examples in a disposable training account and replace Regions, identifiers, policies, resource sizes, and names with reviewed values. Verify commands with the current AWS CLI and service documentation before production use.

Production guidance

  • Avoid static credentials; prefer federation, roles, and short-lived sessions.
  • Continuously assess public exposure, privileged paths, unencrypted data, and logging gaps.
  • Prepare incident playbooks that isolate accounts or resources while preserving evidence.

The chapter quiz follows the lesson and checks both service vocabulary and architecture decisions.

Knowledge check

Answer every question correctly to complete this chapter.

Which statement correctly describes MFA?
Which term matches this explanation: An additional authentication factor protecting interactive access.
Which statement correctly describes encryption at rest?
Which term matches this explanation: Protecting stored data with managed or customer-controlled cryptographic keys.
Which statement correctly describes AWS KMS?
Which term matches this explanation: A managed service for creating and controlling encryption keys.
Which statement correctly describes AWS Security Hub?
Which term matches this explanation: A service aggregating and prioritizing security findings and posture checks.
Which statement correctly describes guardrail?
Which term matches this explanation: A preventive or detective control applied consistently across accounts and workloads.

0 of 10 checks passed

Your progress is saved on this device.