LEARN. PRACTICE. EXPLAIN.
Learning paths & interview practiceP
DevOps / SRE foundations
LESSON 3 OF 3 · ABOUT 16 MINUTES + EXERCISE

What should you monitor, and how do you recover?

THE IDEA

What it is

Metrics summarize behavior, logs describe individual events, and traces follow work across components. An SLI measures a chosen aspect of service behavior; an SLO sets a target. Recovery planning covers how to restore service and confirm useful work is possible again.

Why you need it

An alert should lead to a decision. Measuring only machine health can miss failed user requests, and possessing a backup does not prove the data can be restored.

How it works

  1. Define a useful successful event and its eligible population.
  2. Measure failures and latency over a stated window.
  3. Alert on actionable degradation with ownership and context.
  4. Mitigate, verify recovery, and review the cause and prevention work.
Worked example

A request-based availability calculation

Eligible checkout attempts: 10,000
Successful attempts:         9,990
Availability: 9,990 / 10,000 = 99.9%

Also inspect latency and failed-attempt reasons.
Define how timeouts are included in the denominator.

This example measures requests, not minutes of uptime. A definition that excludes failed attempts before application logging can overstate availability.

Try the in-browser Linux CLI lab

Practice ls -la, chmod, grep | wc, df -h, df -i, du, lsof, and ss -tulnp against five live troubleshooting missions.

Open Linux CLI lab

Good practices and why

  • Use user-visible outcomes and enough diagnostic context to act on an alert.
  • Exercise restores and define recovery objectives with the people affected by data loss or downtime.

Common mistakes

  • Paging for every noisy metric without a useful response.
  • Declaring recovery solely because alerts stopped.
GUIDED IMPLEMENTATION

Try it yourself

Write an alert description for failed checkout and a recovery checklist for its database. Include an owner, verification query, and user-journey test.

What a successful result looks like

The alert explains impact and action, and the restore checklist verifies data correctness as well as process startup.

0 / 6000 characters · Saved on this device. Do not include passwords or private data.

Check your understanding

Which is the strongest evidence that a backup strategy works?

Answer the understanding check correctly to record exercise completion.

PUT THE IDEA UNDER PRESSURE

Related interview practice

These scenarios add constraints and follow-up questions to the concepts you just learned.

Further reading

Selected primary references · reviewed 2026-10-09. Examples are educational; use your framework’s documented integration guidance when building a deployed system.

AlifBay Prep