Demonstration study. The indicators and exercises below are proposed validation activities. No metrics have been collected from an AWS distribution for this lab.

Observe before adding tools

An architecture without an application server still requires operations. Failed publications, incorrect permissions, stale caches and traffic growth can affect readers. Choosing managed services makes it possible to start with the telemetry they already provide.

For a personal blog with a target cost of up to US$10 per month, begin with native CloudFront indicators and investigate which information is actually needed before extending collection. The budget is a target, not a guaranteed spending ceiling.

Metrics that answer operational questions

CloudFront publishes distribution metrics to Amazon CloudWatch. For API queries, the namespace is AWS/CloudFront, the regional dimension is Global, and the query region is us-east-1.1

IndicatorQuestion it helps answerInitial interpretation
RequestsIs the website receiving traffic?Request count, not unique readers
4xxErrorRateAre paths invalid or access denied?Investigate removed URLs and permissions
5xxErrorRateIs delivery failing?Correlate with origin and recent changes
BytesDownloadedHow much content was transferred?Investigate volume and cost trends
CacheHitRateIs the cache serving eligible requests?Additional metric; assess need and cost

Percentages can look alarming when there are very few requests. One error in ten requests represents 10%; the same error in ten thousand requests represents 0.01%. Consider volume, persistence and impact rather than treating every 4xx response as downtime.

Metrics, logs and synthetic tests

Metrics help identify trends. Access logs help investigate specific paths and HTTP status codes, but CloudFront delivers them on a best-effort basis; they should not be treated as a complete record of all requests. If enabled, manage retention, access and cost, and consider reader data.

A simple synthetic check can confirm delivery of a known page and handling of a missing path. Local example, after a successful build:

base=http://127.0.0.1:8000
curl -fsS -o /dev/null -w '%{http_code} %{time_total}\n' "$base/"
curl -sS -o /dev/null -w '%{http_code}\n' "$base/pagina-inexistente.html"

Expect HTTP 200 for the homepage and HTTP 404 for the missing path on the test server. On AWS, verify the same behavior on the actual endpoint, including the custom error page. curl response time does not measure LCP, INP or CLS; keep browser tests and Lighthouse for visual experience.

Cost and criteria for evolution

Cost depends on the applicable pricing model, storage, transfers, requests, builds and additional resources. AWS Budgets can track actual and forecast spending, but billing data is delayed. A budget alert does not act as an instantaneous spending limit.

A proportional approach can begin with default metrics, add alarms when a behavior requires action, and enable logs or additional metrics only to answer unresolved questions. An external observability platform is not necessary to demonstrate this workflow.

Acceptance criteria

  • Identify the distribution and query its indicators in CloudWatch.
  • Reproduce a valid request and a missing URL; record the observed outcome.
  • Correlate a simulated publishing incident with the pipeline execution and HTTP responses.
  • Review the monthly budget and document the incremental cost of each capability added.

The goal is to explain the behavior of the system with evidence, without confusing greater telemetry volume with greater operational maturity.

Related reading: Well-Architected in practice.

References