Splunk certification · Exam SPLK-1002

SPLK-1002 Mock Exam Page 5

Splunk Core Certified Power User Exam

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

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

Topic 2: Questions Set 2 questions

41–50 of 73 free
Question 41 Choose 1
When using| timechart by host, which field is represented in the x-axis
Show answerHide answer

Correct answer: D _time

Explanation

Explanation:

When you use | timechart by host, the x‑axis represents the _time field. The timechart command always plots time on the x‑axis because it is a time‑based aggregation command. Each data point on the x‑axis corresponds to a time bucket (e.g., 1 minute, 1 hour, 1 day) determined automatically by the search time range or manually set with span=. While the x‑axis label may display human‑readable dates or times (e.g., "12:00 PM"), the underlying field is always _time—Splunk's default timestamp field.

❌ Why the other options are incorrect

A. date
– There is no default field named date in Splunk. The x‑axis displays time values derived from _time, but the field itself is not called date. Even if you see a date format on the axis, the underlying data is _time.

B. host
– The host field is used in the by clause to split the data into separate series (lines or bars). It appears in the legend, not on the x‑axis. The x‑axis is always time‑based.

C. time
– While "time" correctly describes what is on the x‑axis, the actual field name in Splunk is _time (with an underscore). In Splunk exam questions, precision matters. The field is _time, not time. If an option says "time" without the underscore, it is a distractor.

References:

Splunk Documentation:
"The timechart command creates a time series chart. The x‑axis is always _time, and the y‑axis is the aggregated statistic."
Question 42 Choose 1
Which of the following is included with the Splunk Common Information Model (CIM) Addon?
Show answerHide answer

Correct answer: B A set of pre-configured data models.

Explanation

📝 Explanation:

The Splunk Common Information Model (CIM) Add-on is a shared semantic model that provides a standardized way to interpret and normalize data at search time . Its primary component is a collection of pre-configured data models for common IT and security domains, such as Authentication, Network Traffic, Web, and Change Analysis .

These data models define a standard set of field names and event tags, allowing you to run consistent reports, dashboards, and correlation searches across data from different vendors . For example, you can use the Authentication data model to analyze login events regardless of whether the source is a Windows, Linux, or firewall log .

❌ Why the other options are incorrect

A. Sourcetype definitions from the most popular technology vendors:
The CIM add-on does not include sourcetype definitions. Sourcetypes are provided by the specific Splunk Add-ons that collect data from those vendors (e.g., Splunk Add-on for Microsoft Windows), which often then map their data to the CIM .

C. Scripted inputs to pre-align data with the CIM:
The CIM does not provide scripted inputs. Its tools are for applying the CIM schema at search-time, not for collecting or pre-processing data before indexing .

D. Dashboards to validate data quality:
While the add-on includes a CIM Validation data model and tools like a custom validation command, the primary deliverable is the set of data models . A "Data Model Audit" dashboard is available to monitor acceleration performance, not general data quality validation . The core offering remains the data models themselves.
Question 43 Choose 1
This function of the stats command allows you to return the middle-most value of field X.
Show answerHide answer

Correct answer: B Median(X)

Explanation

Explanation:

The median(X) function in the stats command returns the middle-most value of field X (the median). The median is the value that separates the higher half from the lower half of the data set. It is a statistical aggregation function supported by stats, chart, and timechart.

❌ Why the other options are incorrect

A. Fields(X)
– There is no Fields() function in the stats command. The fields command is used to retain or remove fields, but it is not a statistical aggregation function. This is a distractor.

C. Eval by X
– eval is a separate command used to create or manipulate fields on a per‑event basis. The phrase "by X" suggests grouping, but eval does not return the middle‑most value. There is no eval by syntax in stats.

D. Values(X)
– The values(X) function returns a list of all unique values for field X (as a multivalue field). It does not return the median or any middle value. It shows every distinct value present in the group.

References

Splunk Documentation:
"The median(X) function returns the middle-most value of field X."

SPLK-1002 Exam Blueprint:
Search Commands → stats → Statistical functions.
Question 44 Choose 1
Which of the following eval commands will provide a new value for host from src if it exists?
Show answerHide answer

Correct answer: D | eval host = if (isnotnull (src), src, host)

Explanation

Explanation:

This command checks whether the field src exists and is not null (i.e., it has a valid value). If src is not null, it sets host equal to the value of src. If src is null or does not exist, it leaves host unchanged (keeping its original value). This exactly matches the requirement: "provide a new value for host from src if it exists."

❌ Why the other options are incorrect

A. | eval host = if (isnu11(src), src, host)
– This contains a typo: isnu11 (with the number "11" instead of two lowercase "l"s). The correct function is isnull(). Because of this typo, the command would fail with a syntax error. Even if corrected to isnull(), the logic would be reversed: it would set host = src only when src is null, which is the opposite of what is needed.

