Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Splunk Core Certified Power User SPLK-1002 Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 21 Total 315 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Using Transforming Commands for Visualizations

Skill tested: Builds a timechart that reports event counts by status over a rolling 24-hour period.

A service operations team needs a dashboard panel showing how many request events of each status occurred during the preceding 24 hours. The events are indexed in `main`, have a numeric `_time` field, and contain a `status` field. The panel must use hourly time buckets and show each status as a separate series; it should not include events older than the rolling period. Which SPL search best meets the requirement?

Correct Answer: A. `index=main earliest=-24h status=* | timechart span=1h count by status`
Explanation:

The `earliest=-24h` search-time constraint limits the input to the preceding 24 hours, and `timechart span=1h count by status` creates hourly time buckets with a separate series for each status value. The `chart` command in B is not the appropriate time-series transforming command and does not use `span` that way. C filters after transforming the results and may not preserve the intended event-level window reliably; the time constraint belongs in the base search. D aggregates only by status and discards the time axis.

Question 2

New Single answer

Topic: Filtering and Formatting Results

Skill tested: Uses eval to derive a numeric field and where to filter events by its computed value.

A fraud analyst receives transaction events containing `amount` and `discount_pct`. The discount is stored as a percentage from 0 through 100, while the analyst needs to calculate the net amount and retain only events whose net amount is at least 500. The source fields may arrive as strings, so the calculation must produce a numeric result suitable for a numeric comparison. Which SPL pipeline is the best choice?

Correct Answer: A. `... | eval net_amount=tonumber(amount)*(1-tonumber(discount_pct)/100) | where net_amount>=500`
Explanation:

The calculation first converts both potentially string-valued inputs to numbers, converts the percentage to a fraction, and then derives the net amount. `where` can compare the computed numeric field against 500. A fails to divide the percentage by 100 and also assumes numeric field types. C computes a different value for `net_amount`, and its implicit conversions are less reliable for the stated inputs. D converts the derived value to a string, making the threshold comparison unsuitable as a numeric filter.

Question 3

New Multiple answers

Topic: Correlating Events

Skill tested: Configures transaction to group session events and reports transaction duration and event count.

An application team emits several events for each user session. Every event has a `session_id`, but event volume is moderate and sessions can remain active for up to 20 minutes. Analysts need one result per session, limited to sessions observed within the last day, with both elapsed duration and the number of constituent events. They do not need transaction fields beyond those produced by grouping. Which two actions best meet the requirement? Select two.

Correct Answer: A. Use `transaction session_id maxspan=20m` and retain the generated `duration` and `eventcount` fields in the results.; E. Use `transaction session_id maxspan=20m` to group events with the same session identifier within the known maximum session span.
Explanation:

`transaction` groups events by the shared `session_id`, and `maxspan=20m` constrains grouping to the known session duration. It generates `duration` and `eventcount`, so retaining those fields provides the requested elapsed time and event total. `stats count` cannot determine elapsed time, and transaction does not require explicit start and end conditions when grouping by an identifier. No self-referential `eval` is needed to create the generated fields.

Question 4

New Single answer

Topic: Creating and Managing Fields

Skill tested: Creates a Field Extractor regex that captures a named value from raw event text.

A data analyst must extract an order reference from raw events such as `accepted order_ref=ORD-58391 region=west`. The reference always starts with `ORD-` followed by one or more digits, and it must be available as a searchable field without changing the source events. The analyst is using the Splunk Field Extractor and wants a reusable search-time extraction based on the raw event text. Which approach is most appropriate?

Correct Answer: D. Create a Field Extractor regex that matches `order_ref=(?ORD-\d+)` and save the extraction for the applicable source type.
Explanation:

The named capture group `(?...)` defines the extracted field, while `\d+` accepts the variable-length numeric suffix. Saving the extraction through the Field Extractor makes it reusable at search time for the selected source type, without altering indexed raw data. Rewriting `_raw` at index time is unnecessary and risks losing event content. A fixed-offset substring is brittle for variable-length values, and `fields` only retains fields already available; it does not extract them.

Question 5

New Single answer

Topic: Creating Field Aliases and Calculated Fields

Skill tested: Defines a calculated field that converts a timestamp string to epoch and uses it in a search.

An organization receives events with a string field named `vendor_time`, formatted consistently as `2024-03-17 14:05:09`. Analysts need a reusable calculated field containing the timestamp as epoch seconds so that they can compare it with numeric time boundaries in searches. They cannot modify the upstream feed, and a per-search conversion would lead to inconsistent analyst queries. Which configuration and search behavior should they use?

Correct Answer: B. Create a calculated field with `strptime(vendor_time, "%Y-%m-%d %H:%M:%S")` and use the resulting numeric field in searches.
Explanation:

`strptime` parses a timestamp string according to its format and returns an epoch value, making it appropriate for a calculated field that analysts can reuse. A field alias only provides another name for an existing field; it does not convert a string into epoch time. `strftime` formats an epoch value as a string rather than parsing this input, so C uses the conversion in the wrong direction. A lookup of every timestamp would be impractical and unnecessary.

