Skip to main content

Interview questions · Book 03

Backend & APIs interview questions

205 questions from 52 pages, each with a short answer. Say your answer first, then open the question to check it.

p. 1 · 4 questions

.NET

Full page
  1. 1

    What is .NET?

    .NET is Microsoft's free, open-source developer platform for building web, desktop, mobile, cloud and game applications, mainly in C#.

  2. 2

    What is the difference between .NET and .NET Framework?

    .NET Framework is the original Windows-only version, now in maintenance mode. .NET, formerly .NET Core, is the modern, cross-platform and open-source successor, where all new development happens.

  3. 3

    What is ASP.NET Core?

    The web framework of modern .NET. It is used to build REST APIs, server-rendered websites, real-time apps and Blazor web interfaces.

  4. 4

    Is .NET only for C#?

    No. C# is by far the most used, but F# and Visual Basic also run on .NET, and all of them can use the same libraries.

p. 2 · 3 questions

API

Full page
  1. 1

    What is an API?

    An API is a set of rules that lets one piece of software request data or actions from another in a predictable, documented way.

  2. 2

    Is an API the same as a REST API?

    No. API is the general concept; a REST API is one style of API built on HTTP that follows REST principles.

  3. 3

    What is an API key?

    An API key is a secret value sent with requests so the API can identify the caller and control or limit access.

p. 3 · 4 questions

API Gateway

Full page
  1. 1

    What is an API gateway?

    An API gateway is a server that sits in front of a group of backend services and acts as the single entry point that receives, checks, and routes API requests.

  2. 2

    What is the difference between an API gateway and a load balancer?

    A load balancer spreads traffic across several copies of the same service to share the load. An API gateway routes requests to different services based on the API path and adds features like authentication and rate limiting, and it often sits in front of load balancers.

  3. 3

    What is the difference between an API gateway and a reverse proxy?

    An API gateway is a kind of reverse proxy. A plain reverse proxy mainly forwards traffic, while an API gateway adds API-specific features such as API key checks, per-client rate limits, and request transformation.

  4. 4

    Do I need an API gateway?

    Not always. A single monolithic application can often handle authentication and rate limiting itself, but a gateway becomes valuable once clients would otherwise call many separate services directly.

p. 4 · 4 questions

API Versioning

Full page
  1. 1

    What is API versioning?

    API versioning is the practice of labeling and managing changes to an API so existing clients keep working while new versions add or change features.

  2. 2

    What is the best way to version an API?

    There is no single best way, but URL path versioning such as /v1/ is the most common because it is simple, visible, and easy to cache and test. Header-based versioning keeps URLs clean but is harder to try out in a browser.

  3. 3

    When should I create a new API version?

    Create one only for breaking changes, such as removing or renaming fields, changing data types, or adding required parameters. Backward-compatible changes like new optional fields or new endpoints can ship in the current version.

  4. 4

    How long should old API versions be supported?

    It depends on your users, but public APIs commonly give at least 6 to 12 months of notice before retiring a version. Announce the timeline, send deprecation headers, and track which clients still use the old version.

p. 5 · 4 questions

Application Server

Full page
  1. 1

    What is an application server?

    An application server is software that runs an application's code and business logic, turning requests into dynamic responses, usually behind a web server.

  2. 2

    What is the difference between a web server and an application server?

    A web server handles HTTP connections, HTTPS and static files, while an application server runs the code that builds dynamic responses. In most deployments, the web server sits in front and forwards dynamic requests to the application server.

  3. 3

    Is Tomcat an application server?

    Loosely, yes, and many people call it one. Strictly, Tomcat is a servlet container that implements only the web parts of Jakarta EE, while full application servers such as WildFly or GlassFish also implement the rest of the platform, such as transactions and messaging.

  4. 4

    Do I still need an application server?

    Every web application needs something that runs its code, but today it is often built in rather than installed separately. Spring Boot, ASP.NET Core and Node.js apps include their own server, and containers have largely replaced deploying many apps to one shared Java application server.

p. 6 · 3 questions

Backend

Full page
  1. 1

    What is the backend?

    The backend is the server side of an application: the code, databases and services that store data, apply business rules and answer the frontend's requests.

  2. 2

    Which languages are used for backend development?

    Almost any general-purpose language: JavaScript or TypeScript with Node.js, Python, Java, C#, Go, PHP and Ruby are all common. The choice usually depends on the team, the libraries available and how fast the service needs to be.

  3. 3

    Can an application have no backend?

    A purely static site, or an app that keeps everything on the device, can work without a backend of its own. Many apps instead rely on managed services, such as a backend-as-a-service or serverless functions, so someone else runs the servers.

p. 7 · 4 questions

Background Job

Full page
  1. 1

    What is a background job?

    A background job is a task that a server runs outside the normal request-response cycle, so slow work like sending emails doesn't make users wait.

  2. 2

    What is the difference between a background job and a cron job?

    A cron job runs on a fixed schedule, such as every night at 2 a.m. A background job is usually created on demand by an event, such as a user uploading a file, and runs as soon as a worker is free, although many job systems also support scheduled jobs.

  3. 3

    What is a worker in background processing?

    A worker is a separate process that waits for jobs on a queue, runs them, and reports whether they succeeded. You can run several workers in parallel to process jobs faster.

  4. 4

    When should I use a background job?

    Use one when work takes more than a fraction of a second, depends on a slow external service, or doesn't need to finish before the user gets a response. Sending emails, processing uploads, and generating reports are classic examples.

p. 8 · 4 questions

Backpressure

Full page
  1. 1

    What is backpressure?

    Backpressure is a mechanism that lets a slow consumer signal a fast producer to slow down, so data doesn't pile up faster than it can be processed.

  2. 2

    What happens without backpressure?

    Data piles up in memory between the fast and slow parts of the system. Latency climbs as the backlog grows, and eventually the process runs out of memory, crashes, or starts dropping data.

  3. 3

    Is backpressure the same as rate limiting?

    No. Rate limiting applies a fixed, predefined cap on requests, while backpressure is a dynamic signal based on how much the consumer can handle right now. Systems often use both.

  4. 4

    How do message queues handle backpressure?

    Consumers pull messages at their own pace, often with a limit on how many they take at once, so the queue absorbs bursts. A growing backlog, called consumer lag, is the signal to add consumers or slow producers, and bounded queues can reject new messages when full.

More

Settings