Which solution will meet these requirements with the LEAST operational overhead?
Turn on Enhanced Monitoring for the DB instance. Modify the corresponding parameter group to turn on query logging for all the slow queries. Create Amazon CloudWatch alarms. Set the alarms to appropriate thresholds that are based on performance metrics in CloudWatch.
Turn on Enhanced Monitoring and Performance Insights for the DB instance. Create Amazon CloudWatch alarms. Set the alarms to appropriate thresholds that are based on performance metrics in CloudWatch.
Turn on log exports to Amazon CloudWatch for the PostgreSQL logs on the DB instance. Analyze the logs by using Amazon Elasticsearch Service (Amazon ES) and Kibana. Create a dashboard in Kibana. Configure alerts that are based on the metrics that are collected.
Turn on Performance Insights for the DB instance. Modify the corresponding parameter group to turn on query logging for all the slow queries. Create Amazon CloudWatch alarms. Set the alarms to appropriate thresholds that are based on performance metrics in CloudWatch.
Explanations:
While Enhanced Monitoring provides more granular insights into the DB instance’s performance, enabling query logging for all slow queries may lead to increased overhead and potential performance degradation. Moreover, this option lacks the additional capabilities of Performance Insights, which would help in identifying performance bottlenecks more effectively.
Turning on both Enhanced Monitoring and Performance Insights provides comprehensive performance metrics and insights, allowing the team to monitor the database closely and receive alerts before users experience issues. This option enables proactive identification of potential problems, facilitating operational readiness with minimal manual intervention.
While exporting logs to Amazon CloudWatch and analyzing them with Amazon ES and Kibana can provide valuable insights, this approach introduces higher operational overhead due to the need for log management, analysis setup, and dashboard creation. It may not provide real-time alerts effectively, which is crucial for operational readiness.
Enabling Performance Insights alone does provide visibility into database performance, but combining it with slow query logging can create unnecessary overhead. Additionally, this option does not include Enhanced Monitoring, which is essential for real-time operational readiness and early detection of potential issues.