ANS-C01 Question 107
Select 3You are managing an AWS architecture for a web application that has unpredictable traffic patterns. To monitor the performance and troubleshoot issues, you need to implement a solution that provides detailed visibility into the application's behavior, including resource utilization and error logs. Which combination of actions should you take to meet these requirements?
- A
Install the CloudWatch Agent on the application servers to collect and publish custom metrics and logs.
- B
Use Amazon CloudWatch Logs Insights to query and analyze log data for troubleshooting.
- C
Create a CloudWatch alarm to monitor CPU utilization and automatically terminate the instance if the utilization exceeds a threshold.
- D
Set up a CloudWatch dashboard to visualize key performance metrics in real-time.
- E
Enable VPC Flow Logs to collect detailed network traffic information for the web application.
Show answer and explanation
Correct answers: A, B, D
Explanation
To effectively monitor the application's behavior and ensure visibility, you should install the CloudWatch Agent to collect detailed metrics and logs. CloudWatch Logs Insights can then be used to analyze the log data for troubleshooting purposes. Additionally, a CloudWatch dashboard allows you to visualize key performance metrics in real time, aiding in proactive monitoring. These actions together provide comprehensive visibility into the application’s performance and behavior.
- A. Correct.
Installing the CloudWatch Agent enables collection of custom metrics and logs from the application servers, providing detailed insight into application behavior.
- B. Correct.
Using CloudWatch Logs Insights allows you to query and analyze log data efficiently, which is essential for troubleshooting and gaining visibility.
- C. Incorrect.
Creating a CloudWatch alarm to automatically terminate an instance is not recommended as it can disrupt the application. Alarms should be used to notify or trigger actions, not directly terminate resources.
- D. Correct.
Setting up a CloudWatch dashboard provides a centralized and real-time view of critical metrics, improving visibility into the application's performance.
- E. Incorrect.
While enabling VPC Flow Logs provides network traffic data, it does not directly address monitoring resource utilization or application logs. It is more suitable for network-level troubleshooting.