Why is it important to create a namespace for role variables?
A. Roles only have access to variables in their own namespace.
B. It is not really important.
C. Ansible requires namespaces to be set for a role and will error without them.
D. Namespacing role variables helps avoid conflicts with variables defined outside of the role.
How is a role name set?
A. The role name is defined by the directory containing the role.
B. Ansible loads a role name using the role keyword in the roles tasks/main.yml file.
C. Ansible loads a role name from the roles meta/main.yml file.
D. All role names are defined in the file /etc/ansible/roles.
Where is the first place Ansible checks for a role definition?
A. ${PWD}/roles
B. Ansible must always be told where to look for a role.
C. ${PWD}/.roles
D. /etc/ansible/roles
Which keywords will cause a role to be applied in a playbook? (Choose all that apply.)
A. use_role
B. include_role
C. load_role
D. role
Which of the following are shared between roles on the same system? (Choose all that apply.)
A. Templates
B. Tasks
C. Variables
D. Handlers
Which are of the following are valid uses of a role's meta directory? (Choose all that apply.)
A. Setting variable values for use within a role.
B. Setting the allow_duplicates flag.
C. A role's dependency information.
D. Setting the become flag.
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
A.
No, there are no syntax errors in the provided excerpt.
B.
Yes, the variable package is not defined correctly.
C.
Yes, the name parameter for the yum module should have a quoted value.
D.
Yes, the name keyword (below tasks) should have a quoted value.
What is wrong with the following command: ansible all -a "mkdir/tmp/testfile"
A. There is not a module specified.
B. There is not an inventory file specified.
C. The command will execute without error.
D. The -b flag is required.
What character is used to denote use of a jinja filter on an Ansible variable?
A. The period: "."
B. The pipe: "|"
C. The percent sign: "%"
D. The at symbol: "@"
What does the -f flag in the ansible command allow you to specify?
A. The playbook file used by ansible
B. The inventory file used by ansible
C. The configuration file used by ansible
D. The forks used by ansible
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Red Hat exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your EX407 exam preparations and Red Hat certification application, do not hesitate to visit our Vcedump.com to find your solutions here.