B. | eval host = if (NOT src = host, src, host)
– This checks whether src does not equal host. However, if src is null or missing, src = host would be false, so NOT false = true, and it would incorrectly set host = src (which is null). This logic does not correctly handle missing fields and would overwrite host with a null value in many cases.

C. | eval host = if (src = host, src, host)
– This checks whether src equals host. If they are equal, it sets host = src (no change). If they are not equal, it leaves host unchanged. This would never change host to the value of src when they differ, which defeats the purpose. It does not check whether src exists; it checks for equality instead..

📚 References

Splunk Documentation:
"The isnotnull function returns true if the field exists and is not null."

SPLK-1002 Exam Blueprint:
Search Commands → eval → Conditional functions (if, isnull, isnotnull).
Question 45 Choose 1
Highlighted search terms indicate _________ search results in Splunk.
Show answerHide answer

Correct answer: D Matching

Explanation

Explanation

In Splunk, when you perform a search, any search terms that match events are highlighted in the raw event data within the search results. This highlighting visually indicates which parts of the event text matched your search criteria. For example, if you search for error, every occurrence of the word "error" in the _raw field of matching events will be highlighted in yellow (or another color) to help you quickly identify why that event was returned.

❌ Why the other options are incorrect

A. Display as selected fields – Highlighted search terms are not automatically displayed as selected fields. "Selected fields" refers to fields that you manually pin to the Fields sidebar. Highlighting is purely a visual indicator in the event preview, not a field selection mechanism.

B. Sorted – Highlighting has nothing to do with sorting. Sorting is controlled by the sort command (e.g., | sort - _time). Highlighting does not affect the order of results.

C. Charted based on time – Highlighting is unrelated to charting or time-based visualization. Charting is achieved with commands like timechart or chart. Highlighting is a display feature only.

📘 Additional exam note
Highlighting applies to literal search terms and field=value matches.
In the event viewer, matched terms appear with a colored background (default yellow).
This feature helps users quickly scan events and verify that the search returned relevant results.

📚 References

Splunk Documentation:
"Search terms that match events are highlighted in the raw event data in search results." https://docs.splunk.com/Documentation/Splunk/latest/Search/Searesults

SPLK-1002 Exam Blueprint:
Search Interface → Search results → Highlighting of matching terms.
Question 46 Choose 1
What are the expected results for a search that contains the command | where A=B?
Show answerHide answer

Correct answer: C Events where values of field are equal to values of field B.

Explanation

Explanation:

The | where A=B command filters events based on a field comparison. It evaluates each event and keeps only those where the value of field A equals the value of field B. This is a conditional filter that operates on field values, not literal strings. For example, if an event has A=100 and B=100, it is kept; if A=100 and B=200, it is dropped.

❌ Why the other options are incorrect

A. Events that contain the string value where A=B. – The where command does not search for literal strings. The syntax | where A=B is a conditional expression, not a text search. This option misunderstands the command as a literal search for the phrase "where A=B", which is incorrect.

B. Events that contain the string value A=B. – This option also treats A=B as a literal string. The where command evaluates field comparisons; it does not search for string patterns. This is a common misconception.

D. Events where field A contains the string value B. – The = operator in where tests for equality, not "contains". If you wanted to test whether field A contains the string "B", you would use | where like(A, "%B%") or | where A="*B*" (depending on syntax). The equals sign (=) means exact match, not substring containment.

📘 Additional exam note
The where command is a streaming command that filters events based on boolean expressions.
It can use comparison operators: =, !=, >, <, >=, <=.
It can also use logical operators: AND, OR, NOT.


📚 References

Splunk Documentation:
"The where command filters search results using eval expressions. It keeps events where the expression evaluates to true."
Question 47 Choose 1
What information must be included when using the data model command?
Show answerHide answer

Correct answer: D Data model dataset name

Explanation

Explanation:

The | datamodel command is used to search or inspect data models in Splunk. Its syntax is | datamodel (or just the dataset name if the data model is unambiguous). The dataset name (also called the data model object) is required if you want to retrieve actual events. Without specifying a dataset, the command only returns the JSON structure of the data model, not the events themselves. For example, to get events from the Failed_Authentication dataset within the Authentication data model, you would use: | datamodel Authentication Failed_Authentication.

❌ Why the other options are incorrect

A. status field
– There is no requirement to include a status field when using the datamodel command. The dataset may or may not contain a status field, depending on its definition. The command does not mandate any specific field name; it only requires the dataset name.

B. Multiple indexes
– The datamodel command does not require specifying multiple indexes. In fact, data models are designed to work across indexes based on their configured constraints. You do not explicitly list indexes in the command.

