300-910 · Question #125
300-910 Question #125: Real Exam Question with Answer & Explanation
Sign in or unlock 300-910 to reveal the answer and full explanation for question #125. The question stem and answer options stay visible for context.
Question
Refer to the exhibit. An engineer must find application log file entries when a user named user1 makes an HTTP GET request and return only the time of the query. Which command completes the Bash script? cat app.log {"user":"john","time":"2021-11-12 20:13:44","method":"GET"} {"user":"john","time":"2021-11-12 20:13:48","method":"POST"} {"user":"john","time":"2021-11-12 20:13:54","method":"POST"} {"user":"dave","time":"2021-11-12 20:14:04","method":"GET"} {"user":"john","time":"2021-11-12 20:14:44","method":"GET"} {"user":"alice","time":"2021-11-12 20:19:01","method":"GET"} {"user":"alice","time":"2021-11-12 20:23:21","method":"GET"} {"user":"john","time":"2021-11-12 20:49:38","method":"PATCH"} > 2021-11-12 20:13:44 2021-11-12 20:14:44
Options
- Ajq '.time' app.log
- Bjq 'select(.user=="user1" and .method=="GET").time' app.log
- Cjq 'select(.user=="user1" and .method=="GET")' app.log
- Djq 'select(.user=="user1" and .GET).time' app.log
Unlock 300-910 to see the answer
You've previewed enough free 300-910 questions. Unlock 300-910 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.