AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A global e-commerce company runs a microservices application on Amazon ECS and AWS Lambda across multiple AWS accounts (Production, Development, Staging) and in two AWS Regions (us-east-1, eu-west-1). The operations team is facing challenges in efficiently diagnosing production issues because application logs are fragmented across numerous CloudWatch Log Groups in different accounts and regions. To enhance operational excellence and reduce the Mean Time to Resolution (MTTR), they need a unified solution to centralize log data for correlation, analysis, and proactive alarming on application-wide error trends. Which strategy provides the MOST operationally excellent and scalable solution using Amazon CloudWatch and related services?

  • In each source account, create IAM roles that grant read-only access to the central operations account. In the central account, deploy a custom script on an EC2 instance that periodically uses 'sts:AssumeRole' to connect to each source account, retrieves logs using the 'FilterLogEvents' API call, and stores them in a central CloudWatch Log Group.

  • Designate a central logging account. In the central account, create a Kinesis Data Stream. In each source account and region, create CloudWatch Logs subscription filters for the required log groups, configured to send log data to the central Kinesis Data Stream. In the central account, use a Lambda function triggered by the Kinesis stream to forward logs to a centralized CloudWatch Log Group. Create metric filters on the central log group and build cross-account dashboards.

  • Establish a central logging account and enable CloudWatch cross-account observability, linking all source accounts to the central account. This will automatically share logs and metrics. In the central account, create metric filters based on the now-visible log groups from all source accounts and regions, and build unified dashboards.

  • Configure the CloudWatch agent on all EC2 instances and as an ECS sidecar to send logs directly to a CloudWatch Log Group in the central monitoring account. For Lambda functions, modify their IAM execution roles to grant 'logs:PutLogEvents' permission directly to the central account's log group.

AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot