Final answer:
To prevent VM sprawl, regularly monitor and remove unused virtual machines, implement resource allocation policies, and enforce strict access controls.
Step-by-step explanation:
The security measures that can be used to prevent VM sprawl include:
- Regularly monitoring and removing unused virtual machines: By regularly monitoring and identifying virtual machines that are no longer in use, they can be removed, preventing unnecessary consumption of resources.
- Implementing resource allocation policies: By defining policies for allocating resources, such as CPU, memory, and storage, it ensures that virtual machines are provisioned with appropriate resources and prevents overallocation.
- Enforcing strict access controls: By enforcing strict access controls, such as password policies and limiting administrative access, it reduces the risk of unauthorized access to virtual machines, which can lead to VM sprawl.