1Z0-1072-25 Question 25
Single answerYour application team requires a standard operating system configuration with specific pre-installed packages and system-level settings that are not present in any Oracle-provided base images. You need to quickly replicate this exact configuration to multiple new compute instances in Oracle Cloud Infrastructure (OCI). Which image approach should you use to fulfill this requirement effectively?
- A
Use the default Oracle Linux image and install the required packages for each new instance after launch.
- B
Create a custom image from a configured instance and then use that image to launch new instances.
- C
Switch from VM-based compute instances to bare metal instances to preserve environment configurations.
- D
Import an image from your on-premises environment without making any additional modifications.
Show answer and explanation
Correct answer: B
Explanation
Using a custom image in OCI is the recommended approach to maintain a consistent, pre-configured operating system environment across multiple instances. By creating a custom image from a single 'golden' source instance, you ensure that all software, configurations, and dependencies are replicated exactly in newly launched instances. This saves time, reduces errors, and aligns with best practices outlined in the official OCI documentation (see Oracle� documentation on Creating and Managing Custom Images).
- A. Incorrect.
Option 1 is incorrect because repeatedly installing and configuring software for each new instance is time-consuming and prone to configuration drift. Although it works, it does not offer the ease and consistency of using a custom image.
- B. Correct.
Option 2 is correct. Creating a custom image from a properly configured instance captures the OS configuration and installed packages, allowing you to launch new instances quickly with the same settings. This approach provides consistency, repeatability, and faster deployments.
- C. Incorrect.
Option 3 is incorrect because simply switching to bare metal instances does not inherently preserve your custom OS configuration; you would still need to configure each instance from scratch or use some other method (like backups or custom images).
- D. Incorrect.
Option 4 is incorrect because while importing from on-premises can be feasible in some cases, the scenario implies you have already custom-configured an OCI instance. Directly importing an unmodified on-premises image would not provide the exact OCI-based configuration you already built.