- A
Use `transaction call_id maxevents=4 maxspan=2h` to limit to exactly 4 events.
Correct: maxevents=4 ensures only the expected events are grouped, reducing memory and processing time.
- B
Use `transaction call_id maxspan=2h` and then filter using `where mvcount(_raw) = 4`.
Why wrong: Incorrect: This still generates large transactions in memory before filtering, causing memory errors.
- C
Use `eventstats count by call_id` and then filter.
Why wrong: Incorrect: eventstats does not correlate events in time order or group them into a single event per call.
- D
Use `search` with `call_id=*` and then use `streamstats` to calculate duration per call.
Why wrong: Incorrect: streamstats processes events sequentially without clear grouping; it doesn’t create a single event per call with all fields.
Limiting Events Per Transaction with maxevents in Splunk
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 telecom company monitors call detail records (CDR). Each call has a unique call_id, and events are generated at each network node (setup, ringing, answer, hangup) with timestamps. The events are from different sourcetypes (cdr_setup, cdr_ring, etc.) and are indexed in near real-time. The analyst needs to correlate all events for the same call_id to calculate call duration. The current search is: `index=telecom sourcetype=cdr_* | transaction call_id maxspan=2h`. This search works but sometimes produces huge transactions (100+ events) due to noisy data, causing memory errors. The analyst has identified that each call should have exactly 4 events: setup, ringing, answer, hangup. Which approach would best correlation with minimal resource usage?
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
Use `transaction call_id maxevents=4 maxspan=2h` to limit to exactly 4 events.
Option A is correct because `maxevents=4` directly limits the transaction to exactly four events per call_id, preventing memory errors from noisy data while ensuring each transaction contains the expected setup, ringing, answer, and hangup events. This constraint is applied during the transaction command itself, reducing resource usage by discarding oversized groups immediately rather than post-processing.
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.
- ✓
Use `transaction call_id maxevents=4 maxspan=2h` to limit to exactly 4 events.
Why this is correct
Correct: maxevents=4 ensures only the expected events are grouped, reducing memory and processing time.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Use `transaction call_id maxspan=2h` and then filter using `where mvcount(_raw) = 4`.
Why it's wrong here
Incorrect: This still generates large transactions in memory before filtering, causing memory errors.
- ✗
Use `eventstats count by call_id` and then filter.
Why it's wrong here
Incorrect: eventstats does not correlate events in time order or group them into a single event per call.
- ✗
Use `search` with `call_id=*` and then use `streamstats` to calculate duration per call.
Why it's wrong here
Incorrect: streamstats processes events sequentially without clear grouping; it doesn’t create a single event per call with all fields.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Splunk often tests the misconception that post-filtering (e.g., `where mvcount(_raw) = 4`) is equivalent to using `maxevents`, but the trap is that post-filtering does not prevent memory errors during the transaction assembly phase.
Detailed technical explanation
How to think about this question
The `transaction` command uses a state machine to group events based on fields like `call_id`, and `maxevents` sets a hard limit on the number of events per transaction, which is evaluated as events are added. This prevents memory exhaustion by rejecting transactions that exceed the limit before they are fully assembled, unlike post-filtering approaches that still consume memory for oversized groups. In noisy environments, `maxevents` also improves performance by reducing the number of events the transaction command must hold in memory.
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.
Quick reference
Common DNS Record Types
| Record | Purpose | Example |
|---|---|---|
| A | IPv4 address mapping | example.com → 93.184.216.34 |
| AAAA | IPv6 address mapping | example.com → 2606:2800::1 |
| CNAME | Alias to another hostname | www → example.com |
| MX | Mail server for domain | example.com → mail.example.com (priority 10) |
| TXT | Text data (SPF, DKIM, verification) | v=spf1 include:_spf.example.com ~all |
| NS | Authoritative name servers | example.com NS ns1.example.com |
| PTR | Reverse DNS (IP → hostname) | 34.216.184.93.in-addr.arpa → example.com |
| SOA | Zone authority record | Primary NS, admin email, serial, TTL defaults |
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: Use `transaction call_id maxevents=4 maxspan=2h` to limit to exactly 4 events. — Option A is correct because `maxevents=4` directly limits the transaction to exactly four events per call_id, preventing memory errors from noisy data while ensuring each transaction contains the expected setup, ringing, answer, and hangup events. This constraint is applied during the transaction command itself, reducing resource usage by discarding oversized groups immediately rather than post-processing.
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
2 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. An analyst uses transaction to group web requests by session_id. Some transactions are unexpectedly large, containing hundreds of events. What parameter should be adjusted to limit the number of events per transaction?
medium- A.maxspan
- B.maxpause
- C.mvcount
- ✓ D.maxevents
Why D: Option D is correct because maxevents limits the number of events in a transaction. Option A (maxspan) limits the maximum time span of the transaction. Option B (maxpause) limits the maximum pause between events. Option C (mvcount) is used to count multivalue fields, not to limit event count.
Variation 2. A financial services company uses Splunk to monitor transactions between internal systems. Each transaction consists of a request event and a response event with identical fields: transaction_id, timestamp, component, status. The request event has component='app' and status='request'; the response event has component='db' and status='success' or 'failure'. The analyst runs the following search to correlate them: `index=main (component=app OR component=db) | transaction transaction_id maxspan=30s`. However, they notice that the search takes too long and often times out when there are many transactions. What change would most effectively reduce search time while still correctly grouping request-response pairs?
easy- A.Use `transaction transaction_id maxspan=30s` with a time range picker to limit the search to a smaller time window.
- B.Use `stats values(*) as * by transaction_id` and then filter.
- C.Use `rename component to type` and then use `transaction`.
- ✓ D.Use `transaction transaction_id maxevents=2 maxspan=30s`.
Why D: Option D is correct because adding `maxevents=2` limits each transaction to exactly two events (a request and a response), preventing large groupings that cause memory issues and timeouts. The `maxspan=30s` already sets a time window. Option A (using a time range picker) does not address the internal grouping inefficiency. Option B (`stats values(*) as * by transaction_id`) does not maintain event order and can mix fields, failing to properly correlate request-response pairs. Option C (renaming component to type) does not improve performance.
Keep practising
More SPLK-1003 practice questions
- 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…
- An analyst wants to find the top 5 users who have the highest total bytes transferred. The data has fields 'user' and 'b…
Last reviewed: Jul 4, 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.