You are implementing Seal Wrap to protect transit engine keys using an HSM. You have enabled the 'seal_wrap' configuration. After restarting, how does Vault handle existing data keys in the transit engine?
Seal Wrap only protects keys generated or rotated after enabling it; existing transit keys remain unwrapped until rotated. This satisfies the stem's restart scenario because Vault does not retroactively wrap stored keys, so previously created data keys stay in their original, non-HSM-protected form until rotation occurs.
Why this answer
When Seal Wrap is enabled with an HSM, Vault does not automatically re-wrap existing keys. Only keys created or rotated after the configuration change will be wrapped by the HSM. Existing keys remain wrapped with the previous mechanism until they are rotated or re-wrapped manually.
This is the correct behavior for transit engine keys.
Exam trap
The trap is assuming Vault automatically re-wraps existing keys when seal wrap is enabled — candidates often pick the 'automatic re-wrap' option, but the correct answer is that only new or rotated keys are wrapped.
How to eliminate wrong answers
Option A is wrong because the transit engine is not disabled; it continues to function with existing keys, and new keys are seal-wrapped. Option B is wrong because Vault does not automatically re-wrap all existing keys on startup; this would be a heavy operation and is not performed automatically. Option D is wrong because Vault does not return an error or require manual deletion of keys; existing keys simply remain in their prior wrapping state.