Security & Encryption
Why and where to encrypt (in flight, at rest server-side, client-side), envelope encryption, the AWS security services at a glance, and the map of this group.
Why encryption
Encryption makes data unreadable to anyone without the right key. On AWS there are three places to encrypt:
- Encryption in flight (TLS / SSL):
- data is encrypted before sending and decrypted after receiving;
- TLS certificates enable it (HTTPS);
- it ensures no MITM (man-in-the-middle) attack can read or change the data on the way.
- Server-side encryption at rest:
- data is encrypted after being received by the server, and decrypted before being sent back;
- it's stored encrypted, thanks to a key (usually a data key);
- the encryption keys must be managed somewhere, and the server must have access to them (usually KMS).
- Client-side encryption:
- data is encrypted by the client and never decrypted by the server;
- it's decrypted by a receiving client;
- the server should not be able to decrypt the data;
- it can use envelope encryption: a data key encrypts the data, and a KMS key encrypts the data key, which is stored alongside the data.
Security services at a glance
- Keys and encryption: KMS (managed keys), multi-Region keys, CloudHSM (dedicated customer hardware).
- Secrets and certificates: Parameter Store (configuration and secrets), Secrets Manager (secrets with rotation), ACM (TLS certificates).
- Protection at the edge: WAF, Shield and Firewall Manager, DDoS best practices.
- Threat detection and posture: GuardDuty, Inspector and Macie, Detective, Security Hub and Artifact.
Identity (IAM, Organizations, Cognito, IAM Identity Center) is in the Identity & Access group, and S3 encryption options in S3 encryption.
Exam tips
- "Encryption" for an AWS service → almost always KMS.
- "The server must never see the plaintext" → client-side encryption.
- "Protect data in transit" → TLS (HTTPS), with certificates from ACM.
Common traps
- "Server-side encryption protects against the service reading the data." The service decrypts it transparently; only client-side encryption keeps the service from seeing it.
AWS documentation
Managed Grafana and Managed Service for Prometheus
Amazon Managed Service for Prometheus for container metrics with PromQL, Amazon Managed Grafana for dashboards over many data sources, and when to choose them over CloudWatch.
AWS KMS
AWS Key Management Service, symmetric and asymmetric KMS keys, AWS owned, AWS managed and customer managed keys, pricing, key rotation, key policies, and copying encrypted snapshots across Regions and accounts.