1Z0-1067-25 Question 32
Single answerYour organization uses Chef to manage compute instance configurations on Oracle Cloud Infrastructure. The environment includes an auto-scaling configuration for production Compute instances. The Cloud Ops team wants to ensure that newly launched instances automatically receive standard software updates, environment variables, and operating system configurations. Which approach best ensures that each new Compute instance is configured consistently using Chef?
- A
Bake all Chef configuration steps into a custom image and manually run 'chef-client' after instance creation.
- B
Use a Cloud-Init script to install and run Chef during first boot, passing the Chef server information and run list.
- C
Deploy Resource Manager stacks containing Chef recipes for each instance, automatically applying them on launch.
- D
SSH into each instance upon launch, install Chef, and push the recipes from a centralized script.
Show answer and explanation
Correct answer: B
Explanation
Cloud-Init is widely used to bootstrap configuration management agents, including Chef, on first boot in Oracle Cloud Infrastructure. By including the Chef installation steps and specifying the server details and run lists, you ensure each newly launched instance is automatically configured. Refer to official OCI documentation on Compute instances and Cloud-Init usage to learn more about best practices around automating initial instance setup.
- A. Incorrect.
Option 1 is incorrect because baking all steps into a custom image does not automatically run the Chef client on first boot or maintain continuous updates. Manual intervention is also required, risking configuration drift.
- B. Correct.
Option 2 is correct. Using Cloud-Init scripts to bootstrap Chef at instance launch is a common, automated approach. It ensures Chef installation and recipe application happen reliably for every new instance, aligning with best practices on OCI.
- C. Incorrect.
Option 3 is incorrect because Oracle Cloud Infrastructure Resource Manager primarily runs Terraform configurations. While you can integrate with external tools, simply storing Chef recipes in Resource Manager is not adequate to ensure automatic Chef runs on newly launched instances.
- D. Incorrect.
Option 4 is incorrect because manually SSHing into each new instance and installing Chef is time-consuming and error-prone. This method lacks the automated, consistent approach that configuration management tools are designed to provide.