1Z0-1067-25 exam dumps

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

Select 2

You are launching a new Oracle Linux compute instance in Oracle Cloud Infrastructure to run an Apache web server. You want to ensure the Apache packages are installed, the service is enabled, and a custom index.html is placed in /var/www/html at the time the instance first boots. Which two steps should you take to achieve this using cloud-init?

  1. A

    Include a cloud-init script in the instance's 'User Data' field that installs and starts Apache, prefixed with '#cloud-config' or '#!/bin/bash'.

  2. B

    Open TCP port 80 in the instance's security lists or network security groups so external clients can access the web server.

  3. C

    Configure ephemeral memory to store the custom index.html by specifying it under /tmp/ during the instance launch arguments.

  4. D

    Verify the successful execution of the script by checking /var/log/cloud-init-output.log or /var/log/cloud-init.log on the instance.

Show answer and explanation

Correct answers: A, D

Explanation

When launching a compute instance on Oracle Cloud Infrastructure, you can use cloud-init to automate configuration tasks such as installing packages or placing custom files. Including a properly formatted script (e.g., '#cloud-config' or '#!/bin/bash') in the 'User Data' section ensures cloud-init will process and execute your commands at startup. Checking the logs at /var/log/cloud-init-output.log or /var/log/cloud-init.log helps you verify that the script ran successfully. Refer to Oracle� official cloud-init documentation for more details on user data and script formatting best practices.

  • A. Correct.

    Correct. To automatically install and configure Apache during instance initialization, you can place a script in the 'User Data' field. Prefixing with '#cloud-config' or '#!/bin/bash' ensures cloud-init will process and run your commands at first boot.

  • B. Incorrect.

    Incorrect. Although you do need to allow port 80 to reach the web server from the internet, this step is not specifically about using cloud-init. Configuring security lists or network security groups is a separate networking task.

  • C. Incorrect.

    Incorrect. Ephemeral memory is not a recommended place to store persistent web files or configurations. It is wiped during instance reboots, so storing your custom index.html there would not reliably persist.

  • D. Correct.

    Correct. Reviewing the cloud-init logs is a best practice to confirm whether the initialization script ran successfully, troubleshoot failures, and verify that Apache was installed and configured as intended.

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