Founding prices until 15 December: 30% off Pro, locked for life. See pricing

SRE interview questions

10 questions. Debugging slow servers, SLOs and error budgets, alerting, postmortems, caching, load balancing and high availability. Each has a strong answer of about a minute and the points an interviewer listens for.

  1. 01

    Users say the app on one Linux server has become slow. You log in. What do you look at, and in what order?

    A strong answer

    I'd go from the cheapest checks to the deeper ones. First load and CPU with uptime and top, to see if something is eating the CPU. Then memory with free -h, and whether the machine is swapping. Then disk: df -h for space and iostat for I/O wait, since a full or saturated disk stalls everything. With that picture I'd read the application logs and journalctl around the time it got slow, and ask what changed recently, like a deploy. Only once I know the cause would I restart or change anything.

    What the interviewer listens for

    • Check CPU and load. The first question is whether the machine is busy. Load and CPU per process answer it in seconds.
    • Check memory and swapping. A machine that swaps is slow at everything, and memory pressure is a common cause.
    • Check disk space and disk I/O. A full disk or a disk at 100% I/O stalls applications without obvious errors.
    • Read the application logs and recent changes. The resource numbers say what is busy; the logs and recent changes usually say why.

    Likely follow-up: “top shows a process using 400% CPU. What next?”

    Practise answering it
  2. 02

    Can you explain what an SLI, an SLO and an error budget are, with an example?

    A strong answer

    An SLI is a measurement of how users experience the service, for example the percentage of checkout requests that succeed in under 300 milliseconds. The SLO is the target for it, say 99.9% over 30 days. The error budget is what's left: 0.1% of requests, or about 43 minutes of full downtime a month, are allowed to fail. Teams use it to decide: while there's budget left, we ship features; if we've burned through it, we slow releases and spend time on reliability.

    What the interviewer listens for

    • An SLI is a measurement of what users experience. Interviewers want the SLI framed as something measured, ideally from the user's side.
    • An SLO is the target for that measurement. The SLO is the number you promise yourselves, such as 99.9% over 30 days.
    • The error budget is the failure the SLO allows. The budget is 100% minus the SLO, the failure you're allowed. Saying it as a number shows you get it.
    • The budget guides decisions about risk. The point of a budget is to decide between shipping features and fixing reliability.

    Likely follow-up: “Why not just aim for 100%?”

    Practise answering it
  3. 03

    We monitor hundreds of metrics. Which of them should wake someone up at 3 a.m., and which shouldn't?

    A strong answer

    Only things that hurt users now and need a human should page: symptoms like the error rate or latency breaking our SLO, or the site being down. Causes like high CPU, a disk at 80% or a pod restarting once go to dashboards or create a ticket for working hours, because the system often copes on its own. Every page should be actionable and come with a runbook. Otherwise people get alert fatigue and start ignoring pages, which is how real outages get missed.

    What the interviewer listens for

    • Page on user-facing symptoms. A page should mean users are hurting now. That's the main idea of symptom-based alerting.
    • Causes like CPU belong on dashboards or tickets. High CPU with happy users isn't an emergency. It's worth a ticket or a dashboard, not a wake-up.
    • Every page must need a human action. An alert nobody can act on trains people to ignore alerts.
    • Avoid alert fatigue. Naming alert fatigue shows you know why this matters.

    Likely follow-up: “How would you alert on a disk that will be full in a few days?”

    Practise answering it
  4. 04

    After an outage, you're asked to write the postmortem. What goes in it, and what makes it useful?

    A strong answer

    A useful postmortem has a short summary, the impact (who was affected, how badly, for how long), and a timeline from the first signal to full recovery. Then the root cause and the contributing factors, asking why until we reach something we can change. Most important are the action items, each with an owner and a date, so it actually prevents a repeat. And it has to be blameless: it's about how the system and process let the mistake through, not about who made it, otherwise people stop sharing what really happened.

    What the interviewer listens for

    • A timeline of what happened. The timeline is the backbone everyone reads first.
    • Impact on users. How bad it was, for whom and for how long, decides how much effort the fixes deserve.
    • Root cause and contributing factors. Explaining why it happened, not just what, is the core of the document.
    • Action items with owners. A postmortem without owned actions changes nothing.
    • Blameless. Interviewers listen for this word. Blame makes people hide information next time.

    Likely follow-up: “A teammate's command caused the outage. How do you write that part?”

    Practise answering it
  5. 05

    What does a load balancer do, and how does it know not to send traffic to a broken server?

    A strong answer

    A load balancer sits in front of several servers and spreads incoming requests across them, for example round robin or to the least busy one. Users only see one address, so we can add or remove servers behind it to scale. To avoid broken servers it runs health checks: every few seconds it calls something like /health on each server, and if a server fails a few in a row it stops sending it traffic until it passes again.

    What the interviewer listens for

    • It spreads requests across several servers. The basic job, said simply.
    • Health checks take broken servers out. This is the second half of the question and the part that keeps users safe.
    • It gives one stable address and enables scaling. Users and DNS point at one place while servers come and go behind it.

    Likely follow-up: “What's the difference between a layer 4 and a layer 7 load balancer?”

    Practise answering it
  6. 06

    When would you put a cache like Redis in front of a database, and what can go wrong with it?

    A strong answer

    I'd add a cache when the same data is read far more often than it changes, like product pages or user profiles. Serving it from memory cuts latency and takes load off the database. What can go wrong: users can see stale data, so you need a TTL or invalidate the key when the data changes. And if the cache is emptied, after a restart or when a hot key expires, all those reads hit the database at once, a stampede, so you need protection like letting only one request refill a key.

    What the interviewer listens for

    • For data read often and changed rarely. Caches pay off when the same data is read many times.
    • To reduce database load and latency. Say what it buys you.
    • Stale data and how to expire it. The first thing that goes wrong is serving old data. Mentioning TTL or invalidation is expected.
    • Other risks, like a cold cache or stampede. A strong answer knows that when the cache empties, the database takes the full load at once.

    Likely follow-up: “How would you keep a product's price correct in the cache when it changes?”

    Practise answering it
  7. 07

    Briefly, what happens between typing example.com in a browser and seeing the page?

    A strong answer

    First the browser needs the IP address, so it asks DNS: the resolver looks up example.com and returns an A record, usually cached for a while. Then the browser opens a TCP connection to that IP on port 443, and does a TLS handshake, where it checks the server's certificate and agrees on encryption. Over that, it sends an HTTP GET request, the server responds with a status like 200 and the HTML, and the browser parses it and fetches the CSS, scripts and images it references.

    What the interviewer listens for

    • DNS turns the name into an IP address. The first step, and the one most often broken in practice.
    • A TCP connection is opened. Shows you know there's a connection before any HTTP.
    • TLS secures it. Almost every site is HTTPS. Mentioning the certificate check is expected.
    • An HTTP request and response bring the page. The browser asks, the server answers with HTML, then the browser fetches the rest.

    Likely follow-up: “The page doesn't load but the site works for your colleague. How would you narrow it down?”

    Practise answering it
  8. 08

    What's the difference between scaling vertically and horizontally, and when would you choose each?

    A strong answer

    Vertical scaling means giving one machine more CPU or memory, a bigger instance. It's simple, no code changes, so it's a fine first step, especially for databases, but there's always a biggest machine and it stays a single point of failure. Horizontal scaling means adding more machines behind a load balancer. It scales much further and survives a machine failing, but the app needs to be stateless, with sessions and files kept in shared stores instead of on each server.

    What the interviewer listens for

    • Vertical means a bigger machine. The plain definition.
    • Horizontal means more machines. The other half of the definition.
    • Vertical is simple but limited. Shows you know the trade-off: there's always a biggest machine.
    • Horizontal needs stateless apps and a load balancer. The catch with scaling out is state, and naming it is what separates good answers.

    Likely follow-up: “Your database is the bottleneck. Which would you try first?”

    Practise answering it
  9. 09

    A small web app runs on one server with one database. How would you make it survive the loss of a machine?

    A strong answer

    I'd remove the single points of failure tier by tier. Run at least two app servers, stateless, behind a load balancer that health-checks them, so a dead server is taken out automatically. For the database, add a standby replica with automatic failover, or use a managed database that does it. And put the copies in different availability zones, so one power or network failure doesn't take out both. Then I'd test it by actually stopping a server.

    What the interviewer listens for

    • Run at least two app servers. One of everything is the problem. Two of each tier is the start.
    • Put a load balancer with health checks in front. Something has to stop sending traffic to the dead server.
    • Replicate the database with failover. The database is the hardest part to make redundant, so say how.
    • Spread across zones or failure domains. Two servers in the same rack fail together.

    Likely follow-up: “How would you know the failover actually works?”

    Practise answering it
  10. 10

    What does the word 'toil' mean to an SRE, and what do you do about it?

    A strong answer

    Toil is the manual, repetitive work of running a service: restarting a stuck job by hand every week, rotating a certificate, creating accounts on request. It doesn't make the service any better, and it grows as the service grows. SRE teams try to keep it below about half of their time by automating it with scripts or self-service tools, or by fixing the root cause so the task disappears, like fixing the job instead of restarting it.

    What the interviewer listens for

    • Manual, repetitive work. The core of the definition.
    • It doesn't add lasting value and grows with the service. Toil is work that grows as the service grows, without making it better.
    • Automate it or remove the need. The answer to toil is automation, or removing the reason it's needed.

    Likely follow-up: “Give me an example of toil you've automated.”

    Practise answering it

Ready for the real thing?

A timed interview asks questions like these one at a time, adds quick questions, a design and a hands-on task on a real machine, and ends with a hire or no-hire scorecard.

Take a practice interview