Courseiva
Incident and Event ResponseeasyMultiple ChoiceObjective-mapped

DOP-C02 Incident and Event Response Practice Question

A DevOps team is designing an incident response plan for a critical microservices architecture. They need to automatically collect and analyze logs from all services during an incident. Which solution should they use?

⚠ Common exam trap

The trap here is that candidates often over-engineer the solution by choosing complex streaming or analytics services (like Kinesis or Athena) for real-time incident analysis, when the native CloudWatch Logs Insights service is designed specifically for this use case with minimal setup and lower latency.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Centralize logs in Amazon CloudWatch Logs and use CloudWatch Logs Insights for real-time querying.

Amazon CloudWatch Logs provides a centralized log management service that integrates natively with AWS services. During an incident, CloudWatch Logs Insights enables real-time, ad-hoc querying and analysis of logs from all microservices without needing to set up additional infrastructure, making it the most efficient solution for incident response.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Stream logs to Amazon Kinesis Data Firehose and analyze with Amazon OpenSearch Service.

    Why it's wrong here

    Streaming logs via Kinesis Data Firehose to OpenSearch Service is a common pattern for centralised log management and analysis. However, for immediate incident response, Firehose's buffering and batching mechanisms introduce a slight latency, making it less optimal for the real-time, low-latency analysis often critical during an active incident. This solution is excellent for general operational logging, long-term analytics, and cost-effectively ingesting large volumes of data where sub-second analysis isn't the primary requirement.

  • Store logs in Amazon S3 and use Amazon Athena to query them.

    Why it's wrong here

    Amazon S3 with Athena is optimized for analytic queries over large, historical datasets, not for real-time operational response. Logs must first be delivered to S3 through services like Kinesis Data Firehose, whose buffering can delay availability by minutes, and Athena queries incur per-query planning and scanning overhead against the full object set. This approach lacks CloudWatch Logs' live streaming, metric filters, and native alarm integration, making it ill-suited for triaging an incident where seconds matter.

  • Use AWS Systems Manager Run Command to execute log collection scripts on each instance.

    Why it's wrong here

    AWS Systems Manager Run Command is an on-demand or scheduled command runner, not a log aggregation or querying service. While it can execute a collection script across instances, it does not continuously stream logs to a central destination, nor does it index or retain logs for interactive analysis. In an incident, a manual or batched Run Command introduces setup latency, requires a pre-built script, and provides no built-in log search or correlation, so it fails to deliver the real-time visibility needed.

  • Centralize logs in Amazon CloudWatch Logs and use CloudWatch Logs Insights for real-time querying.

    Why this is correct

    Amazon CloudWatch Logs centralizes log streams from EC2 instances, Lambda, and other AWS services via the CloudWatch agent, making logs available for query within seconds of ingestion. CloudWatch Logs Insights provides an interactive, purpose-built query engine that can search, filter, and aggregate log events across multiple log groups using a simple query language, without requiring external infrastructure. This combination supports fast, exploratory incident analysis, real-time alarming via metric filters, and full retention options—making it the most direct and operationally ready choice.

About these practice questions

This DOP-C02 question is part of Courseiva's 251-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.