Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free Splunk Core Certified Power User SPLK-1002 Exam Questions

Page: 1 / 21 Total 315 questions

Want more questions? Get Premium Access.

Question 1

Complete the search, .... | _____ failure>successes

Correct Answer: B. Where
Explanation:

The where command can be used to complete the search below.

... | where failure>successes

The where command is a search command that allows you to filter events based on complex or custom criteria. The where command can use any boolean expression or function to evaluate each event and determine whether to keep it or discard it. The where command can also compare fields or perform calculations on fields using operators such as >, <, =, +, -, etc. The where command can be used after any transforming command that creates a table or a chart.

The search string below does the following:

It uses ... to represent any search criteria or commands before the where command.

It uses the where command to filter events based on a comparison between two fields: failure and successes.

It uses the greater than operator (>) to compare the values of failure and successes fields for each event.

It only keeps events where failure is greater than successes.


Question 2

When using a field value variable with a Workflow Action, which punctuation mark will escape the data

Correct Answer: B. !
Explanation:

When using a field value variable with a Workflow Action, the exclamation mark (!) will escape the data. A Workflow Action is a custom action that performs a task when you click on a field value in your search results. A Workflow Action can be configured with various options, such as label name, base URL, URI parameters, post arguments, app context, etc. A field value variable is a placeholder for the field value that will be used to replace the variable in the URL or post argument of the Workflow Action. A field value variable is written as fieldname, where field_name is the name of the field whose value will be used. However, if the field value contains special characters that need to be escaped, such as spaces, commas, etc., you can use the exclamation mark (!) before and after the field value variable to escape the data. For example, if you have a field value variable host, you can write it as !$host! to escape any special characters in the host field value.

Therefore, option B is the correct answer.


Question 3

Marty has multiple data sources that contain fields with IP Address values. What knowledge object should he use to normalize the fields so his data is CIM compliant?

Correct Answer: B. Field alias
Explanation:

Field aliases are used to normalize different field names that contain the same type of data (like IP addresses) across multiple sourcetypes or sources, making the data CIM compliant without re-extracting the fields.


Splunk Power User Study Guide, CIM Compliance

Splunk Docs: Field Aliases for CIM

'Field aliases normalize field names across data sources for CIM compliance.'

Question 4

When using the timechart command, how can a user group the events into buckets based on time?

Correct Answer: A. Using the span argument.

Question 5

It is mandatory for the lookup file to have this for an automatic lookup to work.

Correct Answer: D. Input filed

Question 6

Which of the following statements describe the search below? (select all that apply)

Index=main I transaction clientip host maxspan=30s maxpause=5s

Correct Answer: A. Events in the transaction occurred within 5 seconds.; B. It groups events that share the same clientip and host.; D. The first and last events are no more than 30 seconds apart.
Explanation:

The search below groups events by two or more fields (clientip and host), creates transactions with start and end constraints (maxspan=30s and maxpause=5s), and calculates the duration of each transaction.

index=main | transaction clientip host maxspan=30s maxpause=5s

The search does the following:

It filters the events by the index main, which is a default index in Splunk that contains all data that is not sent to other indexes.

It uses the transaction command to group events into transactions based on two fields: clientip and host. The transaction command creates new events from groups of events that share the same clientip and host values.

It specifies the start and end constraints for the transactions using the maxspan and maxpause arguments. The maxspan argument sets the maximum time span between the first and last events in a transaction. The maxpause argument sets the maximum time span between any two consecutive events in a transaction. In this case, the maxspan is 30 seconds and the maxpause is 5 seconds, meaning that any transaction that has a longer time span or pause will be split into multiple transactions.

It creates some additional fields for each transaction, such as duration, eventcount, startime, etc. The duration field shows the time span between the first and last events in a transaction.


Question 7

A user runs the following search:

index---X sourcetype=Y I chart count (domain) as count, sum (price) as sum by product, action usenull=f useother---f

Which of the following table headers match the order this command creates?

Correct Answer: C. Product, count: addtocart, count: remove, count: purchase, sum: addtocart, sum: remove, sum: purchase
Explanation:

The correct answer is C. Product, count: addtocart, count: remove, count: purchase, sum: addtocart, sum: remove, sum: purchase1.

In Splunk, the chart command is used to create a table or a chart visualization from your data2. The chart command takes at least one function and one field, and optionally another field to group by2.

In the given search, the chart command is used with two functions (count and sum), two fields (domain and price), and two fields to group by (product and action). The usenull=f and useother=f options are used to exclude null values and other values from the chart2.

