Free EX407 Exam Braindumps
Red Hat Certified Specialist in Ansible Automation exam Questions 41–45 (page: 10)

Updated On: 9-Feb-2026

What does the -f flag in the ansible command allow you to specify?

  1. The playbook file used by ansible
  2. The inventory file used by ansible
  3. The configuration file used by ansible
  4. The forks used by ansible

Answer(s): D

Explanation:

The -f flag allows the user to set the number of forks the ansible process will run.



What switch needs to be added to prevent the following command from failing:

ansible all -m user -a "name=jsmith state=present"

  1. -b
  2. -f
  3. -x
  4. -v

Answer(s): A



What is wrong with the following command:

ansible all -a "mkdir/tmp/testfile"

  1. There is not a module specified.
  2. There is not an inventory file specified.
  3. The command will execute without error.
  4. The -b flag is required.

Answer(s): C

Explanation:

This command will execute using the command module by default.



What character is used to denote use of a jinja filter on an Ansible variable?

  1. The period: “.”
  2. The pipe: “|”
  3. The percent sign: “%”
  4. The at symbol: “@”

Answer(s): B



Is there a syntax error in the following excerpt? If so, what is it?

vars:
package: httpd

tasks:
- name: Deploy {{ package }}
yum:
name:
{{ package }}
state: present

  1. No, there are no syntax errors in the provided excerpt.
  2. Yes, the variable package is not defined correctly.
  3. Yes, the name parameter for the yum module should have a quoted value.
  4. Yes, the name keyword (below tasks) should have a quoted value.

Answer(s): C

Explanation:

Whenever a variable leads a value, it must be quoted to avoid parse errors.



Viewing page 10 of 22
Viewing questions 46 - 50 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!