Courseiva
Basic Searching and Transforming CommandseasyMultiple ChoiceObjective-mapped

SPLK-1001 Basic Searching and Transforming Commands Practice Question

Exhibit

Refer to the exhibit.
index=main | eval severity = case(error=1, "Error", warning=1, "Warning", 1=1, "Info") | stats count by severity

Refer to the exhibit. A user runs this search. The results show only Error and Warning, but no Info. What is the most likely reason?

⚠ Common exam trap

Splunk often tests the misconception that stats returns all possible values of a field, when in fact it only returns values that appear in the events, omitting zero-count buckets.

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 stats command omitted the info severity because it has zero count.

The stats command with count() only returns results for field values that have at least one event. Since no events had severity=Info after the eval, Info has a count of zero and is omitted from the output. This is the expected behavior of stats — it does not include zero-count buckets unless explicitly requested with the `usenull=f` or similar options.

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 eval command has a syntax error.

    Why it's wrong here

    The eval syntax is correct.

  • The stats command omitted the info severity because it has zero count.

    Why this is correct

    Stats by default only shows values present in data; zero-count categories are omitted.

  • The sort command filters out Info.

    Why it's wrong here

    No sort is used.

  • The case statement does not evaluate to a string for Info.

    Why it's wrong here

    The condition 1=1 is always true, so it should produce Info.

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 →

How Courseiva writes practice questions · Editorial policy

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.