Q101. How does a CDN improve performance and how would you design for it?
A content delivery network caches content on edge servers close to users, reducing latency and offloading the origin. How it works: DNS or anycast routes the user to a ne...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (182 available).
A content delivery network caches content on edge servers close to users, reducing latency and offloading the origin. How it works: DNS or anycast routes the user to a ne...
A thread pool keeps a set of worker threads alive so tasks avoid per-request thread-creation cost. Core pieces: - A task queue, typically bounded, holding runnable work. ...
A god class is large, does many unrelated things, has many dependencies and is touched by most changes. Treat the refactor as a series of safe, behaviour-preserving steps...
Simpson's paradox is when a trend appears in several groups but reverses or disappears when the groups are combined. It happens because a confounding variable is unevenly...
CDC captures row-level changes from a source database and streams them downstream with low latency. A typical design: - Capture: read the database transaction log with a ...
Layer caches by distance from the caller and accept that each layer adds staleness and invalidation complexity. Typical design: - Edge/CDN: cache public and static respon...
For service-to-service calls, avoid shared static credentials and long-lived secrets. - OAuth 2.0 client credentials: each service is a registered client with a client id...
A service often must both change its database and publish an event. Writing to the database and then to the broker is a dual write: a crash between the two loses the even...
Two-phase commit is rarely used in microservices because it needs a coordinating transaction manager, holds locks across services, blocks on coordinator failure and hurts...
Do not hold the connection open. Instead accept the work and return 202 Accepted with a pointer to a status resource. ```http POST /reports Location: /reports/jobs/789 Re...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.