Splunk certification · Exam SPLK-1001

SPLK-1001 Mock Exam Page 4

Splunk Core Certified User

Free SPLK-1001 mock exam questions 31–40, each with the answer and an explanation.

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

Free SPLK-1001 questions

31–40 of 72 free
Question 31 Choose 1
Which statement is true about Splunk alerts?
Alerts are based on searches that are either run on a scheduled interval or in real-time. B. Alerts are based on searches and when triggered will only send an email notification.
Alerts are based on searches and require cron to run on scheduled interval. D. Alerts are based on searches that are run exclusively as real-time.
Show answerHide answer

Correct answer: A Alerts are based on searches that are either run on a scheduled interval or in real-time

Explanation

Explanation
This question tests your understanding of the fundamental types of alerts in Splunk.

Why Option A is Correct:
Splunk alerts are indeed triggered by saved searches, and these searches can be executed in two primary ways:
Scheduled (Historical):
The search runs at a specified interval (e.g., every 5 minutes, hourly, daily). It looks over a window of historical data (e.g., the last 15 minutes) to see if it matches the alert condition.
Real-time (Continuous):
The search runs continuously, scanning data as it is indexed in real-time (or with a very short delay of 1-60 seconds). This is used for immediate notification of critical conditions.
This flexibility to use either scheduling mode is a core feature of Splunk's alerting mechanism.

Why the Other Options Are Incorrect:
B) Alerts are based on searches that are either run on a scheduled interval or in real-time.
This appears to be a duplicate of option A. In a properly formatted exam, this would not be listed twice, and A would be the correct choice.
C) Alerts are based on searches and when triggered will only send an email notification.
This is false. While email is a common action, it is not the only one. Splunk alerts can be configured to perform multiple actions, including:
Running a script
Logging an event to a file
Creating a ticket in an external system via webhooks
Triggering a summary-indexing search
D) Alerts are based on searches and require cron to run on a scheduled interval.
This is incorrect. While you can use cron-style scheduling syntax (e.g., */5 * * * * to run every 5 minutes) in Splunk, it is not a requirement. Splunk provides a user-friendly scheduler in the web interface that allows you to specify intervals without needing to know cron syntax. The underlying system may use a similar concept, but the user is not required to configure cron directly.
E) Alerts are based on searches that are run exclusively as real-time.
This is false. As explained for the correct answer, alerts can be either scheduled or real-time. Stating they are "exclusively" real-time ignores the very common and powerful use case for scheduled, historical alerts.

Reference:
Splunk Documentation: About alerts
Question 32 Choose 1
What can be configured using the Edit Job Settings menu?
Show answerHide answer

Correct answer: D Change Job Lifetime from 10 minutes to 7 days.

Explanation

Explanation:
In Splunk, the Edit Job Settings menu allows users to modify certain properties of a search job after it has been executed. A search job represents the execution of a search query, and its settings can be adjusted to control aspects like how long the job’s results are retained. The Edit Job Settings menu is accessed by clicking the job ID in the Splunk Search & Reporting app (typically found in the Jobs menu or by inspecting a running/completed job).

Why is D correct?
Change Job Lifetime:
The Edit Job Settings menu allows you to modify the job lifetime, which determines how long Splunk retains the search job’s results and artifacts (e.g., event data, timeline, or exported files). By default, search jobs have a short lifetime (e.g., 10 minutes for ad-hoc searches), but you can extend this (e.g., to 7 days) to keep results accessible longer.

How it works:
After running a search, click the Jobs menu (or the job ID in the search interface) to open the Job Details.
Select Edit Job Settings to adjust the TTL (Time to Live), which can be set to a custom duration like 7 days.
This is useful for keeping search results available for review, sharing, or exporting without re-running the search.
Example:
If you ran index=web | stats count by host, you can extend the job’s lifetime from 10 minutes to 7 days to ensure the results remain accessible for a week.

