hardMultiple SelectObjective-mapped
CV0-004 Practice Question: Which THREE of the following are best practices…
Which THREE of the following are best practices when deploying a cloud application using Infrastructure as Code (IaC)? (Choose three.)
⚠ Common exam trap
CompTIA often tests the distinction between mutable and immutable infrastructure, and the trap here is that candidates may think manual tuning (Option D) is acceptable for performance optimization, but it violates the core IaC principle of idempotent, automated deployments.
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
✓
Store IaC templates in a version control system.
Storing IaC templates in a version control system (e.g., Git) is a best practice because it enables change tracking, rollback, collaboration, and auditability. This aligns with GitOps principles, where the version control repository serves as the single source of truth for infrastructure state, ensuring all changes are reviewed and recorded.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Store IaC templates in a version control system.
Why this is correct
Version control enables collaboration and rollback.
- ✓
Break down complex deployments into reusable modules.
Why this is correct
Modularization improves maintainability and reuse.
- ✗
Embed credentials directly in the IaC templates.
Why it's wrong here
Credentials should be stored in a secure secrets manager.
- ✗
Manually modify resources after deployment to tune performance.
Why it's wrong here
Manual modifications cause configuration drift.
- ✓
Use immutable infrastructure patterns where possible.
Why this is correct
Immutable infrastructure prevents drift and simplifies rollback.
Go deeper
Related to this question
About these practice questions
One of 977 original CV0-004 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.