Splunk certification · Exam SPLK-1002

SPLK-1002 Mock Exam

Splunk Core Certified Power User Exam

Free SPLK-1002 questions on Topic 1: Questions Set 1, each with the answer and an explanation.

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

Topic 1: Questions Set 1 questions

1–10 of 18 free
Question 1 Choose 1
Which of the following statements describes this search?
sourcetype=access_combined I transaction JSESSIONID | timechart avg (duration)
Show answerHide answer

Correct answer: A This is a valid search and will display a timechart of the average duration, of each transaction event.

Explanation

Explanation

This search uses the transaction command to group events that share a common value for JSESSIONID into transactions1.

The transaction command assigns a duration field to each transaction, which is the difference between the latest and earliest timestamps of the events in the transaction1. The search then uses the timechart command to create a time-series chart of the average duration of each transaction1.

Therefore, option A is correct because it describes the search accurately.

Option B is incorrect because the search does not use the stats command or the pause field.

Option C is incorrect because the transaction command does not require the startswith and endswith options, although they can be used to specify how to identify the beginning and end of a transaction1.

Option D is incorrect because the transaction command does not have to be the last command in the search pipeline, although it is often used near the end of a search1.
Question 2 Choose 4
Data model are composed of one or more of which of the following datasets? (select all that apply.)
Show answerHide answer

Correct answer: A, B, C, D Events datasets Search datasets Transaction datasets Any child of event, transaction, and search datasets

Explanation

Explanation:

A Splunk data model is a structured, hierarchical configuration representing one or more underlying datasets. To construct a working data model, you must begin by defining one or more Root Datasets. Once a root is established, you can break it down further into narrower categories using Child Datasets.

Why All Options are Correct

A. Events datasets:
This is the most common variety of root dataset. A Root Event dataset contains a basic, non-transforming constraint constraint constraint expression (such as index=web sourcetype=access_combined) that targets individual, flat, streaming raw log files from your indexers.

B. Search datasets:
This is a distinct root dataset category that allows you to define a collection of data utilizing an arbitrary SPL search string. Unlike a root event dataset, a root search dataset is uniquely permitted to contain complex transforming commands (like stats or chart) right out of the gate to create pre-aggregated data tables.

C. Transaction datasets:
This root dataset option enables you to group multiple raw events together into single transactions based on shared field tracking boundaries and specific maximum pause or span timeframes (mirroring the operational intent of the transaction command but configured visually via the GUI manager).

D. Any child of event, transaction, and search datasets:
After creating a root dataset, you build out its structural tree by appending Child datasets underneath it. A child dataset automatically inherits all characteristics, constraints, and extracted fields from its parent object, but adds an extra layer of specific filtering criteria (for instance, a child of a web access event dataset might narrow focus strictly to events where status=404). Because children are functional components that directly compose the model, this statement is fully accurate.

Reference

Splunk Documentation:
Knowledge Manager Manual -> About data models and datasets.

Dataset Categories: The documentation explicitly defines the primary building blocks of data models as Event, Transaction, and Search root datasets, while documenting how Child datasets are nested beneath them to create functional object relationships.
Question 3 Choose 3
When using the Field Extractor (FX), which of the following delimiters will work? (select all that apply)
Show answerHide answer

Correct answer: A, B, D TabsPipesSpaces

Explanation

Explanation:

The Interactive Field Extractor (FX) provides a graphical workflow to extract fields from raw events using either a Regular Expression or a Delimiters method. The delimiter option is chosen when your log data is organized into a rigid, sequential pattern separated by specific recurring characters.

Why A, B, and D are Correct
When configuring the Delimiters method, Splunk's graphical wizard features built-in radio buttons to automatically recognize standard industry separators. The interface natively supports:

A. Tabs: Frequently used in structured database outputs or Tab-Separated Value (TSV) logs.

B. Pipes: Common in network security events and custom enterprise logs.

D. Spaces: The default format for standard web access logs and traditional syslog headers.

Why C is Incorrect

C. Colons:
The Field Extractor UI does not feature a native checkbox or selection button for a colon (:) delimiter. While colons frequently separate keys and values (e.g., userID:123), extracting fields separated by colons via the FX utility requires using the Regular Expression method instead. Alternatively, an administrator would need to manually configure the backend transforms.conf file to define a custom character delimiter outside the FX wizard.

Reference

Splunk Documentation: Knowledge Manager Manual -> Define extractions with the Field Extractor.

UI Controls: The documentation specifies that the Field Extractor's delimiter selection screen limits automated parsing selections directly to Space, Comma, Pipe, and Tab. Any alternative custom delimiter requires manual regex pattern matching or direct backend file configurations.
Question 4 Choose 1
Which of the following statements describes field aliases?
Show answerHide answer

