QuestionQ189

Automation

An online retailer operates 200 cloud-hosted virtual machines (VMs). At present, each VM is configured manually. To support the retailer’s growth strategy, it begins automatically scaling the VMs to meet demand and uses Ansible for configuration management.

Which action must be completed in Ansible to meet these requirements before automation occurs?

  • A Register each VM in Ansible.
  • B Add each VM to the .ini inventory file.
  • C Set up and configure Ansible Tower.
  • D Configure a dynamic inventory plug-in.
Explanation

A dynamic inventory plug-in discovers the current set of cloud instances from the cloud provider at runtime. This accommodates VMs that are created or removed by autoscaling, whereas a static INI inventory requires manual maintenance and can become outdated. Working with dynamic inventory — Ansible Community Documentation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!