InterviewTreedInterviewTreed
All learning paths

Programming & Frameworks

Backend & API Engineering

Prepare for backend engineering and API development interviews, covering server-side architecture, REST APIs, authentication, database integration, performance, scalability, and production-ready backend systems.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

Backend development fundamentals

Understand the core responsibilities of backend development, including business logic, data processing, authentication, database access, integrations, and server-side application behavior.

Start learning

Client-server architecture

Learn how clients and servers communicate over networks, including request initiation, server processing, response delivery, connection management, and distributed application interactions.

Start learning

Backend application architecture

Explore common backend architecture styles, including layered architecture, modular monoliths, clean architecture, and service-oriented designs for maintainable applications.

Start learning

Request-response lifecycle

Understand the complete lifecycle of an API request, from client connection and routing through middleware, authentication, business logic, data access, and response generation.

Start learning

HTTP and HTTPS fundamentals

Learn how HTTP enables communication between clients and servers and how HTTPS uses TLS encryption to protect data confidentiality, integrity, and server identity.

Start learning

HTTP methods and status codes

Explore HTTP methods such as GET, POST, PUT, PATCH, and DELETE, along with status code categories and their appropriate use in API responses.

Start learning

HTTP headers and content negotiation

Understand request and response headers, including Content-Type, Accept, Authorization, Cache-Control, and how content negotiation selects compatible response formats.

Start learning

REST API fundamentals

Learn the fundamentals of REST APIs, including resources, representations, HTTP methods, stateless communication, and how backend services expose functionality to clients.

Start learning

REST architectural principles

Explore REST constraints such as client-server separation, statelessness, cacheability, uniform interfaces, layered systems, and optional code-on-demand.

Start learning

RESTful resource design

Learn how to model API resources using clear URIs, resource relationships, appropriate HTTP methods, representations, and consistent operations.

Start learning

REST API naming conventions

Understand REST API naming practices for resource paths, collections, identifiers, nested resources, and consistent endpoint structures.

Start learning

API versioning strategies

Compare URL-based, query parameter, header-based, and media-type API versioning strategies, including backward compatibility and controlled API evolution.

Start learning

Request and response handling

Learn how backend APIs process incoming requests and construct responses using headers, bodies, status codes, content types, and structured response models.

Start learning

JSON and XML serialization

Understand serialization and deserialization of backend data using JSON and XML, including object mapping, data formats, compatibility, and serializer configuration.

Start learning

Route parameters and query parameters

Explore how route parameters identify specific resources while query parameters support filtering, searching, pagination, and optional request behavior.

Start learning

Pagination and filtering

Learn how to implement pagination and filtering APIs to retrieve manageable datasets, reduce response sizes, and support efficient client-side data navigation.

Start learning

Sorting and searching APIs

Understand API sorting and searching techniques, including sort fields, direction, keyword queries, multiple criteria, and safe query construction.

Start learning

API validation

Explore API validation concepts for enforcing data types, required fields, business constraints, request structure, and consistent input requirements.

Start learning

Request validation and sanitization

Learn how to validate incoming API data and sanitize untrusted input to prevent malformed requests, invalid values, injection attacks, and unexpected application behavior.

Start learning

Error handling and exception management

Understand how backend applications handle runtime failures, propagate exceptions, distinguish expected errors, and return meaningful responses without exposing internal details.

Start learning

Global exception handling

Learn how centralized exception handlers process application errors consistently, map exceptions to HTTP status codes, and simplify error management across API endpoints.

Start learning

Standardized API error responses

Explore standardized error response structures containing error codes, messages, validation details, request identifiers, and consistent machine-readable information.

Start learning

API documentation with Swagger and OpenAPI

Learn how Swagger and OpenAPI describe API endpoints, request schemas, responses, authentication requirements, and interactive documentation for developers and consumers.

Start learning

API authentication and authorization

Understand how backend APIs verify client identities and enforce access permissions using authentication mechanisms, authorization policies, and protected endpoints.

Start learning

Authentication vs authorization

Compare authentication, which verifies who a user or client is, with authorization, which determines what resources and operations that identity can access.

Start learning

JWT authentication

Learn how JSON Web Tokens support stateless API authentication, including token structure, signing, validation, expiration, claims, and secure token handling.

Start learning

Access tokens and refresh tokens

Understand how short-lived access tokens and longer-lived refresh tokens support API sessions, token renewal, expiration, revocation, and secure credential management.

Start learning

OAuth 2.0 fundamentals

OAuth 2.0 fundamentals: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

OpenID Connect

Learn how OpenID Connect extends OAuth 2.0 with an identity layer, including ID tokens, user authentication, discovery, claims, and identity provider integration.

Start learning

Role-based access control (RBAC)

