1Z0-1067-25 exam dumps

1Z0-1067-25 practice question 38 of 138

Oracle Cloud Infrastructure 2025 Cloud Ops Professional. Professional level, Oracle. Free question with the correct answer and a full explanation.

1Z0-1067-25 Question 38

Select 2

You are launching a pool of Linux compute instances in Oracle Cloud Infrastructure (OCI) that require a series of custom configurations, including creating a specific user account, installing packages, and running a setup script only once at startup. Which two steps must you take to achieve this using cloud-init during the instance launch?

  1. A

    Place your configuration script directly into /etc/cloud/cloud.cfg.d on a running instance after it has already been created.

  2. B

    Provide your custom configuration data in the 'User Data' section when creating the compute instance, ensuring it's loaded by cloud-init.

  3. C

    Set environment variables in a custom image and rely on them to invoke cloud-init automatically at first boot.

  4. D

    Use valid #cloud-config or #cloud-boothook directives in your custom configuration data, so cloud-init processes them at startup.

  5. E

    Enable the 'Startup Script' option in the Networking section of the instance launch wizard to run your setup script.

Show answer and explanation

Correct answers: B, D

Explanation

When using cloud-init on OCI compute instances, the key is to provide a valid configuration or script before the instance completes its first boot. Placing the script in the 'User Data' field (Option 2) and ensuring it follows recognized formats like #cloud-config or #cloud-boothook (Option 4) ensures cloud-init automatically processes and applies the configuration. For more details, refer to the Oracle Cloud Infrastructure documentation on cloud-init usage and user data scripting.

  • A. Incorrect.

    Option 1: Incorrect. Placing your configuration script under /etc/cloud/cloud.cfg.d post-creation would require manual intervention after the instance is launched. You need the script to run automatically on first boot, so it must be supplied before the instance boots for the first time.

  • B. Correct.

    Option 2: Correct. OCI supports passing user data that cloud-init will process on first boot. Providing the script in the 'User Data' field is the recommended approach to ensure automatic configuration without manual steps.

  • C. Incorrect.

    Option 3: Incorrect. Simply setting environment variables in a custom image does not guarantee that cloud-init will automatically run a specific setup sequence. Cloud-init needs a properly specified user data script or config to execute on first boot.

  • D. Correct.

    Option 4: Correct. Cloud-init recognizes scripts or configuration in #cloud-config or #cloud-boothook format. Using these directives ensures that cloud-init can parse and run the commands as intended.

  • E. Incorrect.

    Option 5: Incorrect. The 'Startup Script' field under the Networking section is not designed for cloud-init configurations. You must use the 'User Data' section or a supported method for cloud-init.

Timed practice exam

Take a 1Z0-1067-25 practice test under exam conditions

60 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam