Splunk certification · Exam SPLK-1002

SPLK-1002 Mock Exam Page 3

Splunk Core Certified Power User Exam

Free SPLK-1002 mock exam questions 21–30, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free SPLK-1002 questions

21–30 of 91 free
Question 21 Choose 1
The timechart command buckets data in time intervals depending on:
Show answerHide answer

Correct answer: B the selected time range

Explanation

Explanation:

The timechart command automatically determines appropriate time buckets (i.e., span intervals) based on the time range of the search. For example:

A 5‑minute search might bucket by 1s or 10s
A 1‑hour search might bucket by 1m or 5m
A 7‑day search might bucket by 1d or 1h

You can override the automatic bucket size with the span= argument (e.g., timechart span=30m count by status), but the default behavior is driven by the time range.

Why the other options are incorrect:

A. the number of events returned
– The number of events does not determine the bucket interval. Buckets are time‑based, not count‑based. You could have thousands of events in one bucket or zero in another depending on the time range and span.

C. the type of visualization selected
– The visualization type (e.g., column chart, line chart, area chart) affects how the bucketed data is displayed, but it has no impact on how the data is bucketed. The same timechart results can be rendered as different visualizations without changing the underlying buckets.

Additional exam note:
You can force a specific bucket size using span= (e.g., span=5m).
If span is not provided, Splunk calculates an optimal span based on the time range and the total number of buckets desired (usually ~30 buckets or fewer).

References:

Splunk Documentation:
“The timechart command buckets events into time buckets. If you do not specify a span, Splunk determines the span based on the time range of the search.”
Question 22 Choose 1
A POST workflow action will pass which types of arguments to an external website?
Show answerHide answer

Correct answer: B A mix of clear text strings and variables.

Explanation

Explanation:

A POST workflow action in Splunk allows you to send an HTTP POST request to an external website. When configuring the action, you can define the POST arguments as a mix of literal (clear text) strings and Splunk field names (variables). Splunk replaces the variable placeholders (e.g., $host$, $source$) with actual values from the event at runtime. For example: src_ip=$src$&dest_ip=$dest$&action=send_alert

Why the other options are incorrect:

A. Clear text only
– Incorrect. You can (and often must) include variable substitutions; otherwise, every request would send identical static data, making the workflow action useless for event‑driven contexts.

C. It can only send raw event data
– Incorrect. A POST workflow action can send any combination of static strings and extracted field values. It is not limited to sending the entire raw event ($_raw$), though you can include $_raw$ as a variable if needed.

D. Variables only
– Incorrect. While variables are common, you also need literal strings for parameter names, separators (e.g., = and &), and fixed values. A POST action cannot be composed of variables alone because the parameter structure must be defined.

Additional exam note:
GET workflow actions append arguments to the URL as query parameters.
POST workflow actions send arguments in the request body (form‑encoded or JSON).
Variable syntax: $field_name$
Unresolved variables are passed as empty strings.

References:

Splunk Documentation:
“Workflow actions – Configure a POST action. You can specify arguments as a mix of static strings and field values using fiel d field syntax.”
Question 23 Choose 1
When using the transaction command, how are evicted transactions identified?
Show answerHide answer

Correct answer: D open_txn field is set to 1, or true.

Explanation

Explanation:

When using the transaction command, Splunk keeps track of open transactions in memory. If a transaction remains open (waiting for additional events) beyond certain limits (e.g., maxevents, maxspan, maxpause), it may be evicted from memory. Evicted transactions are those that were forced to close because they exceeded the defined constraints.

Why the other options are incorrect:

A. Closed_txn field is set to 0, or false – There is no standard closed_txn field added by transaction. Transactions are simply closed naturally when conditions are met; eviction is indicated by open_txn=1.

B. Max_txn field is set to 0, or false – No standard max_txn field exists for the transaction command. maxevents, maxspan, and maxpause are configuration parameters, not output fields.

C. Txn_field is set to 1, or true – There is no generic txn_field. The transaction command creates a field named after the transaction (default transaction or a named field), but that field holds a unique transaction ID, not a true/false eviction flag.

Additional exam note:
open_txn is most useful when debugging transaction behavior or analyzing why transactions are being closed/evicted.

Example search:
... | transaction host maxspan=5m | search open_txn=1

References:

Splunk Documentation:
“The transaction command adds fields including open_txn. A value of 1 means the transaction was evicted from memory before being closed by a subsequent event.”
Question 24 Choose 1
This clause is used to group the output of a stats command by a specific name.
Show answerHide answer

