Lesson 2 of 2 Tracing and Synthetic Monitoring

Monitoring User Experience with Synthetics, RUM and Application Signals

Internal metrics can look healthy while users cannot complete a purchase. Outside-in monitoring tests the application the way users experience it. This lesson explains CloudWatch Synthetics canaries, CloudWatch RUM for real user monitoring, and CloudWatch Application Signals for service-level health and service level objectives, and how these signals are used to validate deployments and detect failures.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe CloudWatch Synthetics canaries, their blueprints, runtimes, schedules and outputs.
  • Explain how canaries are used to validate deployments and detect failures that internal metrics miss.
  • Describe CloudWatch RUM and the data it collects from real users.
  • Explain CloudWatch Application Signals and how service level objectives are defined and monitored.

CloudWatch Synthetics Canaries

A canary is a configurable script that runs on a schedule, such as every five minutes, from AWS infrastructure and tests an endpoint or a user journey. Canaries run in Lambda-based runtimes using Node.js with Puppeteer or Playwright, or Python with Selenium, so they can drive a real headless browser. Blueprints provide starting points for common tests.

BlueprintTests
Heartbeat monitoringThat a URL loads and returns success, with a screenshot and HAR file
API canaryREST API calls and response validation
Broken link checkerLinks on a page, following them to a depth
Visual monitoringScreenshots compared with a baseline to detect visual changes
GUI workflow builderMulti-step browser journeys such as sign-in and checkout
Canary recorderScripts recorded from browser actions with a browser extension

Each run stores artifacts in S3, including screenshots, logs and HAR files of network activity, and publishes metrics such as SuccessPercent and Duration in the CloudWatchSynthetics namespace, on which alarms are created. Canaries can run inside a VPC to test internal endpoints, can be deployed in several Regions to test from users' locations, and can be integrated with X-Ray to trace their requests. They need an execution role that can write artifacts and metrics.

Canaries for Deployment Validation and Detection

Canaries detect failures that internal metrics miss, because they test the complete path, including DNS, certificates, CDN behaviour, authentication and front-end code, and because they generate traffic even when real users are few, such as at night. A failing canary after a deployment is a strong signal that the deployment broke something users rely on.

For this reason, canary alarms are commonly attached to deployment safety mechanisms: CodeDeploy deployment groups, ECS deployment alarms, AppConfig environments and CodePipeline stage conditions, so that a failing canary rolls back the release. When analysing a failed deployment, the canary's screenshots, HAR files and logs show exactly which step of the user journey failed and what the page or API returned, which is why the exam guide lists synthetic monitoring among the sources for analysing failed deployments.

Canaries in exam scenarios

When a scenario requires detecting that a website or API is unavailable or broken from the user's perspective, including when there is little traffic, the answer is a CloudWatch Synthetics canary with an alarm. Route 53 health checks verify reachability but not multi-step journeys.

CloudWatch RUM

CloudWatch RUM (real user monitoring) collects performance and error data from real users' browsers through a small JavaScript snippet added to a web application. It records page load times and Core Web Vitals, JavaScript errors, HTTP request errors and user sessions, broken down by browser, device, location and page, and it can link front-end requests to back-end X-Ray traces. RUM shows the experience of actual users, including problems specific to certain browsers or Regions, while canaries show whether scripted journeys succeed at all. The two are complementary.

Synthetics canaries
TrafficScripted, scheduled
Works without usersYes
StrengthDetecting outages and broken journeys, validating deployments
Choose when Proactive availability and journey testing.
CloudWatch RUM
TrafficReal users
Works without usersNo
StrengthMeasuring actual experience across browsers and locations
Choose when Understanding and improving real user experience.
Sort into groups

Canary, RUM or Application Signals?

Exam skills 4.2.3 · 4.2.2

Choose the user-experience monitoring feature for each need.

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

CloudWatch Application Signals and SLOs

CloudWatch Application Signals automatically instruments applications on EKS, ECS, EC2 and Lambda with OpenTelemetry-based agents and produces a standard set of service-level metrics: request volume, availability (fault rate), latency and errors for each service and operation, plus a map of service dependencies. It correlates these with traces, logs, canaries and RUM data on one page per service, which shortens investigation.

Application Signals supports service level objectives (SLOs). An SLO defines a service level indicator, such as the percentage of requests with latency under 300 ms or the availability of an operation, a goal such as 99.9% over a rolling 28-day interval, and the resulting error budget. CloudWatch tracks attainment and the remaining error budget and alarms on budget consumption and burn rate. Error budgets support release decisions: a team that has exhausted its error budget prioritises reliability work over new features.

Worked example

Outside-In Monitoring for a Storefront

A storefront's internal metrics showed normal error rates during an incident in which a CDN configuration change made the checkout button fail for all users on one browser. The company wants such problems detected and releases rolled back automatically.

  1. Journey canary

    Create a GUI workflow canary that loads the home page, searches, adds an item to the cart and reaches the payment page every five minutes from two Regions, with an alarm on SuccessPercent below 100 for two consecutive runs.

  2. Deployment safety

    Attach the canary alarm to the CodePipeline production stage's on-success condition and to the CloudFront continuous deployment process, so failing journeys stop and roll back releases.

  3. Real users

    Add CloudWatch RUM to the site to detect browser-specific JavaScript errors.

  4. Objectives

    Enable Application Signals for the checkout service and define an availability SLO of 99.9% with burn-rate alarms.

Check yourself

A team wants to know whether its login page works every five minutes, including overnight when there is almost no traffic. Which feature fits best?

Show answer

A CloudWatch Synthetics canary (heartbeat or GUI workflow) on a five-minute schedule with an alarm on SuccessPercent. RUM depends on real users and would show nothing overnight.

Exam Tips

Remember for the exam

  • Synthetics canaries run scheduled scripts (Puppeteer, Playwright, Selenium) and publish SuccessPercent and Duration; artifacts (screenshots, HAR, logs) go to S3.
  • Attach canary alarms to deployment rollback mechanisms; canary artifacts help analyse failed deployments.
  • CloudWatch RUM measures real user performance and errors in browsers; canaries work without real traffic.
  • Application Signals provides service-level metrics and SLOs with error budgets and burn-rate alarms.