Free Splunk SPLK-1004 practice questions

10 free Splunk SPLK-1004 practice questions with the correct answer and a full explanation for each, taken from the CertStash pack of 95 questions. Work through them, then open each answer to check your reasoning.

Question 1

Which statement about tsidx files is accurate?

  1. Splunk updates tsidx files every 30 minutes.
  2. Splunk removes outdated tsidx files every 5 minutes.
  3. A tsidx file consists of a lexicon and a posting list.
  4. Each bucket in each index may contain only one tsidx file.
Show answer and explanation

Correct answer: C. A tsidx file consists of a lexicon and a posting list.

A tsidx file is Splunk's time-series index file that consists of two main components: a lexicon (vocabulary of terms) and a posting list (locations where those terms appear in the data). This structure enables fast searching and retrieval of events from buckets.

Why the other options are wrong

  • A. Splunk does not update tsidx files on a fixed 30-minute schedule; updates occur based on bucket rolling and data ingestion.
  • B. Tsidx files are not automatically removed every 5 minutes; they persist with their associated buckets according to retention policies.
  • D. Each bucket can contain multiple tsidx files, particularly when dealing with different index structures or optimization scenarios.

Question 2

Repeating JSON data structures within one event will be extracted as what type of fields?

  1. Single value
  2. Lexicographical
  3. Multivalue
  4. Mvindex
Show answer and explanation

Correct answer: C. Multivalue

When JSON data contains repeating structures (arrays or multiple instances of the same key-value pairs), Splunk automatically extracts these as multivalue fields, allowing each value to be indexed and searched individually within the field.

Why the other options are wrong

  • A. Single value fields cannot represent repeating structures; multivalue fields are required.
  • B. Lexicographical refers to ordering, not a field type used for JSON extraction.
  • D. Mvindex is a function used to access multivalue fields, not a field type itself.

Question 3

What default Splunk role can use the Log Event alert action?

  1. Power
  2. User
  3. can_delete
  4. Admin
Show answer and explanation

Correct answer: D. Admin

The Log Event alert action requires the edit_log_alert_event capability, and in the shipped authorize.conf that capability is assigned only to the admin role. Any other role must be explicitly granted the capability before it can log events from an alert. Because the question asks which default role can use the action out of the box, admin is the correct choice.

Why the other options are wrong

  • A. The power role does not include edit_log_alert_event by default, so power users cannot run the Log Event alert action without an added capability.
  • B. The user role has the most restricted capability set and does not include edit_log_alert_event.
  • C. can_delete is a default role, but it exists solely to grant delete_by_keyword and carries no alert action capabilities.

Question 4

When running a search, which Splunk component retrieves the individual results?

  1. Indexer
  2. Search head
  3. Universal forwarder
  4. Master node
Show answer and explanation

Correct answer: A. Indexer

The indexer is the Splunk component responsible for retrieving individual search results from the indexed data stored in buckets. It performs the actual data retrieval operations requested by the search head.

Why the other options are wrong

  • B. The search head coordinates and manages searches but does not retrieve the actual results; it delegates to indexers.
  • C. The universal forwarder only collects and forwards data to indexers; it does not retrieve search results.
  • D. The master node manages cluster replication and configuration but does not retrieve individual search results.

Question 5

What order of incoming events must be supplied to the transaction command to ensure correct results?

  1. Reverse lexicographical order
  2. Ascending lexicographical order
  3. Ascending chronological order
  4. Reverse chronological order
Show answer and explanation

Correct answer: D. Reverse chronological order

The transaction command expects incoming events in reverse chronological order, newest event first, which is the default order that a search returns events. When events arrive in that order the command can open a transaction on the most recent event and close it correctly as older member events stream in. If you re-sort the results into ascending time order before transaction, the groupings and transaction fields such as duration and eventcount can be wrong.

Why the other options are wrong

  • A. Lexicographical ordering has no bearing on how transaction builds event groups, and reversing it does not satisfy the command's time ordering requirement.
  • B. Alphabetical ordering of field values does not give transaction the time sequence it needs.
  • C. Ascending chronological order is the opposite of what transaction requires and can break transaction boundaries and calculated fields.

Question 6

