All practice tasks

SQL Case

Service health rank by tier

Rank services within each tier by aggregate error rate.

Schema

sql
CREATE TABLE services (id INTEGER PRIMARY KEY, name TEXT NOT NULL, tier INTEGER NOT NULL, owner_team TEXT NOT NULL);
CREATE TABLE metric_windows (id INTEGER PRIMARY KEY, service_id INTEGER NOT NULL, window_start TEXT NOT NULL, requests INTEGER NOT NULL, errors INTEGER NOT NULL, latency_p95_ms REAL NOT NULL);
CREATE TABLE deployments (id INTEGER PRIMARY KEY, service_id INTEGER NOT NULL, deployed_at TEXT NOT NULL, version TEXT NOT NULL, outcome TEXT NOT NULL);
CREATE TABLE incidents (id INTEGER PRIMARY KEY, service_id INTEGER NOT NULL, severity TEXT NOT NULL, started_at TEXT NOT NULL, resolved_at TEXT, triggering_deployment_id INTEGER);

What this task practices

Service health rank by tier is a sql case interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as medium difficulty. It focuses on Data Reasoning, Validation, Technical Reasoning. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.

Sign in to startThe workspace and evaluation open after sign in.