SPLK-2001 Practice Test Questions

70 Questions


Which of the following are types of event handlers? (Select all that apply.)


A. Search


B. Set token


C. Form input


D. Visualization





B.
  Set token

C.
  Form input

Explanation: The types of event handlers are set token and form input. Set token event handlers let you set or unset tokens based on user interactions, such as clicking on a chart or selecting a value from a dropdown. Form input event handlers let you create interactive forms that use tokens to pass values between inputs and searches. The other options are not event handlers, but rather components of a dashboard.

Suppose the following query in a Simple XML dashboard returns a table including hyperlinks:

<search>
<query>index news sourcetype web_proxy | table sourcetype title link
</query>
</search>
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?


A. <option name “link.openSearch.viewTarget">$row.link$</option>


B.

<drilldown>
<link target="“" blank"="">$$row.link$$
</drilldown>


C.

<drilldown>
<link target="_blank">$row.link|n$</link>
</drilldown>


D.

<drilldown>
<link target “_blank">http://localhost:8000/debug/refresh</link>
</drilldown>





C.
  
<drilldown>
<link target="_blank">$row.link|n$</link>
</drilldown>


Explanation: It uses the $row.field|n$ syntax to reference the value of the link field in each row of the table. This syntax is used to create dynamic links in Simple XML dashboards. The other options are incorrect because they either use invalid syntax or do not reference the link field correctly. You can find more information about dynamic drill-downs and link syntax in the Splunk Developer Guide.

In a DELETE request, what would omitting the value of _key from the REST endpoint do?


A. Clean the KV store, deleting all content.


B. Produce the syntax error “Key value missing”.


C. Cause all records in a collection to be deleted.


D. Mean that the _key value must be passed as an argument.





C.
  Cause all records in a collection to be deleted.

Explanation: The correct answer is C, because omitting the value of _key from the REST endpoint would cause all records in a collection to be deleted. The _key is a unique identifier for each record in a KV Store collection. The REST endpoint for deleting a record from a collection is /storage/collections/data//, where is the name of the collection and is the value of _key. If the is omitted, the REST endpoint becomes /storage/collections/data/, which deletes all records in the collection. The other options are incorrect because they are not the consequences of omitting the value of _key from the REST endpoint. Cleaning the KV store, deleting all content would require deleting all collections, not just one. Producing the syntax error “Key value missing” would not happen, because the REST endpoint is valid without the value. Meaning that the _key value must be passed as an argument would not make sense, because the argument is the same as the value in the REST endpoint.

When using the Splunk Web Framework to create a global search, which is the correct post-process syntax for the base search shown below?
var searchmain = new SearchManager{{ id: “base-search”,
search: “index= internal | head 10 | fields “*”, preview: true,
cache: true
}};


A. var mypostproc1 = new PostProcessManager {{ id: “post1”,
managerid: “base-search”,
search: “| stats count by sourcetype”
}};


B. var mypostproc1 = new PostProcessManager{{ id: “post1”,
managerid: “base”,
search: “| stats count by sourcetype”
}};


C. var mypostproc1 = new PostProcess{{ id: “post1”,
managerid: “base-search”,
search: “| search stats count by sourcetype”
}};


D. You cannot create global searches in the Splunk Web Framework.





A.
  var mypostproc1 = new PostProcessManager {{ id: “post1”,
managerid: “base-search”,
search: “| stats count by sourcetype”
}};

Explanation: The correct answer is A, because the correct post-process syntax for the base search shown below is var mypostproc1 = new PostProcessManager {{ id: “post1”, managerid: “base-search”, search: “| stats count by sourcetype” }}. The PostProcessManager is a JavaScript object that creates a post-process search that runs on the results of a base search. The PostProcessManager requires three parameters: id, managerid, and search. The id is a unique identifier for the post-process search. The managerid is the id of the base search that the post-process search depends on. The search is the post-process search string that runs on the base search results. The other options are incorrect because they either use the wrong managerid, the wrong object name, or the wrong search string.

How can hiding or showing a panel by clicking on a chart or a table on the same form be performed?


A. By using vent drilldown.


B. By using workflow action.


C. By using contextual drilldown.


D. By using visualization drilldown.





D.
  By using visualization drilldown.

Explanation: By using visualization drilldown, you can hide or show a panel by clicking on a chart or a table on the same form. Visualization drilldown lets you define a drilldown action that affects a different panel on the same dashboard. You can use the set or unset tokens to control the visibility of the target panel.

Which of the following are valid request arguments for the REST search endpoints? (Select all that apply.)


A. latest_time=rt


B. latest_time=now


C. earliest_time=-5h@h


D. earliest_time=rt_10m@m





B.
  latest_time=now

C.
  earliest_time=-5h@h

Explanation: The valid request arguments for the REST search endpoints are latest_time=now and earliest_time=-5h@h. These arguments specify the time range for the search, using relative or absolute time modifiers. The other arguments are invalid because they use rt (real-time) modifiers, which are not supported by the REST search endpoints.

Which of the following are ways to get a list of search jobs? (Select all that apply.)


A. Access Activity > Jobs with Splunk Web.


B. Use Splunk REST to query the /services/search/jobs endpoint.


C. Use Splunk REST to query the /services/saved/searches endpoint.


D. Use Splunk REST to query the /services/search/sid/results endpoint.