What type of drilldown passes a value from a user click into another dashboard or external page?

  1. Visualization
  2. Event
  3. Dynamic
  4. Contextual
Show answer and explanation

Correct answer: C. Dynamic

Dynamic drilldown is the drilldown type that takes the value a user clicks in a table or chart and passes it as a token to another dashboard, a form, or an external web page. Contextual drilldown, by contrast, keeps the user on the same dashboard and uses the clicked value to reveal additional panels or detail. Since the requirement is navigation to a different destination carrying the clicked value, dynamic drilldown applies.

Why the other options are wrong

  • A. Visualization is a panel content type, not a drilldown type, so it does not describe how a clicked value is passed to another destination.
  • B. Event drilldown relates to opening or expanding raw event data rather than handing a token to another dashboard or external page.
  • D. Contextual drilldown displays extra information within the same dashboard and does not navigate to another dashboard or external page.

Question 7

What file types does Splunk use to define geospatial lookups?

  1. GPX or GML files
  2. TXT files
  3. KMZ or KML files
  4. CSV files
Show answer and explanation

Correct answer: C. KMZ or KML files

Splunk uses KMZ (compressed KML) and KML (Keyhole Markup Language) files to define geospatial lookups. These formats are designed for geographic data representation and are compatible with mapping applications.

Why the other options are wrong

  • A. GPX and GML are geographic formats but are not the standard file types Splunk uses for geospatial lookups.
  • B. TXT files are plain text and lack the structured geographic data format needed for geospatial lookups.
  • D. While CSV files are used for traditional lookups, they are not the appropriate format for geospatial lookup data.

Question 8

How can form inputs impact dashboard panels using inline searches?

  1. A token in a search can be replaced by a form input value.
  2. Panels powered by an inline search require a minimum of one form input.
  3. Form inputs can not impact panels using inline searches.
  4. Adding a form input to a dashboard converts all panels to prebuilt panels.
Show answer and explanation

Correct answer: A. A token in a search can be replaced by a form input value.

value. Form inputs can impact panels using inline searches by replacing tokens within those searches with values selected or entered by the user, allowing dynamic modification of search queries based on user interaction.

Why the other options are wrong

  • B. Panels with inline searches do not require a minimum number of form inputs; they function independently.
  • C. Form inputs can absolutely impact inline search panels through token substitution.
  • D. Adding form inputs to a dashboard does not convert panel types; panels retain their original configuration.

Question 9

How can a lookup be referenced in an alert?

  1. Use the lookup dropdown in the alert configuration window.
  2. Follow a lookup with an alert command in the search bar.
  3. Run a search that uses a lookup and save as an alert.
  4. Upload a lookup file directly to the alert.
Show answer and explanation

Correct answer: C. Run a search that uses a lookup and save as an alert.

Lookups are referenced in alerts by creating a search that uses the lookup and then saving that search as an alert. This approach ensures the lookup is properly integrated into the alert's search logic and will be executed when the alert runs.

Why the other options are wrong

  • A. The alert configuration window does not provide a dedicated lookup dropdown; lookups must be part of the underlying search query.
  • B. Alert commands follow searches in the search bar, not the reverse; lookups must be embedded within the search itself.
  • D. Lookup files cannot be uploaded directly to alerts; they must already exist in the system and be referenced through search syntax.

Question 10

What is an example of the simple XML syntax for a base search and its post-process search?

  1. ,
  2. ,
  3. ,
  4. ,
Show answer and explanation

Correct answer: A. ,

In simple XML a base search is declared with an id, for example <search id="baseSearch">, and a post-process search references it with the base attribute, for example <search base="baseSearch">. The post-process search contains only the additional pipeline it adds to the base results, and it must not repeat the base search string. Option A is the only choice that uses the id and base attribute pairing correctly.

Why the other options are wrong

  • B. This choice does not pair a base search id with a post-process search that references it through the base attribute.
  • C. This choice omits the required base attribute reference, so the second search would run independently instead of post-processing the base results.
  • D. This choice uses element and attribute names that simple XML does not recognize for base and post-process searches.

That was 10 of 95.

The full Splunk SPLK-1004 pack has all 95 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. US$39, paid once, with free monthly updates and a pass-or-your-money-back guarantee.

Get the full pack