Understand how role-based access control assigns permissions to roles and users, enabling APIs to restrict operations according to organizational responsibilities.

Start learning

Policy-based authorization

Explore policy-based authorization, where access decisions depend on rules, claims, roles, resource attributes, and contextual conditions rather than simple role checks.

Start learning

API keys and client credentials

Learn how API keys and OAuth client credentials identify applications and authenticate service-to-service requests, including secure storage, rotation, and access restrictions.

Start learning

Session management

Understand how backend applications manage user sessions, including session identifiers, cookies, expiration, persistence, invalidation, and distributed session storage.

Start learning

CORS and CSRF

Explore Cross-Origin Resource Sharing and Cross-Site Request Forgery, including browser security policies, preflight requests, origin restrictions, and CSRF protection mechanisms.

Start learning

API security best practices

Learn essential API security practices covering authentication, authorization, input validation, transport encryption, rate limiting, secret protection, and secure error handling.

Start learning

Rate limiting and throttling

Understand how rate limiting and throttling control request volumes, protect backend resources, prevent abuse, and enforce usage quotas using common algorithms and policies.

Start learning

Idempotency and duplicate request handling

Learn how idempotent API operations produce consistent results when requests are repeated and how idempotency keys prevent duplicate processing during retries.

Start learning

Retry mechanisms and exponential backoff

Explore retry strategies for transient API failures, including exponential backoff, jitter, maximum attempts, retryable status codes, and avoiding retry storms.

Start learning

API caching

Understand how caching improves API response times and reduces backend workload through in-memory, distributed, application-level, and HTTP caching strategies.

Start learning

HTTP caching headers

Learn how Cache-Control, Expires, Age, Vary, and other HTTP headers define caching policies, freshness, validation requirements, and shared or private cache behavior.

Start learning

ETags and conditional requests

Explore ETags and conditional HTTP requests using headers such as If-None-Match and If-Match to validate cached representations and prevent conflicting updates.

Start learning

Asynchronous API processing

Understand asynchronous API designs that accept requests without waiting for long-running work, using background execution, status endpoints, callbacks, and event notifications.

Start learning

Background jobs and task scheduling

Learn how backend systems execute deferred and scheduled tasks for operations such as notifications, report generation, cleanup, and recurring business processes.

Start learning

Message queues and event-driven processing

Explore message queues and event-driven architectures, including producers, consumers, brokers, acknowledgments, delivery guarantees, and decoupled service communication.

Start learning

File upload and download APIs

Understand how to implement file transfer endpoints using multipart requests, streaming, content types, size restrictions, storage services, and secure download handling.

Start learning

WebSockets and real-time communication

Learn how WebSockets establish persistent, bidirectional connections between clients and servers for chat, notifications, live dashboards, and collaborative applications.

Start learning

Server-Sent Events (SSE)

Explore Server-Sent Events for delivering continuous server-to-client updates over HTTP, including event streams, reconnection, event identifiers, and real-time notifications.

Start learning

Database integration

Understand how backend applications connect to databases, execute queries, map application models, manage transactions, and isolate data access responsibilities.

Start learning

Relational and NoSQL databases

Compare relational databases and NoSQL systems, including schemas, relationships, transactions, document storage, key-value models, consistency, and application use cases.

Start learning

Database transactions

Learn how database transactions group operations into reliable units of work using ACID properties, commit and rollback behavior, and isolation levels.

Start learning

Connection pooling

Understand database connection pooling, including connection reuse, pool sizing, timeout configuration, resource limits, and the impact of connection management on performance.

Start learning

Repository pattern

Explore the Repository pattern for separating persistence operations from business logic, including repository interfaces, query methods, and testable data access boundaries.

Start learning

Unit of Work pattern

Understand the Unit of Work pattern for coordinating multiple database operations within a single transaction and managing consistent persistence changes.

Start learning

Data access optimization

Learn techniques for improving data access efficiency through batching, projection, query reduction, caching, pagination, and appropriate database access patterns.

Start learning

ORM fundamentals

Understand object-relational mapping and how ORM frameworks map application objects to relational tables, manage entity states, generate queries, and persist changes.

Start learning

Backend performance optimization

Explore backend performance improvements through profiling, efficient algorithms, caching, database tuning, asynchronous processing, and resource utilization analysis.

Start learning

Database query optimization

Learn how to optimize database queries using indexes, execution plans, efficient joins, selective projections, query rewriting, and appropriate filtering strategies.

Start learning

Memory and resource management

Understand backend resource management, including memory allocation, garbage collection, file handles, database connections, disposal, and prevention of resource leaks.

Start learning

Asynchronous programming

Learn asynchronous programming concepts for performing non-blocking operations, handling I/O-bound workloads, coordinating tasks, and improving server responsiveness.

