SAP-C02 Question 382
Select 2A company is running a distributed application across multiple AWS accounts in an AWS Organization. They want to centralize monitoring for application metrics and logs in a single account. To achieve this, which combination of actions should be taken?
- A
Set up a CloudWatch cross-account data sharing role in the central account.
- B
Create a CloudWatch Logs subscription filter in each member account and stream logs to the central account.
- C
Use AWS Organizations to enable centralized CloudWatch Logs and metrics collection automatically.
- D
Configure metric streams in the member accounts to send CloudWatch metrics to the central account.
- E
Use AWS Resource Access Manager (AWS RAM) to share CloudWatch dashboards across accounts.
Show answer and explanation
Correct answers: B, D
Explanation
To centralize monitoring for application metrics and logs across multiple AWS accounts in an organization, you need to configure specific mechanisms. CloudWatch Logs subscription filters allow logs to be streamed from member accounts to a central account, while metric streams enable the sending of CloudWatch metrics to a central account. AWS Organizations and AWS RAM do not directly provide features for centralizing logs or metrics.
- A. Incorrect.
Incorrect: CloudWatch cross-account data sharing is not a feature in CloudWatch. Centralizing logs and metrics requires log subscription filters and metric streams.
- B. Correct.
Correct: CloudWatch Logs subscription filters can be used to stream logs from member accounts to a log group in the central account.
- C. Incorrect.
Incorrect: AWS Organizations does not provide automatic functionality to centralize CloudWatch Logs or metrics collection. This requires specific configurations.
- D. Correct.
Correct: Metric streams can be used to send CloudWatch metrics from member accounts to the central account for centralized monitoring.
- E. Incorrect.
Incorrect: AWS RAM can share resources like dashboards, but it does not facilitate the centralization of logs or metrics across accounts.