SPLK-1001 Basic Searching and Transforming Commands Practice Question
A user wants to find events where the status code is 500 or 503 and the response time is greater than 2 seconds. Which TWO SPL commands will correctly limit the results to only these events?
⚠ Common exam trap
Splunk often tests the misconception that commas can substitute for OR operators in SPL, or that omitting parentheses in a mixed AND/OR expression will still yield correct results due to assumed left-to-right evaluation.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
search (status=500 OR status=503) AND response_time>2
It uses the `search` command with explicit parentheses to group the OR conditions, ensuring the logical AND with `response_time>2` applies to the entire set of status codes. This matches the requirement to find events where status is 500 or 503 AND response time exceeds 2 seconds.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
status=500,503 AND response_time>2
Why it's wrong here
Commas are not valid separators in search syntax; the IN operator should be used instead.
- ✗
search status=500 OR status=503 response_time>2
Why it's wrong here
This is missing parentheses around the OR conditions, so the search may be interpreted incorrectly.
- ✗
status=500 OR status=503 | where response_time>2
Why it's wrong here
The pipe after OR without parentheses causes the where clause to apply only to the second condition.
- ✓
search (status=500 OR status=503) AND response_time>2
Why this is correct
This correctly groups the OR conditions and applies the AND operator.
- ✓
status IN (500,503) | where response_time>2
Why this is correct
The IN operator efficiently checks for multiple values, and the where command filters response time.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SPLK-1001 question from scratch — 502 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SPLK-1001 practice question is part of Courseiva's free Splunk certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SPLK-1001 exam.