Correct answer: B Field aliases can be used in lookup file definitions.

Explanation

Explanation:

Field aliases are alternate names assigned to existing fields, allowing you to use that name to search for events that contain the field . A key feature is that field aliasing is performed before field lookups during search-time processing . This means you can define a lookup table based on a field alias, which is especially useful when fields in your data have different names than those in the lookup table .

For example, if your events contain a field ip but your lookup table uses ipaddress, you can create a field alias to map ip to ipaddress. You can then configure the lookup to use the alias ipaddress as the input field instead of the original field name ip .

Why Other Options Are Incorrect

A. Field alias names replace the original field name. This is false. An alias provides an alternate name, but it does not replace or remove the original field name . Both the alias and the original field name can be used in searches.

C. Field aliases only normalize data across sources and sourcetypes. This is false. While normalizing data is a key use case , it is not the only purpose. Field aliases can be applied in any scenario where you need an alternate name for a field .

D. Field alias names are not case sensitive when used as part of a search. This is false. Field names in Splunk are case sensitive . Therefore, alias names are also case sensitive.

References

Splunk Documentation: "Field aliasing is performed before field lookups during search-time processing" .

Splunk Documentation: "An alias provides an alternate name, but it does not replace or remove the original field name" .
Question 5 Choose 1
A user wants to convert numeric field values to strings and also to sort on those values. Which command should be used first, theevalor thesort?
Show answerHide answer

Correct answer: B Convert the numeric to a string with eval first, then sort.

Explanation

Explanation:

When you need to convert numeric field values to strings and then sort on those values, you must use the eval command first to perform the conversion, followed by the sort command. The sort command operates on the fields that exist in the current results set at the time it is executed. If you sort first, the numeric values are sorted numerically, and then converting them to strings afterward does not reorder the results. By converting to strings first using eval, you create a new string field that the sort command can then process and sort alphabetically.

Why Other Options Are Incorrect

A. It doesn't matter whether eval or sort is used first.
– This is incorrect because the order matters. The sort command can only sort on fields that exist at the moment it runs. If you sort first, the numeric field is sorted numerically, and the subsequent conversion does not reorder the results.

C. Use sort first, then convert the numeric to a string with eval.
– This is incorrect because sorting first would sort the numeric values numerically. After the eval conversion, the results would remain in their already-sorted numeric order, not the desired alphabetical string order.

D. You cannot use the sort command and the eval command on the same field.
– This is incorrect because you can absolutely use both commands on the same field. The key is to sequence them correctly: eval first to create or convert the field, then sort to order the results based on that new field.

References

Splunk Documentation: "The order of commands in a search matters. Commands are processed in the order they appear in the search string" –
Question 6 Choose 1
A calculated field maybe based on which of the following?
Show answerHide answer

Correct answer: B Extracted fields

Explanation

Explanation:

A calculated field is defined using an eval expression and is added to events at search time. Its primary purpose is to perform calculations or transformations on fields that are already present in the event data . The documentation explicitly states that a calculated field can reference "all types of field extractions" . This includes fields that are extracted through inline extractions, field transforms, or automatic key-value extraction .

Because of the strict sequence in which Splunk processes search-time operations, a calculated field can only use fields that exist earlier in the sequence . The search-time sequence places calculated fields after field extractions and field aliasing, but before lookups, event types, and tags . This means fields from lookups, event types, or tags are not yet available when a calculated field is being processed and therefore cannot be referenced in its eval expression .

Why Other Options Are Incorrect

A. Lookup tables.Calculated fields cannot reference lookup tables. The search-time operation sequence processes calculated fields before lookups. Since Splunk adds lookup fields later in the sequence, they are unavailable when the calculated field's eval expression is evaluated.

C. Regular expressions. While regular expressions can be used in field extractions, a calculated field itself is defined by an eval expression. It references the resulting extracted fields, not the method of extraction.

D. Fields generated within a search string. Fields created using an eval command directly within a search string are different from calculated fields. A calculated field is a persistent knowledge object designed to replace manually writing an eval command in every search . These are two distinct concepts.

References

Splunk Documentation: "Calculated fields can reference all types of field extractions. They can't reference lookups, event types, or tags."

Splunk Documentation: "The search-time operations sequence... Calculated field operations are in the middle of the search-time operation sequence... an eval expression for a calculated field never includes fields that are added through a lookup operation."
Question 7 Choose 1
Which of the following statements is true, especially in large environments?
Show answerHide answer

Correct answer: B The stats command is faster and more efficient than the transaction command

Explanation

Explanation:

In large Splunk environments, the stats command is significantly faster and more efficient than the transaction command. This is because stats is a distributable streaming command that can be pushed down to indexers for parallel processing, whereas transaction is a centralized command that must process events sequentially on the search head. The stats command aggregates data without preserving raw event details, making it lightweight and scalable, while transaction requires maintaining state across events, tracking sequences, and preserving raw event data, which consumes substantial memory and CPU resources.