Why the other options are incorrect:
A. Export the results to CSV format:
This is incorrect because exporting results to CSV is not done through the Edit Job Settings menu. Instead, you export results directly from the search results interface by clicking the Export button (below the search bar or in the results area) and selecting CSV as the format. This action is separate from job setti
B. Add the Job results to a dashboard:
This is incorrect. Adding search results to a dashboard involves saving the search as a report or creating a dashboard panel, which is done via Save As > Report or Save As > Dashboard Panel in the search interface, not through the Edit Job Settings menu. Job settings focus on the job’s lifecycle, not its output usage.
C. Schedule the Job to re-run in 10 minutes:
This is incorrect. Scheduling a search to re-run (e.g., every 10 minutes) is done by saving the search as a scheduled report or alert (via Save As > Report or Save As > Alert and configuring a schedule). The Edit Job Settings menu applies to a specific, already-executed job and does not allow scheduling future runs.

Additional Notes:
Job Settings Scope:
The Edit Job Settings menu typically allows adjustments to:
Job Lifetime (TTL):
How long the job’s results are kept (e.g., 10 minutes to 7 days).
Permissions:
Whether the job is private or shared with other users or apps.
Priority:
In some cases, job priority can be adjusted (more relevant for admins in high-load environments).
Use case:
Extending the job lifetime is useful when you need to revisit results later, share them with colleagues, or export them without re-running a potentially resource-intensive search.
Limitations:
The maximum job lifetime depends on Splunk’s configuration (set by admins in savedsearches.conf or system limits). For Splunk Cloud, there may be stricter limits. Accessing Job Settings:
Run a search (e.g., index=web | stats count by status).
Click the Jobs menu (gear icon or link in the Splunk bar) or the job ID in the search results. Select Edit Job Settings to modify the TTL or other properties.

Reference:
Splunk Documentation: Manage search jobs
Question 33 Choose 1
Which command is used to validate a lookup file?
Show answerHide answer

Correct answer: B inputlookup products.csv

Explanation

Explanation:
In Splunk's Search Processing Language (SPL), the inputlookup command is used to validate, inspect, or retrieve the contents of a lookup file, such as a CSV file. This command allows you to read the data from a lookup file (e.g., products.csv) and return it as search results, which is useful for verifying the file’s contents, structure, or data integrity before using it in a lookup operation.

Why is B correct?
Purpose of inputlookup:
The inputlookup command reads the contents of a lookup file (e.g., a CSV file stored in Splunk) and returns its rows as events in the search results. This allows you to:
Validate the lookup file’s data (e.g., check for missing values, incorrect formats, or expected columns).
Inspect the file’s structure (e.g., column names, data types).
Use the data directly in searches or for further processing.

Syntax:
text| inputlookup products.csv
This command retrieves all rows from the products.csv lookup file and displays them as a table in the Splunk search results.
Example:
Suppose products.csv contains:
textproduct_id,product_name,price
1,Laptop,999
2,Phone,499
Running | inputlookup products.csv returns a table with columns product_id, product_name, and price, allowing you to verify the contents.
Validation use case:
By examining the output, you can confirm that the lookup file is correctly formatted, contains the expected fields, and has no errors (e.g., missing columns or malformed data).

Why the other options are incorrect:
A. | lookup products.csv:
This is incorrect because the lookup command is used to enrich search results by mapping fields from events to fields in a lookup file, not to validate or display the lookup file’s contents. For example, | lookup products.csv product_id OUTPUT product_name adds the product_name field to events based on matching product_id values. It does not show the raw contents of the lookup file.
C. | inputlookup products.csv:
This is incorrect due to a syntax error. The option includes an extra “I” (likely a typo for ). The correct command is | inputlookup products.csv. If this was meant to be the same as option B, it’s a formatting error in the question.
D. lookup definition products.csv:
This is incorrect because “lookup definition” is not a valid SPL command. A lookup definition is a configuration in Splunk (created via Settings > Lookups > Lookup definitions) that defines how a lookup file is used, but it’s not a command for validating or retrieving the file’s contents. To validate the file itself, you use inputlookup.

