Skip to content

Observability: recap and quiz

  1. Logs, metrics and traces. A log records an event, a metric aggregates measurements, and a trace follows one request, so each is the cheap answer to one question and a poor answer to the others.
  2. Metrics and the four golden signals. Latency, traffic, errors and saturation, read together against normal, tell slow work (latency up, traffic flat) from too much work (traffic up).
  3. Traces and spans. A trace is a call tree with a clock on every branch, and it shows the hop that holds the time or the call that is repeated, which a dashboard shows only as more traffic.
  4. SLIs, SLOs and SLAs. An SLI is good events over valid events, an SLO is its target over a window, and an SLA is a contract with consequences, so a target decides how much failure is allowed.
  5. Error budgets and burn rates. The burn rate is the failing share over the allowed share, the budget lasts the window over the burn rate, and a burn rate of 14.4 spends 2% of the budget in an hour.
  6. Alerting on symptoms. Page on what users feel, with burn-rate alerts over a long and a short window, because a cause alert only fires for the failure someone expected.
Idea What breaks What you see What helps
Three signals Only one kind of telemetry Errors you cannot count, or counted and unexplained Metrics to detect, traces to locate, logs to explain, with a trace ID in every line
Golden signals Reading one signal alone, or one service alone A healthy caller and slower users The four signals together, against normal, with the time in the service itself
Traces Sampling, averages, missing context The slow request is not there, or the spans do not add up Keep slow and failed traces, check that spans sum to the root
SLO A target of 100%, or today’s number A promise nobody chose A target from what users need and the team can sustain
Error budget An SLI that cannot see the problem Slow users and a full budget A latency SLI as well as an availability SLI
Alerting Paging on causes Noise, then ignored pages Page on burn rates, keep causes for finding the fault

Each question points back to the lesson that answers it.

  1. Can you tell, from outside, whether a user’s request worked? Measure the SLI near the user. (SLIs, SLOs and SLAs)
  2. Does every service report the four golden signals? Latency of successful requests apart from failed ones, traffic, errors and saturation. (Metrics and the four golden signals)
  3. Are latency percentiles built from histograms? A percentile of averages is not a percentile. (Metrics and the four golden signals)
  4. Is there a user ID, or any unbounded value, in a metric label? Move it to a log or a span. (Logs, metrics and traces)
  5. Does a trace ID follow the request across every hop and into the log lines? (Traces and spans)
  6. Which traces are kept? A plain share may drop the one you need. (Traces and spans)
  7. What is the SLO, over which window, and what does it allow in requests and in minutes? (SLIs, SLOs and SLAs)
  8. What happens when the budget is spent? Write the policy before you need it. (Error budgets and burn rates)
  9. Does a slowdown that fails nothing spend any budget? If not, add a latency SLI. (Error budgets and burn rates)
  10. What pages, and what is only a ticket? Page on burn rates over several windows. (Alerting on symptoms)

Nine questions cover the whole module. Every option is explained, whether it is right or wrong.

Observability: module quiz

This quiz needs JavaScript to check your answers.

Question 1 of 9

One checkout took 2.4 s, and a customer complained about it.

Which signal shows you which of the services that request called took most of the 2.4 s?

Choose one answer.

Question 2 of 9

A team adds labels to a counter of requests.

Which labels are safe to put on a metric?

Choose every answer that applies.

Question 3 of 9

A database's p95 latency is four times its normal value, its traffic is exactly normal, its errors are zero and its saturation is 60%.

What does that combination point to?

Choose one answer.

Question 4 of 9

A service's own p95 is normal, traffic is normal and its saturation is normal. Its time to answer, counting the calls it makes, is 71 ms against 41 ms normally.

Where is the slowness?

Choose one answer.

Question 5 of 9

A tracing system keeps 1 request in 100. The slowest request of the day, the one a customer reported, has no trace.

What does that show, and what helps?

Choose one answer.

Question 6 of 9

A provider promises customers a 10% refund if monthly availability is under 99.5%. Inside, the team aims for 99.9%.

Which is the SLA, and why is the internal target tighter?

Choose one answer.

Question 7 of 9

A service receives 200 requests a second, steadily. Its SLO is 99.9% of requests succeeding over 30 days.

How many failed requests does the SLO allow over the 30 days?

Enter a number and choose its unit.

requests
Question 8 of 9

The SLO is 99.9% over 30 days (720 hours). An incident runs at a burn rate of 6 for 6 hours.

What share of the whole 30-day error budget does it spend, in percent?

Enter a number and choose its unit.

percent
Question 9 of 9

The on-call phone can ring for a symptom, such as a burn rate over its limit, or for a cause, such as one server's CPU over 85%.

Which should page, in general?

Choose one answer.

Observability tells you that something is wrong and where. The modules on security and deployment are where it is put to work: a deployment that goes bad shows first as a burn rate, and a security control that fails shows as errors on the path it protects. Ask this module’s questions of each one: what would the evidence look like, who is paged, and what do you do first.

Your progress

Built by GhaziAlibi.

© ShardCraft. All rights reserved.