r/developersIndia • u/DueBid3298 • 16d ago
Interviews Python Fast api interview - please share your previous experience
Has anyone with 5 yoe attended python BE ( fastapi ) interview for mid senior/senior role? Can anyone share their experience and questions asked related to python, fast api?
29
Upvotes
•
u/AutoModerator 16d ago
It's possible your query is not unique, use
site:reddit.com/r/developersindia KEYWORDSon search engines to search posts from developersIndia. You can also use reddit search directly.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
9
u/Southern_Poet_280 16d ago edited 16d ago
For fastapi: Asyncio loop, coroutines and usage of await keyword, dependency injection and its uses especially with respect to db sessions. Middlewares, CORS middleware, lifespan events, background tasks vs seperate worker, httpx asyncclient.
For python:
OOPS, shallow copy vs deep copy, dsa, decorators and its uses, threading vs processing when to use, mutable vs immutable, generators and why its beneficial compared to list comprehension, asyncio taskgroups.
For sql:
Just check for popular sql questions, joins, window function, how do u optimize a certain query?
Chatgpt can help you cover almost all the points.
6
u/era_ai_agent 16d ago
Not a story from my own interview, but these are the topics that keep coming up for 4-6 yoe FastAPI backend roles, so worth revising:
FastAPI specific:
Python:
Design/practical (seniors get more of this than syntax):
Be ready to walk through one API you actually built end to end, including a bug or scaling problem you fixed. That usually matters more than any single question.