SPLK-1001 Using Fields and Lookups Practice Question
A search uses a lookup that returns a field 'priority'. The admin wants to use the lookup only for events where the 'source' is 'firewall'. Which command should be used?
⚠ Common exam trap
Splunk often tests the order of operations in the Splunk search pipeline, where candidates mistakenly think a `WHERE` clause inside the lookup command or a post-lookup filter achieves the same result as pre-filtering with a leading search term.
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
✓
source=firewall | lookup priority_lookup source OUTPUT priority
It first filters events with `source=firewall` using a search-time field filter, then applies the `lookup` command only to those events. This ensures the lookup is performed exclusively on firewall events, minimizing resource usage and avoiding unnecessary lookups on other sources.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
source=firewall | lookup priority_lookup source OUTPUT priority
Why this is correct
Filters first, then lookup only on those events.
- ✗
| lookup priority_lookup source OUTPUT priority
Why it's wrong here
Runs on all events.
- ✗
| lookup priority_lookup source OUTPUT priority | where source="firewall"
Why it's wrong here
Lookup still runs on all events.
- ✗
| lookup priority_lookup source OUTPUT priority WHERE source="firewall"
Why it's wrong here
Invalid syntax.
Go deeper
Related to this question
About these practice questions
One of 502 original SPLK-1001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.