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.
0 of 10 checks passed
Your progress is saved on this device.