BetaJobprepping.com is in beta and still under construction. New sign-ups are closed.
Start practising
Support Engineer

Support Engineer Coding Interview Format and Worked Example

What the support engineer coding interview asks, how messy the logs get, what hidden tests probe, plus a worked Python example and the common mistakes.

Updated

The support engineer coding interview is a practical exercise, usually in Python, where you parse logs or API data to work out what went wrong and for whom. It is not an algorithms test. Interviewers watch whether you inspect the data before coding, handle broken lines without crashing, and explain your reasoning as you go, the way you would on a real escalation.

This post covers the coding round in detail. For the whole loop, see the Support Engineer interview guide.

What kind of problem you get#

Across the industry, the technical part of a support loop takes a few forms. Some companies send a take-home with troubleshooting tasks and written answers to customer scenarios. Some give you shell access to a broken system and ask you to find the fault. Others run a live session where you write a short script against log lines, a CSV export or a small API. Command-line basics (grep, sort, uniq, curl) and simple SQL come up often in screens.

Our Support Engineer practice papers use the live format. The exercise is in Python and asks you to find what broke from logs, set at Pebblepath, a fictional webhook delivery platform. Live coding gets 13 minutes in the 30-minute paper, 18 in the 45 and 20 in the 60, so the problem is sized to be solved properly in that time, not padded.

How messy the data is#

Expect data that looks like a real export rather than a textbook. That means lines with a missing field, a timestamp in an unexpected format, a blank line at the end, duplicate records from a retried write, and entries that arrive out of order. None of it is a trick. It is what log data looks like in a support queue, and handling it calmly is part of what is being scored under data wrangling.

Talking while you code#

Silence is the most common way to lose marks in this round. You do not need to narrate every keystroke, but say these things out loud:

  • The question in your own words, and what the output should look like.
  • What you notice in the first few raw lines.
  • Each assumption you make ("I'll treat a line with three fields as malformed and skip it").
  • The hypothesis your code tests, in support terms ("if this is one bad endpoint, the failures will group on one URL").
  • What a failing test tells you, read from its actual input.

Testing as you go#

Run your code early on two or three lines you write yourself, including one broken line. Then run it on the provided sample. Small, frequent runs beat one large run at the end, because each failure stays easy to explain.

What hidden tests tend to probe#

When you submit, hidden tests check your function on inputs you have not seen. They usually probe:

  • Malformed input: lines with missing fields, bad timestamps or unknown event types.
  • Empty input: no lines at all, or only broken lines.
  • Duplicates and ordering: the same record twice, or a later event before an earlier one.
  • Boundaries: a value exactly on a threshold, a time window that starts or ends on the edge.
  • Scale: a larger file where looping over every line for every key would be too slow.
  • Output shape: sorted in the order asked for, with the exact types expected.

A worked example#

This problem is invented for this post. It belongs to the same genre (find what broke from logs) but is not the practice exercise.

A customer says some of their nightly export jobs never finish. You have log lines in the form <ISO timestamp> <START|FINISH> <job_id> <account>. Return the jobs that started more than 30 minutes before now and have no FINISH, as (account, job_id, started_at) tuples sorted by start time, then job ID. Skip malformed lines.

Start by stating assumptions: a job can log START twice if a worker restarted, so keep the earliest; a FINISH can appear before its START if lines are out of order, so do not rely on order; anything else is malformed. Then parse one line at a time:

from datetime import datetime, timedelta

def parse(line):
    parts = line.strip().split(" ")
    if len(parts) != 4:
        return None
    ts, event, job_id, account = parts
    try:
        when = datetime.fromisoformat(ts)
    except ValueError:
        return None
    if event not in ("START", "FINISH"):
        return None
    return when, event, job_id, account

Mention that older Python versions reject the Z suffix in fromisoformat, and that subtracting a naive timestamp from a timezone-aware one raises an error, so you would confirm the timestamp format with the interviewer. Then the main function:

def stalled_jobs(lines, now, limit=timedelta(minutes=30)):
    started, finished = {}, set()
    for line in lines:
        rec = parse(line)
        if rec is None:
            continue
        when, event, job_id, account = rec
        if event == "FINISH":
            finished.add(job_id)
        elif job_id not in started or when < started[job_id][0]:
            started[job_id] = (when, account)
    stalled = [
        (account, job_id, when)
        for job_id, (when, account) in started.items()
        if job_id not in finished and now - when > limit
    ]
    return sorted(stalled, key=lambda r: (r[2], r[1]))

Test it on a handful of lines: a normal pair, a START with no FINISH, a FINISH that comes first, a duplicate START, a line with five fields and an empty list. Then state the complexity: one pass over the lines, so O(n), plus O(k log k) to sort the k stalled jobs. Note the boundary: a job started exactly 30 minutes ago is not stalled because the comparison is strict, and say that you would check that rule with the customer.

Finally, translate the output back into support language: "Four jobs on two accounts started and never finished. All four began within the same two minutes, which points at a worker problem rather than the customer's data." That last sentence is what turns a correct script into a support answer.

Common mistakes#

  • Writing code before reading any raw lines.
  • Letting one bad line raise an exception and stop the whole run.
  • Assuming lines are sorted by time.
  • Comparing timestamps as strings when formats vary.
  • Building nested loops that work on the sample but time out at scale.
  • Returning the right data in the wrong order or shape.
  • Finishing the code but never saying what it means for the customer.

If you want the full set of questions that surround this round, read the support engineer interview questions post, and use the two-week prep plan to schedule practice.

To rehearse this round with hidden tests and an AI interviewer asking follow-ups, practise the Support Engineer coding interview and read the coding and debugging quotes on your scorecard.

Frequently asked questions#

What language is used in a support engineer coding interview?#

Python is the most common choice because it is quick to read and good at text processing, and it is the language used in our practice exercise. Some companies accept any language you are comfortable with, and many screens also include shell commands or a little SQL. Check with the recruiter before the interview.

Is the support engineer coding interview like LeetCode?#

Rarely. You are unlikely to meet dynamic programming or graph puzzles. The usual task is practical: parse logs, call or mock an API, or fix a small bug in existing code. The difficulty comes from messy input and from explaining your thinking, not from clever algorithms. Basic data structures such as dictionaries, sets and sorting are enough.

What do hidden tests check in the coding round?#

Hidden tests run your submitted function on inputs you have not seen. They usually check malformed and empty input, duplicates, out-of-order records, values exactly on a threshold, larger inputs where slow code fails, and whether the output has the order and shape asked for. Testing these cases yourself before submitting is the best preparation.

How much should I talk during the coding interview?#

Enough that the interviewer always knows what you are trying and why. State the problem, your assumptions and the hypothesis you are testing, and read failing inputs aloud. You do not need to describe every line you type. Short pauses to think are fine if you say that is what you are doing.

Read next

GuideSupport Engineer

Support Engineer Interview Guide with Questions and Prep

How the support engineer interview works, the skills it scores, 8 practice questions with strong-answer notes, a log-debugging coding round and a 7-day plan.

ScoringSupport Engineer

How Support Engineer Interviews Are Scored, Skill by Skill

How support engineer interviews are scored, with seven weighted skills, two must-haves, what Hire-ready looks like and the habits that move you up a level.

Prep planSupport Engineer

How to Prepare for a Support Engineer Interview in 14 Days

How to prepare for a support engineer interview in two weeks, day by day, with HTTP drills, log parsing, written replies, stories and three timed mocks.

Practice

Say it out loud.

Reading about an interview isn't the same as doing one. Take a 30, 45 or 60-minute Support Engineer interview with an AI interviewer and get scored against a real rubric.

Choose an interview