AWS CloudHSM provides dedicated hardware security modules (HSMs) in an AWS-managed cluster. It is designed for workloads that require direct control over cryptographic operations and HSM users, while keeping key material inside validated hardware security boundaries.

What makes CloudHSM different?

With CloudHSM, customers control the HSM users, credentials, and cryptographic operations through supported interfaces and client software. AWS operates and maintains the underlying infrastructure, but the customer has administrative control over the HSMs and the keys created within them. The service is useful when an application or compliance requirement calls for dedicated HSM capabilities rather than a fully managed key service abstraction.

CloudHSM vs. AWS KMS

Dimension AWS CloudHSM AWS KMS
Service model Dedicated HSM cluster Managed key-management service
Administration Customer manages HSM users and access within the cluster AWS manages the underlying HSM infrastructure; customer controls key policies and usage permissions
Integration Applications use supported PKCS #11, JCE, or OpenSSL interfaces and client software Broad integration with AWS services and APIs
Typical clue Dedicated HSM control or specialized cryptographic application Centralized managed encryption keys for AWS resources

Cluster architecture and availability

A CloudHSM cluster contains HSMs in a VPC and can span multiple Availability Zones for resilience. Applications connect through the CloudHSM client and supported cryptographic libraries. Plan network connectivity, security groups, client configuration, and quorum-based administration carefully. A single HSM is not a resilient design for a production workload.

Key ownership and recovery considerations

CloudHSM gives the customer control over HSM users and key operations, so operational discipline is essential. Protect administrator credentials, establish backup and recovery procedures, and understand how quorum authentication and cluster backups work. AWS does not have access to customer HSM keys in the same way an application administrator does; loss of required credentials or backups can have serious consequences.

When should you choose CloudHSM?

Exam traps

Test yourself

Question 1

A regulated application requires dedicated HSMs and direct control over HSM users and cryptographic operations. Which AWS service is the best fit?

  1. AWS CloudHSM
  2. Amazon S3
  3. AWS Secrets Manager
  4. Amazon GuardDuty
Reveal answer

Correct answer: A. CloudHSM provides dedicated HSMs and customer control over HSM users and cryptographic operations.

Question 2

A team needs straightforward envelope encryption and broad integration with AWS services without administering HSM users. Which service should it evaluate first?

  1. AWS CloudHSM
  2. AWS KMS
  3. Amazon EC2 bare metal only
  4. AWS Direct Connect
Reveal answer

Correct answer: B. KMS is the managed key-management service with broad AWS integration; CloudHSM is for more specialized dedicated HSM control.

Key takeaway

Choose CloudHSM when the scenario explicitly requires dedicated HSMs and customer control over HSM users or cryptographic operations. Choose KMS for most managed AWS key-management needs unless a specialized HSM requirement changes the design.

Related topics

AWS Key Management Service (KMS) · AWS IAM · AWS Secrets Manager

CloudExamPro Premium

Ready for the AWS Solutions Architect Associate (SAA-C03) exam?

Turn what you learned in this topic into exam-ready skills with original, scenario-based practice questions and detailed explanations.

6 full-length examsBuild readiness across domains
Detailed explanationsLearn why each answer is right
Scenario-based practiceOriginal questions, not dumps
6 months of accessReview at your own pace
Get the SAA-C03 Practice Exams →Try the free SAA-C03 diagnostic first ↗

Original practice questions. No dumps. No shortcuts.