Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-1111-25 Topic 5 Question 3 Discussion

Actual exam question for Oracle's 1Z0-1111-25 exam
Question #: 3
Topic #: 5
[All 1Z0-1111-25 Questions]

What is the correct logging CLI syntax for the log search with a query for REST call responses having status code 400, within the web Log Group and the application Log?

Show Suggested Answer Hide Answer
Suggested Answer: B

The correct OCI CLI syntax for searching logs must include the compartment, log group, log, and query:

B: oci logging-search search-logs --search-query 'search 'ocid1.compartment.oc1..aaaaaaaawqegmjifhni77bqm625cxioavoq775jckfn2syxqtmglabcccdxyz/web/application' | where data.statusCode = 400' --time-start 2022-02-06T00:00:00Z --time-end 2022-02-07T00:00:00Z

Specifies the compartment OCID, web Log Group, and application Log in the scope path.

Filters for data.statusCode = 400 using proper syntax (= instead of space).

Includes valid UTC time range.

Why not A, C, or D?

A: Missing log group/log; incorrect filter syntax (400 without =).

C: No filter for status code 400.

D: Incorrect command (oci log instead of oci logging-search); redundant parameters.

B aligns with OCI Logging's search syntax.


Contribute your Thoughts:

Tayna
14 hours ago
I'm going with Option D. It's more straightforward and includes all the required parameters in a cleaner format.
upvoted 0 times
...
Milly
3 days ago
Option B looks good to me. The syntax looks correct and it includes the necessary details like the Log Group, Log, and the status code filter.
upvoted 0 times
...
Lonny
7 days ago
I disagree, I believe option B is the right one.
upvoted 0 times
...
Norah
9 days ago
I think the correct syntax is option A.
upvoted 0 times
...

Save Cancel