Additional Notes:
Prerequisites:
The lookup file (e.g., products.csv) must be uploaded to Splunk (via Settings > Lookups > Lookup table files or placed in
$SPLUNK_HOME/etc/apps//lookups/) and accessible to the user’s app or permissions.
Validation steps:
Run | inputlookup products.csv | table * to display all columns and rows. Check for missing or malformed data, correct field names, or unexpected values.
Advanced use:
You can combine inputlookup with other commands to analyze the lookup data, e.g., | inputlookup products.csv | stats count by product_name to count unique product names.
Lookup definition requirement:
While a lookup definition is needed to use the lookup command, inputlookup does not require a lookup definition—it directly accesses the file.

Reference:

Splunk Documentation: lookup command
Splunk Documentation: About lookups
Question 34 Choose 1
Which stats command function provides a count of how many unique values exist for a given field in the result set?
Show answerHide answer

Correct answer: A dc(field)

Explanation

Explanation:
This question tests your knowledge of specific statistical functions used with the stats command.

Why Option A is Correct:
The dc() function, which stands for "distinct count", is the correct SPL function to count the number of unique values for a given field.
Example:
... | stats dc(user_id) will return a single number representing the total number of unique user_id values in the search results.
Usage:
It is one of the most common stats functions for measuring cardinality or diversity in a dataset.

Why the Other Options Are Incorrect:
B) count(field):
This is incorrect. The count function does not take a field as an argument. When used alone as stats count, it counts the total number of events in the result set. If you try to use count(field_name), it will actually count the number of events where that field exists and has any value (including non-unique values), not the number of unique values.
C) count-by(field):
This is not a valid stats function. The correct syntax for grouping is to use the BY clause, e.g., stats count BY user_id, but this does not provide a count of unique values; it provides a count of events for each unique value.
D) distinct-count(field):
While this is a descriptive name for the operation, it is not the correct function name in SPL. The Splunk language uses the abbreviation dc().

Reference:
Splunk Documentation: Stats functions
Question 35 Choose 1
What user interface component allows for time selection?
Show answerHide answer

Correct answer: B Time range picker

Explanation

Explanation :
In Splunk’s Search & Reporting interface, the Time Range Picker is the primary user interface component that allows users to select and modify the time window for their search. It’s located just to the right of the search bar and is essential for narrowing down the scope of events based on time.

With the Time Range Picker, users can:
Choose preset ranges like Last 15 minutes, Last 24 hours, Last 7 days
Define custom absolute ranges (e.g., from Oct 1, 2025 00:00 to Oct 3, 2025 23:59)
Use relative time modifiers (e.g., earliest=-72h@h latest=@d)
Apply real-time windows for streaming data
This component directly affects which events are retrieved and displayed. It’s one of the most powerful tools for refining search results, especially in operational troubleshooting, alerting, and forensic analysis.

❌ Why Other Options Are Incorrect:
A. Time summary
❌ Not a UI component. This term refers to a summary of event distribution, not a selector.
C. Search time picker
❌ Not an official Splunk term. The correct name is Time Range Picker.
D. Data source time statistics
❌ Irrelevant. This refers to backend data characteristics, not a UI element for time selection.

📚 References:
Splunk Docs – Use the Time Range Picker:
Splunk Education – SPLK-1001 Study Guide:
Question 36 Choose 1
When an alert action is configured to run a script, Splunk must be able to locate the script. Which is one of the directories Splunk will look in to find the script?
Show answerHide answer

Correct answer: A $SPLUNK_HOME/bin/scripts

Explanation

Explanation:
In Splunk, when an alert action is configured to run a custom script, Splunk needs to locate the script file to execute it. One of the default directories where Splunk looks for such scripts is $SPLUNK_HOME/bin/scripts. This directory is specifically designed for storing scripts that can be executed by Splunk alert actions.

