SPLK-1002 Advanced Visualization and Lookups Practice Question
Exhibit
| inputlookup employee_data.csv | stats count by department | sort - count | top limit=5 department
Refer to the exhibit. A user runs this search expecting to see the top 5 departments by count, but the results show all departments. What is the error?
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
✓
The top command already calculates a count, so stats is unnecessary and can cause conflict
The top command already calculates a count and sorts, so using stats before top is redundant and can cause unexpected results. The correct approach is to use 'top limit=5 department' directly on the inputlookup without stats.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The limit parameter in top should be written before the field name
Why it's wrong here
The syntax is correct: top limit=N field.
- ✗
The sort command should be placed before stats
Why it's wrong here
Sort order does not cause the issue; top does its own sorting.
- ✗
The inputlookup should be used with a subsearch
Why it's wrong here
No subsearch is needed.
- ✓
The top command already calculates a count, so stats is unnecessary and can cause conflict
Why this is correct
Using both may result in showing all departments because top may operate on the stats output incorrectly.
Go deeper
Related to this question
About these practice questions
One of 475 original SPLK-1002 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-1002 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-1002 exam.