exam questions

Exam PSE-Cortex All Questions

View all questions & answers for the PSE-Cortex exam

Exam PSE-Cortex topic 1 question 38 discussion

Actual exam question from Palo Alto Networks's PSE-Cortex
Question #: 38
Topic #: 1
[All PSE-Cortex Questions]

Which command-line interface (CLI) query would retrieve the last three Splunk events?

  • A. !search using=splunk_instance_1 query="* | last 3"
  • B. !search using=splunk_instance_1 query="* | 3"
  • C. !query using=splunk_instance_1 query="* | last 3"
  • D. !search using=splunk_instance_1 query="* | head 3"
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
[Removed]
9 months, 2 weeks ago
Selected Answer: D
D. !search using=splunk_instance_1 query="* | head 3" The head command in Splunk is used to limit the number of events returned by the search, starting from the most recent events. Therefore, using head 3 will return the last three events in the results. Here is a brief explanation of why the other options are not correct: *A. !search using=splunk_instance_1 query=" | last 3"**: There is no last command in Splunk's search processing language (SPL). *B. !search using=splunk_instance_1 query=" | 3"**: This syntax is incorrect for limiting results in Splunk. *C. !query using=splunk_instance_1 query=" | last 3"**: Similar to option A, there is no last command in SPL, and !query is not the correct command prefix for searching Splunk in this context.
upvoted 2 times
...
robyn3
9 months, 3 weeks ago
Selected Answer: A
head command is to display first 3 event
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago