JNCIA-DevOps: Juniper Networks Certified Associate – Automation (2021) — Question 24
Which two statements about Ansible are correct? (Choose two.)
Answer options
- A. All Ansible host and group variables must be defined in the /etc/ansible/hosts directory
- B. Groups can be nested and a device is allowed to participate in multiple groups
- C. Separate host and group variable files can be used for larger environments
- D. Groups cannot be nested and a device is allowed to participate only a single group
Correct answer: A, B
Explanation
Option A is incorrect because while host and group variables can be defined in /etc/ansible/hosts, they can also be defined elsewhere. Option B is correct as it allows for group nesting and membership in multiple groups. Option C is also correct for larger environments, but it is not one of the selected answers. Option D is incorrect as it contradicts the ability for groups to be nested.