C. Data model field name
– The command requires a dataset name, not a generic "field name." A dataset is a specific object within the data model (e.g., Web or Network_Traffic), not an individual field like src or dest. This option confuses the dataset with a field.

📘 Additional exam note
If you omit the dataset name, the datamodel command returns the JSON definition of the data model, which is useful for reference but does not produce a searchable event table.

Data models are collections of datasets (objects) that define constraints and field names for specific use cases (e.g., Authentication, Web, Email).

📚 References

Splunk Documentation:
"The datamodel command can be used to return the JSON of a data model or to search a specific dataset. To search a dataset, specify the data model name and the dataset name."
Question 48 Choose 1
Which of the following statements best describes a macro?
Show answerHide answer

Correct answer: C A macro is a portion of a search that can be reused in multiple place

Explanation

Explanation:

A macro in Splunk is a knowledge object that allows you to save a reusable piece of search logic (e.g., a complex search string, an eval expression, or a set of filtering conditions) and give it a name. You can then call that macro in any search by enclosing it in backticks (e.g., |my_macro). Macros help reduce repetitive typing, simplify complex searches, and ensure consistency across searches, reports, and dashboards.

❌ Why the other options are incorrect

A. A macro is a method of categorizing events based on a search. – This describes an event type, not a macro. Event types categorize events using a search string and add an eventtype field. Macros do not categorize events; they are simply reusable search snippets.

B. A macro is a way to associate an additional (new) name with an existing field name. – This describes a field alias, not a macro. Field aliases allow you to give an existing field a secondary name (e.g., alias client_ip to src). Macros do not rename fields.

D. A macro is a knowledge object that enables you to schedule searches for specific events. – This describes a scheduled search (or report), not a macro. Scheduled searches run at defined intervals and can trigger alerts. Macros are not scheduled; they are called manually within other searches.

References

Splunk Documentation:
"A macro is a reusable piece of search logic that you can use in other searches. It can be a simple string or include arguments."
Question 49 Choose 1
Where are the descriptions of the data models that come with the Splunk Common Information Model (CIM) Add-on documented?
Show answerHide answer

Correct answer: B CIM Add-on manual

Explanation

Explanation:

The descriptions of the data models that come with the Splunk Common Information Model (CIM) Add-on are documented in the CIM Add-on manual. Specifically, the Data Models chapter of this manual provides reference documentation for the fields and tags that make up each data model. The manual contains a full listing of all data models included with the add-on, such as Authentication, Network Traffic, Web, Email, and many others, along with the expected fields and tags for each dataset. The official documentation explicitly states that you should refer to these reference tables to determine what tags and fields are expected for each dataset in a data model.

❌ Why the other options are incorrect

A. Search and reporting user manual
– This manual covers general search and reporting functionality in Splunk, but it does not provide detailed descriptions of CIM data models. The CIM-specific documentation is maintained separately in the CIM Add-on manual.

C. Pivot users manual
– While Pivot does allow you to interact with data models and create reports, the detailed field descriptions and data model reference tables are documented in the CIM Add-on manual, not the Pivot manual.

D. Datamodel command reference guide
– The datamodel command reference describes the syntax and usage of the command itself, but it does not provide comprehensive descriptions of all CIM data models and their fields.

📚 References

Splunk CIM Add-on Manual: "The Data Models chapter of this manual provides reference documentation for the fields and tags that make up each data model."

Splunk Documentation: The CIM Add-on contains a collection of preconfigured data models, and the manual includes a CIM fields per associated data model section that lists all fields and the models they belong to.
Question 50 Choose 1
Which function should you use with the transaction command to set the maximum total time between the earliest and latest events returned?
Show answerHide answer

Correct answer: D maxspan

Explanation

Explanation:

The maxspan option in the transaction command sets the maximum total time span between the earliest and latest events within a single transaction. When the time difference between the first and last event exceeds this limit, the transaction is closed and a new one begins. This is exactly what the question describes: "the maximum total time between the earliest and latest events returned." For example, | transaction host maxspan=5m ensures that a transaction includes only events from the same host that occur within a 5‑minute window from the first to the last event.

❌ Why the other options are incorrect

A. maxpause
– This option sets the maximum idle time (pause) between consecutive events in a transaction. If the gap between two sequential events exceeds maxpause, the transaction is closed. It does not control the total time span from first to last event. For instance, if maxpause=30s, a transaction closes if no new event appears within 30 seconds of the last event, regardless of the total transaction length.

B. endswith
– This option defines a condition (e.g., endswith="logout") that marks the last event in a transaction. It does not enforce any time limit. It is purely content‑based, not time‑based.

C. maxduration
– There is no maxduration option for the transaction command in Splunk. This is a distractor. The correct time‑span control option is maxspan, not maxduration.

References

Splunk Documentation:
"The maxspan option specifies the maximum time span of a transaction, from the first event to the last event."
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