NSE 7 – Public Cloud Security 7.2 — Question 21
You are using Red Hat Ansible to change the FortiGate VM configuration.
What is the minimum number of files you must create and which file must you use to configure the target FortiGate IP address?
Answer options
- A. Create three files and use the .yaml file.
- B. Create two files and use the hosts file.
- C. Create two files and use the .yaml file.
- D. Create one file and use the variable file.
Correct answer: C
Explanation
The correct answer is C because you need at least two files for Ansible playbooks: a .yaml file for the playbook itself and a variable file to define the target FortiGate IP address. Option A is incorrect as it suggests an unnecessary number of files, B is wrong since the hosts file isn't appropriate for this purpose, and D is not sufficient as only one file does not meet the requirement.