Interview prompt
Problem context
Skills being evaluated
Use the sequence below to surface constraints, choose boundaries, test failure behavior, and defend trade-offs. Concrete numbers are interview assumptions, not claims about a real production system.
Clarify the decision
- Classify latency, gang size, topology, checkpoint cost, deadline, and accelerator compatibility. Define organizational fairness: quotas, priorities, reservations, and whether unused capacity may be borrowed.
Establish scale assumptions
- Model GPUs by shape and interconnect, queue arrival distributions, job duration, checkpoint interval, and regional inventory. Raw utilization hides fragmentation and unusable partial allocations.
Functional and non-functional requirements
- Protect inference floors, schedule gang jobs atomically, minimize fragmentation, support safe preemption, expose queue expectations, and account usage to teams.
High-level architecture
- A global control plane accepts workload specs and quota policy; regional schedulers own current inventory and placements. Use hierarchical fair queues, reservations, backfill of short jobs, topology-aware gang scheduling, and checkpoint-aware preemption.
Data model and flow
- Workloads declare resource shape, priority, deadline, estimated duration, checkpoint location, and tenant. Leases fence placements; heartbeats and checkpoint events drive reclaim and reschedule.
Consistency and transaction boundaries
- Resource allocation uses fenced leases so stale agents cannot run duplicate exclusive jobs. Usage accounting is idempotent and eventually reconciled from allocation and device telemetry.
Failure modes and recovery
- On node failure, restart from verified checkpoint; on scheduler partition, existing leases run until bounded expiry while new allocation stops locally. Preserve a control lane and inference reserve.
Security and privacy
- Isolate device memory and storage, authenticate artifacts and jobs, and prevent one tenant from reading checkpoints or topology details. Privileged drivers and schedulers have tightly scoped roles.
Observability and SLOs
- Measure useful accelerator time, fragmentation, queue delay by class, preemption waste, checkpoint age, failed gang placement, quota borrowing, and inference SLO.
Capacity and cost
- Use commitments for stable inference, spot or interruptible capacity for checkpointable batch, and shape-aware demand forecasts. Optimize completed business work per accelerator-dollar, not utilization alone.
Alternatives and trade-offs
- Preemption improves priority response but destroys uncheckpointed work; strict reservations protect SLOs but strand capacity. Borrow idle reservations with revocation tied to checkpointability and deadline.
Evolution and migration
- Begin with accurate inventory and usage attribution, then quotas, reservations, backfill, and preemption. Introduce automatic checkpoint policy before allowing aggressive revocation.
What Staff and Principal candidates should emphasize
- Principal answers join scheduling algorithm, workload contract, team policy, and hardware economics. They call out fragmentation, fencing, and productive utilization.
Decision trade-offs
Idle reservations
Option A
Keep dedicated capacity unused
Option B
Backfill with preemptible borrowed work
Recommendation:Backfill with checkpointable work while preserving rapid revocation and a non-borrowable margin for strict inference SLOs.
Placement
Option A
Maximize immediate device utilization
Option B
Preserve topology and future gang-placement options
Recommendation:Accept some short-term idle space when fragmentation would block high-value distributed jobs or violate network topology needs.
Follow-up interview questions
- 01How do you measure productive utilization?
- 02When should a long training job be preempted?
- 03How do global quotas interact with region-specific capacity?
- 04What fences a stale node agent after scheduler failover?
Common weak answers and mistakes
- 01Optimizing aggregate GPU utilization while ignoring fragmentation and wasted preempted work.
- 02Treating all GPU generations and interconnects as fungible.
- 03Allowing borrowing without a checkpoint and revocation contract.
- 04Using request count rather than resource time and topology for fairness.
Interviewer evaluation rubric
Uses a priority queue but cannot handle gang placement, fragmentation, checkpoints, or tenant economics.
Defines workload classes, quotas, topology-aware scheduling, reservations, leases, and basic preemption.
Adds hierarchical fairness, backfill, checkpoint economics, productive utilization, regional autonomy, and security.
Aligns scarce-capacity policy with company portfolio value while preserving transparent fairness and stable system behavior.