Comparison lab
AWS KMS vs AWS CloudHSM vs AWS Secrets Manager
KMS manages keys, CloudHSM gives you dedicated hardware, Secrets Manager rotates secrets.
Picture the difference
AWS-integrated key → KMS | Customer-controlled dedicated HSM → CloudHSM | Stored and rotated credential → Secrets Manager
| Option | What it does | Exam clue | When not to use it |
|---|---|---|---|
| AWS Key Management Service (AWS KMS) | Managed creation and controlled use of cryptographic keys that integrate with AWS services and applications. | KMS keys, envelope encryption, data keys, key policy, grants | Do not use it as a credential vault or assume it exposes a dedicated HSM cluster for your team to administer directly. |
| AWS CloudHSM | Managed infrastructure for running dedicated hardware security modules in an AWS cluster. | dedicated HSM, single tenant, PKCS #11, cryptographic users, signing | Do not take on HSM cluster operations when standard AWS-integrated encryption keys meet the requirement. |
| AWS Secrets Manager | Managed encrypted storage and retrieval for secrets such as database credentials and API tokens. | credentials, secret retrieval, rotation, API keys, encrypted secrets | For provisioning encryption keys or issuing TLS certificates, choose the respective key or certificate service rather than a credential vault. |
Decision tree
- Manage encryption keys that integrate directly with AWS services AWS Key Management Service (AWS KMS)
- Use dedicated single-tenant HSMs and manage cryptographic users directly AWS CloudHSM
- Store, retrieve, and rotate credentials or API secrets AWS Secrets Manager
If none of these clues fit, check the exact requirement before choosing.