Correct answer: D By

Explanation

Explanation:

Why D is correct: The by clause is used in conjunction with transforming commands like stats, chart, and timechart to group search results by the distinct values of one or more specified fields. For example, stats count by host groups the resulting counts based on each unique host name.

Why A is incorrect: rex is an independent command used to extract fields inline using regular expressions, not a clause within the stats command.

Why B is incorrect: The as clause is used to rename the output field or function result within a command (e.g., stats count as TotalRequests), not to group the data rows.

Why C is incorrect: list() is a specific statistical function used inside the stats command to display all values of a given field for each group; it is not a clause used for grouping the output itself.

Reference:

Splunk Documentation: Search Reference -> stats.
Syntax details: The basic command structure is stats ... [by ], where the by clause dictates how row grouping occurs.
Question 25 Choose 1
Why would the following search produce multiple transactions instead of one?
Show answerHide answer

Correct answer: B The transaction command has a limit of 1000 events per transaction.

Explanation

Explanation:

By default, the transaction command has a maxevents=1000 limit. This means a single transaction will contain at most 1000 events. In the screenshot, you see multiple transactions for the same src_ip (e.g., 107.3.146.207 has num_events showing 1000, 1000, 405). This indicates that the transaction was split into multiple transactions because each exceeded 1000 events. The first two transactions hit the 1000‑event cap, and the remaining 405 events formed a third transaction.

Why the other options are incorrect:

A. The maxspan option is not included
– maxspan controls the maximum time span of a transaction (e.g., maxspan=5m). Omitting maxspan does not cause multiple transactions for the same src_ip; it simply means no time limit is enforced. Events could still be grouped into a single transaction if they don't violate other limits.

C. The transaction and stats commands cannot be used together
– False. They can be used together, as shown in the search. The stats command aggregates the transaction results after transaction has grouped events.

D. The stats list() function is used
– The list(eventcount) function only displays the event counts within each transaction as a multi‑value field. It does not cause transaction to split events into multiple groups. The splitting is caused by transaction, not by stats.

Additional exam note:
To allow larger transactions, increase maxevents (e.g., transaction src_ip maxevents=5000).
Other limits: maxspan (time), maxpause (idle time), maxopentxn (concurrent open transactions).

References:

Splunk Documentation:
“The transaction command has a default maxevents of 1000. A transaction stops when it reaches maxevents, and remaining events may start a new transaction.”
Question 26 Choose 1
What field must be present in order to use the timechart command?
Show answerHide answer

Correct answer: C _time

Explanation

Explanation

The timechart command in Splunk creates time‑based charts by bucketing events over time. To do this, it relies on the _time field, which is a default field in every indexed event. _time represents the timestamp of the event as a UNIX epoch time value. Without _time, timechart would have no way to place events onto a chronological axis or determine which bucket each event belongs to.

Why the other options are incorrect:

A. _raw –
_raw contains the original, unextracted event text. It is not required for timechart. The command works purely on structured fields, especially _time, not raw text.

B. rime –
This appears to be a typo of _time. There is no standard Splunk field named rime. The correct field is _time. The exam occasionally includes intentional typos as distractors.

D. index –
index identifies which data partition holds the events. While useful for restricting searches, it is not required for timechart to function. timechart can run on a single index or multiple indexes without referencing the index field directly in the command.

Additional exam note:
If events are missing a valid _time field (extremely rare for indexed data), Splunk assigns the current system time during indexing, but timechart still requires the field to exist.

You can override the time field with other time‑based fields using the _time alias feature, but the command still depends on some time field being present.

References:

Splunk Documentation:
“The timechart command requires the _time field. It uses _time to determine the time bucket for each event.”
Question 27 Choose 1
Which search retrieves events with the event type web_errors?
Show answerHide answer

Correct answer: B eventtype=web_errors

Explanation

Explanation:

When you create an event type named web_errors, Splunk automatically adds an eventtype field to all matching events. To search for events that have been categorized with that event type, you use the search string eventtype=web_errors. This works just like searching any other field-value pair.

Why the other options are incorrect:

A. tag=web_errors
– Tags are separate knowledge objects applied to field-value pairs (e.g., tag=high_severity). The tag field is unrelated to eventtype. Searching tag=web_errors would only find events where a tag named web_errors was explicitly added, not events with the web_errors event type.

C. eventtype "web errors"
– This is invalid syntax. Splunk requires an equals sign (=) for field-value searches. Quotation marks alone do not create a valid field comparison. The correct form would be eventtype="web errors" (if the event type name contained a space), but event type names cannot contain spaces in practice.