The chart command creates a table with headers that match the order of the fields and functions in the command1. The headers for the count function are prefixed with count:, and the headers for the sum function are prefixed with sum:1. The values of the product and action fields are used as the suffixes for the headers1.

Therefore, the table headers created by this command are Product, count: addtocart, count: remove, count: purchase, sum: addtocart, sum: remove, and sum: purchase1.


Question 8

What is the correct way to name a macro with two arguments?

Correct Answer: D. us_sales(2)

Question 9

Which method in the Field Extractor would extract the port number from the following event? |

10/20/2022 - 125.24.20.1 ++++ port 54 - user: admin

Correct Answer: B. rex command
Explanation:

The rex command allows you to extract fields from events using regular expressions. You can use the rex command to specify a named group that matches the port number in the event. For example:

rex '\+\+\+\+port (?\d+)'

This will create a field called port with the value 54 for the event.

The delimiter method is not suitable for this event because there is no consistent delimiter between the fields. The regular expression method is not a valid option for the Field Extractor tool. The Field Extractor tool can extract regular expressions, but it is not a method by itself.


Question 10

The transaction command allows you to __________ events across multiple sources

Correct Answer: B. correlate
Explanation:

The transaction command allows you to correlate events across multiple sources. The transaction command is a search command that allows you to group events into transactions based on some common characteristics, such as fields, time, or both. A transaction is a group of events that share one or more fields that relate them to each other. A transaction can span across multiple sources or sourcetypes that have different formats or structures of data. The transaction command can help you correlate events across multiple sources by using the common fields as the basis for grouping. The transaction command can also create some additional fields for each transaction, such as duration, eventcount, startime, etc.


Question 11

Which of these is NOT a field that is automatically created with the transaction command?

Correct Answer: A. maxcount

Question 12

Which of the following can be saved as an event type?

Correct Answer: D. index=server_472 sourcetype=BETA_494 code-488
Explanation:

Event types in Splunk are saved searches that categorize data, making it easier to search for specific patterns or criteria within your data. When saving an event type, the search must essentially filter events based on criteria without performing operations that transform or aggregate the data. Here's a breakdown of the options:

A . The search index-server_472 sourcetype-BETA_494 code-488 | stats count by code performs an aggregation operation (stats count by code), which makes it unsuitable for saving as an event type. Event types are meant to categorize data without aggregating or transforming it.

B . The search index=server_472 sourcetype=BETA_494 code=488 [ | inputlookup append=t servercode.csv] includes a subsearch and input lookup, which is typically used to enrich or filter events based on external data. This complexity goes beyond simple event categorization.

C . The search index=server_472 sourcetype=BETA_494 code=488 | stats where code > 200 includes a filtering condition within a transforming command (stats), which again, is not suitable for defining an event type due to the transformation of data.

D . The search index=server_472 sourcetype=BETA_494 code-488 is the correct answer as it purely filters events based on index, sourcetype, and a code field condition without transforming or aggregating the data. This is what makes it suitable for saving as an event type, as it categorizes data based on specific criteria without altering the event structure or content.


Question 13

Using the export function, you can export search results as __________.( Select all that apply)

Correct Answer: A. Xml; B. Json
Explanation:

Using the export function, you can export search results as XML or JSON2.The export function allows you to save your search results in a structured format that can be used by other applications or tools2.You can use the output_mode parameter to specify whether you want to export your results as XML or JSON2. Therefore, options A and B are correct, while options C and D are incorrect because they are not formats that you can export your search results as.


Question 14

Which of the following is true about the Splunk Common Information Model (CIM)?

Correct Answer: D. The data models included in the CIM are configured with data model acceleration turned on.
Explanation:

The Splunk Common Information Model (CIM) is an app that contains a set of predefined data models that apply a common structure and naming convention to data from any source. The CIM enables you to use data from different sources in a consistent and coherent way. The CIM contains 28 pre-configured datasets that cover various domains such as authentication, network traffic, web, email, etc. The data models included in the CIM are configured with data model acceleration turned on by default, which means that they are optimized for faster searches and analysis. Data model acceleration creates and maintains summary data for the data models, which reduces the amount of raw data that needs to be scanned when you run a search using a data model.

Splunk Core Certified Power User Track, page 10. : Splunk Documentation, About the Splunk Common Information Model.


Question 15

Data models are composed of one or more of which of the following datasets? (select all that apply)

Correct Answer: A. Transaction datasets; B. Events datasets; C. Search datasets
Explanation:

Data model datasets have a hierarchical relationship with each other, meaning they have parent-child relationships. Data models can contain multiple dataset hierarchies. There are three types of dataset hierarchies: event, search, and transaction.

https://docs.splunk.com/Splexicon:Datamodeldataset