AWS Certified Solutions Architect - Associate / Question #1634 of 1019

Question #1634

A company operates a distributed application on Amazon EKS using a microservices architecture. They require a solution to collect, aggregate, and visualize both application metrics and log data in a centralized dashboard with minimal configuration. Which solution fulfills these requirements?

A

Deploy the Amazon CloudWatch agent as a DaemonSet in the EKS cluster. Use CloudWatch dashboards to view the aggregated data.

B

Implement AWS X-Ray for tracing and integrate it with Amazon Managed Service for Prometheus to store metrics. Use Grafana for visualization.

C

Enable AWS CloudTrail to capture API activity and send logs to Amazon S3. Use Amazon QuickSight for analysis and reporting.

D

Enable Amazon CloudWatch Container Insights for the EKS cluster. Access the metrics and logs through pre-configured dashboards in the CloudWatch console.

Explanation

Answer D is correct because Amazon CloudWatch Container Insights is purpose-built for containerized applications on EKS. It automatically collects performance metrics (e.g., CPU, memory) and logs from containers, aggregates them, and provides pre-configured dashboards in the CloudWatch console, requiring minimal setup. This fulfills the requirement for centralized monitoring and visualization with low effort.

Option A requires manual deployment of the CloudWatch agent as a DaemonSet and additional configuration for log aggregation. Option B involves AWS X-Ray (focused on tracing, not logs) and Prometheus/Grafana, which requires significant setup. Option C uses CloudTrail (for API activity auditing, not application metrics/logs) and QuickSight, which does not address the core requirement. Container Insights (D) is the only solution that natively integrates with EKS, handles both metrics and logs, and offers a streamlined, pre-configured dashboard.

Answer

The correct answer is: D