Question 1
Topic: Deploying and Managing Resources
Skill tested: Uses OCI CLI queries to identify resources and safely target lifecycle operations.
An operations team must remove a set of test compute instances from a compartment after a project ends. Production instances are in the same compartment, and the team must avoid selecting resources by display name because names are not unique. Before issuing any termination commands, an operator wants to verify the exact instance OCIDs and lifecycle states using the OCI CLI. Which approach best supports a controlled selection?
A compartment-scoped OCI CLI listing provides instance records, including OCIDs and lifecycle states. A unique tag can narrow the results, but the operator should review the specific OCIDs before any destructive action. Display names are not reliable identifiers, so B risks affecting production. Metrics are for monitoring and do not provide a safe resource-lifecycle selection mechanism. Launch time alone is not a reliable project membership criterion, making D unsafe.