Exam SPLK-2001 All QuestionsBrowse all questions from this 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?

    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
Tt90Option: D

Answer is D

guilhermecervo

Agree.

qtygbapjpesdayazko

D, the only one with correct JSON in the request

New_userOption: A

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

gsplunker

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