- A
Remove the maxpause option from the transaction command to simplify grouping.
Why wrong: Removing maxpause would group all events for a user within the maxspan, regardless of gaps, increasing memory use.
- B
Reduce maxspan to 4h to limit the time window for grouping events.
Why wrong: This may miss legitimate sessions longer than 4 hours, causing incomplete correlations.
- C
Replace the transaction command with a stats command using earliest and latest functions on the event type.
Using `stats earliest(_time) as login, latest(_time) as logout by user` is much more memory efficient and still captures session boundaries.
- D
Add maxevents=2 to the transaction command to limit each transaction to exactly two events.
Why wrong: This could miss sessions with multiple failed logins or reconnects, and still requires transaction processing.
Optimizing Transaction Performance — Replacing with stats to Reduce Memory
This SPLK-1003 practice question tests your understanding of transactions and event correlation. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A Splunk administrator notices that a `transaction` command used for correlating VPN login and logout events is consuming excessive memory and causing search timeouts. The transaction groups events by `user` with `maxspan=12h` and `maxpause=30m`. The VPN logs contain millions of events per day. Which design change would most effectively reduce resource consumption while maintaining the ability to correlate logins and logouts within the same session?
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 the transaction command with a stats command using earliest and latest functions on the event type.
Option C is correct because replacing `transaction` with `stats` using `earliest` and `latest` eliminates the in-memory event buffering that causes memory exhaustion. `transaction` holds all events in memory until the transaction boundary (maxspan/maxpause) is reached, which is extremely expensive for millions of VPN events. `stats` processes events in a streaming fashion, computing the first and last timestamps per user without storing the full event list, drastically reducing memory and avoiding timeouts.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Remove the maxpause option from the transaction command to simplify grouping.
Why it's wrong here
Removing maxpause would group all events for a user within the maxspan, regardless of gaps, increasing memory use.
- ✗
Reduce maxspan to 4h to limit the time window for grouping events.
Why it's wrong here
This may miss legitimate sessions longer than 4 hours, causing incomplete correlations.
- ✓
Replace the transaction command with a stats command using earliest and latest functions on the event type.
Why this is correct
Using `stats earliest(_time) as login, latest(_time) as logout by user` is much more memory efficient and still captures session boundaries.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Add maxevents=2 to the transaction command to limit each transaction to exactly two events.
Why it's wrong here
This could miss sessions with multiple failed logins or reconnects, and still requires transaction processing.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Splunk often tests the misconception that reducing time windows or event counts in `transaction` solves memory issues, but the real trap is that `transaction` always buffers events in memory, whereas `stats` is a streaming command that avoids this bottleneck entirely.
Detailed technical explanation
How to think about this question
Under the hood, `transaction` uses a hash table to group events by the `user` field and holds every event in memory until the transaction is finalized (when maxpause or maxspan expires). For millions of events, this hash table can grow to gigabytes. In contrast, `stats` with `earliest(_time)` and `latest(_time)` uses a streaming aggregation that only stores the current minimum and maximum timestamp per user, requiring O(1) memory per user regardless of event count. A real-world scenario: a VPN with 10 million events/day and 50,000 unique users would cause `transaction` to buffer all events per user for up to 12 hours, while `stats` would only store 50,000 timestamp pairs.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the SPLK-1003 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Transactions and Event Correlation — study guide chapter
Learn the concepts, then practise the questions
- →
Transactions and Event Correlation practice questions
Targeted practice on this topic area only
- →
All SPLK-1003 questions
500 questions across all exam domains
- →
Splunk Core Certified Power User SPLK-1003 study guide
Full concept coverage aligned to exam objectives
- →
SPLK-1003 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SPLK-1003 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Advanced Searching and Statistics practice questions
Practise SPLK-1003 questions linked to Advanced Searching and Statistics.
Macros, Saved Searches and CIM practice questions
Practise SPLK-1003 questions linked to Macros, Saved Searches and CIM.
Advanced Visualization and Lookups practice questions
Practise SPLK-1003 questions linked to Advanced Visualization and Lookups.
Transactions and Event Correlation practice questions
Practise SPLK-1003 questions linked to Transactions and Event Correlation.
SPLK-1003 fundamentals practice questions
Practise SPLK-1003 questions linked to SPLK-1003 fundamentals.
SPLK-1003 scenario practice questions
Practise SPLK-1003 questions linked to SPLK-1003 scenario.
SPLK-1003 troubleshooting practice questions
Practise SPLK-1003 questions linked to SPLK-1003 troubleshooting.
Practice this exam
Start a free SPLK-1003 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SPLK-1003 question test?
Transactions and Event Correlation — This question tests Transactions and Event Correlation — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Replace the transaction command with a stats command using earliest and latest functions on the event type. — Option C is correct because replacing `transaction` with `stats` using `earliest` and `latest` eliminates the in-memory event buffering that causes memory exhaustion. `transaction` holds all events in memory until the transaction boundary (maxspan/maxpause) is reached, which is extremely expensive for millions of VPN events. `stats` processes events in a streaming fashion, computing the first and last timestamps per user without storing the full event list, drastically reducing memory and avoiding timeouts.
What should I do if I get this SPLK-1003 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
Same concept, more angles
4 more ways this is tested on SPLK-1003
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A Splunk admin notices that a transaction search using the transaction command takes a long time and consumes high memory. The search correlates events by a high-cardinality field (IP address) across multiple indexers. Which optimization technique should be applied first?
hard- A.Use the fields command to remove unnecessary fields before the transaction.
- ✓ B.Increase maxevents to capture more events per transaction.
- C.Use the keepevicted option to retain incomplete transactions.
- D.Use the local parameter to force local processing.
Why B: The correct optimization technique is to increase maxevents, which allows the transaction command to capture more events per transaction, reducing the number of incomplete transactions and improving performance. The fields command reduces data but does not directly address transaction boundaries. The keepevicted option retains incomplete transactions without optimizing performance. The local parameter limits parallelism, increasing time and memory usage on a single indexer.
Variation 2. A Splunk administrator notices that the 'transaction' command is consuming excessive memory when processing a large dataset. The dataset contains events with a common field 'user_id', and the goal is to group events per user within 1 hour. Which approach would best reduce memory usage while still achieving the desired correlation?
hard- A.Use the 'kvform' command instead of transaction.
- ✓ B.Use a subsearch to first filter events and then apply transaction on the smaller set.
- C.Add more fields to the transaction to make it more specific.
- D.Increase the maxspan value to 2 hours to reduce the number of transactions.
Why B: Option B is correct because using a subsearch first reduces the dataset size before the 'transaction' command processes it, directly addressing the memory issue. The 'transaction' command groups events into memory until they are finalized, so a smaller input set means fewer events held simultaneously, lowering memory consumption while still allowing the 1-hour maxspan correlation per user_id.
Variation 3. A Splunk administrator notices that a transaction command is consuming excessive memory and taking too long to complete. The transaction is defined on a field with high cardinality. Which of the following would most effectively reduce memory usage and improve performance?
easy- A.Increase the maxspan value
- B.Remove the maxspan constraint
- C.Set keepevicted=false
- ✓ D.Use a different field with lower cardinality for grouping
Why D: Option D is correct because the transaction command groups events based on field values, and high cardinality fields create many unique groups, each requiring memory for state tracking. Using a lower-cardinality field reduces the number of concurrent groups, directly lowering memory consumption and processing time. This addresses the root cause rather than adjusting timeouts or eviction policies.
Variation 4. A Splunk administrator is troubleshooting a search that uses the `transaction` command. The search is taking too long to complete and returning incomplete results. Which TWO changes are most likely to improve performance and accuracy of transaction searches? (Choose TWO.)
medium- A.Remove the `maxspan` parameter to allow transactions of any duration.
- B.Use `mvcombine` to combine multivalued fields before the transaction.
- ✓ C.Use `fields` before `transaction` to include only necessary fields.
- D.Increase the `maxevents` value to allow more events per transaction.
- ✓ E.Set an appropriate `maxspan` value based on the expected duration of correlated events.
Why C: Option C is correct because using the `fields` command before `transaction` reduces the amount of data Splunk must process by retaining only the fields necessary for correlation and output. This minimizes memory and CPU overhead, directly improving search performance and reducing the risk of incomplete results due to resource limits.
Keep practising
More SPLK-1003 practice questions
- A telecom company monitors call detail records (CDR). Each call has a unique call_id, and events are generated at each n…
- Which TWO statements correctly describe the behavior of the transaction command in Splunk?
- Which TWO of the following are valid reasons to use the Common Information Model (CIM) in a Splunk environment?
- Arrange the steps to create a new index in Splunk in the correct order.
- A Splunk admin wants to track the number of unique users who accessed a system each hour over the past 24 hours. Which s…
- A search returns many events, and the analyst wants to see a summary table of the top 5 values of the field `src_ip` alo…
Last reviewed: Jun 30, 2026
This SPLK-1003 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-1003 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.