hardMultiple ChoiceObjective-mapped
CV0-004 Practice Question: Migrating a legacy database that relies on a…
A company is migrating a legacy database that relies on a specific hardware security module (HSM) that cannot be moved to the cloud. The application must continue to function with minimal redevelopment. Which migration strategy is most appropriate?
⚠ Common exam trap
A common mix-up: candidates confuse 'Replace' with 'Rebuild' or 'Refactor,' assuming that any change to the database engine requires significant code changes, but the exam tests the understanding that a cloud-native database replacement can be a drop-in substitute with minimal application impact when the HSM dependency is offloaded to a cloud service.
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
✓
Replace
(Replace) because the legacy database depends on a specific hardware security module (HSM) that cannot be migrated to the cloud. Replacing the database with a cloud-native equivalent (e.g., Amazon RDS or Azure SQL Database) that supports a cloud-based HSM (like AWS CloudHSM or Azure Key Vault Managed HSM) allows the application to continue functioning with minimal redevelopment, as the replacement typically maintains SQL compatibility and standard interfaces.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Refactor
Why it's wrong here
Refactor requires significant code changes to use cloud-native database features.
- ✓
Replace
Why this is correct
Replace uses a cloud-native database service, eliminating the HSM dependency.
- ✗
Rehost
Why it's wrong here
Rehost would retain the HSM dependency, which is not supported in the cloud.
- ✗
Rebuild
Why it's wrong here
Rebuild involves completely rewriting the application, which is more effort.
Go deeper
Related to this question
About these practice questions
This CV0-004 question is part of Courseiva's 977-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 CV0-004 practice question is part of Courseiva's free CompTIA 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 CV0-004 exam.