Courseiva
Troubleshooting and OptimizationmediumMultiple ChoiceObjective-mapped

DVA-C02 Troubleshooting and Optimization Practice Question

An application running on Amazon ECS with Fargate is experiencing high latency. The application writes logs to Amazon CloudWatch Logs. Which AWS service can be used to analyze the logs to pinpoint the cause of the latency?

⚠ Common exam trap

Many candidates confuse CloudWatch Logs (storage/monitoring) with CloudWatch Logs Insights (query/analysis), assuming the former can perform deep log analysis, when in fact it only supports basic metric filters and real-time monitoring.

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

Amazon CloudWatch Logs Insights

Amazon CloudWatch Logs Insights is the correct choice because it is purpose-built for interactively querying and analyzing log data stored in CloudWatch Logs. It allows you to run SQL-like queries (using a query language) to filter, aggregate, and visualize log events, which is essential for pinpointing latency patterns, such as slow API calls or database queries, without needing to export logs to another service.

Answer analysis

Option-by-option breakdown

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

  • Amazon CloudWatch Logs

    Why it's wrong here

    Amazon CloudWatch Logs primarily functions as a centralized repository for storing log data from various AWS services and applications. While it aggregates and retains logs, it does not inherently provide advanced querying or analytical capabilities to actively diagnose performance issues or identify specific latency causes within the log streams. It's a foundational service for log collection, but not for interactive analysis.

  • Amazon CloudWatch Logs Insights

    Why this is correct

    Amazon CloudWatch Logs Insights is specifically designed for interactively searching, analyzing, and visualizing log data to troubleshoot operational problems and identify performance bottlenecks. It allows users to run powerful queries using a purpose-built query language to filter, aggregate, and extract specific information from log events, making it ideal for pinpointing the root causes of latency within application logs. This direct analytical capability is crucial for diagnosing issues.

  • AWS X-Ray

    Why it's wrong here

    AWS X-Ray provides end-to-end distributed tracing for requests as they travel through various services in a microservices architecture. It helps visualize the service map, identify performance bottlenecks between services, and understand the latency of individual components. However, X-Ray focuses on tracing request paths and segment data, not on directly analyzing the detailed content within application logs to uncover specific error messages or code-level latency causes.

  • Amazon S3

    Why it's wrong here

    Amazon S3 is a highly durable and scalable object storage service, commonly used for archiving large volumes of log data. While logs can be stored in S3 for long-term retention or subsequent batch processing, S3 itself does not offer native, real-time, or interactive querying and analysis capabilities required to actively diagnose application latency. Analyzing logs stored in S3 would typically require exporting them to another service or using external tools.

About these practice questions

Courseiva writes every DVA-C02 question from scratch — 724 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 DVA-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 DVA-C02 exam.