Data can be added to a KV store collection in which of the following format(s)?
A. JSON
B. JSON, XML
C. JSON, XML, CSV
D. JSON, XML, CSV, TXT
Explanation: The correct answer is A, because data can be added to a KV Store collection only in JSON format. KV Store is a feature that allows Splunk to store and manage data in collections of key-value pairs. A KV Store collection is a logical grouping of key-value pairs that can be accessed and manipulated by Splunk apps. Data can be added to a KV Store collection either by using the Splunk Web interface, the Splunk REST API, or the Splunk SDKs. In all cases, the data must be formatted as JSON objects, which are collections of name-value pairs enclosed in curly braces1. The other formats, such as XML, CSV, and TXT, are not supported by KV Store.
Given a dashboard with a Simple XML extension in myApp, what is the XML reference for
the file myJS.js located in myOtherApp in the location shown below?
$SPLUNK_HOME/etc/apps/myOtherApp/appserver/static/javascript/
A.
B.
C.
D. <dashboard script=“myOtherApp:appserver/static/javascript/myJS.js”>
Explanation: The correct answer is C, because the XML reference for the file myJS.js located in myOtherApp is
Which of the following is an intended use of HTTP Event Collector tokens?
A. A cookie.
B. An HTTP header field.
C. A JSON field in the HTTP request.
D. A password in conjunction with login.
Explanation: The correct answer is B, because an HTTP header field is an intended use of
HTTP Event Collector tokens. An HTTP Event Collector token is a unique identifier that is
used to authenticate and authorize data sent to Splunk via the HTTP Event Collector
(HEC). An HEC token can be specified in the Authorization header field of the HTTP
request, using the format Authorization: Splunk
Which of the following will unset a token named my_token?
A.
B.
C.
D. <set token=“my_token”>disabled</set>
Explanation: The correct answer is B, because the element will unset a token named my_token. The element is used to remove the value of a token based on a user interaction, such as a click or a change. The token attribute specifies the name of the token to be unset. The other options are incorrect because they will not unset a token named my_token. The mytoken element is invalid, because the token name should not be enclosed in dollar signs. The false and disabled elements will not unset the token, but set its value to false or disabled, respectively.
Which items below are configured in inputs.conf? (Select all that apply.)
A. A modular input written in Python.
B. A file input monitoring a JSON file.
C. A custom search command written in Python.
D. An HTTP Event Collector as receiver of data from an app.
Explanation: The correct answer is A, B, and D, because they are all items that can be configured in inputs.conf. Inputs.conf is a configuration file that defines how Splunk ingests data from various sources, such as files, directories, network ports, scripts, or modular inputs. A modular input written in Python is a type of input that allows Splunk to ingest data from a custom source using a Python script. A file input monitoring a JSON file is a type of input that allows Splunk to monitor a file or directory for new or updated data in JSON format. An HTTP Event Collector as receiver of data from an app is a type of input that allows Splunk to receive data from an app via HTTP or HTTPS requests. A custom search command written in Python is not an item that can be configured in inputs.conf, but in commands.conf.
To delete the record with a _key value of smith from the sales collection, a DELETE request should be sent to which REST endpoint?
A. /storage/collections/sales/smith
B. /storage/kvstore/data/sales/smith
C. /storage/collections/data/sales/smith
D. /storage/kvstore/collections/sales/smith
Explanation: The correct answer is C, because /storage/collections/data/sales/smith is the REST endpoint to delete the record with a _key value of smith from the sales collection. The /storage/collections/data endpoint is used to access the KV Store data collections. The sales collection is the name of the collection, and smith is the _key value of the record to be deleted.
Page 1 out of 12 Pages |