4 of the 9 questions we have for this objective, shown with the answer and the reasoning.
Design observability and monitoring solutions
Rookwood Telecom's site reliability team works in an account named observability-prod and supports 50 workload accounts in eu-west-1. Engineers need to search CloudWatch metrics, logs and X-Ray traces from all workload accounts from observability-prod without switching roles. Separately, compliance requires that application logs from every workload account be streamed in near real time to a central S3 bucket in the log-archive account for long-term retention.
Which two actions should the solutions architect take? Each correct answer presents part of the solution.
- ASchedule a Lambda function in each workload account that calls CreateExportTask every day to copy all application log groups to the log-archive bucket for retention.Export tasks are batch operations that run one at a time per account, so a daily export is not near real time and adds custom code in 50 accounts.
- BSend application logs to the CloudTrail organization trail so that they are stored in log-archive.CloudTrail records AWS API activity. It does not ingest application logs from CloudWatch Logs.
- CCreate an AWS Config aggregator in observability-prod that collects data from all 50 workload accounts through AWS Organizations to view metrics and logs.Config aggregators collect resource configuration and compliance data, not CloudWatch metrics, logs or traces.
- DConfigure CloudWatch cross-account observability with observability-prod as the monitoring account and link all workload accounts through AWS Organizations.Cross-account observability lets a monitoring account view and query metrics, logs and traces from linked source accounts without switching roles, and AWS Organizations can link all accounts automatically.
- ECreate a CloudWatch Logs destination in log-archive backed by Amazon Data Firehose to the S3 bucket, and subscribe the workload log groups to it.Cross-account subscription filters stream log events in near real time to a destination in another account, and Firehose delivers them to S3 for retention.
Why: Central logging usually has two separate goals: operational visibility and durable retention. CloudWatch cross-account observability addresses visibility by letting a monitoring account query telemetry from many source accounts in place. Streaming through subscription filters to a cross-account destination, with Firehose writing to S3 in a log archive account, addresses retention and keeps the logs outside the workload accounts' control. Export tasks, CloudTrail and Config each solve a different problem.
Design observability and monitoring solutions
Saffron Lane Grocers instruments its checkout service on Amazon ECS with CloudWatch Application Signals. The business has stated that checkout must feel fast: 99% of checkout requests must complete in under 800 ms, measured over any rolling 28-day period. Today the team only alarms when average CPU utilization exceeds 70%, and customers have complained about slow checkouts while CPU was normal.
How should the solutions architect express and monitor this requirement?
- AEnable Container Insights and add a dashboard of task memory and network metrics.Container Insights provides useful infrastructure detail but does not define or measure the latency objective.
- BCreate a CloudWatch alarm on the checkout operation's average Latency metric with an 800 ms threshold and a 1-day period, and review its history on a 28-day dashboard.An average can stay under 800 ms while a significant share of requests is slow, so it does not measure the stated 99% target over a rolling 28 days.
- CLower the CPU utilization alarm threshold to 50% so that the team is warned earlier.CPU is a resource metric, not a measure of the customer experience, and the complaints show it does not track checkout latency.
- DCreate an Application Signals SLO for the checkout operation that counts requests under 800 ms as good, with a 99% goal over a rolling 28-day interval.A request-based service level objective turns the business statement directly into a measurable indicator, goal and interval, and alarms on its attainment and error budget show how much slowness remains acceptable.
Why: Business requirements become measurable when they are written as a service level indicator, a target and a time window. Here the indicator is the proportion of checkout requests faster than 800 ms, the goal is 99%, and the window is a rolling 28 days. CloudWatch Application Signals SLOs model exactly that and track attainment and remaining error budget, which supports alarms before the objective is breached. Averages and resource metrics are tempting because they already exist, but they do not represent what customers experience.
Design observability and monitoring solutions
Pembrook Media runs 200 microservices on Amazon EKS. Operators need per-pod and per-container CPU and memory use, restart counts and node health in Amazon CloudWatch, together with the container logs, and they want alarms when a deployment's pods keep restarting. The team wants the least setup and maintenance.
What should the solutions architect do?
- ADeploy a self-managed Prometheus and Grafana stack in the cluster with kube-state-metrics, ship container logs with a Fluentd DaemonSet, and maintain dashboards for each service.This can work, but running, scaling and upgrading the monitoring and logging stack inside the cluster is more effort than a managed add-on.
- BCreate an AWS CloudTrail trail for the EKS API and alarm on deployment events.CloudTrail records API calls, not container resource use, restarts or logs.
- CTurn on VPC Flow Logs for the cluster's subnets and alarm on rejected connections.Flow logs show network traffic, not pod health or resource use.
- DInstall the Amazon CloudWatch Observability EKS add-on for Container Insights with enhanced observability and Fluent Bit logs, and alarm on pod restart metrics.The managed add-on deploys the CloudWatch agent and Fluent Bit, collects detailed cluster, node, pod and container metrics and logs, and the metrics can drive alarms.
Why: Monitoring containers needs metrics at the cluster, node, pod and container level plus logs. Container Insights provides this for EKS and ECS; on EKS, the Amazon CloudWatch Observability add-on installs and manages the agent and Fluent Bit, and enhanced observability adds granular health and performance metrics. Those metrics feed CloudWatch alarms and dashboards without operating a separate monitoring stack.
Design observability and monitoring solutions
Ellery Outfitters had a three-hour checkout outage overnight that nobody noticed until customers complained in the morning, because traffic is very low at night. Separately, the marketing team suspects that page load times are poor for shoppers on mobile browsers in South America, but server metrics look healthy.
Which two actions should the solutions architect take? Each correct answer presents part of the solution.
- ACreate CloudWatch Synthetics canaries that run the checkout flow every five minutes and alarm when they fail.Canaries generate traffic on a schedule, so a broken checkout is detected within minutes even when no real customers are active.
- BAdd Amazon CloudWatch RUM to the web application to collect page load times and errors from real browsers by device and country.Real user monitoring measures what actual shoppers experience in their browsers, which server-side metrics cannot show.
- CLower the threshold of the existing server CPU alarm to 20% and add an alarm on the ALB TargetResponseTime metric.Server CPU and response time do not reflect a checkout that fails while there is almost no traffic, or slow client-side rendering in mobile browsers.
- DTurn on access logs for the Application Load Balancer, query them with Amazon Athena, and review the results weekly by client country.Weekly log reviews do not alert on outages, and load balancer logs do not show browser-side load times.
- EIncrease the minimum size of the Auto Scaling group at night and enable detailed monitoring on every instance.More capacity and finer server metrics do not detect failures or measure user experience.
Why: User-experience monitoring has two complementary sides. Synthetic monitoring, with CloudWatch Synthetics canaries, actively exercises key journeys on a schedule, which catches outages when real traffic is too low to trigger alarms. Real user monitoring, with CloudWatch RUM, collects performance and error data from actual browsers, showing problems tied to devices, browsers or geographies that server metrics miss.