SPLK-2001 practice question 8 of 15
Which of the following endpoints is used to authenticate with the Splunk REST API?
Full set: 66 questionsThe /services/auth/login endpoint is the designated REST API endpoint for authenticating with a Splunk instance. A client application sends a POST request containing user credentials (username and password) to this endpoint. Upon successful validation, the Splunk server responds with a session key (or token). This session key must then be included in the Authorization header of all subsequent API requests to access protected resources, thereby maintaining an authenticated session. This is the standard and primary method for programmatic login via the REST API.
B. The /services/session endpoint is used to manage properties of an existing session, not to create a new one by logging in.
C. This is a syntactically incorrect and non-existent endpoint path, improperly combining segments from different valid endpoints.
D. The /servicesNS prefix is for accessing resources within a specific namespace (user/app context), and authentication/login is not the correct path for the login function.
1. Splunk Enterprise 9.2.1 REST API Reference Manual:
Reference: Endpoints > auth/login
Details: The documentation explicitly states
"Use this endpoint to log in to Splunk and create a session key." It details the required POST method and parameters (username
password) to authenticate and receive a session key.
2. Splunk Enterprise 9.2.1 REST API User Manual:
Reference: Access the REST API > Authentication and authorization
Details: This section describes the authentication process
stating: "To authenticate with Splunk Enterprise
send a POST request containing your username and password to the /services/auth/login endpoint. Splunk Enterprise responds with a session key if the credentials are valid."
Keep practicing
Take the free SPLK-2001 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SPLK-2001 practice questions
- Question 1Searching “index=_internal metrics | head 3” from Splunk Web returned the following event…
- Question 2In order to successfully accelerate a report, which criteria must the search meet? (Selec…
- Question 3After updating a dashboard in myApp, a Splunk admin moves myApp to a different Splunk ins…
- Question 4How can indexer acknowledgement be enabled for HTTP Event Collector (HEC)? (Select all th…
- Question 5Which of the following is an example of a Splunk KV store use case? (Select all that appl…
- Question 6Data can be added to a KV store collection in which of the following format(s)?
