SPLK-2001 Exam QuestionsBrowse all questions from this exam

SPLK-2001 Exam - Question 34


Which of these URLs could be used to construct a REST request to search the employee KV store collection to find records with a rating greater than or equal to

2 and less than 5?

Show Answer
Correct Answer: D

The correct URL to construct a REST request to search the employee KV store collection to find records with a rating greater than or equal to 2 and less than 5 is 'http://localhost:8089/servicesNS/nobody/search/storage/collections/data/employees?query={"$and":[{"rating":{"$gte":2}},{"rating":{"$lt":5}}]}&output_mode=json'. This URL properly encodes the JSON query string and specifies the output mode correctly.

Discussion

2 comments
Sign in to comment
Tt90Option: D
Dec 25, 2021

Answer is D

guilhermecervo
Nov 16, 2022

Agree.

qtygbapjpesdayazko
Sep 24, 2023

D, the only one with correct JSON in the request

New_userOption: A
Jul 18, 2021

Answer is A. See "Queries" header here https://docs.splunk.com/Documentation/Splunk/8.2.1/RESTREF/RESTkvstore

gsplunker
Jul 22, 2021

No because output_mode should be followed by = https://docs.splunk.com/Documentation/Splunk/8.2.1/Search/ExportdatausingRESTAPI