Full stack developer interview questions follow a request through the whole app. The user clicks a button, the frontend calls an API, the backend checks the request and the database stores data. These 24 full stack developer interview questions and answers help you explain each step and how the parts join.
Use your own stack in the interview. Examples here use JavaScript, HTTP and SQL, but the ideas also apply to Java and Python.
How full stack developer interview questions change by level
| Experience | Main test |
|---|---|
| Fresher | Basics and one complete project |
| 2 years | Build and debug a feature |
| 3 years | Handle security, speed and tests |
| 5 years | Design, release and guide decisions |
A full stack developer does not need equal depth in every tool. You should know one side well and understand enough of the other side to complete a feature.
Pro tip: Prepare one feature as a story: screen, API request, checks, database change, response, tests and release.
Full stack developer interview questions for freshers
Q1. What does a full stack developer do?
30-second answer: A full stack developer builds features across the user interface, server and database. The person also helps test and release them.
For a wishlist, that means the button, API, database row, login check and error message.
Q2. What happens when a user submits a form?
30-second answer: The browser checks the fields and sends a request. The server checks the user and data, runs the business rule, saves data and returns a response. The browser then shows success or an error.
The server must check data again. Anyone can skip the form and call the API directly.
Q3. What is the box model?
30-second answer: Each element has content, padding, border and margin. By default, CSS width covers only content. With border-box, it also includes padding and border.
This is a common cause of a layout that becomes wider than expected.
Q4. What are let, const and var?
30-second answer: let and const have block scope. var has function scope. A const variable cannot be assigned again, but an object it holds can still change.
const user = { name: "Asha" };
user.name = "Ravi";
console.log(user.name); // Ravi
Q5. What is a Promise?
30-second answer: A Promise represents a result that may come later. It is pending, then fulfilled with a value or rejected with a reason.
await pauses the async function until the Promise settles. Use try and catch to handle a rejected Promise.
Q6. What is the difference between state and props?
30-second answer: In React, props come from a parent and the child should not change them. State belongs to a component and is updated with its setter.
Prepare this with code from React fresher questions.
Q7. What is a REST API?
30-second answer: It is a style of API that uses resources and standard HTTP methods. For example, GET /products/7 reads a product and POST /orders creates an order.
Read what a REST API is for a full example. JSON is common, but REST does not require it.
Q8. What do HTTP status codes 200, 201, 400, 401, 403, 404 and 500 mean?
30-second answer: 200 means success and 201 means created. 400 is a bad request, 401 means valid login details are needed, 403 means not allowed, 404 means not found and 500 is a server error.
Do not return 200 for every result and hide the real error in the body.
Q9. What is a primary key and a foreign key?
30-second answer: A primary key identifies a row. A foreign key points to a key in another table and helps keep the relation valid.
An order's user_id can be a foreign key to users.id.
Full stack developer interview questions for 2 years experience
Q10. What is the difference between authentication and authorization?
30-second answer: Authentication checks who the user is. Authorization checks what that user may do.
If any logged-in user can open another person's order by changing its id, authorization is missing. See authentication vs authorization.
Q11. Compare sessions and JWT.
30-second answer: A server session keeps login data on the server and commonly gives the browser a session id. A JWT carries signed claims that a server can verify without a session lookup.
A normal signed JWT can be read by anyone who has it, so do not put secrets inside. Sessions are often easier to revoke. JWT can be useful across services but needs expiry and a revocation plan.
Q12. Where should a browser store a login token?
30-second answer: It depends on the app, but a cookie with HttpOnly, Secure and a suitable SameSite setting is a strong choice for many web apps. HttpOnly stops JavaScript from reading it.
Cookies need protection from cross-site request forgery, where another site sends an unwanted request. Local storage can be read by injected JavaScript. Neither choice fixes cross-site scripting by itself.
Q13. What is CORS?
30-second answer: CORS is a browser rule that lets a server say which other origins may read its responses. An origin is the scheme, host and port together.
Some requests first send an OPTIONS preflight. CORS is not a login system, and it does not stop tools such as Postman from calling the API.
Q14. How do you stop too many search requests?
30-second answer: I debounce the input, which means waiting until the user stops typing. I also cancel or ignore old requests.
function debounce(fn, delay) {
let timer;
return (...args) => {
clearTimeout(timer);
timer = setTimeout(() => fn(...args), delay);
};
}
const search = debounce(console.log, 50);
search("re");
search("react"); // prints react after 50 ms
Q15. How do you prevent SQL injection?
30-second answer: I use parameterized queries, which keep user data separate from SQL code. I also validate input and give the database user limited rights.
const user = db.prepare(
"SELECT id, name FROM users WHERE email = ?"
).get(email);
Do not join raw input into the query string. Placeholder syntax differs between database libraries.
Q16. How do you find the cause of a broken page?
30-second answer: I reproduce it, check the browser console and network tab, inspect the API response, then use server logs and the database. I change one thing at a time.
Common mistake: Starting with a rewrite. First find which part received good input and returned a bad result.
Full stack developer interview questions for 3 years experience
Q17. What is the N+1 query problem?
30-second answer: One query gets a list, then another query runs for each item. A list of 100 orders can cause 101 queries.
Fix it with a join, batch query or suitable ORM fetch. Check the actual SQL after the change. If the job uses JavaScript on the server, also prepare Node.js interview questions.
Q18. How do you handle two users editing the same record?
30-second answer: I can use optimistic locking with a version number. The update works only if the version is still the one the user read.
UPDATE products
SET stock = 9, version = 4
WHERE id = 7 AND version = 3;
If no row changes, another update came first. Tell the user or retry safely. A direct stock = stock - 1 with a stock check may suit a simple purchase better.
Q19. What tests would you write for checkout?
30-second answer: I use unit tests for price rules, integration tests for the API and database, and a few browser tests for the main path.
Also test payment failure, a repeated request, no stock and an expired login. Do not test every rule through the browser.
Q20. What would you cache?
30-second answer: I cache data that is read often, costs time to produce and can be slightly old. I set a key, expiry and plan for updates.
A product list can be cached. Account balance needs more care. Make sure one user's private response cannot be served to another user.
Full stack developer interview questions for 5 years experience
Q21. Design a URL shortener.
30-second answer: I need an API to create a code, a store that maps the code to a URL, and a redirect endpoint. I add a unique rule, validation, rate limits and a cache for popular links.
Ask about traffic, custom names, expiry and click reports before choosing parts. Start with one app and database if that meets the need.
Q22. Monolith or microservices?
30-second answer: I start with a well-organized monolith for most small teams. I split a service when a clear need, such as separate scaling, release or ownership, is worth the network and operations cost.
Microservices do not fix unclear code. They can spread it over more machines.
Q23. How do you release a risky feature?
30-second answer: I use a feature flag, keep old and new versions compatible, release to a small group, watch errors and business results, then expand or turn it off.
Database rollback may be harder than code rollback. Add new fields first and remove old ones later. The DevOps interview questions page covers rollout choices.
Q24. An API became slow after release. What do you do?
30-second answer: I check user impact and roll back if needed. I compare traffic, errors, database time, outside calls and resource use before and after release.
Then I reproduce the slow path, fix it and add a test or alert. Do not add a cache before finding the cause.
Interview note: At 5 years, explain both the first action and the lasting fix. Also say who needed updates during the problem.
Project round: explain one feature clearly
Suppose your feature is "save a product to a wishlist". Use this order:
- User: A logged-in user clicks the heart on a product.
- Frontend: It sends one request and shows a loading state.
- API:
PUT /wishlist/7saves product 7 for the current user. - Checks: The server reads the user from the login, not from the body.
- Database: A unique rule on user and product prevents duplicates.
- Response: The screen shows success or returns to its old state.
- Tests: Cover no login, unknown product, double click and success.
Why PUT? Sending it twice should leave the same saved result. That property is called idempotency.
A fresher can stop there. At 3 years, add query speed and how you handle a failed request. At 5 years, add limits, monitoring and a safe release plan.
Do not say "we built everything" if you were on a team. Name the part you made, one choice you took and one change you would make now.
Coding task: group orders by user
Practise small data tasks in plain JavaScript. This task checks objects, loops and clear names.
const orders = [
{ user: "Asha", total: 200 },
{ user: "Ravi", total: 150 },
{ user: "Asha", total: 100 }
];
const totals = new Map();
for (const { user, total } of orders) {
totals.set(user, (totals.get(user) ?? 0) + total);
}
console.log(Object.fromEntries(totals));
// { Asha: 300, Ravi: 150 }
The loop visits each order once, so time is O(n). In production, the database may do this with GROUP BY so that the app does not load every order. Say that after solving the code task.
How to prepare
- Revise HTML, CSS, JavaScript and one frontend library.
- Build one API with validation, login checks and database queries.
- Break the project in three places and find each cause.
- Explain the project in two minutes without opening it.
- Practise one coding task and one small design each day.
If you still have gaps, use the full stack developer roadmap to choose the next topic. For guided projects, see the Java Full Stack course, taught in Madhapur, Hyderabad and live online.
Frequently Asked Questions
What is asked in a full stack developer interview?
Do freshers need both frontend and backend projects?
Which stack should I choose for interviews?
Is DSA asked in full stack interviews?
What changes at 5 years of experience?
Want to Build Your Career in Java Full Stack with AI?
Join CodeBegun and train with working industry engineers — Discover CodeBegun's Java Full Stack track

