SPLK-1004 Transforming Commands And Formatting Practice Question
You need to count the total number of unique users per department using the 'stats' command. Which command syntax is correct?
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
✓
stats dc(user) by department
The 'dc' function (distinct count) is used to count unique values in a field.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
stats list(user) by department
Why it's wrong here
This aggregates values into a list.
- ✗
stats values(user) by department
Why it's wrong here
This lists all values, not the count.
- ✓
stats dc(user) by department
Why this is correct
The dc() function correctly identifies distinct counts.
- ✗
stats count(user) by department
Why it's wrong here
This counts all occurrences, not unique users.
About these practice questions
This SPLK-1004 question is part of Courseiva's 190-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Splunk exam blueprint
This SPLK-1004 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-1004 exam.