Oracle Cloud Infrastructure 2021 Multicloud Architect Associate — Question 53
You have been asked to investigate a potential security risk on your company's Oracle Cloud Infrastructure (OCI) tenancy. You decide to start by looking through the audit logs for suspicious activity.
How can you retrieve the audit logs using the OCI Command Line Interface (CLI)? (Choose the best answer.)
Answer options
- A. oci audit event list ג€"-end-time $end-time ג€"-compartment-id $compartment-id
- B. oci audit event list ג€"-start-time $start-time ג€"-compartment-id $compartment-id
- C. oci audit event list ג€"-start-time $start-time ג€"-end-time $end-time ג€"-compartment-id $compartment-id
- D. oci audit event list ג€"-start-time $start-time ג€"-end-time $endג€"time ג€"-tenancy-id $tenancyג€"id
Correct answer: C
Explanation
The correct answer is C because it includes both the start and end time parameters along with the compartment ID, allowing for a specific time range to be queried. Option A is missing the start time, option B lacks the end time, and option D incorrectly uses the tenancy ID instead of the compartment ID, which is necessary for retrieving logs in a specific compartment.