A SysOps Administrator is setting up cross-account monitoring for containerized workloads. The administrator needs to configure Amazon CloudWatch Container Insights to visualize performance metrics from Amazon ECS clusters running in a source account (Account B) within a centralized dashboard in a monitoring account (Account A). Both accounts are in the same Region. Which of the following actions must the administrator perform to achieve this setup? (Select TWO.)
- In the monitoring account (Account A), create a CloudWatch observability sink and define a sink policy that permits Account B to link to it.Answer
- In the source account (Account B), create a CloudWatch observability link pointing to the Amazon Resource Name (ARN) of the sink in Account A.Answer
- CIn the source account (Account B), modify the CloudWatch agent configuration to specify the regional endpoint of Account A as the primary metric destination.
- DIn the monitoring account (Account A), configure a cross-account IAM role with the CloudWatchAgentServerPolicy policy and configure the ECS tasks in Account B to assume this role.
- EIn the source account (Account B), create a CloudWatch Logs metric filter for the /aws/containerinsights log group that publishes metrics directly to an Amazon Simple Queue Service (Amazon SQS) queue in Account A.
Answer
To configure cross-account monitoring for Container Insights, you must create a CloudWatch observability sink in the monitoring account (Account A) with a policy permitting Account B, and then create a CloudWatch observability link in the source account (Account B) pointing to the sink in Account A.
To view CloudWatch metrics, logs, and traces from other AWS accounts, CloudWatch cross-account observability uses a sink-and-link model. The monitoring account (receiver) must have a sink and a policy allowing the source account to link to it. The source account (sender) then creates a link referencing the sink. This is the correct, native way to share Container Insights data across accounts.
Step-by-Step Solution
Key Concept
CloudWatch Cross-Account Observability using Sinks and Links
Estimated Time:2m 0s