Splunk Core Certified Power User (SPLK-1002) Exam-style mock test
Splunk Core Certified Power User (SPLK-1002) Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Advanced Search & SPL Commands
A Power User at a B2B SaaS company has events containing bytes_in and bytes_out fields for API gateway traffic. They want a new field named total_mb that holds the combined traffic converted to megabytes. Which SPL fragment produces the intended calculated field?
・stats sum(bytes_in) AS total_mb, sum(bytes_out) AS total_mb by host
Incorrect. The stats command aggregates across events and cannot reuse one output name twice; it does not create a per-event calculated field in this form.
✓eval total_mb = (bytes_in + bytes_out) / 1024 / 1024
Correct. The eval command evaluates an expression per event and assigns the arithmetic result to the new total_mb field, dividing the byte sum by 1024 twice to convert to megabytes.
・rex field=bytes_in total_mb="(?<total_mb>\d+)" plus bytes_out megabytes
Incorrect. The rex command extracts text with regular expressions and cannot perform arithmetic across two existing numeric fields as described.
・fields total_mb = round(bytes_in + bytes_out, 1024)
Incorrect. The fields command only includes or excludes existing fields from results and performs no arithmetic or field creation.
Explanation
Calculated fields are built with eval, which evaluates an expression once per event and stores the result in a named field; here the byte total is divided by 1024 twice to express megabytes.
Example2 · Fields, Tags, Event Types & Macros
A power user at a B2B SaaS company is viewing raw subscription-service logs where each event contains a string like plan=enterprise but Splunk has not auto-extracted it as a searchable field. The user wants to create a reusable regex-based extraction without writing SPL manually. Which approach should they take?
✓Use the Field Extractor (IFX) utility, select an example event, and highlight the sample value to generate the extraction
Correct. The Field Extractor (IFX) lets a power user pick a sample event and highlight values in the UI to auto-generate a search-time regex extraction without hand-writing SPL.
・Add the field to props.conf as an indexed EXTRACT so it becomes part of the tsidx index files
Incorrect. Indexed extractions via props.conf are an admin-level config task and change index-time behavior, not the self-service UI workflow described.
・Open the Field Extractor utility from the event's fields area and let it propose a delimiter-based parse of the row
Incorrect. Delimiter-based parsing suits structured rows like CSV, but the described key=value pattern is matched by selecting a sample value for regex extraction.
・Define the field by editing transforms.conf manually and referencing it from props.conf
Incorrect. Editing transforms.conf and props.conf by hand is a manual admin method, not the no-SPL Field Extractor utility the user wants.
Explanation
The Field Extractor (IFX) utility provides a guided UI where users highlight sample values to build search-time field extractions without writing regex or SPL manually.
Example3 · Statistical & Charting Commands
A SaaS analyst at CloudLedger wants a table showing the total number of login events per customer account from their indexed auth logs. Which search returns one row per account with the event count?
✓index=auth action=login | stats count by account
Correct. stats count by account groups events by account and returns one row per account with the total count.
・index=auth action=login | chart count over account by action
Incorrect. chart produces a matrix split by a second field and is not the simplest one-row-per-account result here.
・index=auth action=login | timechart count by account span=1d
Incorrect. timechart buckets results by time rather than giving a single total count per account.
・index=auth action=login | eventstats count as total by account
Incorrect. eventstats appends the aggregate to every event without collapsing them into one row per account.
Explanation
stats count by <field> is the standard transforming command to get one summary row per group with the count of events.
Example4 · Data Models & Pivot
A reporting analyst at a healthcare services firm wants non-technical claims staff to build charts over appointment logs without writing SPL. Which statement best describes how a data model supports this goal?
✓It provides a hierarchical, searchable representation of the data that powers the Pivot interface for point-and-click reporting
Correct. A data model is a hierarchical, searchable structure that abstracts the data and feeds the Pivot tool so users can build reports without SPL.
・It permanently stores a second copy of the raw events in a dedicated archive index for faster historical retrieval
Incorrect. Data models do not duplicate raw events into an archive index; they define a knowledge-object structure over existing data.
・It replaces the firm's role-based access controls by granting every user full read access to all indexes automatically
Incorrect. Data models do not override role-based permissions, and access is still governed by index and role settings.
・It converts saved searches into scheduled alerts that email the claims staff whenever thresholds are exceeded
Incorrect. Creating scheduled email alerts is an alerting feature, not the function of a data model.
Explanation
Data models exist to give non-SPL users a structured, hierarchical view that the Pivot interface can report against.
Example5 · Reports, Dashboards & Visualizations
An analyst at MeridianCare Health Services runs a search that counts daily patient-portal login failures and wants colleagues to be able to run the exact same search on demand without retyping it. Which action saves the search so it can be rerun later from the Reports listing?
・Add the search string into a scheduled alert that emails the raw results to every analyst in the clinical operations group each morning
Incorrect. Creating an alert triggers actions on conditions; it is not the mechanism for saving a search as a reusable report in the Reports listing.
✓Click Save As and choose Report, then give it a name so it appears in the Reports page
Correct. Save As > Report stores the search definition so it can be opened and rerun on demand from the Reports page.
・Export the current result set to a CSV file and place that file on a shared network drive for the team
Incorrect. Exporting to CSV captures a static snapshot of results, not the search definition that can be rerun later.
・Pin the search to a dashboard panel and tell colleagues to open that dashboard whenever they need the numbers
Incorrect. Adding to a dashboard panel embeds the search in a view but does not create a report entry in the Reports listing.
Explanation
Saving a search as a Report preserves the search definition for reuse and lists it on the Reports page.
Example6 · Advanced Search & SPL Commands
A data analyst at Meridian Health Services searches patient portal logs and needs a new field named response_sec that converts the existing response_ms field from milliseconds into seconds. Which SPL snippet correctly creates that field?
✓| eval response_sec = response_ms / 1000
Correct. eval creates or redefines a field, so dividing response_ms by 1000 assigns the seconds value to the new response_sec field.
・| stats response_sec = response_ms / 1000 by host
Incorrect. stats is an aggregating transforming command and cannot perform a simple per-event arithmetic assignment like this.
・| rex field=response_ms response_sec / 1000 output
Incorrect. rex extracts fields from raw text using regular expressions and is not used for arithmetic on numeric field values.
・| fields response_sec where response_ms divided by 1000
Incorrect. fields only includes or excludes existing fields from results and cannot compute a new calculated value.
Explanation
The eval command evaluates an expression and stores the result in a field, making it the correct choice for unit conversion arithmetic.
Example7 · Advanced Search & SPL Commands
An analyst at the retail brand UrbanThread wants a new field named margin that equals the price field minus the cost field for every transaction event. Which SPL fragment correctly produces this calculated field?
✓| eval margin=price-cost
Correct. The eval command evaluates an arithmetic expression and writes the result into the new field margin for each event.
・| stats margin=price-cost by order_id
Incorrect. The stats command aggregates events and cannot subtract two raw fields per event like an eval expression does.
・| rex field=price "(?<margin>\d+)" mode=sed
Incorrect. The rex command extracts text with a regular expression and does not perform arithmetic subtraction between fields.
・| fields margin, price, cost where price > cost
Incorrect. The fields command only includes or excludes existing fields and has no syntax for creating a calculated value.
Explanation
eval is the dedicated command for building calculated fields from expressions; the other commands aggregate, extract, or filter but do not compute new per-event values.
Example8 · Advanced Search & SPL Commands
For UrbanThread order events, an analyst needs a field tier set to "VIP" when total_spend is greater than 500 and set to "Standard" otherwise. Which eval expression returns the correct value for every event?
・| eval tier=case(total_spend>500, "VIP")
Incorrect. The case function here supplies only one condition, so events not exceeding 500 receive a null tier instead of "Standard".
✓| eval tier=if(total_spend>500, "VIP", "Standard")
Correct. if() evaluates the boolean condition and returns "VIP" when true and "Standard" when false, covering every event.
・| eval tier=coalesce(total_spend>500, "VIP", "Standard")
Incorrect. coalesce returns the first non-null argument and does not evaluate a boolean condition to choose between two labels.
・| eval tier="VIP" where total_spend>500 else "Standard"
Incorrect. eval does not support a where/else clause syntax, so this expression is not valid SPL.
Explanation
if(condition, true_value, false_value) is the standard eval function for a two-way conditional assignment.
Example9 · Advanced Search & SPL Commands
An UrbanThread search already extracts a field named region at search time, and the analyst then adds | eval region="WEST" later in the pipeline. What value will downstream commands see for region?
・An error is raised because region is already a defined extracted field in the dataset
Incorrect. Reassigning an existing field with eval is allowed and does not raise an error.
・Both the extracted value and "WEST" are kept as a multivalue field for region
Incorrect. eval replaces the field value rather than appending the new value to create a multivalue field.
✓The value "WEST", because eval overwrites the existing field with the new result
Correct. When eval targets a field that already exists, it overwrites that field with the evaluated result for each event.
・The original extracted value, since eval cannot change a field defined by an extraction
Incorrect. eval can and does override previously extracted fields when they share the same name.
Explanation
An eval assignment to an existing field name takes precedence and replaces the earlier value downstream in the pipeline.
Example10 · Advanced Search & SPL Commands
A risk analyst at a financial services firm searches wire transfer events and needs a new field named fee_total that holds the sum of the transfer_fee and fx_markup fields for each event. Which SPL fragment creates this field correctly?
・| stats sum(transfer_fee) AS fee_total by fx_markup
Incorrect. The stats command aggregates across events and collapses results into summary rows rather than adding a per-event calculated field, and grouping by fx_markup is not what is needed here.
✓| eval fee_total = transfer_fee + fx_markup
Correct. The eval command evaluates an arithmetic expression per event and assigns the result to the new fee_total field, exactly adding the two numeric fields together.
・| rex field=transfer_fee "(?<fee_total>\d+)" plus fx_markup
Incorrect. The rex command extracts text with a regular expression and cannot perform arithmetic, so it cannot sum two numeric fields into one.
・| addtotals fieldname=fee_total transfer_fee
Incorrect. The addtotals command sums numeric fields but the syntax shown is malformed and it is intended for row or column totals, not a simple two-field per-event sum.
Explanation
eval is the command used to compute per-event calculated fields from expressions involving other fields.
Example11 · Advanced Search & SPL Commands
A fraud team wants a field risk_tier set to "high" when the amount field exceeds 10000, to "medium" when it is between 1000 and 10000, and to "low" otherwise. Which eval expression produces all three tiers?
・eval risk_tier = if(amount>10000, "high", "low")
Incorrect. The if function evaluates only one condition and returns one of two values, so it cannot distinguish all three of the high, medium, and low tiers.
✓eval risk_tier = case(amount>10000, "high", amount>=1000, "medium", true(), "low")
Correct. The case function tests each condition in order and returns the matching value, with true() acting as the final catch-all to assign the low tier.
・eval risk_tier = coalesce("high", "medium", "low")
Incorrect. The coalesce function returns the first non-null argument and does not evaluate any amount thresholds, so it cannot assign tiers conditionally.
・eval risk_tier = amount>10000 OR amount>=1000
Incorrect. This expression returns a boolean rather than the three labeled string tiers the requirement calls for.
Explanation
case evaluates multiple condition-value pairs in sequence, making it the right choice for more than two outcomes.
Example12 · Advanced Search & SPL Commands
A power user at a manufacturing distributor needs a new field, shipping_cost, that equals units_shipped multiplied by the per-unit rate of 4.75 for each outbound order event. Which SPL fragment correctly creates this calculated field?
✓| eval shipping_cost = units_shipped * 4.75
Correct. The eval command evaluates an arithmetic expression and assigns the numeric result to a new field, so shipping_cost holds units_shipped times 4.75 for each event.
・| stats shipping_cost = units_shipped * 4.75 by order_id
Incorrect. The stats command aggregates events into statistical results and cannot assign a per-event arithmetic expression; its syntax requires aggregation functions, not a raw multiplication.
・| rex field=units_shipped "(?<shipping_cost>\d+)" then multiply the value by 4.75
Incorrect. The rex command extracts text using a regular expression and cannot perform arithmetic, so it cannot multiply a captured value by the rate.
・| fields shipping_cost where units_shipped is multiplied by the rate 4.75
Incorrect. The fields command only includes or excludes existing fields from results and performs no calculation or field creation at all.
Explanation
Calculated fields produced from arithmetic on existing values are the job of eval, which assigns an expression result to a new field name per event.
Example13 · Advanced Search & SPL Commands
In the distributor's warehouse logs, an analyst wants a field named priority set to "Rush" when the field delivery_window is less than 24, and otherwise set to "Standard". Which eval expression produces this result?
・| eval priority = case(delivery_window, "Rush", "Standard")
Incorrect. The case function expects alternating condition and value pairs, and this syntax supplies a bare field with no boolean condition, so it does not test whether the window is below 24.
✓| eval priority = if(delivery_window < 24, "Rush", "Standard")
Correct. The if function takes a boolean condition and returns the second argument when true and the third when false, so priority becomes "Rush" below 24 and "Standard" otherwise.
・| eval priority = where(delivery_window < 24) returns "Rush" else returns "Standard"
Incorrect. The where function filters events as a standalone command and is not an eval function that returns alternate string values based on a threshold comparison.
・| eval priority = coalesce(delivery_window < 24, "Rush", "Standard")
Incorrect. The coalesce function returns the first non-null argument among its inputs and does not evaluate a comparison to choose between two labels.
Explanation
The if function evaluates one boolean condition and returns one of two values, which is exactly the two-outcome logic required here.
Example14 · Advanced Search & SPL Commands
A NOC analyst at a telecom operator is reviewing cell-tower logs that contain uplink_bytes and downlink_bytes fields. They need a new field named total_bytes that holds the sum of those two values for every event in the result set. Which search fragment produces the calculated field correctly?
・... | stats sum(uplink_bytes) AS total_bytes BY downlink_bytes
Incorrect. The stats command aggregates across events and grouping by downlink_bytes would not yield a per-event summed field; it collapses the results instead of creating a calculated field.
✓... | eval total_bytes = uplink_bytes + downlink_bytes
Correct. The eval command evaluates the arithmetic expression and assigns the per-event result to the new total_bytes field on every returned event.
・... | rename uplink_bytes AS total_bytes, downlink_bytes AS total_bytes
Incorrect. The rename command only changes field names and cannot add two numeric fields; assigning two fields to one name is invalid and performs no arithmetic.
・... | fields total_bytes = uplink_bytes, downlink_bytes combined together
Incorrect. The fields command only includes or excludes existing fields from results and cannot perform arithmetic or create calculated values from an expression.
Explanation
Calculated fields built from an arithmetic expression are created with eval, which evaluates the expression per event and stores the outcome in the named field.
Example15 · Advanced Search & SPL Commands
An engineer wants a count of dropped VoIP calls broken down by each regional switch in the telecom network, with one row per switch_region value. Which command best transforms the raw call events into that per-region summary table?
・... | eval dropped_calls = count BY switch_region across every event returned
Incorrect. The eval command works per event and cannot aggregate a count across events; count is not a function eval can invoke in that syntax.
✓... | stats count AS dropped_calls BY switch_region
Correct. The stats command with count grouped BY switch_region aggregates the events into one summary row per region, producing the dropped-call tally requested.
・... | dedup switch_region sortby -_time keepevents=true showcount
Incorrect. The dedup command removes duplicate events for a field but does not aggregate a count grouped by that field into a summary table.
・... | sort switch_region limit 0 descending by the event timestamp
Incorrect. The sort command only orders events by a field and never aggregates them into a per-region count summary.
Explanation
Summarizing events into grouped counts is a transforming operation handled by stats count BY <field>, which returns one row per group value.
▶ Try 10 free questions (graded)