DOP-C02 exam dumps

DOP-C02 practice question 333 of 411

AWS Certified DevOps Engineer - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

DOP-C02 Question 333

Select 3

Your team has deployed a microservices-based application on AWS using Amazon ECS with Fargate. Recently, users have reported increased latency in the application's API responses. You need to identify the root cause of the latency issue. Which combination of AWS services and techniques should you use to effectively diagnose the problem?

  1. A

    Use Amazon CloudWatch Logs to analyze application logs for any errors or performance bottlenecks.

  2. B

    Enable AWS X-Ray tracing to visualize and trace the latency across individual microservices.

  3. C

    Set up a CloudWatch Alarm to automatically terminate high-latency ECS tasks.

  4. D

    Use CloudWatch Metrics to monitor CPU and memory utilization for the ECS Fargate tasks.

  5. E

    Configure AWS Trusted Advisor to generate a performance optimization report for the ECS cluster.

Show answer and explanation

Correct answers: A, B, D

Explanation

To diagnose the increased latency in a microservices-based application on ECS with Fargate, you should leverage CloudWatch Logs to review application error logs, use AWS X-Ray to trace and visualize latency across services, and monitor resource utilization through CloudWatch Metrics. These combined tools provide a comprehensive view of the application's performance and help identify the root cause of the latency. CloudWatch Alarms and AWS Trusted Advisor are not suitable choices for directly diagnosing latency issues in this scenario.

  • A. Correct.

    This is correct because CloudWatch Logs allows you to analyze logs generated by your application, helping to identify errors or performance bottlenecks contributing to the latency.

  • B. Correct.

    This is correct because AWS X-Ray provides distributed tracing capabilities, enabling you to visualize and trace the latency across individual microservices and pinpoint specific issues.

  • C. Incorrect.

    This is incorrect because terminating ECS tasks based on latency is not a recommended diagnostic approach. CloudWatch Alarms are better suited for alerting on metrics rather than taking drastic actions without proper investigation.

  • D. Correct.

    This is correct because CloudWatch Metrics can provide insights into resource utilization (e.g., CPU and memory) that might be causing performance degradation in ECS Fargate tasks.

  • E. Incorrect.

    This is incorrect because AWS Trusted Advisor does not provide specific insights or tools to diagnose microservices latency issues. It focuses on best practices, security, and cost optimization recommendations.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam