A SysOps Administrator is tasked with enabling Amazon CloudWatch Container Insights for an existing Amazon ECS cluster where all tasks run on AWS Fargate. Additionally, the administrator must create a CloudWatch dashboard to monitor the CPU and memory utilization of the cluster and its tasks. Which combination of actions should the SysOps Administrator take to meet these requirements? (Select TWO.)
- Enable Container Insights for the cluster by updating the cluster settings using the AWS CLI command: aws ecs update-cluster-settings --cluster <cluster-name> --settings name=containerInsights,value=enabledCevap
- Create a CloudWatch dashboard and add widgets that reference the metrics under the ECS/ContainerInsights namespace.Cevap
- CEnable detailed monitoring within the ECS task definition parameters to increase the Container Insights metric resolution from 5 minutes to 1 minute.
- DConfigure a metric filter on the /aws/ecs/containerinsights/ performance log group and set the log group retention period to 0 days to prevent metrics from being deleted.
- ECreate an Amazon EventBridge rule that triggers an AWS Systems Manager Automation document to extract performance data and refresh the CloudWatch dashboard widgets.
Cevap
Enable Container Insights on the cluster using the AWS CLI update-cluster-settings command, and then create a CloudWatch dashboard with widgets displaying metrics from the ECS/ContainerInsights namespace.
For an Amazon ECS cluster running on AWS Fargate, the SysOps Administrator must enable Container Insights by updating the cluster settings. The AWS CLI command update-cluster-settings achieves this. Once enabled, ECS publishes metrics to the ECS/ContainerInsights namespace. The administrator can create a CloudWatch dashboard and add widgets referencing this namespace to display the utilization metrics.
Adım Adım Çözüm
Anahtar Kavram
For Amazon ECS clusters running on AWS Fargate, Container Insights is enabled via cluster settings, and the infrastructure automatically pushes performance metrics to the ECS/ContainerInsights namespace without the need for manual agent configuration.