Key Management Approaches for Regulatory Compliance

CV0-004 By islever Editorial Last updated

Explain the purpose of cloud-native design concepts. Given a scenario, apply security controls in the cloud.

Short answer

C Customer managed keys using an on-premises or third-party hardware security module (HSM) ensures the cloud provider never accesses the encryption keys.

Question

A company must comply with regulations requiring encryption key management where the cloud provider cannot access the encryption keys. Which key management approach satisfies this requirement?
  1. Cloud provider managed keys with automatic rotation
  2. Customer managed keys stored in the cloud provider's key management service
  3. Customer managed keys using an on-premises or third-party hardware security module (HSM) Correct Answer
  4. Application-level encryption using keys stored in environment variables

Key Takeaways

Customer managed keys using an on-premises or third-party hardware security module (HSM) satisfy requirements where the cloud provider cannot access encryption keys. This approach ensures the private key material remains outside the provider's infrastructure, unlike provider-managed or standard customer-managed keys stored in the provider's KMS.

Expert Analysis

Using an on-premises or third-party HSM ensures that the cloud provider never has access to the encryption keys. In this model, keys are generated, stored, and managed entirely outside of the cloud provider's infrastructure.

The scenario presents a strict regulatory constraint: the cloud provider must not have access to encryption keys. This requirement immediately eliminates any solution where the key material resides within the provider’s controlled environment, regardless of who initiates the key creation or rotation. The distinction between "customer managed" and "provider managed" is often misunderstood in cloud certifications; the critical factor is not who clicks the button to create the key, but where the cryptographic material physically or logically resides during its lifecycle.

Option A, "Cloud provider managed keys with automatic rotation," fails because these keys (often called service-managed keys) are fully controlled by the cloud provider. While convenient, the provider holds the root of trust and can access the keys for service operations, directly violating the compliance mandate. Option B, "Customer managed keys stored in the cloud provider's key management service," is the most common distractor. Although the customer owns the key policy (e.g., they decide when to rotate or disable it), the keys themselves are stored within the provider’s Key Management Service (KMS). The provider manages the underlying Hardware Security Modules (HSMs) that store these keys. Consequently, the provider still has technical access to the key material, making this option insufficient for scenarios requiring absolute separation from the provider.

Option C, "Customer managed keys using an on-premises or third-party hardware security module (HSM)," is the correct approach. By utilizing a Bring Your Own Key (BYOK) or Hold Your Own Key (HYOK) strategy anchored in an external HSM, the organization retains sole custody of the private key material. The cloud provider only receives the encrypted data or the public key components needed for operations, while the private key remains isolated in the customer’s or third-party’s secure boundary. This architectural choice satisfies the regulatory requirement by ensuring the provider never possesses the secret key material.

Option D, "Application-level encryption using keys stored in environment variables," is technically insecure and operationally fragile. Storing secrets in environment variables exposes them to potential leakage through logs, memory dumps, or unauthorized access to the compute instance metadata. Furthermore, this method does not inherently prevent the cloud provider’s infrastructure layer from accessing the memory where the application runs, nor does it provide a robust mechanism for key rotation or auditing required by most regulations. It shifts the burden of security to the application code without providing the enterprise-grade isolation offered by dedicated HSM solutions.

Understanding the hierarchy of key management is essential for this exam topic. Cloud Provider Managed Keys offer the least control and highest provider access. Customer Managed Keys in Provider KMS offer policy control but retain provider infrastructure access. BYOK/HYOK with external HSMs offers maximum control and zero provider access to the private key. When a question emphasizes "no provider access" or "strict regulatory compliance regarding key custody," the answer must always point to an architecture that keeps the private key outside the provider’s physical or logical domain.

Exam Strategy

When analyzing key management questions, distinguish between policy ownership and physical/logical custody. If the question requires the provider to have NO access to keys, eliminate any option storing keys in the provider's KMS, even if labeled 'customer managed.' Look for keywords like 'Bring Your Own Key' (BYOK), 'Hold Your Own Key' (HYOK), or 'external HSM' as indicators of the correct compliance-boundary architecture.

Practice All CV0-004 Questions

Access 100 questions with complete answers and detailed explanations.

View Full CV0-004 Practice Test →

← Back to CV0-004 Study Guide