A.
  Access Activity > Jobs with Splunk Web.

B.
  Use Splunk REST to query the /services/search/jobs endpoint.

Explanation: The correct answer is A and B because these are the ways to get a list of search jobs. Option A is correct because you can access the Activity > Jobs page in Splunk Web to see the list of search jobs that you have run or that are shared with you. Option B is correct because you can use Splunk REST to query the /services/search/jobs endpoint to get a list of search jobs. Option C is incorrect because the /services/saved/searches endpoint returns a list of saved searches, not search jobs. Option D is incorrect because the /services/search/sid/results endpoint returns the results of a specific search job, not a list of search jobs. You can find more information about search jobs and their endpoints in the Splunk REST API Reference Manual.

A fellow Splunk administrator is reviewing an app that has been downloaded from splunkbase and deployed in an organization. The admin has e-mailed the following configuration snippet with a brief note that says “fix the permissions”.
In what configuration file should the snippet be placed?
[]
access = read : [ * ], write : [ admin ] export - system
(Assume that $APP_HOME refers to the path that the app is installed, e.g.
$SPLUNK_HOME/etc/apps/)


A. $APP_HOME/default/app.conf


B. $APP_HOME/local/default.meta


C. $APP_HOME/metadata/local.meta


D. $SPLUNK_HOME/etc/system/local/server.conf





C.
  $APP_HOME/metadata/local.meta

Explanation: The correct answer is C, because the snippet should be placed in the $APP_HOME/metadata/local.meta file. This file contains the app-level permissions for the app, such as who can read and write to the app, and whether the app is visible to all users or only to the app owner. The $APP_HOME/default/app.conf file contains the app-level settings, such as the app name, description, version, and dependencies. The $APP_HOME/local/default.meta file does not exist, and the $SPLUNK_HOME/etc/system/local/server.conf file contains the server-level settings, such as the hostname, port, SSL, and clustering.

Which of the following is an example of a Splunk KV store use case? (Select all that apply.)


A. Stores checkpoint data for modular inputs.


B. Tracks workflow in an incident-review system.


C. Indexes metrics data from remote HTTP sources.


D. Stores application state as a user interacts with an app.





A.
  Stores checkpoint data for modular inputs.

B.
  Tracks workflow in an incident-review system.

D.
  Stores application state as a user interacts with an app.

Explanation: The correct answer is A, B, and D because these are the examples of a Splunk KV store use case. A Splunk KV store is a service that allows you to store and manage custom data in Splunk, using key-value pairs. A Splunk KV store can be used for various purposes, such as storing checkpoint data, tracking workflow, and storing application state. Option A is correct because a Splunk KV store can store checkpoint data for modular inputs, which are custom data inputs that use external scripts or binaries to collect and send data to Splunk. Checkpoint data is used to keep track of the data collection progress and resume from the last point in case of interruption. Option B is correct because a Splunk KV store can track workflow in an incident-review system, which is a system that allows you to review and manage the incidents that occur in your environment. Workflow data is used to store the status, priority, and assignee of each incident. Option D is correct because a Splunk KV store can store application state as a user interacts with an app, which is a custom interface that allows you to access and analyze the data in Splunk. Application state data is used to store the user preferences, settings, and selections for the app. Option C is incorrect because a Splunk KV store cannot index metrics data from remote HTTP sources, which are sources that send numerical data to Splunk via HTTP or HTTPS. Metrics data is not stored in the Splunk KV store, but rather in the metrics index, which is a special type of index that optimizes the storage and retrieval of metrics data. You can find more information about the Splunk KV store and its use cases in the Splunk Developer Guide.

Which of the following is a way to monitor app performance? (Select all that apply.)


A. Using Splunk logs.


B. Using the search job inspector.


C. Using the Monitoring Console.


D. Using the storage/collections/config REST endpoint.





A.
  Using Splunk logs.

B.
  Using the search job inspector.

C.
  Using the Monitoring Console.

Explanation: The correct answer is A, B, and C, because they are all ways to monitor app performance. App performance refers to how well an app performs its intended functions, such as data ingestion, search, visualization, and alerting. Monitoring app performance helps to identify and troubleshoot issues, optimize performance, and improve user experience. Using Splunk logs, using the search job inspector, and using the Monitoring Console are all methods to monitor app performance by collecting and analyzing various metrics and data related to the app. Using the storage/collections/config REST endpoint is not a way to monitor app performance, but a way to configure the KV Store collections for an app.

Which of the following are reserved field names in a KV Store? (Select all that apply.)


A. _key


B. _time


C. _user


D. _source





A.
  _key

C.
  _user

Explanation: The reserved field names in a KV Store are _key and _user. The _key field is a unique identifier for each record in a KV Store collection, and the _user field is the owner of the record. The other fields are not reserved, and can be used as custom fields in a KV Store collection.

Which event handler uses the element to support pan and zoom functionality?


A. Visualization event handler


B. Form input event handler


C. Condition event handler


D. Search event handler





A.
  Visualization event handler

Explanation: The correct answer is A, because visualization event handler uses the element to support pan and zoom functionality. Visualization event handler is a type of event handler that enables you to interact with custom visualizations3. The element defines the behavior of the visualization when the user selects a region of the chart. It supports attributes such as pan and zoom4.


Page 1 out of 6 Pages