D. eventtype (web_errors)
– Parentheses are not used to specify field values in basic searches. This syntax would be interpreted incorrectly; Splunk might look for a function or subsearch, not a literal event type name.

Additional exam note:
Event type names follow similar rules to field names: no spaces, case-sensitive, use underscores or camelCase for readability.

You can also search for multiple event types:
eventtype=web_errors OR eventtype=web_warnings

Event types are evaluated at search time and can include wildcards in their definition, but the search to retrieve them still uses eventtype=exact_name.

References:

Splunk Documentation:
“Once you define an event type, events that match the search string are tagged with eventtype=. Search for eventtype= to find those events.”
Question 28 Choose 1
Which knowledge object is used to normalize field names to comply with the Splunk Common Information Model (CIM)?
Show answerHide answer

Correct answer: A Field alias

Explanation

Explanation:

The Splunk Common Information Model (CIM) defines a standard set of field names (e.g., src, dest, user, action) for normalizing data across different source types. When your raw data contains field names that do not match the CIM standard (e.g., client_ip instead of src, or target_user instead of user), you use field aliases to create alternate names for those fields. This makes your data CIM-compliant without modifying the original indexed data.

Why the other options are incorrect:

B. Event types
– Event types categorize events based on a search string (e.g., failed_login). They add an eventtype field to events but do not rename or normalize existing field names. They are used for classification, not field name alignment.

C. Search workflow action
– Workflow actions define links to external URLs or POST requests based on field values. They are used for enrichment or external integration, not for field name normalization.

D. Tags
– Tags add descriptive labels to specific field-value pairs (e.g., tag=high_severity). While tags can help identify CIM-compliant events, they do not rename fields. Field aliases are the correct tool for normalizing field names to CIM standards.

References:

Splunk Documentation:
“Field aliases are used to normalize field names to comply with the Common Information Model (CIM).”
Question 29 Choose 1
Which of the following options will define the first event in a transaction?
Show answerHide answer

Correct answer: A startswith

Explanation

Explanation:

The transaction command uses startswith and endswith options to define the boundaries of a transaction. startswith specifies a search or condition that marks the first event in a transaction.

Why the other options are incorrect:

B. with
– The with clause is not a valid option for the transaction command. It may appear in other commands (e.g., join type=outer), but it does not define transaction boundaries.

C. startingwith
– This is not a valid transaction option. The correct syntax is startswith (one word, no "ing").

D. firstevent
– There is no firstevent option in the transaction command. While the concept of "first event" exists in transaction logic, it is specified using startswith, not firstevent.

References:

Splunk Documentation:
“The startswith option defines the condition that marks the first event in a transaction.”

SPLK‑1002 Exam Blueprint:
Search Commands → transaction → startswith and endswith options.
Question 30 Choose 2
For choropleth maps,splunk ships with the following KMZ files (select all that apply)
Show answerHide answer

Correct answer: A, D States of the United States Countries of the World

Explanation

Explanation:

Splunk ships with two default KMZ files for use in choropleth maps: States of the United States and Countries of the World. These files provide predefined geographic boundaries that allow users to visualize data across regions without needing to upload custom KMZ files.

States of the United States
→ This KMZ file (geo_us_states.kmz) contains polygon boundaries for all U.S. states. It is commonly used to display metrics such as web traffic, sales, or security events aggregated by state. For example, a search returning counts by state can be directly mapped to this KMZ file to produce a shaded choropleth visualization.

Countries of the World
→ This KMZ file (geo_countries.kmz) provides boundaries for all recognized world countries. It is useful for global datasets, such as international traffic analysis, worldwide sales distribution, or monitoring events across multiple countries.

These two files are bundled with Splunk Enterprise and Splunk Cloud, ensuring that users can immediately build geographic visualizations without external dependencies.

❌ Why Other Options Are Incorrect

B. States and provinces of the United States and Canada
→ Not shipped by default. Splunk does not include Canadian provinces in its default KMZ files. If you need North American coverage beyond U.S. states, you must upload a custom KMZ file.

C. Countries of the European Union
→ Also not included by default. Splunk does not provide EU‑specific boundaries. Users must upload a custom KMZ file if they want to visualize EU countries separately

. 🔗 References
Splunk Docs – Choropleth maps overview
Splunk Visualization Guide – Default KMZ files
Full mock exam

Sit the SPLK-1002 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real SPLK-1002 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full SPLK-1002 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 306questions in the bank
  • Newmock on every attempt