Oracle Cloud Infrastructure 2021 Multicloud Architect Associate — Question 34
Your team implemented a SaaS application that requires a whole system deployment for each new customer. The infrastructure provisioning is already automated via Terraform, and now you have been asked to develop an Ansible playbook to centralize configuration file management and deployment.
What is the most effective way to ensure your playbooks are utilizing up-to-date and accurate inventory? (Choose the best answer.)
Answer options
- A. Export an inventory list from the Oracle Cloud Infrastructure Web console.
- B. Export an inventory list using Terraform apply command.
- C. Implement a Command Line Interface script to list all the resources and run it within Ansible to generate a dynamic inventory list.
- D. Download the dynamic inventory script provided by Oracle Cloud Infrastructure and include it in the playbook invocation command.
Correct answer: D
Explanation
The correct answer is D because downloading the dynamic inventory script from Oracle Cloud Infrastructure ensures that the inventory is always accurate and up-to-date with the current resources. Options A and B rely on static lists that may not reflect real-time changes, while option C, although it generates a dynamic list, requires additional scripting that may not be as efficient as using the provided script.