Free EX407 Exam Braindumps (page: 3)

Page 2 of 26

Observe the details of the following dynamic inventory file.

$ ls -l dynamic.py -rw-rw-r--. 1 user user 1928 Mar 30 08:21 dynamic.py

Why will this inventory file cause the ansible command to fail?

  1. Ansible cannot use python scripts as inventories.
  2. The ansible user must own the file.
  3. The file is not executable.
  4. The ansible command will not fail using the noted file with the given details.

Answer(s): C

Explanation:

Without being executable. Ansible will attempt to parse the script as a static inventory and fail.



Is it possible to specify multiple inventory files at once?

  1. Yes, you specify your inventory as a directory containing valid inventory files.
  2. No.
  3. Yes, you must provide extra parameters to the -i flag.
  4. Yes, you must specify a reference inventory master file.

Answer(s): A



What keyword stores a command's output into a variable?

  1. register
  2. output
  3. output is stored in a variable named results by default
  4. debug

Answer(s): A

Explanation:

The register keyword will store output from the preceding command into a provided variable.



What does the lineinfile module do?

  1. Allow addition of lines anywhere in a file
  2. Allows to grep for lines in a provided file
  3. Allow additions of lines to the end of a file only
  4. Input data into a file from stdin

Answer(s): A

Explanation:

The purpose of the lineinfile module is to add lines anywhere in a file passed on a pattern.






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

EX407 Discussions & Posts