SPLK-1001 Basic Searching and Transforming Commands Practice Question
A user wants to remove duplicate events based on the 'transaction_id' field, keeping only the first occurrence. Which command is appropriate?
⚠ Common exam trap
Candidates often confuse `dedup` with `uniq`, not realizing that `uniq` only removes consecutive duplicates and requires sorted input, while `dedup` works on any field and does not require prior sorting.
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
✓
dedup transaction_id
The `dedup` command removes duplicate events based on specified fields, keeping only the first occurrence by default. Since the user wants to keep the first occurrence of each unique `transaction_id`, `dedup transaction_id` is the correct and simplest approach.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
fields - transaction_id
Why it's wrong here
Removes the field, not duplicates.
- ✗
sort transaction_id | dedup transaction_id
Why it's wrong here
Works but not necessary; dedup itself handles ordering.
- ✓
dedup transaction_id
Why this is correct
Removes duplicates based on field.
- ✗
uniq transaction_id
Why it's wrong here
uniq requires adjacent duplicates.
Go deeper
Related to this question
About these practice questions
This SPLK-1001 question is part of Courseiva's 502-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 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.