4 Interview Questions That Expose Fake Backend Developers (Junior vs. Senior Answers)
Backend development is one of the most important parts of modern software engineering. While frontend developers focus on the user interface and user experience, backend developers build and maintain the systems that process requests, manage data, enforce security, and support the functionality of applications.
However, not everyone who claims to be a backend developer has a strong understanding of how backend systems actually work. Some candidates may memorize technical definitions, follow tutorials without understanding the underlying concepts, or rely heavily on ready-made code without knowing how to troubleshoot it.
During a technical interview, asking the right questions can help reveal whether a candidate understands backend development beyond basic coding. The goal is not to embarrass junior developers or expect everyone to know everything. Instead, the goal is to evaluate technical knowledge, problem-solving ability, practical experience, and the willingness to learn.
Here are four important backend development interview questions, along with examples of junior-level and senior-level answers, explanations, and follow-up questions that can help interviewers evaluate a candidate more effectively.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
1. What Happens When You Hit an API Endpoint?
This question tests whether a developer understands the complete lifecycle of an HTTP request. A backend developer should know that an API request involves several components working together, from the client making the request to the server processing it and returning a response.
Example Interview Conversation
Interviewer: What happens when a user clicks a button that sends a request to an API endpoint?
Junior Developer: The frontend sends a request to the backend, and the backend gets the data from the database and sends it back to the frontend.
Interviewer: That is the basic idea. Can you explain what happens before the request reaches the backend application and what happens inside the server?
Junior Developer: The browser sends an HTTP request to the API. The server receives it, processes the request, and returns a response. I would need to study the detailed network steps to explain the entire process.
This answer shows a basic understanding of the request-response model. However, a candidate who has worked extensively with backend systems should be able to explain more of the request lifecycle.
Senior Developer Answer
Senior Developer: When a client sends a request to an API endpoint, several steps may happen depending on the application's infrastructure and network configuration.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
- DNS resolution: The client may need to resolve the domain name into an IP address.
- Connection establishment: The client establishes a network connection to the server. For HTTPS, a TLS handshake is normally performed to establish an encrypted connection.
- Load balancing: If the application uses a load balancer, the request may be forwarded to one of several available backend instances.
- Request reception: The web server or application server receives the HTTP request, including its method, path, headers, and possibly a request body.
- Middleware processing: Middleware may handle logging, authentication, request validation, rate limiting, CORS, or other shared concerns.
- Routing: The application identifies the correct route based on the HTTP method and URL.
- Controller or handler: The controller or route handler processes the request and coordinates the required application logic.
- Service layer: Business rules are applied. For example, the system may check whether a user is eligible to place an order.
- Database operation: The application may read, insert, update, or delete data using a database query or another storage service.
- Response generation: The application creates an HTTP response with an appropriate status code, headers, and response body.
- Response delivery: The response travels back through the network to the client, where the frontend can process the result and update the interface.
A senior developer should also understand that not every request follows exactly the same path. Some requests may be served by a cache, rejected by a firewall, blocked by authentication middleware, or handled by a serverless function.
Additional Information
Understanding the API request lifecycle helps developers troubleshoot problems such as slow responses, connection failures, incorrect status codes, authentication errors, and database timeouts.
For example, if an API request takes five seconds to complete, the problem may not be in the controller itself. The delay could come from DNS resolution, network latency, an overloaded server, a slow database query, or an external service.
Backend developers should understand common HTTP status codes, including:
- 200 OK: The request was successful.
- 201 Created: A resource was successfully created.
- 400 Bad Request: The request contains invalid or unacceptable input.
- 401 Unauthorized: Authentication is required or has failed.
- 403 Forbidden: The client is not permitted to perform the requested action.
- 404 Not Found: The requested resource or endpoint could not be found.
- 500 Internal Server Error: The server encountered an unexpected problem.
Follow-Up Interview Questions
- What is the difference between HTTP and HTTPS?
- What is the purpose of middleware?
- What happens if the database is unavailable?
- How would you investigate an API endpoint that responds slowly?
- What is the difference between a GET request and a POST request?
A strong candidate does not necessarily need to recite every networking detail from memory. However, they should be able to explain the major stages and demonstrate how those stages affect application behavior.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
2. What Is the Difference Between SQL and NoSQL?
This question evaluates whether a backend developer understands database design, data relationships, consistency, and the trade-offs involved in choosing a storage technology.
Example Interview Conversation
Interviewer: What is the difference between SQL and NoSQL databases?
Junior Developer: SQL is an old database technology, while NoSQL is newer and more flexible. NoSQL is generally better for modern applications because it can handle more data.
Interviewer: Does that mean NoSQL is always better than SQL?
Junior Developer: Not necessarily. I understand that different applications have different database requirements, but I would need to consider the data structure and workload before choosing one.
This answer is more thoughtful than simply saying one database is old and the other is new. A good developer recognizes that database selection depends on the application's needs.
Senior Developer Answer
Senior Developer: SQL and NoSQL refer to different approaches to storing and managing data. The main difference is not simply age or popularity. The choice depends on data relationships, query patterns, consistency requirements, scalability, and operational needs.
SQL databases are commonly relational databases. They organize data into tables containing rows and columns, and they use SQL to query and manipulate data.
Examples include MySQL, PostgreSQL, Microsoft SQL Server, and SQLite.
SQL databases are often suitable for applications that require structured data, relationships between entities, complex queries, and transactional consistency.
For example, an online shopping application may use relational tables for customers, products, orders, and payments. Foreign keys and joins can help maintain relationships between these records.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
Many relational databases support ACID transactions:
- Atomicity: A transaction succeeds completely or is rolled back.
- Consistency: A transaction preserves defined data rules and constraints.
- Isolation: Concurrent transactions are managed according to the database's isolation level.
- Durability: Committed data is preserved according to the database's durability guarantees.
NoSQL databases include several database models that do not rely exclusively on the traditional relational table structure.
Common NoSQL categories include:
- Document databases: Store data in document formats, often similar to JSON. Example: MongoDB.
- Key-value databases: Store values associated with unique keys. Example: Redis.
- Wide-column databases: Organize data around column families. Example: Cassandra.
- Graph databases: Store entities and their relationships as nodes and edges. Example: Neo4j.
NoSQL databases can be useful when an application requires flexible data models, particular scaling patterns, high-throughput access, or specialized data relationships.
Additional Information
Consider an application that stores user profiles. A document database may be convenient when different users have different profile fields or when profile data is frequently retrieved as a complete document.
On the other hand, a banking or financial application may benefit from a relational database when it needs strong transactional guarantees, structured relationships, and carefully enforced constraints.
However, it is important to understand that SQL databases can scale, and many NoSQL databases support transactions and consistency guarantees. Neither category is automatically faster, safer, or more scalable in every situation.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
A backend developer should evaluate:
- The structure and relationships of the data.
- The types of queries the application performs.
- The required consistency and transaction guarantees.
- The expected read and write workload.
- The application's scaling requirements.
- The team's operational experience and maintenance capacity.
Follow-Up Interview Questions
- What is a database index, and why is it useful?
- What is database normalization?
- When would you use a JOIN?
- What is the difference between a primary key and a foreign key?
- How can you prevent duplicate records?
- What is the difference between consistency and availability in distributed systems?
A knowledgeable backend developer should be able to explain why a database is appropriate for a particular application instead of choosing a technology simply because it is popular.
3. What Is the Difference Between Authentication and Authorization?
Security is a fundamental responsibility of backend development. This question helps determine whether a candidate understands how applications identify users and control access to protected resources.
Example Interview Conversation
Interviewer: What is the difference between authentication and authorization?
Junior Developer: They are basically the same thing. Both are used to check whether a user can access an application.
Interviewer: Can you explain the difference using an example?
Junior Developer: Authentication checks whether the user is logged in. Authorization checks whether that user has permission to access a particular page or perform a specific action.
This is the correct distinction. Both concepts are related, but they serve different purposes.
Senior Developer Answer
Senior Developer: Authentication and authorization are two separate security processes.
Authentication, or AuthN, verifies the identity of a user or system. It answers the question: "Who are you?"
Examples of authentication include:
- Logging in with a username and password.
- Verifying a one-time password.
- Using a passkey or biometric authentication through a supported device.
- Validating a session or access token.
Authorization, or AuthZ, determines what an authenticated identity is allowed to do. It answers the question: "What are you permitted to access or perform?"
Examples of authorization include:
- Allowing an administrator to manage user accounts.
- Allowing a customer to view only their own orders.
- Restricting certain actions to users with specific permissions.
- Preventing a regular user from accessing administrative functions.
Real-World Example
Imagine a website with three types of users: customers, editors, and administrators.
When a customer logs in with valid credentials, the application authenticates the customer. However, that does not automatically give the customer permission to delete articles or manage other users.
The backend must still check the customer's permissions before allowing the requested action.
Even if a user manually changes a URL from:
/account/profile
to:
/admin/users
the backend should reject the request if the user does not have the required permissions.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
Additional Security Information
Backend developers should understand that security checks must be performed on the server. Hiding a button in the frontend is not sufficient to protect a sensitive operation.
For example, a frontend application may hide the "Delete User" button from regular users. However, an attacker could still attempt to send a direct HTTP request to the deletion endpoint.
The backend must independently verify the user's identity and permissions before processing the request.
Developers should also understand important security practices such as:
- Hashing passwords with an appropriate password-hashing algorithm.
- Using secure session management.
- Protecting access tokens and refresh tokens.
- Validating user input.
- Applying role-based or permission-based access control where appropriate.
- Using HTTPS to protect data in transit.
- Checking resource ownership before allowing access to private records.
Follow-Up Interview Questions
- What is the difference between a session and a JWT?
- Where should password hashes be stored?
- What is role-based access control?
- Why should authorization be checked on the backend?
- How would you prevent one user from accessing another user's private data?
A strong backend developer understands that authentication establishes identity, while authorization protects resources and actions. Both are necessary for building secure applications.
4. What Is a Race Condition?
Race conditions are important backend problems that can occur when multiple requests or processes access shared resources at the same time. This question tests whether a candidate understands concurrency and the risks of allowing simultaneous operations to modify the same data.
Example Interview Conversation
Interviewer: What is a race condition?
Junior Developer: I have not encountered one in my projects yet. I would need to investigate how it works.
Interviewer: Imagine two customers try to book the same seat at the same time. What could happen?
Junior Developer: If the backend checks whether the seat is available before updating the booking, both requests might see that the seat is available. They could both attempt to reserve it unless the operation is protected against concurrent requests.
This answer demonstrates an understanding of the problem, even if the candidate has not personally implemented a solution before.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
Senior Developer Answer
Senior Developer: A race condition occurs when the correctness of a program depends on the timing or ordering of concurrent operations.
In backend systems, race conditions can happen when multiple requests read or modify the same resource without appropriate coordination.
For example, imagine a ticket booking system with one remaining seat.
Two customers send booking requests at almost the same time.
- Request A checks the seat availability and sees that the seat is available.
- Request B checks the seat availability and also sees that the seat is available.
- Request A creates a booking.
- Request B creates another booking.
If the application does not enforce the necessary concurrency controls, both customers may receive confirmation for the same seat.
This is a race condition that can lead to inconsistent data and serious business problems.
How Can Race Conditions Be Prevented?
There are several techniques backend developers can use to prevent or reduce race conditions.
1. Database transactions
A transaction can group related operations so that they are handled according to the database's transaction guarantees. The correct isolation level and locking strategy must still be selected for the specific problem.
2. Atomic operations
An atomic operation performs a change as a single indivisible operation from the perspective of competing operations.
For example, a conditional database update can reduce the risk of two requests successfully modifying the same record.
3. Unique constraints
A database constraint can prevent duplicate values from being inserted. For example, a unique constraint on a seat identifier for active bookings can help prevent multiple bookings for the same seat.
4. Locking
Database locks can coordinate access to shared resources. Depending on the use case, developers may use row-level locks, optimistic locking, or other concurrency-control mechanisms.
5. Optimistic concurrency control
An application can use a version number or timestamp to detect whether a record has changed since it was read. If another request has modified the record, the update can be rejected and retried when appropriate.
6. Idempotency keys
For operations such as payments or order creation, idempotency keys can help prevent repeated submissions from creating duplicate results. They do not solve every race condition, but they are valuable for handling retries safely.
Additional Information
Race conditions are not limited to ticket booking systems. They can also occur in:
- Bank transfers and account balance updates.
- Inventory management.
- Online payment processing.
- Coupon and discount redemption.
- Job queues and background workers.
- Concurrent file operations.
- Distributed systems and shared caches.
For example, if two payment requests attempt to deduct money from the same account simultaneously, the backend must ensure that the balance cannot be incorrectly updated or that the account cannot spend more money than it has available.
Follow-Up Interview Questions
- What is the difference between a race condition and a deadlock?
- What is a database transaction?
- What is optimistic locking?
- How would you prevent a customer from booking the same seat twice?
- How would you prevent duplicate payment processing?
- What is the purpose of an idempotency key?
A backend developer should understand that concurrency is not merely a theoretical topic. It directly affects the reliability, correctness, and financial safety of real-world applications.
How to Evaluate a Backend Developer During an Interview
These four questions can provide useful insight into a candidate's technical understanding, but they should not be used as the only measure of competence.
A candidate may be nervous, unfamiliar with a particular technology, or unable to explain a concept perfectly under pressure. On the other hand, someone who memorizes technical definitions may still struggle to build reliable software.
To evaluate a backend developer fairly, interviewers should consider the following areas:
1. Conceptual Understanding
Does the candidate understand why a technology or technique is used? Can they explain the problem it solves instead of simply repeating a definition?
2. Practical Experience
Can the candidate describe a project they worked on, the challenges they encountered, and the decisions they made?
3. Problem-Solving Ability
Can the candidate break down an unfamiliar problem, identify possible causes, and propose reasonable solutions?
4. Debugging Skills
Can they explain how they investigate errors, inspect logs, reproduce bugs, and identify the root cause of a problem?
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
5. Security Awareness
Do they understand the importance of authentication, authorization, input validation, data protection, and secure application design?
6. Communication and Honesty
Can they explain technical concepts clearly? Are they willing to admit when they do not know something and describe how they would find the answer?
Final Thoughts
Backend development requires more than writing functions, connecting databases, or creating API endpoints. It involves understanding how systems communicate, how data is stored, how security is enforced, and how applications behave under real-world conditions.
The four interview questions discussed in this article cover important backend development fundamentals:
- Understanding the complete API request lifecycle.
- Choosing the right database based on application requirements.
- Distinguishing authentication from authorization.
- Recognizing and preventing race conditions.
These questions can help interviewers identify gaps in a candidate's knowledge and create meaningful technical discussions.
However, the best interview is not designed to prove that someone is fake. It is designed to discover what a candidate knows, how they think, how they solve problems, and how effectively they can grow as a software developer.
A junior developer who understands the fundamentals and is willing to learn can become an excellent backend engineer. A senior developer, meanwhile, should demonstrate deeper technical reasoning, practical experience, and the ability to make reliable engineering decisions.
Ultimately, genuine backend expertise is demonstrated through understanding, implementation, troubleshooting, and continuous learning—not simply through impressive titles or memorized answers.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
Explore Different Ways to Earn
Discover 16 fun activities and explore different opportunities through the DollarZine platform.
Disclaimer
This article is intended for educational and informational purposes only. The junior and senior developer conversations are illustrative examples created to explain differences in technical understanding and are not intended to represent every junior or senior backend developer.
Technical knowledge varies depending on a developer's experience, specialization, training, and the technologies they use. A junior developer may demonstrate advanced knowledge in a specific area, while a senior developer may have limited experience with certain technologies.
These interview questions should not be used as the sole basis for determining whether a person is qualified, experienced, or genuine. Employers and interviewers should consider practical coding exercises, project experience, problem-solving ability, communication skills, and other relevant qualifications.
Technology recommendations and implementation details may vary depending on the programming language, framework, database, infrastructure, and application requirements. Developers should consult official documentation and follow appropriate security and engineering practices when implementing backend systems.

