Courseiva
Advanced Searching and StatisticsmediumMultiple SelectObjective-mapped

SPLK-1002 Advanced Searching and Statistics Practice Question

Which TWO of the following are valid uses of the stats command in Splunk? (Choose two.)

⚠ Common exam trap

Watch out — candidates often confuse valid `stats` functions with functions from other contexts (like `mode()` from statistics or `first()` from programming languages) or assume that `median()` is supported when Splunk uses percentile functions instead.

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 values(ip) by user

The `stats` command in Splunk can compute aggregate statistics over fields. `values(ip) by user` is valid because `values()` returns a multivalue list of all distinct `ip` values for each `user`, which is a standard aggregation function. `count by host` is valid because `count` is a default aggregation that counts events per `host`.

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 mode(score) by group

    Why it's wrong here

    mode is not a valid stats function.

  • stats values(ip) by user

    Why this is correct

    Valid: returns list of distinct IPs per user.

  • stats count by host

    Why this is correct

    Valid: counts events per host.

  • stats median(response_time) by server

    Why it's wrong here

    median is not a valid stats function; use perc50.

  • stats first(error_code) by session

    Why it's wrong here

    first is not a stats function.

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 →

How Courseiva writes practice questions · Editorial policy

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.