Q1. How would you design a URL shortener like bit.ly?
Requirements: shorten a long URL, redirect quickly, handle ~100M new links per day with a 100:1 read-to-write ratio. API: POST /api/links {longUrl} -> {shortUrl}; GET /{c...
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).
Requirements: shorten a long URL, redirect quickly, handle ~100M new links per day with a 100:1 read-to-write ratio. API: POST /api/links {longUrl} -> {shortUrl}; GET /{c...
I would not choose on gut feel. I would decide using payback, intent and time horizon. Paid search is fast and controllable but stops the moment spend stops. SEO compound...
Runes are compiler keywords that make reactivity explicit and also work in .svelte.js and .svelte.ts modules, not just components. $state creates a reactive value, deeply...
A distributed store can guarantee only two of three during a network partition: Consistency (every read sees the latest write), Availability (every request gets a non-err...
Strategies: - Cache-aside (lazy loading): app checks cache, on miss reads DB and populates. Most common. - Read-through: cache library fetches on miss. - Write-through: w...
Node runs JavaScript on a single thread, so scaling options are: - Cluster module or a process manager (PM2) to fork one process per core behind a shared port. Good for t...
I never say no flatly. I make the trade off explicit and let the decision be informed. First I listen properly and understand the need behind the request. A senior stakeh...
Tree shaking removes unused exports from the final bundle. It relies on ES modules being statically analysable: imports and exports are known at parse time, so the bundle...
Interaction to Next Paint measures the time from a user interaction such as a click, tap or key press until the browser paints the next frame, across the whole visit, rep...
A plugin is a function passed to plugins in the config. It receives helpers including addUtilities, addComponents, addBase, addVariant, matchUtilities and theme. ```js co...
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.