Free EX407 Exam Braindumps
Red Hat Certified Specialist in Ansible Automation exam Questions 26–30 (page: 7)

Updated On: 9-Feb-2026

Which of the following are valid parameters of the template module? (Choose all that apply.)

  1. state
  2. dest
  3. validate
  4. .name

Answer(s): B,C

Explanation:

The validate parameter sets a program to check file syntax prior to deployment.



Templates must be written in what language?

  1. XML
  2. Ruby
  3. Jinja2
  4. INI

Answer(s): C

Explanation:

Templates are parsed using the Jinja2 templating language.



Templates have access to variables scoped at which of the following levels? (Choose all that apply.)

  1. Hostgroup targeted by current play
  2. Ansible Facts
  3. Variables defined within the current play
  4. Any host variables defined in inventory

Answer(s): A,B,C



What special character is used to designate that you are passing a variable file to a play using the -e flag?

  1. The plugs sign: “+”
  2. There is no special character required.
  3. The at symbol: “@”
  4. The pipe: “|”

Answer(s): C

Explanation:

The @ symbol will instruct Ansible to find the provided file and parse the file as a variable file.



Which command will allow you to collect all facts for the specific host group 'labmachines'?

  1. ansible -c setup labmachines
  2. ansible-gather-facts labmachines
  3. ansible labmachines -m facts
  4. ansible labmachines -m setup

Answer(s): D

Explanation:

This command specifies the correct inventory and uses the setup module which gathers facts for target hosts.



Viewing page 7 of 22
Viewing questions 31 - 35 out of 101 questions


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

AI Tutor AI Tutor 👋 I’m here to help!