VA-003 Explain encryption as a service Practice Question
A DevOps team needs to implement encryption as a service for application data stored in a PostgreSQL database. They want to use Vault's transit secrets engine to encrypt sensitive fields before storage. Which TWO actions should the team take to ensure the encryption keys are rotated automatically and securely?
⚠ Common exam trap
HashiCorp often tests the distinction between key rotation (creating new key versions) and re-encryption of data (rewrapping ciphertext), and the trap here is that candidates confuse setting 'min_decryption_version' with automatically re-encrypting old data, when in fact it only controls which key versions are allowed for decryption.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use a key derivation function with a unique context per application context to ensure each encryption produces distinct ciphertext.
Using a key derivation function (KDF) with a unique context per application ensures that each encryption operation produces distinct ciphertext even if the same plaintext and key are used. This prevents ciphertext correlation attacks and is a recommended practice when encrypting many records with the same key. Option E is correct because Vault's transit secrets engine supports the 'auto_rotate_period' parameter, which allows you to set a time-based automatic rotation schedule for the encryption key, ensuring keys are rotated without manual intervention.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set 'min_decryption_version' to the latest key version to force re-encryption of old data.
Why it's wrong here
Setting 'min_decryption_version' too high would prevent decryption of data encrypted with older keys, causing data loss.
- ✓
Use a key derivation function with a unique context per application context to ensure each encryption produces distinct ciphertext.
Why this is correct
Key derivation per context ensures that even if a ciphertext is exposed, it cannot be used across different contexts.
- ✗
Disable key rotation and rely on manual key updates using the transit key/rotate endpoint.
Why it's wrong here
Disabling automatic rotation defeats the purpose of automated security management.
- ✗
Restrict access to the decryption capability to prevent adversaries from learning the key material.
Why it's wrong here
Decryption does not expose key material; key rotation is independent of this.
- ✓
Configure a key rotation period using the 'auto_rotate_period' parameter when creating or tuning the encryption key.
Why this is correct
Automatic rotation ensures keys are rotated without manual intervention.
Go deeper
Related to this question
About these practice questions
This VA-003 question is part of Courseiva's 498-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This VA-003 practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the VA-003 exam.