Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices Playbook Practice Questions
The free Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices questions that deal with playbook, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #1
Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job 'datejob'
Type your answer, then reveal.
Correct answer: - name: Creates a cron file under /etc/cron.d; cron: name: datejob; hour: "12"; user: root; job: "date >> /root/datefile"

Explanation
Solution as:
Question #3
If a playbook fails due to a missing variable, what is the best practice remedy?
Correct answer: B
Explanation
Using default variables allows the playbook to execute successfully while providing fallback values.
Question #4
What is the significance of including 'become: yes' in an Ansible playbook?
Correct answer: A
Explanation
'Become: yes' is used to execute tasks with elevated privileges, necessary for certain operations.
Question #6
What is the purpose of handlers in an Ansible playbook?
Correct answer: B
Explanation
Handlers are special tasks that only run when notified, typically in response to changes made in the play.
Question #10
What command would you use to run a playbook in Ansible with increased verbosity?
Correct answer: A
Explanation
The '-vvv' flag in the command increases verbosity, providing more detailed output during execution.
Continue with Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
All Red Hat Certified Specialist in Advanced Automation: Ansible Best Practices practice questions →
