The mental model

Encryption at rest protects stored data; TLS protects data in transit. Neither replaces authorization. A caller that is allowed to read an object and use its encryption key can still receive plaintext. KMS key policies and identity permissions should match the data access model, including backup and recovery requirements.

A secret is a credential that must be retrievable only by an authorized runtime. Store secrets in a managed secret store and let the application retrieve them using its workload identity. Keep secret values out of code, screenshots, logs, and build artifacts. Rotation also requires the application to handle updated values correctly.

Decisions to make

  1. Choose key ownership and access controls according to the data’s recovery and audit requirements.
  2. Retrieve application secrets at runtime and plan how clients refresh rotated credentials.

Design exercise · no AWS resources needed

Work through a scenario

A service connects to a database using a password committed to a repository.

  1. List every artifact that may now contain the password.
  2. Design runtime access through a workload role and a secret store.
  3. Describe how to replace the exposed password and validate the application afterward.

Check your understanding

Does encrypting a database remove the need for access controls?

Continue with AWS documentation

Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.

Saved in this browser. Press again to undo.

Prepaid · USD

Top up balance

Available balance: $0.00

Your balance works across Heap tools. A failed lookup or generation releases its reserved amount.