Question 6

New Single answer

Topic: Creating Tags and Event Types

Skill tested: Creates an event type whose search matches events through a source-type tag.

A security team has tagged a source type with the tag `authentication` so analysts can search related events consistently across multiple feeds. The team now wants an event type that matches events from that tagged source type, without hard-coding a particular source type name into the event-type definition. Which search should the team use as the event type's matching search?

Correct Answer: C. `tag=authentication`
Explanation:

A tag is searched using the `tag=` form, so `tag=authentication` matches events associated with that tag and allows the event type to remain independent of a specific source type name. `eventtype=authentication` looks for an existing event type with that name, not a tag. The tag name is not necessarily a source type value, so C confuses two different concepts. D is not the standard tag-search syntax for matching events.

Question 7

New Multiple answers

Topic: Creating and Using Macros

Skill tested: Defines an argument-based search macro and invokes it with a comma-delimited IP list.

A threat-hunting group repeatedly filters events to a list of source IP addresses supplied by each analyst. Administrators want a search macro named `src_ip_filter(1)` that accepts a comma-delimited list, so a call can pass `10.1.1.8,10.1.1.9`. The macro should expand to an SPL predicate on `src_ip`, and analysts should invoke it within the search pipeline. Which two implementation details are appropriate? Select two.

Correct Answer: B. Define a one-argument macro and invoke it as `` `src_ip_filter(10.1.1.8,10.1.1.9)` `` in the search.; D. Define the macro body as `src_ip IN ($ip_list$)` and use `ip_list` as the argument name.
Explanation:

A macro configured with one argument can reference that argument as `$ip_list$`; the `IN` operator supports testing a field against a comma-separated value list. The invocation supplies the argument inside backticks, with the parameter values in parentheses. A plain equality predicate is not the intended list comparison, and quoting the whole comma-delimited string can make it one value rather than multiple values. A macro is not inherently a lookup conversion, and a macro with no arguments cannot accept the supplied parameter list.

Question 8

New Single answer

Topic: Creating and Using Workflow Actions

Skill tested: Configures a GET workflow action that passes an event field as a dashboard URL parameter.

An analyst reviewing an event wants a contextual menu action that opens an internal Splunk dashboard showing details for that event's `host`. The dashboard is reachable at `/app/ops/host_detail`, accepts the query parameter `form.host`, and must receive the selected event's host value. The action should open a browser page using an HTTP GET request; it should not modify data or submit a POST request. Which URL pattern is the appropriate workflow-action target?

Correct Answer: A. `/app/ops/host_detail?form.host=$host$`
Explanation:

A GET workflow action can place a field token in the URL, and `$host$` supplies the current event's `host` value as the dashboard's `form.host` parameter. The parameter name must match the dashboard's expected input. B sends a literal value rather than the event field and uses the wrong parameter name. C violates the explicit GET requirement. `$result.host$` is not the appropriate event-field token for this workflow-action context.

Question 9

New Single answer

Topic: Creating Data Models

Skill tested: Designs a data model with a root dataset and a child dataset mapped to relevant fields.

A reporting team needs a reusable data model for endpoint activity. It wants a broad parent dataset for all events from the endpoint source type, plus a narrower child dataset containing only events where `action` is `blocked`. The child should inherit the parent's fields and constraints, and users must be able to select common event fields such as `user`, `dest`, and `action` for analysis. Which design best satisfies these requirements?

Correct Answer: B. Create a root event dataset constrained by the endpoint source type, define the relevant fields, and add a child event dataset that inherits the root and adds `action=blocked`.
Explanation:

A data model hierarchy uses a root dataset and child datasets; a child can inherit the root's constraints and fields while adding a narrower constraint such as `action=blocked`. Defining fields for `user`, `dest`, and `action` makes them available for analysis in the model. Unrelated root datasets do not create the requested inheritance relationship, and field aliases do not make them hierarchical. A transaction dataset is not needed for this event classification. A lookup does not provide dataset inheritance.

Question 10

New Single answer

Topic: Using the Common Information Model (CIM) Add-On

Skill tested: Maps a source type to CIM tags and validates normalized fields with a constrained search.

A team is onboarding a firewall feed for CIM-aligned network analysis. The raw feed uses source type `acme:firewall`, and its fields have already been normalized to CIM names, including `src`, `dest`, and `action`. The team has mapped the source type to the relevant Network_Traffic data model tags and wants to verify that the expected events and normalized fields are returned, while limiting the search to the new source type. Which search is the best validation?

Correct Answer: C. `tag=network tag=communicate sourcetype=acme:firewall | table src dest action`
Explanation:

CIM data-model constraints are represented through tags, and the search also explicitly constrains results to the onboarded source type. The table then exposes the normalized `src`, `dest`, and `action` fields for validation. B treats a data model name as a source type and uses different field names. C incorrectly assumes the source type itself is a tag and omits the relevant CIM tags. D checks for field values but does not confirm that the source type has the expected CIM tag mapping.

Question 11

New Multiple answers

Topic: Filtering and Formatting Results

