1Z0-1067-25 exam dumps

1Z0-1067-25 practice question 41 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 41

Single answer

You have just launched an Oracle Linux instance in Oracle Cloud Infrastructure (OCI). You want to install Apache, create a new 'webadmin' user group, and run a custom script automatically on the instance's first boot. Which single approach ensures your cloud-init directives are properly applied and verified during instance initialization?

  1. A

    Provide a script in the instance� 'Cloud-Init Script' section under 'Advanced Options' when creating the instance

  2. B

    Manually edit /etc/cloud/cloud.cfg on the running instance to include your Apache installation and user-group creation tasks

  3. C

    Use the Oracle Cloud Agent to run the custom tasks after the instance starts

  4. D

    Place your custom script in /usr/lib/systemd/system to ensure it runs at boot

Show answer and explanation

Correct answer: A

Explanation

Cloud-init is specifically designed in OCI to handle custom instance initialization tasks, such as installing packages and running scripts on first boot. The recommended practice is to supply these directives as user data (often in YAML or MIME multipart format) when creating the compute instance. Reference: Oracle Cloud Infrastructure documentation on configuring instances with cloud-init.

  • A. Correct.

    Correct. In OCI, you can embed your cloud-init directives in a user data script under the 'Advanced Options' tab when launching the instance. Cloud-init will process the YAML or MIME multipart data on first boot, ensuring Apache installation, user group creation, and custom scripts are executed automatically.

  • B. Incorrect.

    Incorrect. Although /etc/cloud/cloud.cfg can be used to configure some global cloud-init settings, it is not the recommended place for adding custom first-boot tasks. Instead, user data or multi-part MIME files are typically used for these specific actions.

  • C. Incorrect.

    Incorrect. While the Oracle Cloud Agent provides some management and monitoring features, it does not handle cloud-init directives for first-boot initialization. Cloud-init is specifically responsible for executing scripts and configurations during instance provisioning.

  • D. Incorrect.

    Incorrect. Placing scripts in /usr/lib/systemd/system does not integrate with cloud-init. Systemd units can run services at boot, but this approach lacks the cloud-init orchestration to manage first-boot tasks alongside other user data configurations.

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