SPLK-1002 Transactions and Event Correlation Practice Question
A user wants to see a single consolidated event for each user session that includes the start time, end time, and total duration. The session events have a 'action' field with values 'start' and 'end' and a common 'user_id'. Which transaction command would achieve this?
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
✓
`transaction user_id startswith=action=start endswith=action=end`
Using startswith and endswith defines the boundary events, and transaction automatically calculates duration when there are start and end events.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
`transaction user_id startswith=action=start endswith=action=end`
Why this is correct
Correctly defines session boundaries using action values.
- ✗
`transaction startswith=action=start endswith=action=end`
Why it's wrong here
Missing the field to group by; it would create transactions across all users.
- ✗
`transaction user_id`
Why it's wrong here
Without startswith/endswith, it would group all events for that user regardless of start/end.
- ✗
`stats values(action) by user_id`
Why it's wrong here
stats does not provide duration or preserve event order.
Go deeper
Related to this question
About these practice questions
This SPLK-1002 question is part of Courseiva's 475-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-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.