Splunk best practices explicitly recommend using stats instead of transaction whenever possible, reserving transaction only for cases where you need to preserve the raw event sequence.

Why Other Options Are Incorrect

A. Use the stats command when you need to group events by two or more fields. – This is incorrect because stats can group by multiple fields, but the statement implies that it is the only or primary use case. The key distinction is performance, not the number of fields.

C. The transaction command is faster and more efficient than the stats command. – This is the opposite of the truth. transaction is well-known for being resource-intensive and slower than stats, making it unsuitable for large-scale grouping.

D. Use the transaction command when you want to see the results of a calculation. – This is incorrect because transaction does not perform calculations; it groups events. For calculations, you would use eval, stats, or other aggregating commands.

References

Splunk Documentation: "The stats command is a distributable streaming command that can be processed on the indexers, making it faster and more efficient than transaction for grouping and aggregating data" –
Question 8 Choose 1
Which of the following eval command function is valid?
Show answerHide answer

Correct answer: D Tostring ()

Explanation

Explanation:

The tostring() function is a valid and commonly used eval function in Splunk. It converts a numeric value or other data type to a string representation. This is useful when you need to concatenate numbers with text, format values for display, or perform string operations on numeric data.

Why Other Options Are Incorrect

A. Int() – This is incorrect because int() is not a valid eval function in Splunk. The correct function for converting a value to an integer is tonumber(), which can also handle integer conversion. The typeof() function can be used to check the data type.

B. Count() – This is incorrect because count() is not an eval function. It is a statistical aggregation function used with commands like stats, chart, and timechart, not within eval.

C. Print() – This is incorrect because print() is not a valid function in Splunk's eval command. There is no such function in the Splunk Search Processing Language.

References

Splunk Documentation: "The tostring() function converts a number to a string" –

Splunk Documentation: "Valid eval functions include tonumber(), tostring(), if(), case(), lower(), upper(), and many others"
Question 9 Choose 1
In what order arc the following knowledge objects/configurations applied?
Show answerHide answer

Correct answer: B Field Extractions, Field Aliases, Lookups

Explanation

Explanation:

Splunk applies knowledge objects in a specific, documented sequence during search-time processing. The official Splunk documentation lists the following order for these operations :

Field extractions
Field aliasing
Lookups

Therefore, field extractions are processed first, followed by field aliases, and then lookups.

Why Other Options Are Incorrect

A. Field Aliases, Field Extractions, Lookups: This is incorrect because field extractions are processed before field aliases, not after. The official sequence places field extractions at the top of the order .

C. Field Extractions, Lookups,
Field Aliases: This is incorrect because lookups are processed after field aliases, not before. Calculated fields and lookups are both processed after field aliases .

D. Lookups, Field Aliases, Field Extractions: This is the reverse of the correct order. The documentation confirms that field extractions and field aliases are both processed before lookups .

References

Splunk Documentation: "Search-time operation order... 1. Inline field extraction... 2. Field extraction that uses a field transform... 5. Field aliasing... 6. Calculated fields... 7. Lookups" .

Splunk Documentation: "Calculated fields come after field aliasing but before lookups" .
Question 10 Choose 1
What is required for a macro to accept three arguments?
Show answerHide answer

Correct answer: A The macro's name ends with (3).

Explanation

Explanation:

In Splunk, for a macro to accept three arguments, the macro's name must end with (3). This is the explicit syntax used to define the number of arguments a macro expects. When you create a macro, the number in parentheses at the end of the macro name tells Splunk how many arguments the macro will accept. For example, a macro named my_macro(3) expects exactly three arguments. Inside the macro definition, you would use placeholders like $arg1$, $arg2$, and $arg3$ to represent those arguments. When you call the macro, you pass the three arguments in parentheses, such as `my_macro("value1", "value2", "value3")`.

Why Other Options Are Incorrect

B. The macro's name starts with (3). – This is incorrect because the argument count is specified at the end of the macro name, not the beginning. The format is (N).

C. The macro's argument count setting is 3 or more.– This is incorrect because the argument count must be exactly the number of arguments the macro accepts. If the macro name ends with (3), it accepts exactly three arguments—not three or more. Passing more or fewer arguments will result in an error.

D. Nothing, all macros can accept any number of arguments. – This is incorrect because macros do not accept arguments by default. You must explicitly define the number of arguments in the macro name for it to accept any arguments at all.

References

Splunk Documentation: "Macros can accept arguments. The arguments are specified in parentheses after the macro name, e.g., my_macro(2)" –

Splunk Documentation: "The number in the macro name indicates the number of arguments the macro expects"
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