Volume 3 · Chapter 9 — Identity, Security and Compliance
KMS, CloudHSM, and Certificate Manager in Depth
9.1 Introduction
The encryption chapter covered envelope encryption; the exam demands more: the types of KMS keys, symmetric versus asymmetric, key policies versus grants, rotation options, multi-Region keys, imported key material, when to use CloudHSM instead of KMS, and how ACM manages certificates. This chapter provides that depth for designing data protection correctly.
9.2 KMS Key Types and Symmetric vs Asymmetric
KMS keys come in three ownership types:AWS-owned keys(used by AWS behind the scenes, invisible to you),AWS-managed keys(created and managed by a service on your behalf, named likeaws/s3, rotated automatically, no per-key charge but limited control), andcustomer-managed keys (CMKs)(you create and control the key policy, rotation, and access - the choice when you need control, cross-account use, or auditability). Keys are alsosymmetric(one key encrypts and decrypts - the default, used for most data encryption via envelope encryption) orasymmetric(a public/private key pair, for signing/verification or encryption where a party outside AWS needs the public key). The exam pattern: use a customer-managed symmetric key for controlled data-at-rest encryption; asymmetric for signing or external encryption; and remember that key material never leaves KMS unencrypted.
9.3 Key Policies, Grants, and Access
Access to a KMS key is governed primarily by itskey policy(a resource-based policy that isauthoritativefor the key - even IAM permissions don’t grant key access unless the key policy allows it, directly or by delegating to IAM).Grantsare a more granular, temporary way to delegate specific key operations to a principal (often used by AWS services for short-lived access) without changing the key policy. The tested nuance: the key policy is the root of trust for a KMS key, so if a role can’t use a key, check the key policy - not just the role’s IAM policy. This is also why encryption is an access boundary: key usage is a separate permission from data access.
flowchart TB
Key[KMS key] --> KP[Key policy - authoritative]
KP -->|allows| IAM[IAM policies can then grant use]
KP -->|delegates temporary op| Grant[Grants - granular, short-lived]
Rot{Rotation} -->|AWS-managed key| Auto[Automatic yearly]
Rot -->|Customer-managed key| Opt[Optional automatic (yearly) or manual] 9.4 Rotation, Multi-Region Keys, and Imported Material
Key rotation: AWS-managed keys rotate automatically; customer-managed keys can enable automatic yearly rotation (KMS keeps old versions to decrypt old data) or you can rotate manually by creating a new key.Multi-Region keysare a special type - related keys in multiple Regions sharing the same key material and key ID - so data encrypted in one Region can be decrypted in another (essential for cross-Region DR and global tables where the same ciphertext must be readable in the replica Region).Imported key material(BYOK) lets you supply your own key material to a KMS key for compliance requiring you to control key origin (with the trade-off that you manage its lifecycle and there’s no automatic rotation). These options matter for DR and compliance designs.
9.5 KMS vs CloudHSM
CloudHSMis a dedicated, single-tenant hardware security module you control, offering FIPS 140-2 Level 3 and full control of keys (AWS cannot access them). You choose CloudHSM over KMS when you need a single-tenant HSM, complete key control with no AWS access, specific compliance requiring dedicated hardware, or specialized cryptographic operations - at the cost of managing the HSM cluster yourself. KMS is multi-tenant, fully managed, deeply integrated with AWS services, and sufficient for the vast majority of needs (and KMS can even use a CloudHSM-backed custom key store). The exam decision: KMS for managed, integrated encryption (default); CloudHSM when you need dedicated single-tenant hardware and full, exclusive key control.
9.6 AWS Certificate Manager (ACM)
ACMprovisions, manages, and auto-renews TLS certificates. Public certificates from ACM arefreeand integrate with CloudFront, ALB/NLB, and API Gateway, with automatic renewal removing the expiry-outage risk. A key exam constraint: ACM public certificates are used with AWS-integrated services (you can’t export the private key to install on an arbitrary EC2 instance) - for that, or for internal PKI, useACM Private CAto issue private certificates for internal services and devices. So: ACM public certs (free, auto-renewing) for internet-facing endpoints on CloudFront/ALB/API Gateway; ACM Private CA for internal certificates. This is how TLS-in-transit is managed at scale without manual certificate juggling.
9.7 Banking Production Scenario
A bank encrypts all data at rest with customer-managed symmetric KMS keys, key policies granting decrypt only to the specific application roles, with automatic rotation enabled. For its cross-Region DR, it uses multi-Region KMS keys so data replicated to the DR Region remains decryptable there. A regulatory requirement to control key origin is met with imported key material for one sensitive dataset, and its most stringent workload uses CloudHSM for single-tenant, exclusive key control. Asymmetric KMS keys sign documents that external partners verify with the public key. TLS everywhere uses free auto-renewing ACM public certificates on CloudFront and the ALB, while internal service-to-service mTLS uses certificates from ACM Private CA. This complete key-management and certificate strategy is the professional-level data-protection design the certification targets.
9.8 Chapter Revision Notes
- KMS keys: AWS-owned (invisible), AWS-managed (auto-rotated, limited control), customer-managed (full control, key policy, cross-account); symmetric (default, envelope encryption) vs asymmetric (signing/external encryption).
- The key policy is authoritative for a key (IAM alone doesn’t grant key access); grants delegate granular temporary operations.
- Rotation: AWS-managed auto; customer-managed optional-auto (yearly) or manual. Multi-Region keys enable cross-Region decryption (DR/global tables); imported material (BYOK) for key-origin control.
- CloudHSM = dedicated single-tenant HSM with exclusive key control (FIPS 140-2 L3) for strict compliance; KMS = managed, integrated, default.
- ACM public certs are free and auto-renewing for CloudFront/ALB/API Gateway (can’t export private key); ACM Private CA issues internal certificates.