1Z0-1067-25 exam dumps

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

Single answer

You have been asked to provision a temporary OCI Compute instance for a short-lived testing environment. First, you need to identify the images available to launch this instance. After launching, you must confirm the instance is up and running, then finally remove it once testing is complete. Which sequence of OCI CLI commands correctly accomplishes these tasks?

  1. A

    oci compute instance launch --display-name TestInstance --compartment-id <compartment_OCID> --shape <shape_name> --image-id <image_OCID>; oci compute image list --compartment-id <compartment_OCID>; oci compute instance terminate --instance-id <instance_OCID> --force; oci compute instance get --instance-id <instance_OCID>

  2. B

    oci compute image list --compartment-id <compartment_OCID>; oci compute instance launch --display-name TestInstance --compartment-id <compartment_OCID> --shape <shape_name> --image-id <image_OCID>; oci compute instance get --instance-id <instance_OCID>; oci compute instance terminate --instance-id <instance_OCID> --force

  3. C

    oci compute instance create --compartment-id <compartment_OCID>; oci compute instance describe --instance-id <instance_OCID>; oci compute instance stop --instance-id <instance_OCID>; oci compute instance remove --instance-id <instance_OCID>

  4. D

    oci compute instance list --compartment-id <compartment_OCID>; oci compute instance provision --shape <shape_name> --image-id <image_OCID>; oci compute instance end --instance-id <instance_OCID>; oci compute instance get --instance-id <instance_OCID>

Show answer and explanation

Correct answer: B

Explanation

When using the OCI CLI to provision resources, it is essential to first gather parameters (like an image OCID) using commands such as 'oci compute image list'. Only then can you launch the instance with the proper flags and verify its status with 'oci compute instance get'. Finally, you terminate the instance with 'oci compute instance terminate --force' when it is no longer needed. Refer to the official Oracle Cloud Infrastructure documentation at https://docs.oracle.com/en-us/iaas/Content/Compute/home.htm for more details on available CLI subcommands and proper usage.

  • A. Incorrect.

    Option 1 is incorrect because you are launching the instance before identifying which images are available. Typically, you would query the images (oci compute image list) first to obtain the appropriate image OCID. Additionally, you are terminating the instance before verifying its status (by using get) in this sequence.

  • B. Correct.

    Option 2 is correct. It follows the logical steps: list available images to retrieve the correct image OCID (oci compute image list), launch the instance (oci compute instance launch), verify its status (oci compute instance get), and finally terminate it (oci compute instance terminate).

  • C. Incorrect.

    Option 3 is incorrect because 'oci compute instance create' is not a valid OCI CLI command, nor is 'oci compute instance describe', 'stop', or 'remove'. These commands do not match actual OCI CLI subcommands. They resemble commands from other cloud providers or hypothetical syntax.

  • D. Incorrect.

    Option 4 is incorrect because 'oci compute instance provision', 'oci compute instance end', and the sequence itself do not reflect valid OCI CLI subcommands or a proper provisioning flow. 'instance list' simply lists existing instances but doesn't help in identifying an image, and 'end' is not the correct term for terminating an instance.

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