Why is A correct?
Script location for alert actions:
When you configure an alert to run a script (via Settings > Alert actions > Run a script in Splunk Web), you specify the script’s filename (e.g., myscript.sh). Splunk searches for this script in specific directories, including $SPLUNK_HOME/bin/scripts.
$SPLUNK_HOME:
This is the root directory of the Splunk installation (e.g., /opt/splunk on Linux or C:\Program Files\Splunk on Windows). The bin/scripts subdirectory is a standard location for custom scripts used in alert actions.
Example:
If you configure an alert to run myscript.sh, you place the script in $SPLUNK_HOME/bin/scripts/myscript.sh (e.g., /opt/splunk/bin/scripts/myscript.sh). When the alert triggers, Splunk executes the script from this location.
Validation:
Splunk automatically checks $SPLUNK_HOME/bin/scripts for scripts specified in alert actions, making it a primary directory for this purpose.

Why the other options are incorrect:
B. $SPLUNK_HOME/etc/scripts:
This is incorrect because $SPLUNK_HOME/etc is used for configuration files (e.g., props.conf, transforms.conf) and app-specific data, not for executable scripts used by alert actions. While custom scripts can be stored in other locations (e.g., within an app’s bin directory), $SPLUNK_HOME/etc/scripts is not a standard directory Splunk searches for alert scripts.
. $SPLUNK_HOME/bin/etc/scripts:
This is incorrect because $SPLUNK_HOME/bin/etc/scripts is not a valid or standard directory in Splunk’s directory structure. The bin directory contains executable scripts and binaries, but it does not have an etc/scripts subdirectory.
D. $SPLUNK_HOME/etc/scripts/bin:
This is incorrect for similar reasons. $SPLUNK_HOME/etc does not typically contain a scripts/bin subdirectory, and this is not a standard location where Splunk looks for alert scripts. The correct directory is under bin, not etc.