Start learning

Concurrency and parallel processing

Explore concurrency and parallel processing in backend applications, including task scheduling, simultaneous request handling, synchronization, and throughput considerations.

Start learning

Thread safety and synchronization

Understand thread safety, race conditions, shared mutable state, locks, synchronization mechanisms, and safe concurrent access to backend application resources.

Start learning

Dependency injection

Learn how dependency injection manages object dependencies through containers, constructor injection, service lifetimes, interface-based design, and testable application architecture.

Start learning

Middleware and request pipelines

Understand middleware pipelines that process HTTP requests and responses through ordered components for authentication, logging, routing, exception handling, and response transformation.

Start learning

Logging and monitoring

Explore backend logging and monitoring practices, including structured logs, log levels, metrics, dashboards, alerting, and operational visibility into application behavior.

Start learning

Distributed tracing

Learn how distributed tracing follows requests across multiple services using trace identifiers, spans, timing information, and observability platforms to diagnose latency and failures.

Start learning

Health checks

Understand application health checks for reporting service readiness and liveness, validating dependencies, and enabling orchestrators and monitoring systems to detect failures.

Start learning

API testing fundamentals

Explore API testing fundamentals, including endpoint behavior, request construction, response assertions, status codes, test data, and positive and negative test scenarios.

Start learning

Unit testing backend services

Learn how to unit test backend business logic and service classes by isolating dependencies, verifying expected outcomes, and testing edge cases with automated test frameworks.

Start learning

Integration testing

Understand integration testing for backend applications, including database connectivity, service interactions, middleware execution, and validation of multiple components working together.

Start learning

API automation testing

Explore automated API testing using test scripts and frameworks to validate endpoints, authentication, response schemas, business rules, and regression behavior.

Start learning

Mocking external dependencies

Learn how to replace external services, databases, message brokers, and HTTP clients with mocks or test doubles to isolate backend tests and simulate failure scenarios.

Start learning

Backend application security

Understand backend application security threats and defenses, including access control, secure configuration, dependency vulnerabilities, injection attacks, and data protection.

Start learning

Input validation and output encoding

Learn how to validate untrusted input and encode output appropriately to prevent injection vulnerabilities, malformed data, and unsafe content rendering.

Start learning

SQL injection prevention

Understand how SQL injection occurs and how parameterized queries, prepared statements, ORM safeguards, input handling, and least-privilege database access prevent attacks.

Start learning

Secure secrets management

Explore secure management of API keys, passwords, certificates, and connection strings using environment configuration, secret managers, rotation, and restricted access.

Start learning

HTTPS and TLS

Understand TLS encryption and HTTPS communication, including certificates, certificate validation, secure handshakes, encryption, and protection against network interception.

Start learning

Microservices and backend architecture

Explore microservice architecture, including independent services, domain boundaries, service ownership, distributed communication, deployment independence, and operational complexity.

Start learning

API gateway pattern

Learn how an API Gateway provides a single entry point to backend services through request routing, authentication, rate limiting, aggregation, and cross-cutting policies.

Start learning

Service-to-service communication

Understand communication between backend services using synchronous HTTP or gRPC calls and asynchronous messaging, including service discovery, authentication, and failure handling.

Start learning

Distributed transactions

Explore transaction coordination across multiple services and databases, including two-phase commit, eventual consistency, the Saga pattern, and compensating actions.

Start learning

Circuit breaker and retry patterns

Learn resilience patterns for distributed systems, including circuit breakers, bounded retries, timeouts, fallbacks, and backoff strategies for handling service failures.

Start learning

Backend scalability and reliability

Understand how backend systems handle increasing traffic and remain available through scalable architecture, fault tolerance, redundancy, load management, and resilience strategies.

Start learning

Load balancing

Explore load balancing techniques that distribute incoming traffic across backend instances, including round-robin, least connections, health checks, and session persistence.

Start learning

Horizontal and vertical scaling

Compare vertical scaling, which increases resources on a single machine, with horizontal scaling, which adds instances to distribute application workloads.

Start learning

Containerization with Docker

Learn how Docker packages backend applications and their dependencies into containers, including Dockerfiles, images, networking, volumes, and container execution.

Start learning

Backend deployment and CI/CD

Understand backend deployment pipelines using continuous integration and continuous delivery, including automated builds, testing, artifact management, release strategies, and rollback procedures.

Start learning

Production troubleshooting

Learn how to diagnose production backend issues using logs, metrics, traces, health checks, error patterns, resource monitoring, and systematic root-cause analysis.

Start learning

Building production-ready REST APIs

Explore how to build production-ready REST APIs by combining resource design, validation, authentication, authorization, error handling, testing, documentation, monitoring, and performance optimization.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 130 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 130 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path