701-100 Exam QuestionsBrowse all questions from this exam

701-100 Exam - Question 45


Which of the following conditionals exist in an Ansible playbook? (Choose three correct answers.)

Show Answer
Correct Answer: CDE

In an Ansible playbook, conditionals are used to control the execution of tasks based on various conditions. Common conditional constructs include loops to iterate over items, sequences, and nested elements. The 'with_sequence' keyword allows defining a sequence of items, 'with_items' iterates over a list of items, and 'with_nested' enables nested iteration. These constructs are essential for flexible and dynamic playbook execution. The other options 'with_nodes' and 'with_playbook' are not valid Ansible conditionals.

Discussion

5 comments
Sign in to comment
brunoberOptions: CDE
Oct 14, 2022

CDE seems to be correct https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html

drinkwater
Jul 29, 2021

is there anyone who takes the exam can tell us how much this dump is helpful?

dimitar_ko
Sep 24, 2021

I think there are so many wrong questions here

dimitar_ko
Oct 6, 2021

maybe 40% of the answers are wrong or incomplete

Rootsman
Jul 14, 2022

I agree. Lot of the answers in this dump are wrong. You will fail for sure if you use the default answers.