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:

Chuck
11 days ago
Option B is the way to go. Nice and concise, just how I like my logging queries. Although, I do prefer my coffee like I like my logging queries - strong and black.
upvoted 0 times
...
Franklyn
12 days ago
Hmm, I'm not sure. They all look a bit complicated. Can we get a multiple-choice question on something simpler, like 'What's the best way to make coffee?'
upvoted 0 times
...
Lonny
22 days ago
Because it specifies the correct log group and application log for the search.
upvoted 0 times
...
Norah
26 days ago
Why do you think option B is correct?
upvoted 0 times
...
Tayna
27 days 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
1 months 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
Margurite
16 days ago
User 1: I think option B is the correct syntax for the log search.
upvoted 0 times
...
...
Lonny
1 months ago
I disagree, I believe option B is the right one.
upvoted 0 times
...
Norah
1 months ago
I think the correct syntax is option A.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77