Additional Notes:
Other script locations:
In addition to $SPLUNK_HOME/bin/scripts, Splunk also looks in the bin directory of the app where the alert is defined (e.g., $SPLUNK_HOME/etc/apps//bin). For example, if the alert is in a custom app called myapp, Splunk checks $SPLUNK_HOME/etc/apps/myapp/bin for the script.
Script requirements:
The script must be executable (e.g., have appropriate permissions on Linux, such as chmod +x myscript.sh).
The script must be compatible with the operating system running Splunk (e.g., .sh for Linux, .bat or .ps1 for Windows).
Security note
As of Splunk Enterprise 8.0 and later, the “Run a script” alert action is deprecated due to security concerns (e.g., potential vulnerabilities in custom scripts). Splunk recommends using custom alert actions or webhooks instead, but the bin/scripts directory remains relevant for legacy setups or specific use cases in older versions.
SPLK-1001 context: For the Splunk Core Certified User exam, understanding the $SPLUNK_HOME/bin/scripts directory is key for questions about basic alert script configuration.

Reference:
Splunk Documentation: Configure scripted alerts
Question 37 Choose 2
When editing a dashboard, which of the following are possible options? (select all that apply)
Show answerHide answer

Correct answer: C, D Modify the chart type displayed in a dashboard panel. Drag a dashboard panel to a different location on the dashboard.

Explanation

Explanation:
When editing a dashboard in Splunk (especially in Classic or Dashboard Studio), you have several interactive options to customize layout and visualization:

✅ Modify the chart type:
You can change a panel from a line chart to a bar chart, pie chart, or other supported visual types. This is done via the panel editor, allowing you to tailor the visualization to the data.
>✅ Drag and reposition panels:
Splunk supports drag-and-drop layout editing. You can move panels around to reorganize the dashboard grid or canvas, improving readability and flow. These features are core to dashboard customization and are accessible via the Edit mode.

❌ Why Other Options Are Incorrect:
A. Add an output
❌ “Output” is not a dashboard editing feature. It’s more relevant to alerts or saved searches (e.g., output to CSV, webhook, or email).
B. Export a dashboard panel
❌ You can export search results, but not individual dashboard panels directly. Exporting is done from the search view, not dashboard edit mode.

📚 References:
Splunk Docs – Edit Dashboards:
Question 38 Choose 1
Which of the following index searches would provide the most efficient search performance?
Show answerHide answer

Correct answer: C (index=web OR index=sales)

Explanation

Explanation:
In Splunk, search performance is heavily influenced by how specific and targeted the search criteria are, particularly when it comes to specifying indexes. The more precise the index selection, the fewer events Splunk needs to scan, resulting in faster search execution. Let’s analyze each option to determine which provides the most efficient search performance.

Why is C the most efficient?
Search string: (index=web OR index=sales)
Why it’s efficient:
This search explicitly targets two specific indexes: web and sales. By naming exact indexes, Splunk only scans the events stored in those indexes, minimizing the data processed. The OR operator combines events from both indexes, but because the indexes are explicitly defined, Splunk can optimize the search to focus on only those two datasets. Example: If the web index contains 1 million events and the sales index contains 500,000 events, Splunk scans only those 1.5 million events, rather than all indexes in the system.
Performance benefit: Specifying exact indexes reduces the search scope significantly compared to searching all indexes or using wildcards, leading to faster execution and lower resource usage.

Why the other options are less efficient:
A. index=*:
Why it’s inefficient:
The index=* syntax instructs Splunk to search all indexes that the user has access to. This can include dozens or hundreds of indexes (e.g., main, _internal, web, sales, etc.), potentially scanning millions or billions of events depending on the environment. This is the least efficient option because it maximizes the data scanned, leading to slower performance and higher resource consumption.
Example:
If a Splunk instance has 10 indexes with a total of 10 million events, index=* scans all 10 million, even if relevant data is only in one or two indexes.
B. index=web OR index=s*:
Why it’s less efficient:
This search targets the web index and any indexes matching the wildcard s* (e.g., sales, security, system). While it’s more specific than index=*, the wildcard s* could match multiple indexes, increasing the number of events scanned compared to explicitly naming web and sales. Wildcards require Splunk to evaluate which indexes match, adding overhead and potentially including irrelevant indexes.
Example:
If there are additional indexes like security or stats, Splunk will scan those as well, unnecessarily increasing the search scope.
*D. index=sales AND index=web:
Why it’s incorrect and inefficient:
The syntax *index=sales AND index=web is invalid and would not work as intended. In Splunk, the index keyword is used to specify the index name (e.g., index=web), and the * before index is not a valid construct (it’s likely a typo or misinterpretation). If interpreted as index=sales AND index=web, this search is logically impossible because an event can only belong to one index. No event can simultaneously be in both the sales and web indexes, so this search would return no results. Even if it were valid, it wouldn’t be more efficient than
option C because it’s overly restrictive and incorrect.

Additional Notes:
>Index specificity:
The most efficient searches explicitly name the indexes to search (e.g., index=web or index=sales). This reduces the number of events Splunk needs to process, especially in large environments with many indexes. Wildcard overhead: Using wildcards (e.g., index=s*) can degrade performance by including unintended indexes, especially if the Splunk instance has many indexes with similar names. Default indexes: If no index is specified in a search, Splunk uses the user’s default indexes (defined in their role), but explicitly specifying indexes (as in option C) is always more efficient than relying on defaults or wildcards.
Best practice:
Always specify exact indexes in production searches to optimize performance. For example, index=web status=500 or (index=web OR index=sales) error is preferred over index=* or wildcards.
SPLK-1001 context:
For the Splunk Core Certified User exam, understanding how index selection impacts performance is critical, as it’s a common topic in search optimization questions.

Example for Clarity:
Search: (index=web OR index=sales) error This retrieves events containing the keyword error from only the web and sales indexes, minimizing the dataset scanned compared to index=* error or index=s* error.

Reference:
Splunk Documentation: Search across multiple indexes
Splunk Documentation: index keyword
Question 39 Choose 1
At index time, in which field does Splunk store the timestamp value?
Show answerHide answer

Correct answer: C timestamp

Explanation

Explanation:
This question tests your knowledge of Splunk's core architecture, specifically the default fields that are added to every event during the indexing process.

Why Option C is Correct:
The _time field is the internal, canonical field where Splunk stores the normalized timestamp for an event during indexing.
Index-time Processing:
When Splunk ingests data, it parses each event to find a timestamp. It normalizes this timestamp to Epoch time (a numeric value) and stores it in the _time field.
Primary Time Field:
This _time field is the primary field used for all time-based operations in Splunk, including sorting, time-range searches, and the timeline histogram.
Display:
While the _time field is stored in Epoch format, the Splunk interface automatically converts and displays it in a human-readable format (e.g., 2024-10-01 14:30:15) in the events list.

Why the Other Options Are Incorrect:
A) time:
While "time" is a common term, it is not the name of the official, internal timestamp field in Splunk. The official field is _time.
B) EventTime:
This is not a default Splunk field. A field named EventTime could exist in your raw log data, and Splunk might even use it to extract the timestamp, but the value Splunk derives from it will be normalized and stored in the _time field. EventTime would remain as a separate, search-time field in your events.

