hardMultiple ChoiceObjective-mapped
CV0-004 Practice Question: Refer to the exhibit
Exhibit
[admin@controller ~]$ cldctl config verify --icm policy.json Policy: policy.json Check: vm-sizes Result: 2 out of 10 VMs do not comply: vm-01 (t2.large), vm-07 (t2.xlarge) Expected size: t2.medium
Refer to the exhibit. What action should the administrator take to bring the environment into compliance?
⚠ Common exam trap
CompTIA often tests the misconception that compliance checks are merely advisory warnings, but in reality, they are enforceable policies that require active remediation to avoid audit failures or security risks.
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
✓
Resize the non-compliant VMs to t2.medium.
The exhibit shows that the environment has a compliance policy requiring all VMs to be of type t2.medium, but two VMs are running as t2.large and t2.xlarge. Resizing the non-compliant VMs to t2.medium brings them into alignment with the policy, ensuring the environment meets the defined compliance standard. This action directly remediates the violation without unnecessary deletion or ignoring the check.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Modify the policy file to accept t2.large and t2.xlarge.
Why it's wrong here
Modifying the policy defeats the purpose of compliance.
- ✗
Ignore the compliance check because it is advisory.
Why it's wrong here
Compliance checks are typically mandatory; ignoring them could lead to violations.
- ✓
Resize the non-compliant VMs to t2.medium.
Why this is correct
Resizing brings VMs into compliance with the existing policy.
- ✗
Delete the non-compliant VMs.
Why it's wrong here
Deleting non-compliant VMs would remove the offending resources, but the scenario requires remediation of a configuration drift detected by Azure Policy, not resource elimination; the correct action is to apply a policy remediation task to reapply the compliant configuration. This option is tempting because deleting non-compliant objects is a valid approach in scenarios where the resource itself is the violation, such as removing an unauthorised VM in a locked-down subscription, rather than correcting a policy-defined setting.
Go deeper
Related to this question
About these practice questions
Courseiva writes every CV0-004 question from scratch — 977 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.