DOP-C02 exam dumps

DOP-C02 practice question 217 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 217

Select 2

You are managing a microservices-based application running on Amazon ECS with Fargate. The application has intermittent performance issues, but the root cause is unclear. You need to monitor the application and infrastructure to identify bottlenecks and troubleshoot effectively. Which combination of approaches should you implement to achieve this? (Choose TWO)

  1. A

    Enable AWS X-Ray tracing for the application to analyze request flows and latency.

  2. B

    Use Amazon CloudWatch Logs Insights to query and analyze logs for ECS tasks and containers.

  3. C

    Deploy a custom monitoring agent within the Fargate containers to gather detailed metrics.

  4. D

    Set up Amazon CloudWatch Alarms to notify you of CPU and memory utilization thresholds.

  5. E

    Use AWS Trusted Advisor to check the application for performance bottlenecks.

Show answer and explanation

Correct answers: A, B

Explanation

To effectively monitor and troubleshoot a microservices-based application running on ECS with Fargate, you need tools that provide visibility into request-level performance and log analysis. AWS X-Ray enables tracing and latency analysis across microservices, while CloudWatch Logs Insights allows querying and analyzing logs for ECS tasks and containers. These tools together provide the necessary insights to identify the root cause of performance issues. Custom monitoring agents and alarm notifications are less practical or effective in this scenario, and AWS Trusted Advisor is not suitable for detailed monitoring.

  • A. Correct.

    AWS X-Ray is designed to provide end-to-end tracing for distributed applications, making it useful for analyzing request flows, identifying latency issues, and understanding where bottlenecks occur in a microservices architecture.

  • B. Correct.

    Amazon CloudWatch Logs Insights allows you to query and analyze logs, making it an effective tool for troubleshooting and understanding performance problems in ECS tasks and containers.

  • C. Incorrect.

    While deploying a custom monitoring agent can provide detailed metrics, this is not recommended for Fargate as it is a managed service and does not allow direct agent installation. AWS-native tools like CloudWatch are better suited.

  • D. Incorrect.

    CloudWatch Alarms are useful for setting up threshold-based notifications, but they are reactive and do not provide the detailed insights needed for root cause analysis of intermittent issues.

  • E. Incorrect.

    AWS Trusted Advisor is a proactive recommendation service that checks for best practices in cost optimization, security, and performance, but it is not a monitoring tool for troubleshooting specific application performance issues.

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