Reference
Splunk Documentation: How timestamp assignment works
Splunk Documentation: Default fields
Question 40 Choose 1
Which statement is true about the top command?
Show answerHide answer

Correct answer: D All of the above

Explanation

Explanation:
In Splunk's Search Processing Language (SPL), the top command is used to identify the most frequent values of a specified field in a dataset, along with their counts and percentages. All the statements provided in the options (A, B, and C) are true about the top command’s default behavior, making D the correct answer. Let’s break down each option to confirm.

Why is D correct?
A. It returns the top 10 results:
True:
By default, the top command returns the top 10 most frequent values of the specified field, based on their event counts. For example, index=web | top host returns the 10 hosts with the highest event counts. You can override this default using the limit option (e.g., top limit=5 host to return the top 5).
Reference:
Splunk Documentation: top command - limit option
B. It displays the output in table format:
True:
The top command is a transforming command in Splunk, meaning it generates a summarized table as output. The results are displayed in a tabular format with columns for the field values, their counts, and percentages. For example, index=web | top host produces a table with columns host, count, and percent. Reference:
Splunk Documentation: Transforming commands
C. It returns the count and percent columns per row:
True:
By default, the top command includes two columns in its output for each row: count (the number of occurrences of each field value) and percent (the percentage of total events that the field value represents). For example, in index=web | top status, each row shows a status value (e.g., 200, 404), its count (e.g., 1000 events), and its percent (e.g., 25% of total events). This behavior can be modified with the showpercent=false option to exclude the percent column. Reference: Splunk Documentation: top command output
Since all three statements are true, D. All of the above is the correct answer. Example for Clarity:
Search: index=web | top status

Output (example):
textstatus | count | percent
-------|-------|--------
200 | 5000 | 50.00
404 | 2000 | 20.00
500 | 1000 | 10.00
... | ... | ...


Explanation:
Returns the top 10 status values (A).
Displays results in a table format (B).
Includes count and percent columns for each status value (C).

Additional Notes:
ustomizing top:
Use limit=N to change the number of results (e.g., top limit=5 status for top 5). Use showpercent=false to exclude the percent column (e.g., top status showpercent=false). Use countfield to rename the count column (e.g., top status countfield=event_count).
Use case:
The top command is ideal for identifying the most common values in a dataset, such as frequent error codes, top users, or busiest hosts.
Performance:
As a transforming command, top reduces the dataset to a summarized table, which can improve performance for downstream processing but requires sufficient events to generate meaningful results.
SPLK-1001 context:
For the Splunk Core Certified User exam, understanding the default behavior of the top command (top 10 results, table output, count and percent columns) is a common topic, as it’s frequently used in reporting and analysis.

Reference:
Splunk Documentation: top command
Splunk Documentation: Common stats commands
Full mock exam

Sit the SPLK-1001 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real SPLK-1001 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-1001 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 243questions in the bank
  • Newmock on every attempt