1Z0-1067-25 Question 36
Select 2You are managing a growing fleet of OCI Compute instances and need to ensure consistency in environment settings and software packages across all instances. Additionally, you want to avoid manual configuration drift, and you plan to store all configurations as code. Which two approaches should you implement to maintain a consistent, automated configuration of these resources?
- A
Use OCI Resource Manager to store Terraform configurations in a version control system, referencing environment variables from a centralized code repository.
- B
Configure environment variables on each instance directly using OS-level commands and log changes in a local spreadsheet for documentation.
- C
Leverage the Oracle Cloud Infrastructure Ansible Collection to define a playbook that installs required packages and sets environment variables across all instances automatically.
- D
Include environment variables as user data within each instance creation wizard and update them manually whenever new requirements arise.
Show answer and explanation
Correct answers: A, C
Explanation
Using recognized Infrastructure as Code (IaC) and configuration management tools, such as Terraform (via OCI Resource Manager) and Ansible, ensures that all configuration details are captured, tracked, and version-controlled. These approaches enable automated, repeatable deployments and minimize human error. For more information, see the Oracle Cloud Infrastructure Resource Manager documentation and the Oracle Cloud Infrastructure Ansible Collection guides.
- A. Correct.
Option 1 is correct. Storing Terraform configurations in version control and using OCI Resource Manager allows you to manage infrastructure as code, enabling consistent configuration across all instances. Any updates to environment variables or packages can be tracked and automatically applied through Terraform, reducing manual error. Reference: OCI Resource Manager Documentation.
- B. Incorrect.
Option 2 is incorrect. While manually configuring instances using OS-level commands may work initially, it often leads to configuration drift and is error-prone. Logging changes in a spreadsheet is neither scalable nor reliable for complex environments.
- C. Correct.
Option 3 is correct. Ansible� OCI Collection enables you to define a playbook with tasks that manage necessary packages, environment variables, and even security settings across multiple instances in a controlled, versioned manner. This way, changes are consistently applied without manual intervention. Reference: Oracle Cloud Infrastructure Ansible Collection User Guide.
- D. Incorrect.
Option 4 is incorrect. Specifying environment variables via user data in the instance creation wizard can help with the initial setup, but manual updates are still required whenever new variables or packages are introduced, leading to potential inconsistencies across instances over time.