All Splunk exams
Free Splunk Core Certified User practice test: 30 questions with answers
30 original questions for Splunk Core Certified User, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 112 questions
- Real exam
- 60 questions, 60 min
Splunk Core Certified User exam guide: topics, cost and format
All 30 Splunk Core Certified User questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Basic Searching (4 questions)
Question 1
An analyst wants a search to cover only the last hour, typed directly into the search string instead of using the time range picker. Which search term does this?
- Aearliest=-1h latest=now
- Btime=-1h until=now
- Csince=-1h until=now
- Dwindow=last_1_hour latest=now
Show answer and explanationHide answer
Correct answer: Aearliest and latest are time modifiers that set the start and end of the search window, and -1h means one hour before the current time. The other options use names such as window, time, since and until, which are not Splunk time modifiers.
Question 2
A search for sourcetype=access_combined returns many events, but the analyst wants to remove the events where status equals 200. Which refined search does this?
- Asourcetype=access_combined status=200
- Bsourcetype=access_combined NOT status=200
- Csourcetype=access_combined | where status=200
- Dsourcetype=access_combined OR status=200
Show answer and explanationHide answer
Correct answer: BNOT excludes events that match the term that follows it, so the 200 responses are removed. Adding status=200 with an implicit AND or with OR keeps the 200 events, and a where clause after the search keeps only events where status is 200.
Question 3
An analyst sees a large spike in the timeline histogram for last night and wants to review only the events from that period. What should the analyst do?
- AChange the search mode to Verbose so the spike is labeled on the chart
- BAdd a sort command that orders all events by time before reviewing them
- CSelect the timeline bars covering the spike to narrow the time range
- DOpen the Job inspector, copy the time stamps, and rerun the whole search
Show answer and explanationHide answer
Correct answer: CSelecting the timeline bars over the spike narrows the time range to that section, so only the events in the spike are shown. Search mode changes how much work Splunk does, sort reorders results without limiting the time range, and the Job inspector shows execution details rather than filtering events.
Question 4
An analyst wants to see each event's original text exactly as it was indexed, without fields or statistics. Which view should be used?
- AStatistics tab with a count by source
- BRaw format in the Events tab
- CPatterns tab grouped by similarity
- DJob inspector showing search timings
Show answer and explanationHide answer
Correct answer: BThe Events tab offers a Raw format that displays the original text of each event. The Statistics tab summarizes results, the Patterns tab groups similar events, and the Job inspector shows how the search ran, so none of those shows the original text.
Using Fields in Searches (4 questions)
Question 5
Which of these is a default field that Splunk assigns to every event?
- Acustomer_id
- Bresponse_time
- Csourcetype
- Dbytes_sent
Show answer and explanationHide answer
Correct answer: CEvery event has default fields such as host, source, sourcetype, index and _time. customer_id, response_time and bytes_sent appear only when the event data contains them or when someone has configured an extraction for them.
Question 6
The event text is user=alice action=login. How does Splunk treat user and action?
- AField names that pair with values, so they can be searched as user=alice
- BSourcetypes that decide how the event is parsed and which fields it gets during indexing
- CIndexes that decide where the event is physically stored and how long it is kept
- DPlain words with no meaning to the search engine beyond matching the same text
Show answer and explanationHide answer
Correct answer: Auser and action are field names, with alice and login as their values, so they can be searched by name, for example user=alice. Sourcetypes and indexes are separate metadata, and the words are not simply plain text with no field meaning.
Question 7
An analyst wants events where the status field starts with 4, such as 404 or 403. Which search should be used?
- Astatus=*4
- Bstatus=4
- Cstatus=4xx
- Dstatus=4*
Show answer and explanationHide answer
Correct answer: DThe asterisk wildcard matches any sequence of characters, so status=4* matches values that begin with 4. status=*4 matches values that end with 4, status=4 requires an exact match, and status=4xx searches for the literal text 4xx.
Question 8
Which two search strings find events where the field host equals web01? (Choose two.)
- Ahost=web01
- Bhost:web01
- Chost="web01"
- Dweb01 AND host
- Eweb01 OR host
Show answer and explanationHide answer
Correct answer: A, Chost=web01 and host="web01" both compare the host field with the value web01, and the quotes are optional for simple values. host:web01 is not Splunk field syntax, while the last two options search for the words web01 and host as keywords rather than as a field.
Search Language Fundamentals (4 questions)
Question 9
In the search index=web sourcetype=access_combined | stats count by status | sort -count, what does the sort command work on?
- AThe table of status values and counts that the stats command produced
- BThe list of all indexes and sourcetypes the user is allowed to search
- CThe fields that were extracted at index time from the forwarder's input
- DThe raw events from the web index exactly as they were before stats ran
Show answer and explanationHide answer
Correct answer: AEach command in the pipeline receives the output of the command before it, so sort orders the status-and-count table that stats produced. The raw events are reduced by stats before sort runs, and the index list and index-time fields are not inputs to sort.
Question 10
An analyst needs to search only the data stored in the index named security. Which search term does this?
- Aindex=security
- Bsourcetype=security
- Csource=security
- Dsecurity AND index
Show answer and explanationHide answer
Correct answer: AThe index= term restricts the search to a single index. sourcetype and source filter on different metadata, and security AND index is a keyword search for those words in event text, not an index restriction.
Question 11
Which two commands can limit the fields shown in search results? (Choose two.)
- A| table host status
- B| fields host status
- C| dedup host
- D| sort host
- E| rename host AS server
Show answer and explanationHide answer
Correct answer: A, Btable displays only the named fields as columns, and fields keeps only the named fields, or removes them when a minus sign is used. dedup removes duplicate events, sort only changes the order, and rename changes a field name without limiting the other fields.
Question 12
Which practice generally makes a search run faster and passes less data to later commands?
- ARemove the time range so Splunk searches all available data in every index
- BPlace the table command before the search terms so fewer fields are processed
- CAdd several stats commands before any filtering so results are summarized early
- DSpecify the index and a narrow time range at the start of the search
Show answer and explanationHide answer
Correct answer: DFiltering by index, time range and search terms at the start limits how many events the rest of the pipeline must handle. Removing the time range widens the search, moving table earlier does not reduce the events, and extra stats commands before filtering add work.
Using Basic Transforming Commands (4 questions)
Question 13
An analyst wants to see the most frequent values of the host field, along with the count and percent for each value. Which command should be used?
- A| rare host
- B| stats dc(host)
- C| top host
- D| dedup host
Show answer and explanationHide answer
Correct answer: Ctop lists the most common values of a field and adds count and percent columns by default. rare lists the least common values, stats dc(host) returns only the number of distinct hosts, and dedup removes duplicate events rather than summarizing values.
Question 14
A security analyst wants to find the least common user_agent values in web traffic, since unusual values can point to suspicious activity. Which command fits best?
- A| top user_agent
- B| rare user_agent
- C| sort user_agent
- D| table user_agent
Show answer and explanationHide answer
Correct answer: Brare returns the least frequent values of a field, which is useful for spotting unusual items. top returns the most frequent values, sort only reorders results, and table displays the field without counting its values.
Question 15
What does the search index=web | stats count by host return?
- AA time-based chart showing the count of events for each host over time
- BOne row for each raw event with an added count field for that event
- CA single total of all events with no breakdown by the host field value
- DOne row per distinct host value with a count of its events
Show answer and explanationHide answer
Correct answer: Dstats with a by clause groups the events by each distinct host value and returns one row per host with its count. It does not return raw events or a single total, and timechart is the command that produces a time-based chart.
Question 16
Which two statements about the top and rare commands are true? (Choose two.)
- Atop returns the most frequent values of a field by default
- Brare returns the least frequent values of a field
- Ctop returns only events that are missing a value for the field
- Drare removes all duplicate events from the search results
- EBoth commands return raw events rather than summary tables
Show answer and explanationHide answer
Correct answer: A, Btop summarizes a field into its most frequent values and rare into its least frequent ones. Neither command filters for missing values, removes duplicate events, or returns raw events, because both produce summary tables.
Creating Reports and Dashboards (4 questions)
Question 17
A user has built a search that produces a statistics table, and teammates need to open that table later without retyping the search. What should the user do?
- AExport the events to a JSON file
- BSave the search as a report
- CCopy the search into a text file
- DSave the search as an event type
Show answer and explanationHide answer
Correct answer: BSaving the search as a report stores the search so teammates can open it later and see its results. Exporting events gives them data but not the reusable search, an event type only tags matching events, and a text copy still has to be pasted into the search bar by someone.
Question 18
A manager wants a line chart of web requests per hour for a saved report. Which approach produces this?
- AUse dedup host to keep one event per host, then choose a bar chart visualization
- BUse table _raw to list every event, then choose a line chart visualization
- CUse fields _time to keep only the time field, then choose a pie chart visualization
- DUse timechart span=1h count, then choose a line chart visualization
Show answer and explanationHide answer
Correct answer: Dtimechart is a transforming command that counts events into hourly time buckets, and the line chart then plots those counts over time. table and fields return unaggregated events and dedup keeps one event per host, so none of them gives hourly counts.
Question 19
A team lead wants one page that shows several saved reports side by side, refreshing when opened. Which feature should be used?
- AA scheduled alert that emails each saved report to the team on a timer
- BA lookup definition that maps each saved report to a reference table
- CAn event type for each saved search
- DA dashboard with each saved report added as a panel
Show answer and explanationHide answer
Correct answer: DA dashboard can hold several panels, and each panel can be based on a saved report, so the reports appear together on one page. Alerts send notifications, lookups enrich events with reference values, and event types label matching events, so none of them builds a combined page.
Question 20
An analyst needs to change the time range of an existing scheduled report while keeping its schedule and sharing settings. What is the best approach?
- AEdit the existing report and save the time range change to it
- BDelete the report and create a new one with the new time range
- CExport the report's results to CSV and run the report again manually
- DCopy the report into a new app and remove the original
Show answer and explanationHide answer
Correct answer: AEditing the saved report keeps its existing schedule and sharing settings while the time range is updated. Deleting and recreating it loses those settings, exporting results does not change the report, and copying it to another app and removing the original changes where the report lives.
Creating and Using Lookups (4 questions)
Question 21
What is a lookup in Splunk?
- AA scheduled search that runs at fixed intervals and produces a saved report of its results
- BA dashboard panel that displays static text and images for the team to read in a view
- CAn index that stores summarized event counts for faster searching across many long-running reports
- DA way to add fields to search results by matching values against a table such as a CSV file
Show answer and explanationHide answer
Correct answer: DA lookup matches a value in search results against a table, often a CSV file, and adds the matching columns to each event. A scheduled search, a summary index and a static text panel do not enrich events from a reference table.
Question 22
An HR team has a CSV file that maps employee_id to department, and a lookup definition named hr_lookup has been created for it. Which search adds the department field to events that contain employee_id?
- Aindex=hr | inputlookup hr_lookup | table employee_id department
- Bindex=hr | outputlookup hr_lookup | stats count by department
- Cindex=hr | lookup hr_lookup employee_id OUTPUT department
- Dindex=hr | table employee_id department | dedup employee_id
Show answer and explanationHide answer
Correct answer: CThe lookup command matches each event's employee_id against hr_lookup and outputs the department column. inputlookup returns the lookup table itself, outputlookup writes results to a lookup, and table only displays fields without adding department from the lookup.
Question 23
Which two items must exist before a CSV file can be used in searches by name? (Choose two.)
- AAn uploaded CSV lookup file
- BA lookup definition that names the file
- CA scheduled report that runs the lookup
- DA dedicated index for the lookup values
- EA dashboard panel that displays the lookup contents
Show answer and explanationHide answer
Correct answer: A, BThe CSV file has to be uploaded or placed where Splunk can read it, and a lookup definition gives it a name that searches can refer to. A scheduled report, a dedicated index and a dashboard panel are not required for a lookup to work in searches.
Question 24
An analyst wants every search of the web sourcetype to add the owner field from a lookup without typing a lookup command. Which configuration does this?
- AA scheduled search that runs the lookup every hour on a fixed timer
- BA field alias that renames the owner field to a different name for reports
- CAn outputlookup command added to each saved search that uses the web data
- DAn automatic lookup configured for the web sourcetype
Show answer and explanationHide answer
Correct answer: DAn automatic lookup applies a lookup definition to matching events in searches without a lookup command each time. A scheduled search runs on a timer instead of applying to every search, outputlookup writes results to a lookup file, and a field alias only renames a field.
Splunk Basics (3 questions)
Question 25
A company wants to collect application log files from dozens of Linux servers and send them to Splunk. The team wants the smallest possible footprint on each server and no local parsing. Which component should be installed on each server?
- AIndexer that stores and makes the incoming events searchable
- BSearch head that runs user searches across indexed data
- CUniversal forwarder that sends logs with a minimal footprint
- DLicense manager that tracks daily license usage across peers
Show answer and explanationHide answer
Correct answer: CA universal forwarder is a lightweight agent that sends data to Splunk with minimal resource use and no parsing. An indexer stores and makes events searchable, a search head is where users run searches, and a license manager tracks license usage, so none of those is installed on each server to forward logs.
Question 26
Which statement best describes the role of a search head in a distributed Splunk deployment?
- AIt stores the indexed event data in buckets and manages retention of them
- BIt collects raw data from endpoints and forwards it without any parsing
- CIt coordinates user searches and distributes them to indexers
- DIt tracks daily license consumption for every deployment member node
Show answer and explanationHide answer
Correct answer: CA search head accepts search requests from users, sends them to the indexers, and presents the combined results. Indexers store and manage the indexed data, forwarders collect and send data, and the license manager tracks license usage, so those roles do not describe a search head.
Question 27
A team has built a set of saved searches, dashboards and configuration files that it wants to install as one package on a Splunk instance. What is this package called in Splunk?
- AAn app
- BA lookup table
- CAn index bucket
- DA search job
Show answer and explanationHide answer
Correct answer: AAn app is a package of searches, dashboards, configuration files and other components that can be installed and managed as a unit. An index bucket is a storage unit for indexed data, a lookup table holds reference values, and a search job is a single executed search.
Creating Scheduled Reports and Alerts (3 questions)
Question 28
A team wants a saved search to run every Monday morning and email the results to managers. Which feature should they configure?
- AA dashboard panel that refreshes automatically whenever a user opens the page
- BA scheduled report with a recurring schedule and an email action
- CThe Job inspector with a weekly timer that shows execution details each Monday
- DAn event type that tags matching events for later searches by the whole team
Show answer and explanationHide answer
Correct answer: BA scheduled report runs its search on a recurring schedule and can send the results by email. A dashboard panel refreshes only when viewed, an event type labels matching events, and the Job inspector shows execution details without scheduling anything.
Question 29
Which statement describes an alert in Splunk?
- AA saved search with trigger conditions that runs an action when results match
- BA static report that runs only when someone opens it and displays the saved table
- CAn event type that labels events matching a search so that teammates can filter them quickly
- DA lookup definition that stores the threshold values for each search and the owner's name
Show answer and explanationHide answer
Correct answer: AAn alert runs a search on a schedule or in real time and triggers actions, such as email or a webhook, when results meet its trigger condition. A static report runs only when opened, an event type only labels matching events, and a lookup definition only maps a name to a lookup file.
Question 30
An operations team needs an alert that notices a matching event within seconds of its arrival, rather than only at scheduled check times. Which alert type fits?
- AA scheduled alert that runs once per day
- BA saved report with no trigger condition
- CAn event type that tags matching events
- DA real-time alert
Show answer and explanationHide answer
Correct answer: DA real-time alert evaluates its conditions continuously as events arrive, so it can react within seconds. A scheduled alert checks results only at its scheduled runs, a saved report has no trigger, and an event type only labels events.