1Z0-1067-25 Question 3
Single answerYou have a running Compute instance in Oracle Cloud Infrastructure (OCI) 2025 located in a 'Dev' compartment, but your organization now requires the instance to be managed under the 'Prod' compartment for compliance. You want to minimize downtime and avoid recreating resources. Which approach should you take?
- A
Use the 'Move Resource to Another Compartment' functionality in the OCI Console or API, ensuring 'Prod' has the necessary IAM policies in place to host the instance.
- B
Terminate the instance in 'Dev' and recreate it in 'Prod' using a custom image, ensuring you replicate all associated resources manually.
- C
Open a service request with Oracle Support to export the instance configuration and then import it into the 'Prod' compartment.
- D
Edit the instance's metadata to change the compartment attribute to 'Prod' and restart the instance to apply the change.
Show answer and explanation
Correct answer: A
Explanation
In OCI 2025, you can use the 'Move Resource to Another Compartment' feature to relocate resources such as Compute instances without terminating them. Before moving resources, ensure the target compartment has the correct IAM policies granting required permissions. Refer to the official Oracle Cloud Infrastructure documentation on moving resources between compartments for additional details and best practices.
- A. Correct.
Correct. OCI supports moving many resource types, including Compute instances, between compartments without terminating them. You must ensure appropriate IAM policies exist in the target compartment. This approach minimizes resource downtime.
- B. Incorrect.
Incorrect. While this method eventually places the instance in the 'Prod' compartment, it involves unnecessary downtime and manual replication of resources, which is not the recommended approach.
- C. Incorrect.
Incorrect. Moving resources between compartments is an OCI feature you can perform directly in the Console or via the API. You do not need to open a service request for this task.
- D. Incorrect.
Incorrect. Simply editing metadata is not a supported method for changing a resource� compartment. The correct procedure involves using the OCI Console or API to perform a compartment move.