Security · AWS SERVICE CHEATSHEET

AWS Key Management Service (KMS)

Provides hardware security module (HSM) backed envelope encryption, enforces fine-grained key policies, automates annual key rotation, and delivers tamper-evident audit logs via AWS CloudTrail.

Open Interactive KMS Sandbox → Simulate in Architecture Studio

AWS Container Placement

Regional / Global Managed Scope (Outside VPC Subnets)

Summary

Managed service that makes it easy to create, manage, and audit cryptographic keys used across AWS services and applications.

When to Use (SAA-C03)

Use CMKs when compliance requires automatic annual key rotation, custom key policies, or cross-account encrypted sharing.

Allowed Ingress Connections & Ports

Source ServiceProtocolPortArchitectural Rationale
S3HTTPS / KMS443S3 server-side encryption and decryption calls
EBSHTTPS / KMS443EBS volume block encryption at rest
RDSHTTPS / KMS443Relational database snapshot and storage encryption
SECRETSMANAGERHTTPS / KMS443Encrypted storage of confidential secrets
LAMBDAHTTPS / KMS443Decrypting encrypted environment variables

Allowed Egress Targets & Ports

Target ServiceProtocolPortData Flow Rationale
CLOUDTRAILHTTPS443Delivers tamper-evident cryptographic usage audit logs

Key Configuration Parameters & AWS Best Practices

ParameterFormat / ExamplePurpose & Rationale
Key Policy (keyPolicy) (Required){"Version": "2012-10-17", "Statement": [{"Principal": {"AWS": "arn:aws:iam::..."}, ...}]}Defines the administrative and usage permissions for principals allowed to use the KMS key. Why: KMS keys have no default access; without a key policy delegating to the account root, the key becomes permanently orphaned.
Key Spec (keySpec) (Required)SYMMETRIC_DEFAULTThe type of cryptographic key to generate (symmetric encryption or asymmetric signing). Why: Symmetric default (AES-256) is required for native AWS service encryption integrations.
Enable Key Rotation (enableKeyRotation)trueEnables automated annual rotation of the cryptographic key material. Why: Satisfies PCI DSS and SOC 2 requirements to rotate keys without re-encrypting existing stored data.
Multi-Region Key (multiRegion)trueAllows the key to be replicated into other AWS Regions with identical key ID and material. Why: Essential for cross-region active-active databases and cross-region disaster recovery replication.

Practice Labs Using AWS Key Management Service

SAA-C03-ZEROTRUST-S3-PRESIGNED

Secure Media Streaming: Zero-Trust Cognito Auth & S3 Presigned Upload

Authenticate client with Cognito User Pool, issue presigned S3 SigV4 URL via Lambda, and upload directly to en…

Frequently Asked Questions

Where does AWS Key Management Service live inside an AWS VPC architecture?

Valid container placement: Regional / Global Managed Scope (Outside VPC Subnets). Provides hardware security module (HSM) backed envelope encryption, enforces fine-grained key policies, automates annual key rotation, and delivers tamper-evident audit logs via AWS CloudTrail.

When should I use AWS Key Management Service on the AWS SAA-C03 exam?

Use CMKs when compliance requires automatic annual key rotation, custom key policies, or cross-account encrypted sharing.

Can I simulate AWS Key Management Service packet routing without an AWS account?

Yes. CloudTracer simulates AWS Key Management Service along with 53 AWS services directly in your browser and exports production Terraform HCL.

More Security Cheatsheets

Security Group → Network ACL → AWS WAF → IAM Roles & Policies → AWS Shield DDoS → Network Firewall →