CloudWatch Logs Insights Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering CloudWatch Metrics and Logs

What you'll be asked

  1. Which of the following best describes the primary purpose of CloudWatch Logs Insights?
  2. You want to count the number of occurrences of the word 'ERROR' in your log streams over the last hour. Which query command should you use?
  3. When querying logs using CloudWatch Logs Insights, what is the effect of the 'sort' command?
  4. You have a JSON-formatted log field named 'http_status'. Which command would you use to calculate the average value of this field grouped by status codes?
  5. A developer needs to extract specific data from a raw, non-JSON log line that looks like 'User:12345 Action:Login'. Which command is most efficient for this task?

Answers and explanations come after you submit.