AWS Certified DevOps Engineer – ProfessionalMonitoring and LoggingEasy

A DevOps team requires a dashboard to visualize the health and performance of their distributed microservices application running on AWS Fargate. The dashboard needs to display key metrics like CPU and memory utilization per service, network I/O, application logs, and custom business metrics. The solution should be easy to set up and provide a unified view without requiring extensive custom development.

  1. ADeploy Grafana on an EC2 instance, configure it to pull metrics from CloudWatch and logs from CloudWatch Logs.
  2. BSend all metrics and logs to Amazon OpenSearch Service and build dashboards using Kibana.
  3. CUse Amazon CloudWatch Custom Dashboards and manually add widgets for each metric from CloudWatch, CloudWatch Logs, and custom namespaces.
  4. DEnable Amazon CloudWatch Container Insights for the Fargate cluster to automatically collect, aggregate, and visualize metrics and logs.
Show answer & explanation

Correct answer: D. Enable Amazon CloudWatch Container Insights for the Fargate cluster to automatically collect, aggregate, and visualize metrics and logs.

Amazon CloudWatch Container Insights is specifically designed for monitoring containerized applications, including those on Fargate. It automatically collects, aggregates, and visualizes key metrics (CPU, memory, network, storage) and logs at the cluster, service, task, and container levels, providing a unified dashboard with minimal setup.

Why the other options are wrong

  • A. Deploying and managing Grafana adds operational overhead and isn't a native AWS serverless solution for this specific need.
  • B. OpenSearch Service is a powerful tool, but for this specific requirement of Fargate monitoring, Container Insights offers a more integrated and simpler solution for automatic metric and log collection and visualization.
  • C. While possible, manually creating dashboards is time-consuming and doesn't provide the automatic aggregation and detailed views offered by Container Insights for Fargate.

CloudWatch Container Insights for Fargate

CloudWatch Container Insights provides comprehensive monitoring for containerized applications, including those running on AWS Fargate, by automatically collecting and aggregating metrics and logs.

  • Monitors CPU, memory, network, and storage.
  • Collects metrics at cluster, service, task, and container levels.
  • Integrates with CloudWatch Logs for container logs.
  • Provides automatic dashboards and performance visualizations.

Memory trick: Fargate's 'Container Insights' gives you the full picture, automatically.

More Monitoring and Logging questions