1Z0-1067-25 practice question 12 of 15
You are asked to investigate a potential security risk on your company 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)
Full set: 93 questionsTo retrieve audit logs using the OCI CLI, the oci audit event list command is used. This command requires a compartment ID (--compartment-id) to specify the scope of the search. To effectively investigate suspicious activity within a specific timeframe, it is best practice to provide both a start time (--start-time) and an end time (--end-time). This creates a bounded query that returns a manageable and relevant set of log events for analysis, making it the most complete and correct command among the options.
A. This command is incomplete. It provides a start time but no end time, potentially returning an excessive number of logs from the start time to the present.
B. This command is incomplete. It provides an end time but no start time, which is not a typical or effective way to query a specific period of activity.
D. This command uses an incorrect parameter. The required parameter to specify the scope is --compartment-id, not --tenancy-id. The tenancy's root compartment OCID should be used.
1. Oracle Cloud Infrastructure Documentation. (2024). CLI Reference for Audit. Retrieved from https://docs.oracle.com/en-us/iaas/tools/oci-cli/2.12.1/ociclidocs/cmdref/audit/event/list.html. The documentation specifies --compartment-id, --start-time, and --end-time as required and optional parameters for the list command.
Keep practicing
Take the free 1Z0-1067-25 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 1Z0-1067-25 practice questions
- Question 2Which statement is incorrect regarding replication being turned ON for a bucket named my-…
- Question 4You set up a bastion host in your Virtual Cloud Network (VCN) to allow only your IP ad-dr…
- Question 6Which option is NOT a possible return value for an OCI health check?
- Question 7Which default authentication is used by Ansible modules for Oracle Cloud Infrastructure (…
- Question 8You have created several block volumes in the us-phoenix-1 region in a specific compart-m…
- Question 9Security Testing Policy describes when and how you may conduct certain types of security …
