AWSCloud Visual Academy

Comparison lab

AWS KMS vs AWS CloudHSM vs AWS Secrets Manager

KMS manages keys, CloudHSM gives you dedicated hardware, Secrets Manager rotates secrets.

All comparisons

Picture the difference

AWS-integrated key → KMS | Customer-controlled dedicated HSM → CloudHSM | Stored and rotated credential → Secrets Manager

OptionWhat it doesExam clueWhen 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, grantsDo not use it as a credential vault or assume it exposes a dedicated HSM cluster for your team to administer directly.
AWS CloudHSMManaged infrastructure for running dedicated hardware security modules in an AWS cluster.dedicated HSM, single tenant, PKCS #11, cryptographic users, signingDo not take on HSM cluster operations when standard AWS-integrated encryption keys meet the requirement.
AWS Secrets ManagerManaged encrypted storage and retrieval for secrets such as database credentials and API tokens.credentials, secret retrieval, rotation, API keys, encrypted secretsFor provisioning encryption keys or issuing TLS certificates, choose the respective key or certificate service rather than a credential vault.

Decision tree

  1. Manage encryption keys that integrate directly with AWS services AWS Key Management Service (AWS KMS)
  2. Use dedicated single-tenant HSMs and manage cryptographic users directly AWS CloudHSM
  3. Store, retrieve, and rotate credentials or API secrets AWS Secrets Manager

If none of these clues fit, check the exact requirement before choosing.