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.
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 Service | Protocol | Port | Architectural Rationale |
|---|---|---|---|
| S3 | HTTPS / KMS | 443 | S3 server-side encryption and decryption calls |
| EBS | HTTPS / KMS | 443 | EBS volume block encryption at rest |
| RDS | HTTPS / KMS | 443 | Relational database snapshot and storage encryption |
| SECRETSMANAGER | HTTPS / KMS | 443 | Encrypted storage of confidential secrets |
| LAMBDA | HTTPS / KMS | 443 | Decrypting encrypted environment variables |
Allowed Egress Targets & Ports
| Target Service | Protocol | Port | Data Flow Rationale |
|---|---|---|---|
| CLOUDTRAIL | HTTPS | 443 | Delivers tamper-evident cryptographic usage audit logs |
Key Configuration Parameters & AWS Best Practices
| Parameter | Format / Example | Purpose & 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_DEFAULT | The 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) | true | Enables 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) | true | Allows 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
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.