Skill tested: Uses eval expressions and where comparisons to filter derived numeric measurements.

A capacity analyst has event fields `bytes_in` and `bytes_out`, which may be indexed as strings. The analyst needs a numeric `total_bytes` field and wants to retain only events where the total exceeds 1,000,000 bytes and inbound traffic is greater than outbound traffic. The filter must evaluate the calculated values, not field names embedded in a text search. Which two SPL steps should be used? Select two.

Correct Answer: C. `| where total_bytes>1000000 AND tonumber(bytes_in)>tonumber(bytes_out)`; D. `| eval total_bytes=tonumber(bytes_in)+tonumber(bytes_out)`
Explanation:

The `eval` expression converts both source values to numbers before adding them, producing a numeric `total_bytes`. The subsequent `where` expression filters on that derived result and independently checks that inbound bytes exceed outbound bytes. C tries to filter on `total_bytes` before creating it and relies on search syntax for computed comparisons. D produces a string-valued total, and E uses an `OR` condition that would retain events violating the inbound-greater-than-outbound requirement.

Question 12

New Single answer

Topic: Correlating Events

Skill tested: Uses transaction boundaries and generated fields to identify and measure completed sessions.

An identity team receives login and logout events with a shared `session_id`; unrelated events may also carry the identifier. Analysts need completed sessions only, with a maximum duration of 45 minutes, and want the generated event count and elapsed duration. They have confirmed the endpoint event values are `login` and `logout`. Which command configuration is most appropriate?

Correct Answer: C. `transaction session_id startswith=event=login endswith=event=logout maxspan=45m`
Explanation:

The session identifier groups related events, while `startswith` and `endswith` delimit completed login-to-logout transactions. `maxspan=45m` caps the total transaction duration; the transaction results include `duration` and `eventcount`. B groups on the wrong field and cannot reconstruct the intended transaction reliably afterward. C can incorporate unrelated events and does not apply the transaction boundary semantics. `maxpause` limits gaps between events rather than ensuring a completed login/logout pair, so D does not exclude incomplete transactions.

Question 13

New Single answer

Topic: Creating and Managing Fields

Skill tested: Selects a search-time regex extraction that handles variable-length values and preserves raw events.

A support team receives events containing text such as `ticket=SR-4821 assigned_to=lee`. Ticket identifiers always begin with `SR-` and continue with digits, but can vary in length. Analysts need the extracted `ticket_id` for searches and dashboards, while the original raw event must remain intact. The extraction should apply to the relevant source type rather than only to one saved search. What should the administrator do?

Correct Answer: A. Use the Field Extractor to save a search-time regex with the named capture `(?SR-\d+)` for the source type.
Explanation:

A reusable search-time regex extraction with a named capture group creates `ticket_id` from the variable-length value and leaves `_raw` unchanged. Saving it for the applicable source type makes it available beyond a single ad hoc query. A sed-mode `rex` modifies displayed search results and is not a reusable extraction for future searches. A field alias renames an existing field but cannot parse raw text. Truncating raw data is destructive and unnecessary.

Question 14

New Multiple answers

Topic: Creating Tags and Event Types

Skill tested: Applies tag searches in event-type definitions and distinguishes tags from source types and event types.

A platform team uses two source types for proxy traffic and has assigned both the tag `web_proxy`. It wants to define an event type that matches the tagged events and then allow analysts to find those events by event-type name. The team must avoid matching every event from either source type if the tag is later removed. Which two steps meet the requirement? Select two.

Correct Answer: B. After saving the event type as `proxy_traffic`, search with `eventtype=proxy_traffic`.; D. Set the event type's search to `tag=web_proxy`.
Explanation:

The event type definition should match the tag using `tag=web_proxy`. Once saved with the name `proxy_traffic`, analysts can search the event type with `eventtype=proxy_traffic`. Searching `eventtype=web_proxy` assumes an event type already has that name and does not match a tag. `sourcetype=web_proxy` confuses a tag with a source type. A field alias does not create or substitute for a tag.

Question 15

New Multiple answers

Topic: Creating and Using Macros

Skill tested: Defines and calls a parameterized macro that filters source addresses against a supplied list.

A SOC maintains a common source-IP filter used in many investigations. Analysts need to pass different comma-separated IP lists into a macro named `srcs(1)`; the macro should be usable after the base search and should filter on `src_ip`. For example, a call with two addresses should select events whose `src_ip` matches either address. Which two steps are appropriate? Select two.

Correct Answer: D. Define the macro body as `src_ip IN ($addresses$)` with one argument named `addresses`.; E. Call the macro as `` `srcs(192.0.2.10,192.0.2.11)` `` in the search pipeline.
Explanation:

The macro definition uses one named parameter, and `IN` expresses the desired membership test against its supplied comma-separated values. The invocation uses backticks and passes the values in parentheses. Equality does not implement membership in a list, and the macro is specified to take one argument rather than two. Macro expansion requires the backtick syntax; an unquoted function-like token is not a macro call. Passing the list as an event field does not filter by the supplied addresses.