Lesson 3 of 7 Operational Excellence and Observability

Monitoring User Experience and Defining SLOs

This lesson compares synthetic and real user monitoring and explains how CloudWatch Application Signals tracks service-level objectives and error budgets.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish CloudWatch Synthetics and CloudWatch RUM.
  • Explain SLIs, SLOs, error budgets and burn rate alarms.
  • Choose user experience monitoring for a requirement.

Synthetic monitoring with CloudWatch Synthetics

CloudWatch Synthetics runs canaries: scripts in Node.js (Puppeteer or Playwright) or Python (Selenium) that run on a schedule from chosen Regions or inside a VPC. Canaries load pages, follow multi-step journeys such as sign-in and checkout, call APIs and check links, recording screenshots, HAR files, timings and success metrics. Because they run whether or not real users are active, they find broken journeys at night and before launches.

Real user monitoring with CloudWatch RUM

CloudWatch RUM adds a JavaScript snippet to a web application that collects performance and errors from real users' browsers: page load times, Core Web Vitals, JavaScript and HTTP errors and user sessions, segmented by browser, device, country and page. With X-Ray tracing enabled in the app monitor, slow user requests can be followed into back-end traces.

CloudWatch Synthetics
TrafficScripted, scheduled
Works without usersYes
ShowsWhether critical journeys work and how fast
Choose when Proactive detection of broken journeys and endpoints, including private ones.
CloudWatch RUM
TrafficReal users
Works without usersNo
ShowsHow real users experience the application
Choose when Performance and errors across real browsers, devices and locations.
Sort into groups

Synthetics or RUM?

Exam skills 5.3.6

Choose the user experience monitoring tool for each question.

Log in to try this activity Interactive activities are free with an account.

Service-level objectives

A service-level indicator (SLI) is a measurement of service quality, such as the share of requests that succeed within 300 ms. A service-level objective (SLO) is the target for it over a period, for example 99.9% over a rolling 28 days, and the remaining allowance of failures is the error budget. CloudWatch Application Signals discovers OpenTelemetry-instrumented services and their dependencies, shows request volume, latency, errors and faults per operation, and tracks SLOs on these or any CloudWatch metric, with burn rate alarms that warn when the budget is being used up too fast, before the objective is missed. Latency SLOs use percentiles rather than averages.

The following diagram connects the three terms and shows how a burn rate alarm uses the error budget.

Service-level indicators, objectives and error budgets. With an SLO of 99.9% over 28 days and 10 million requests, the error budget is 10,000 failed requests. A burn rate alarm compares how fast the budget is being used with the even rate that would just last the period, and warns early when a fast burn would exhaust it after about 12 days.
The request volume is illustrative. The alarm fires on the rate of consumption, days before the budget itself runs out.
Fill in the value

Error budgets

Exam skills 5.3.7

Calculate error budgets from SLOs.

Log in to try this activity Interactive activities are free with an account.
Worked example

A checkout that looked healthy

An online store lost sales for three hours one night because a payment redirect returned an error page with HTTP 200; no alarm fired. Separately, customers in one country complain about slow pages.

The team adds a Synthetics canary that completes a test checkout every five minutes and asserts on the confirmation page, with an alarm on failures.

CloudWatch RUM shows that the slow pages come from a third-party script on older mobile browsers in that country. An Application Signals SLO of 99.5% of checkout requests under 800 ms with a burn rate alarm gives the team early warning of future regressions.

Check yourself

Why can't CloudWatch RUM detect a broken checkout at 3 a.m. when nobody is shopping?

Show answer

RUM measures real users, so without traffic it has nothing to report. A Synthetics canary runs the journey on a schedule regardless of traffic.

Exam Tips

Remember for the exam

  • Detect a broken journey with no real traffic: Synthetics canary; private endpoints: run the canary in the VPC.
  • Real users' page loads and JavaScript errors by browser and country: CloudWatch RUM.
  • Track an objective such as 99.9% within 300 ms over 28 days: Application Signals SLO with burn rate alarms.
  • Use percentiles, not averages, for latency objectives.