Exam Information
Free practice questions with explanations
Splunk SPLK-1004 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 17
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Build event types and tags (weight: 10%)
A security analyst at a retail company has built an event type named failed_logon that matches Windows Security events with EventCode=4625 in the index wineventlog. She wants every future failed-logon search, dashboard panel and alert to reference the same classification, and she wants to tag the events so that a single tag search returns failed logons from both the wineventlog index and a second index containing Linux authentication failures. The second index uses a different field name for the same concept. The company's rule is that the event type definitions must not be duplicated across apps, and the analyst has edit rights only in her own app context. Which approach best meets these requirements?
Correct Answer: BExplanationEvent types are defined once and referenced by name, and tags attach to event types so that tag=authentication_failure returns matching events regardless of the index. Sharing the event type globally avoids duplicating definitions across apps. Copying the definition into per-index apps breaks the no-duplication rule and multiplies maintenance. Tags cannot be applied to a macro's output in tags.conf, so the macro route does not produce a tag. Renaming a Linux field to EventCode would not make the Linux events match EventCode=4625, since they have no such code, so the single shared event type would be wrong.
-
2 Question 2 Single choice Build and Utilize Macros (weight: 10%)
A network team maintains a macro that calculates bytes transferred in gigabytes from a bytes field. The macro is defined as eval gb=round(bytes/1024/1024/1024,2) with a single argument field. An analyst calls the macro as `to_gb(bytes_out)` in a search that later pipes into stats sum(gb) by host. When run, the results show every host with a sum of zero. The analyst has confirmed the bytes_out field contains numeric values in the raw events. The macro definition has no other arguments, and the analyst cannot change the macro because it is owned by the network team. Which change to the analyst's search is the most appropriate fix?
Correct Answer: DExplanationA macro argument in the definition is a placeholder for a field name, and the macro body refers to the variable bytes. The defined macro has no argument list that maps bytes_out onto bytes, so the eval sees an empty field and returns null, which stats treats as zero. Copying the value into a field named bytes with rex before the macro call supplies the expected name. Calling the macro with a quoted string would pass the literal text bytes_out, not the field value, so the result would still be empty. Renaming gb after the macro does not affect the calculation that already produced null, and a convert to string does not help because the input field is never read under the expected name.
-
3 Question 3 Single choice Build Data Models 10% (weight: 10%)
A data analyst has built a data model named Web_Traffic with a root event object that matches sourcetype=access_combined. The model is accelerated and has a summary range of 30 days. The team now needs a pivot table that shows requests per day for the last 90 days, and the pivot is expected to return quickly. The storage team has asked that the acceleration footprint stay small. A colleague proposes changing the summary range to 90 days and also adding a child object named Errors with the constraint status>=500. The analyst must keep the existing object and avoid reindexing raw data beyond what is necessary. Which action best meets the requirement?
Correct Answer: BExplanationPivot on an accelerated data model reads the summary, so a time range longer than the summary range returns incomplete results and the summary must cover the full range. Extending the existing summary to 90 days and rebuilding it satisfies the requirement without a second model. Adding an Errors child object does not address the time coverage problem. Disabling acceleration makes the pivot slow over 90 days, which violates the speed requirement. Creating a duplicate model is unnecessary because the summary range can be edited on an existing accelerated model.
-
4 Question 4 Single choice Building calculated fields and field Aliases (weight: 10%)
A SOC team ingests firewall logs from two vendors into the same sourcetype. Vendor X stores the source IP in a field named src_ip and Vendor Y stores it as source_address. An analyst has created a field alias so that both values appear as src in searches. Afterwards, a dashboard panel that filters on src="10.1.1.5" returns events from Vendor X only, while Vendor Y events are still missing. Inspection shows the alias for Vendor Y was created with the scope set to a source type that differs from the one used by the Vendor Y events. The team wants one alias definition per field that works for both vendors, must not change the sourcetype of either data stream, and must not modify the search-time extraction that is already in place. Which action should the analyst take?
Correct Answer: AExplanationA calculated field can combine two source fields with a conditional expression, so it produces one src value whichever vendor field is populated, and it runs at search time without touching sourcetypes or existing extractions. The aliasing scope mismatch is the underlying cause, but the team's constraint forbids altering the sourcetype assignment that the alias scope depends on, and a single alias cannot read two fields. Renaming fields at index time would require reindexing or forwarder changes the team has ruled out. A lookup for field mapping is a heavier and less appropriate solution for a simple two-field merge.
-
5 Question 5 Single choice Common Information Model utilization (Add-on) (weight: 10%)
A SOC analyst has installed the Splunk Common Information Model add-on on a search head. Her team wants a correlation search that runs across authentication events from three sources: Windows security logs, a Linux secure log, and a cloud identity provider log. The correlation search must use a single set of field names so that one search covers all three sources. The add-on's authentication data model is already installed. The Linux events have their usernames in a field called user_name, but the add-on expects a field called user. The company has forbidden changes to the raw data and to indexed fields. Which action best enables the normalized search?
Correct Answer: DExplanationThe CIM add-on maps normalized fields through knowledge objects such as field aliases, so mapping user_name to user in the sourcetype lets the authentication data model return the field under the expected name, with no change to raw data. A lookup in the search adds per-search work and does not populate the data model. A child object filtering on user_name does not normalize the field name the data model exposes. Setting indexed_extractions changes indexing behaviour and would not give the required mapping, and the company has forbidden changes to indexed fields.
-
6 Question 6 Single choice Correlating Events (weight: 15%)
A fraud analytics team needs to find card numbers that show a failed payment followed by a successful payment from a different merchant within five minutes. Each payment event has card_id, merchant, status (FAILED or SUCCESS) and _time. The index holds about 400 million payment events per day, and the search must run on a daily schedule within a tight compute budget. The team does not need the individual events in the output, only the card_id values that match. A junior analyst proposes a transaction command with startswith=status=FAILED, endswith=status=SUCCESS, maxspan=5m, and a grouping by card_id. Which change to this proposal is most appropriate?
Correct Answer: DExplanationTransactions hold every matching event in memory until they close, which is expensive across hundreds of millions of events, and the team only needs card_id values. A stats-based approach that groups by card_id and merchant over time buckets computes the pattern with aggregation and far lower memory use, then a where filter applies the five-minute and merchant-difference conditions. Adding maxevents does not stop the transaction from buffering events, and removing maxspan would let transactions grow unbounded and produce wrong matches. Joining two large searches is slower and less scalable than one stats pass over the data.
-
7 Question 7 Multiple choice Creating and Using Workflow Actions (weight: 10%)
A security team wants an analyst to click an IP address in a search result and open an internal case management system with the IP passed as a query parameter. The case system accepts only HTTP POST requests with a JSON body. Due to network policy, the Splunk search head can reach the case system only through HTTPS on port 443. The team also wants a second workflow action that re-runs the current search with the clicked IP as a filter in a new search window, without leaving Splunk. Which TWO configurations together meet these requirements? (Choose two.)
Correct Answer: A, CExplanationA POST workflow action with link.method set to post and an HTTPS endpoint satisfies the case system's requirement, with the field placed into the body. A search workflow action builds a new search from the clicked value and can open it in a new window, which covers the in-Splunk re-run. A GET action would send the IP as a query string, which the case system does not accept. A search command cannot call external URLs. Using HTTP on port 80 violates the network policy that only permits HTTPS on 443.
-
8 Question 8 Single choice Formatting and Filtering Outcomes (weight: 10%)
A network operations team is building a report of interface error counts per device. Some devices do not report the error_count field for interfaces that are administratively down, and those events should appear in the report with a count of zero, not be dropped. The report also needs to show only devices where the total error count is above 100. An analyst wrote the search below.
index=network sourcetype=interface_stats | stats sum(error_count) as total_errors by device | where total_errors > 100
The report is missing devices that have events with a blank error_count value, and the team wants those devices to appear with a total of zero. The team wants the fix to occur before aggregation and the search should remain efficient. Which change best meets the requirement?Correct Answer: DExplanationThe fillnull command with value=0 replaces missing error_count values with zero before aggregation, so those events contribute zero to the sum and the devices remain in the stats output. The where clause then applies the threshold as intended. Filtering nulls with where removes the events rather than counting them as zero. An eval placed after stats cannot restore devices that stats has already dropped, and changing the threshold to zero-or-greater does not address the missing events from the aggregation.
-
9 Question 9 Single choice Manage and Build Fields (weight: 10%)
A logistics company receives pipe-delimited shipment records in a file that has the header fields shipment_id, origin, destination, weight_kg, and status. The sourcetype is already indexed and the values appear in _raw, but search results show the fields as unavailable. The records sometimes include a trailing pipe, and the field values never contain pipe characters. The operations team wants the extraction to use the header-defined field names and to remain search-time so that the raw data is not altered. An administrator is using the field extractor in Splunk Web. Which extraction approach is most appropriate?
Correct Answer: DExplanationThe field extractor's delimiter option takes the pipe as the delimiter and uses the header row as the field names, and it creates a search-time extraction, which keeps the raw data untouched. Using a regular expression for this case is more fragile, and saving it as an index-time transform changes indexing and would need reindexing. A comma delimiter would not split pipe-separated values. Setting INDEXED_EXTRACTIONS=csv is an index-time setting that applies to CSV formats and does not handle pipe-delimited files.
-
10 Question 10 Single choice Utilizing Transforming Commands for Visualizations (weight: 5%)
A data analyst is building a dashboard panel for a web application team. The panel must show, for each of the last 24 hours, the average response time for each URL path, with the paths shown as separate series. The index contains roughly 60 distinct paths at any time, and some paths are rare and appear only a few times a day. The panel should display the top 10 paths by volume and group the remaining paths under a single series labelled Other. The analyst's first search uses timechart avg(response_time) by path, which returns 60 series and crowds the chart. Which search change best meets the requirements?
Correct Answer: CExplanationThe timechart command accepts limit to keep the top series by value and useother=true to collapse the rest into a series named OTHER, which matches the dashboard requirement while keeping the time axis intact. Replacing timechart with chart removes the time bucketing needed for a 24-hour trend. Setting usenull=false only affects null values and does not group the remaining paths. A stats search with head 10 would drop the other paths entirely rather than summarizing them, and it would not produce a time-series chart.
-
11 Question 11 Order list Build event types and tags (weight: 10%)
A SOC lead wants to standardize how the team finds privilege escalation attempts across two indexes that record Windows and Unix privilege events. The team must define one event type that matches the privilege events in both indexes, tag it so that searches can use a single tag name, and confirm that the tag works in a search. The lead has edit rights only to the search app and must keep the knowledge objects shared with all users of that app. Place the following steps in the correct order. Drag the steps into the correct order.
Drag the steps into the correct order, or use the arrows.
- Confirm that the event type returns events from both indexes by running a search using eventtype=privilege_escalation.
- Run a search using tag=privilege_escalation to confirm that events from both indexes return.
- Create the event type in the search app with a search string that covers both indexes and set its permissions to share it with all apps.
- Assign the tag privilege_escalation to the event type from the Event Types settings page.
Correct Answer:- Create the event type in the search app with a search string that covers both indexes and set its permissions to share it with all apps.
- Assign the tag privilege_escalation to the event type from the Event Types settings page.
- Confirm that the event type returns events from both indexes by running a search using eventtype=privilege_escalation.
- Run a search using tag=privilege_escalation to confirm that events from both indexes return.
ExplanationThe event type must exist before it can be tagged, so creating it with shared permissions comes first. Tags attach to event types, so tagging follows. Checking the event type with eventtype= confirms the definition is correct before relying on the tag. The final tag search verifies the end-to-end behavior the team needs. Running the eventtype check before creating the event type would find nothing, and tagging before creating would be impossible in the interface.
-
12 Question 12 Order list Build and Utilize Macros (weight: 10%)
An analyst needs a reusable macro that takes a field name and a threshold and returns only events where the field exceeds the threshold. She will create the macro in Splunk Web, test it with arguments, and make it available to other users of the search app. Place the following steps in the correct order. Drag the steps into the correct order.
Drag the steps into the correct order, or use the arrows.
- Confirm the number of arguments in the macro definition matches the argument count in the macro name.
- Set the macro permissions so that it is shared with all users of the search app.
- Run a test search that calls threshold_filter(bytes,500) and verify the results.
- Create the macro in the search app with the name threshold_filter(2) and the definition using eval and where logic that references the two arguments.
Correct Answer:- Create the macro in the search app with the name threshold_filter(2) and the definition using eval and where logic that references the two arguments.
- Confirm the number of arguments in the macro definition matches the argument count in the macro name.
- Set the macro permissions so that it is shared with all users of the search app.
- Run a test search that calls threshold_filter(bytes,500) and verify the results.
ExplanationThe macro must be created with the correct argument count in its name before anything else, and checking that the definition matches the declared arguments is a quick verification done immediately after creation. Sharing permissions then makes it available, and the test search confirms it works for the intended users. Setting permissions before creation is impossible, and testing before checking the argument count risks a confusing error that a simple check would have caught. Confirming the count after sharing leaves the team exposed to a broken macro.
-
13 Question 13 Order list Correlating Events (weight: 15%)
A retail company wants to find customers who add an item to a cart and then purchase it within 30 minutes, and it needs the result to be efficient on a large dataset. Each event contains customer_id, action (ADD or PURCHASE), item_id and _time. The analyst must build a search that returns the matched customer and item pairs. Place the following steps in the correct order. Drag the steps into the correct order.
Drag the steps into the correct order, or use the arrows.
- Compute the difference between the purchase and add times and keep only the pairs where the difference is at most 1800 seconds.
- Confirm that the output contains customer_id and item_id values and no unmatched pairs.
- Filter the search to the ADD and PURCHASE actions for the relevant index and time range.
- Use stats to group the events by customer_id and item_id, recording the earliest time for each action.
Correct Answer:- Filter the search to the ADD and PURCHASE actions for the relevant index and time range.
- Use stats to group the events by customer_id and item_id, recording the earliest time for each action.
- Compute the difference between the purchase and add times and keep only the pairs where the difference is at most 1800 seconds.
- Confirm that the output contains customer_id and item_id values and no unmatched pairs.
ExplanationThe search must first narrow to the relevant actions and time range, then aggregate by customer and item to get the earliest times, then apply the 1800-second difference condition, and finally verify the output. Computing the difference before stats has run would reference fields that do not yet exist in the grouped form. Verifying output before running the filter and aggregation would be meaningless. Starting with the final check reverses the logic entirely.
-
14 Question 14 Drag and drop Creating and Using Workflow Actions (weight: 10%)
A SOC team has configured three workflow actions in the search app. Each one should be matched to the correct use case. Match each action to its target. Drag each item onto its matching target.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
A workflow action that sends the clicked field value to an external ticketing API using an HTTP POST request.A workflow action that opens a new search for other events that share the clicked value of the field.A workflow action that opens an external threat intelligence page in a new browser window using the clicked value in the URL query string.Link type: GET, with the value placed in the URI query stringLink type: POST, with the value placed in the request bodyLink type: search, with the clicked value inserted into the search stringCorrect Answer:- A workflow action that sends the clicked field value to an external ticketing API using an HTTP POST request. → Link type: POST, with the value placed in the request body
- A workflow action that opens a new search for other events that share the clicked value of the field. → Link type: search, with the clicked value inserted into the search string
- A workflow action that opens an external threat intelligence page in a new browser window using the clicked value in the URL query string. → Link type: GET, with the value placed in the URI query string
ExplanationA ticketing API that accepts a POST with a payload maps to a POST workflow action, with the value in the body. Opening a new search for related events is the purpose of a search workflow action. Sending a value in a URL query string to an external page is a GET workflow action. The other mappings put GET on the POST case, which would send the value in the wrong place, or use search for an external page, which the search command cannot do.
-
15 Question 15 Drag and drop Build Data Models 10% (weight: 10%)
A data model architect is reviewing components of an accelerated data model used for security reporting. Match each component to the statement that correctly describes it. Drag each item onto its matching target.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Child object created with a constraintRoot event objectField defined by an eval expressionDefines the base search that all other objects in the model derive fromInherits the parent's constraint and adds a further filter on the events it returnsAdds a calculated value to each event that the data model exposes as a fieldCorrect Answer:- Root event object → Defines the base search that all other objects in the model derive from
- Child object created with a constraint → Inherits the parent's constraint and adds a further filter on the events it returns
- Field defined by an eval expression → Adds a calculated value to each event that the data model exposes as a field
ExplanationThe root event object is the base object defined by a search that the other objects build on, and a child object inherits its parent's constraints while adding its own filter. Calculated fields in a data model are defined with eval expressions that produce values exposed in the model. Mapping the root to the derived-filter description or the eval to the base search would confuse how inheritance and field definitions work in data models.
-
16 Question 16 Dropdown Build and Utilize Macros (weight: 10%)
A search developer defines a macro named mask_ip(1) with the definition shown below and wants to call it on the field client_ip. Choose the correct value for each blank.
Choose the correct value for each blank.
macro definition: eval =replace(client_ip, "\.\d+$", ".0")
To keep the expression correct, the developer needs the macro argument to be the output field name and the macro call to pass the output field name as the argument. Which pair of values, placed in and in the search `mask_ip()`, is correct?
Search fragment: `... | `mask_ip()` | table `Correct Answer:macro definition: eval the argument name $field$=replace(client_ip, "\.\d+$", ".0")
To keep the expression correct, the developer needs the macro argument to be the output field name and the macro call to pass the output field name as the argument. Which pair of values, placed in the argument name $field$ and client_ip in the search `mask_ip(client_ip)`, is correct?
Search fragment: `... | `mask_ip(client_ip)` | table the argument name $field$`ExplanationIn a macro definition, the argument is referenced with dollar signs around its name, so $field$ is the placeholder that receives the value at call time. The call passes client_ip as the argument, which is the field being masked. Writing a quoted string as the argument would insert literal text instead of a field reference. Using masked_ip as the call argument would mask a field that does not exist, and the field placeholder must be referenced with dollar signs rather than as a bare name.
-
17 Question 17 Dropdown Building calculated fields and field Aliases (weight: 10%)
An administrator has an eval-based calculated field that converts a duration reported in seconds into minutes for a sourcetype named app_perf. The configuration in props.conf is shown below. [app_perf] Choose the correct value for each blank.
Choose the correct value for each blank.
EVAL-duration_min =
The administrator wants the calculated field to appear in search results as duration_min and reference the field duration_sec from each event. The calculated field expression should be the division of duration_sec by 60. Which values complete the configuration with the correct field name and the correct expression placed in and in the setting EVAL- = ?
Assume the stanza is written exactly as: EVAL- =Correct Answer:EVAL-duration_min = duration_sec/60
The administrator wants the calculated field to appear in search results as duration_min and reference the field duration_sec from each event. The calculated field expression should be the division of duration_sec by 60. Which values complete the configuration with the correct field name and the correct expression placed in duration_sec/60 and duration_min in the setting EVAL-duration_min = duration_sec/60?
Assume the stanza is written exactly as: EVAL-duration_min = duration_sec/60ExplanationThe EVAL- stanza setting takes the form field name on the left and an eval expression on the right, so the output field name duration_min is placed on the left and the expression duration_sec/60 on the right. Multiplying by 60 would convert minutes to seconds, the opposite of the requirement. Using duration_min as the expression input would reference a field that does not yet exist. Naming the output duration_sec would overwrite the source field rather than create the requested calculated field.
These are 17 of the 120 questions in the full SPLK-1004 pack.
Get All 120 QuestionsGet all 120 questions & answers
Full access options for Splunk SPLK-1004
Self-study
PDF Version
- 120 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 120 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 120 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the SPLK-1004 Exam (Splunk Core Certified Advanced Power User) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.