1Z0-1067-25 exam dumps

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

Select 2

Your development team wants to implement a nightly test environment pipeline using the OCI CLI. The pipeline must launch a new compute instance with shape VM.Standard3.Flex in a specified subnet of a given compartment, wait until the instance is running, and then remove the instance once testing completes. Which two of the following steps correctly accomplish this?

  1. A

    Use 'oci compute instance launch' with the --wait-for-state RUNNING parameter to create and wait for the instance to reach the RUNNING state

  2. B

    Run 'oci compute instance attach-volume' to verify that the compute instance has reached the RUNNING state

  3. C

    Use 'oci compute instance terminate' with the --force option to remove the instance after testing completes

  4. D

    Use 'oci compute instance get' before launching the instance to confirm an available shape in the correct compartment

Show answer and explanation

Correct answers: A, C

Explanation

In a common automation scenario, you can provision and subsequently tear down compute instances in Oracle Cloud Infrastructure using the CLI. Use 'oci compute shape list' or known shape details to determine valid shapes before launching. Then, use 'oci compute instance launch' with parameters for shape, compartment, subnet, and --wait-for-state RUNNING to ensure the instance is fully started. Finally, use 'oci compute instance terminate --force' to clean up once testing completes. For full documentation, see Oracle� CLI reference (https://docs.oracle.com/en-us/iaas/Content/CLI/Reference/compute.htm).

  • A. Correct.

    Correct. The 'oci compute instance launch' command can include the --wait-for-state parameter (e.g., RUNNING) to wait until the instance is fully running before proceeding. This is a common approach for automation scripts that rely on the instance being in a specific state before executing further steps. Note that you must provide the shape, subnet, and compartment OCIDs (or names, if configured) correctly.

  • B. Incorrect.

    Incorrect. 'oci compute instance attach-volume' is used to attach a storage volume to an existing compute instance, not to check its operational state. This would not confirm the instance is running. It only ensures additional storage is attached to a specified instance.

  • C. Correct.

    Correct. 'oci compute instance terminate' is used to destroy the instance and free associated resources. The --force option bypasses the confirmation prompt, making it suitable for automated cleanup in scripts after testing completes.

  • D. Incorrect.

    Incorrect. 'oci compute instance get' retrieves information about an existing instance by its OCID. You cannot confirm an instance's shape or compartment availability before creation using this command. Typically, you either query available shapes with 'oci compute shape list' or simply specify the shape during launch.

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