2V0-21-23 practice question 2 of 25
An administrator needs to create affinity rules for the following vSphere cluster setup: • The cluster contains two virtual machines (VMs) named…
Full set: 107 questionsThe scenario describes a strict software licensing requirement where the virtual machines app01 and app02 are permitted to run only on a specific subset of hosts (esx11, esx12, esx13). This requires a mandatory, or "hard," affinity rule. The correct procedure is to first group the relevant objects: create a VM group for app01 and app02, and a host group for esx11, esx12, and esx13. Then, a "required" (must run on) VM-Host affinity rule must be created to bind the VM group to the host group. This ensures that vSphere DRS will never place or migrate these VMs to any hosts outside the specified group, thereby enforcing the licensing constraint.
A. This is incorrect because it groups all hosts, not just the licensed ones, and a VM-VM anti-affinity rule only separates VMs from each other; it does not restrict them to specific hosts.
B. A VM-VM affinity rule attempts to keep the specified VMs on the same host. This does not address the core requirement of restricting the VMs to a specific group of licensed hosts.
D. A "preferential" (should run on) rule is a soft constraint. DRS will try to keep the VMs on the specified hosts but can move them to other hosts (e.g., esx14) if necessary, which would violate the strict licensing terms.
1. VMware vSphere Documentation (vSphere 8.0)
vSphere Resource Management
"VM-Host Affinity Rules".
The documentation states
"A required rule (designated by 'must') specifies that the virtual machines in a VM group can run only on the hosts in the associated host group... Required rules are useful for licensing and compliance purposes." This directly supports the use of a required rule for licensing scenarios.
2. VMware vSphere Documentation (vSphere 8.0)
vSphere Resource Management
"Create a VM-Host Affinity Rule".
Step 4 of the procedure outlines creating the VM and Host groups. Step 6 details selecting the rule type
where the options are "Must run on hosts in group" (required) and "Should run on hosts in group" (preferential). This confirms the two-step process described in the correct answer.
3. VMware vSphere Documentation (vSphere 7.0)
vSphere Resource Management
"Using Affinity Rules".
This guide explains
"VM-Host affinity rules are useful for virtual machines that must run on hosts with specific configurations for licensing or hardware requirements." It further clarifies that "must" rules are mandatory
while "should" rules are preferential
reinforcing that a strict licensing requirement mandates a "must" or "required" rule.
Keep practicing
Take the free 2V0-21-23 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 2V0-21-23 practice questions
- Question 3An administrator is tasked with allowing a single user the ability to take snapshots on a…
- Question 4An administrator runs a two-node vSphere cluster, which contains two domain controller vi…
- Question 5An administrator decides to restore VMware vCenter from a file-based backup following a f…
- Question 6An administrator is tasked with adding two additional hosts into an existing production v…
- Question 7Which three features are only available when using vSphere Distributed Switches instead o…
- Question 8A vSphere cluster has the following configuration: • Virtual machines (VMs) are running P…
