Intro
Can you introduce yourself and your current role?
What is your current tech stack?
What kind of backend work do you primarily do?
Can you talk about a recent major project you worked on?
Why Flask or FastAPI?
What were the scalability expectations for this system?
What kind of traffic (RPS/RPM) were you expecting?
How do you handle async or unpredictable workloads in your system?
Framework & Design Decisions (Deep Dive)
Why is Django a better fit for your use case than FastAPI?
How does team size influence framework choice?
How do you handle authentication and authorization?
How did you migrate from single-tenant to multi-tenant?
How do you ensure tenant isolation?
What are the current bottlenecks or limits of your system?
- Python fundamentals
What are *args and **kwargs in Python?
What is the difference between positional and keyword arguments?
What are decorators and why do we use them?
Difference between iterators and generators?
What is the Python GIL?
How does multithreading work in Python?
Does Python support true parallelism?
-
Coding
-
Find the maximum element in an array
-
Two Sum problem
-
Jump Game (can you reach the last index?)
System design (Triggered because I finished early)
How would you design a service that needs to scale from 1k to 10k+ requests?
How would you handle traffic spikes?
Would you use a queue? Why?
How does autoscaling fit into this design?
How would you avoid losing requests?
How would you design caching for this system?
When would you use Redis vs database caching?
How does geographic location affect caching?
What role does CDN play here?
How would you improve database performance?
How do indexes work in PostgreSQL?
What types of indexes are you aware of?
How do you analyze slow queries?
When would you consider NoSQL instead of PostgreSQL?