Technical & HR Rounds: Python Developer
Modern Indian employers running structured Python Engineering panels test scenario judgment, failure triage, and concise communication equally. Active hiring pools show 1,577+ live openings seeking Python 3, Django / FastAPI, PostgreSQL fluency right now.
- Compare FastAPI async def endpoints vs standard def endpoints under SQLAlchemy/psycopg. — FastAPI runs sync def handlers in a worker threadpool safely; only use async def when calling genuinely non-blocking async drivers.
- Why do mutable default arguments in Python functions cause subtle bugs? — Default list/dict objects are evaluated once when def executes and shared across calls; default to None and instantiate inside the body.
- Explain Python GIL and when multiprocessing outperforms threading. — The GIL serializes bytecode execution in one process, so threads suit network I/O while multiprocessing or C extensions accelerate CPU math.
- How do you design idempotent Celery retry tasks? — Pair acks_late with unique state checks or database ON CONFLICT guards so retried tasks safely skip completed work.