1Z0-1067-25 Question 25
Single answerYou are a Cloud Ops Professional responsible for deploying an application across multiple environments in Oracle Cloud Infrastructure. You want to ensure consistent OS-level configuration, installed packages, and environment variables for each newly provisioned compute instance. Additionally, you want to keep these configurations in version control to minimize drift. Which approach best meets these goals?
- A
Create a custom image with the required software preinstalled and replicate it across all environments, manually updating the image whenever changes are needed.
- B
Use Terraform to provision compute instances across environments, then apply a configuration management tool (e.g., Ansible or Chef) to standardize OS-level settings and maintain version control of configurations.
- C
Deploy all environments using Oracle Resource Manager in one go, ensuring that each environment has identical resources and configuration by default.
- D
Leverage instance user_data to run a single initialization script that installs packages on first boot for each instance, without ongoing configuration management.
Show answer and explanation
Correct answer: B
Explanation
Leveraging Terraform for infrastructure as code and pairing it with a configuration management tool (e.g., Ansible, Chef) is a commonly recommended best practice for repeatable deployments and consistent configuration across cloud environments. According to Oracle Cloud Infrastructure documentation, separating infrastructure provisioning (Terraform) from application and system configuration (config management tool) promotes clearer version control, reduces drift, and eases maintenance over time.
- A. Incorrect.
Option 1 is incorrect because relying solely on manually updated custom images can lead to version drift over time and lacks the flexibility or version control mechanism offered by dedicated configuration management tools.
- B. Correct.
Option 2 is correct. Terraform handles infrastructure provisioning, while a configuration management tool such as Ansible or Chef ensures consistent OS-level configurations and installed packages. This approach allows you to maintain version control of both infrastructure (through Terraform files) and configurations (through playbooks, recipes, etc.), minimizing drift across environments.
- C. Incorrect.
Option 3 is incorrect because using Oracle Resource Manager alone primarily helps automate resource creation but does not maintain ongoing OS-level consistency. You would still need a separate mechanism for ongoing configuration management and version control to minimize drift.
- D. Incorrect.
Option 4 is incorrect because relying solely on instance user_data for initial setup does not provide a robust way to manage configuration changes over time. Once instances are running, there is no built-in control to ensure the environment remains consistent if further adjustments are required.