Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.67 KB

File metadata and controls

34 lines (28 loc) · 1.67 KB
layout default
title Interview Problems
parent Practice and Projects
nav_order 3
permalink /practice/interview-problems/

Advanced Interview Problems

Explain contract, assumptions, complexity, ownership, failure behavior, tests, and operations before implementation.

  1. Design a reusable validated descriptor and trace attribute lookup.
  2. Replace an unnecessary metaclass with a simpler mechanism.
  3. Build a lazy merge pipeline with bounded memory and cleanup.
  4. Design cancellation and backpressure for an async crawler.
  5. Choose threads, processes, or asyncio for three measured workloads.
  6. Diagnose retained memory in a long-running worker.
  7. Package a library while preserving imports and behavior through deprecation.
  8. Design deterministic tests for retries and concurrent duplicate requests.
  9. Design an idempotent payment endpoint under simultaneous requests.
  10. Threat-model a file upload and processing pipeline.
  11. Prevent lost updates in a seat-booking transaction.
  12. Design a cache policy when stale catalog data is acceptable but stale authorization is not.
  13. Design logs, metrics, traces, and alerts across an API and worker.
  14. Roll out a schema and application change with safe rollback.
  15. Investigate a latency regression using profiling and production signals.
Show interview prompts

For each problem ask: What is the source of truth? Which work is bounded? Who owns cleanup? What happens during partial failure or restart? Which invariant needs atomic enforcement? Which data is untrusted or sensitive? How will the design be tested and observed? What simpler alternative was rejected and why?