Free EX407 Exam Braindumps (page: 11)

Page 10 of 26

An Ansible inventory may contain which of the following? (Choose all that apply.)

  1. Variable declarations
  2. Groups
  3. Hosts
  4. Plays

Answer(s): A,B,C

Explanation:

Groups of hosts (and even groups of groups) may be defined within an inventory. The primary purpose of an Ansible inventory is to maintain a list of hosts with which Ansible may interact.



Which module returns Ansible facts?

  1. The facts module
  2. It is a side effect of the ping module
  3. Facts are gathered when you run any module in ad-hoc mode
  4. The setup module

Answer(s): B

Explanation:

The setup module gathers facts against target hosts and prints the facts to stdout.



What does the -a flag allow you to specify?

  1. Allows a user to specify arguments for a given module.
  2. Tells ansible to run in ad-hoc mode.
  3. The -a flag has no use in Ansible.
  4. Tells ansible to run against all hosts.

Answer(s): A



Which of the following is a good use case for an ad-hoc command? (Choose all that apply.)

  1. Experimenting with an Ansible Module
  2. Installing the netcat utility on application servers
  3. Checking the free memory on a particular group of hosts
  4. Upgrading a custom 3-tier application stack

Answer(s): A,B,C

Explanation:

Installing netcat is a single yum command that would be easily run across a group of common servers with an Ansible ad-hoc command. A single command run against several servers is a perfect use case for an ad-hoc command. Writing a playbook would be overkill.






Post your Comments and Discuss RedHat EX407 exam with other Community members:

EX407 Discussions & Posts