Certified Developer Practice Questions
Prepare for SPLK-2001 with more than an answer.
- Exam fee
- $130 USD
- Level
- Professional
- Valid for
- 3 years (when active)
- 1
A developer needs to create a new HEC (HTTP Event Collector) token programmatically. Which REST endpoint should they send a POST request to?
Show answer details
Correct answer: D
The configuration for HEC tokens is managed under the data inputs hierarchy. To create a new token, you POST to /services/data/inputs/http with the name of the new token.
- 2
Case Study: A healthcare company uses Splunk to monitor patient portal access logs. They have a requirement to build a 'Doctor Activity' dashboard.
Scenario:
The dashboard has a dropdown input for 'Department'. When a department is selected, a token$dept$is set. The dashboard contains a table showing doctor logins. The team wants to ensure that if a user clicks on a doctor's name in the table, a second panel opens below showing that specific doctor's recent actions.Requirement:
The second panel must only appear after the click. The click must set a token$doctor_id$. The second panel's search uses$doctor_id$.Which XML configuration correctly implements the drilldown logic in the first table?
Show answer details
Correct answer: D
This configuration uses the element inside the table visualization. When a cell is clicked, the action assigns the value of the clicked cell ($click.value$) to the token 'doctor_id'. This token can then be used in the 'depends' attribute of the second panel to show it.
- 3
When using the
/services/search/jobsendpoint to dispatch a search, which parameter would you set to0to ensure the search runs asynchronously (does not block the connection while waiting for completion)?Show answer details
Correct answer: A
Setting exec_mode to 'normal' (the default) creates an asynchronous search job. The API returns the SID immediately, and you must poll for status. Setting it to 'blocking' or 'oneshot' would wait for completion.
- 4
A developer wants to include a custom JavaScript file named
custom_behavior.jsin a Simple XML dashboard. The file is located in$SPLUNK_HOME/etc/apps/MyApp/appserver/static/. Which attribute must be added to theorroot element?Show answer details
Correct answer: B
The 'script' attribute in the dashboard/form tag references JavaScript files located in the app's appserver/static directory. Multiple scripts can be comma-separated.
- 5
You are reviewing the
inputs.conffile for a custom app. You see the following stanza:[script://./bin/get_metrics.py] interval = 60 sourcetype = custom_metricsWhat does this configuration define?
Show answer details
Correct answer: C
The [script://...] stanza defines a scripted input. The interval parameter specifies how frequently (in seconds) Splunk should execute the script to collect data.
- 6
Which of the following describes the correct order of precedence for configuration files in Splunk (from highest priority to lowest)?
Show answer details
Correct answer: B
Splunk merges configuration files based on location. System local (/etc/system/local) has the highest priority, followed by the current App's local directory, then App default, and finally System default.
- 7
A developer needs to ensure that a specific configuration file in their app is NOT overwritten during an app upgrade, but also that their local changes persist. Where should they make their custom changes?
Show answer details
Correct answer: B
The /local directory is designed for user-specific or environment-specific configurations. It is preserved during app upgrades (which typically overwrite /default), and settings here take precedence over /default.
- 8
Which REST endpoint provides information about the Splunk server, including version, license keys, and OS information?
Show answer details
Correct answer: A
The /services/server/info endpoint is the standard location for retrieving general system information about the Splunk instance.
- 9
Suppose the following query in a Simple XML dashboard returns a table including hyperlinks:
index news sourcetype web_proxy | table sourcetype title link
Which of the following is a valid dynamic drilldown element to allow a user of the dashboard to visit the hyperlinks contained in the link field?
Show answer details
Correct answer: C
- 10
When updating a knowledge object via REST, which of the following are valid values for the sharing Access Control List property?
Show answer details
Correct answer: D
- 11
Which of the following are ways to get a list of search jobs? (Select all that apply.)
Show answer details
Correct answer: A, B
- 12
Which of the following are benefits from using Simple XML Extensions? (Select all that apply.)
Show answer details
Correct answer: A, C
A,C -- Reference:
https://dev.splunk.com/enterprise/docs/developapps/visualizedata/usewebframework/modifydashb oards/A,C -- Reference:
https://dev.splunk.com/enterprise/docs/developapps/visualizedata/usewebframework/modifydashb oards/
