Question 190 of 475
SPLK-1002 Advanced Searching and Statistics Practice Question
A dashboard is slow to load because it runs a search that uses `transaction` to group events into sessions. The search is `index=main source=web | transaction clientip maxspan=30m maxpause=5m`. What is the most effective way to improve performance?
⚠ Common exam trap
Splunk often tests the misconception that `transaction` is the only way to group events into sessions, when in fact `stats` with `bin` or `eventstats` can achieve similar results with far better performance.
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
✓
Replace `transaction` with `stats dc(_time) as session_duration by clientip` and use `bin`
Replacing `transaction` with `stats` and `bin` avoids the expensive event grouping and stateful processing that `transaction` requires. The `transaction` command must hold events in memory to correlate them by `clientip` within time windows, which is slow on large datasets. Using `stats dc(_time)` with `bin` computes session metrics more efficiently by aggregating over time buckets without tracking individual event sequences.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add `| head 1000` before the `transaction` command
Why it's wrong here
Limits events but transaction still processes them; not efficient.
- ✓
Replace `transaction` with `stats dc(_time) as session_duration by clientip` and use `bin`
Why this is correct
`stats` is more efficient and can approximate sessions.
- ✗
Set `maxspan=1h` and `maxpause=1m`
Why it's wrong here
Reduces but doesn't eliminate the transaction overhead.
- ✗
Add `| eval session_id=random()` before transaction
Why it's wrong here
Adds extra computation, doesn't help.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 30, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.