DOP-C02 Question 326
Select 3A DevOps engineer is responsible for managing a web application hosted on Amazon ECS using Fargate. The application has recently started experiencing intermittent failures, such as HTTP 5xx errors, increased latency, and occasional connection timeouts. Upon investigation, the engineer discovers that the issue coincides with a sudden increase in incoming traffic. Which of the following actions should the engineer take to troubleshoot and resolve the issue?
- A
Enable AWS X-Ray tracing for the ECS service to identify bottlenecks in the application workflow.
- B
Configure an Auto Scaling policy for the ECS service to increase task count during traffic spikes.
- C
Inspect the application logs stored in Amazon CloudWatch Logs for detailed error messages.
- D
Increase the CPU and memory settings for the ECS tasks to handle the increased traffic.
- E
Upgrade the Fargate platform version to the latest available version.
Show answer and explanation
Correct answers: A, B, C
Explanation
Troubleshooting application failures involves identifying the root cause of the issue. AWS X-Ray provides insight into application bottlenecks, CloudWatch Logs help identify specific errors, and Auto Scaling ensures the service can handle increased traffic. While adjusting resources or upgrading the platform may eventually be necessary, they are not the immediate actions needed to troubleshoot and resolve the issue.
- A. Correct.
Enabling AWS X-Ray tracing allows the engineer to identify bottlenecks or latency issues within the application workflow, which is critical for troubleshooting such failures.
- B. Correct.
Configuring Auto Scaling ensures the ECS service can handle increased traffic by dynamically adjusting the number of running tasks, preventing resource exhaustion and reducing failures.
- C. Correct.
Inspecting application logs in CloudWatch Logs provides detailed error messages and insights into what is causing the application to fail under increased load.
- D. Incorrect.
While increasing CPU and memory could help, it is not the first step in troubleshooting such failures. The root cause of the issue should be identified before increasing resources.
- E. Incorrect.
Upgrading the Fargate platform version is unnecessary unless the issue is specifically due to a known bug or limitation in the current version, which has not been indicated in this scenario.