Skip to content
RED SAG Skills

Easy Backend Developer questions

494 questions · 5 points each for a correct first answer.

  1. 1.Status code after creating a resourceeasy
  2. 2.The non-idempotent methodeasy
  3. 3.Stopping SQL injectioneasy
  4. 4.How to store passwordseasy
  5. 5.Purpose of a database indexeasy
  6. 6.What stateless means in RESTeasy
  7. 7.401 or 403easy
  8. 8.Keeping secrets out of codeeasy
  9. 9.Updating only one fieldeasy
  10. 10.Status code for too many requestseasy
  11. 11.Rows returned by a LEFT JOINeasy
  12. 12.What a foreign key enforceseasy
  13. 13.Atomicity in a money transfereasy
  14. 14.Browser blocks a call that curl allowseasy
  15. 15.What a 504 from Nginx meanseasy
  16. 16.Docker image versus containereasy
  17. 17.Redis TTL after SET with EXeasy
  18. 18.Undoing a bad commit on maineasy
  19. 19.Promise and setTimeout ordereasy
  20. 20.COUNT and AVG with NULLseasy
  21. 21.Filtering grouped resultseasy
  22. 22.Naming a test that uses a real DBeasy
  23. 23.Why structured logs helpeasy
  24. 24.What HttpOnly does on a cookieeasy
  25. 25.Storing times for global userseasy
  26. 26.A GET that deletes dataeasy
  27. 27.Embed or reference in MongoDBeasy
  28. 28.Slow email during signupeasy
  29. 29.Duplicate emails despite a checkeasy
  30. 30.Python default list surpriseeasy
  31. 31.What EXPLAIN tells youeasy
  32. 32.Content-Type versus Accepteasy
  33. 33.What HTTPS leaves visibleeasy
  34. 34.Database user for the appeasy
  35. 35.Response for a successful DELETEeasy
  36. 36.A product page removed for goodeasy
  37. 37.Signing up with a taken usernameeasy
  38. 38.Calling DELETE on a read-only routeeasy
  39. 39.A client posts XML to a JSON APIeasy
  40. 40.URL for one producteasy
  41. 41.Telling the client where the new item liveseasy
  42. 42.Filtering and sorting a listeasy
  43. 43.fetch treats a 404 as successeasy
  44. 44.What a HEAD request doeseasy
  45. 45.4xx or 5xx for bad inputeasy
  46. 46.Route parameter never matches a numbereasy
  47. 47.Response for a queued report jobeasy
  48. 48.Why teams write an OpenAPI speceasy
  49. 49.How many URLs a GraphQL API useseasy
  50. 50.Asking for only a few fieldseasy
  51. 51.Stack traces in production errorseasy
  52. 52.Cost of reading arr[i]easy
  53. 53.Inserting at the front of an arrayeasy
  54. 54.Why push is amortized O(1)easy
  55. 55.Changing one character of a stringeasy
  56. 56.Reversing a simple stringeasy
  57. 57.slice vs spliceeasy
  58. 58.Index of the last elementeasy
  59. 59.indexOf and NaNeasy
  60. 60.When two pointers find a pair sumeasy
  61. 61.new Array(3) then mapeasy
  62. 62.Building a long string in a loopeasy
  63. 63.Palindrome check with two pointerseasy
  64. 64.Value missing from indexOfeasy
  65. 65.Precondition for binary searcheasy
  66. 66.Cleaning a pasted mobile numbereasy
  67. 67.What a sliding window coverseasy
  68. 68.Updating a fixed-size window sumeasy
  69. 69.Range sum from a prefix arrayeasy
  70. 70.Compute a range sumeasy
  71. 71.Best three-day sales windoweasy
  72. 72.Sliding window time complexityeasy
  73. 73.Shape of a variable-size window loopeasy
  74. 74.Length of a windoweasy
  75. 75.Fast rectangle sums on a grideasy
  76. 76.Many range increments at onceeasy
  77. 77.Seven-day moving averageeasy
  78. 78.How many subarrays existeasy
  79. 79.Running wallet balanceeasy
  80. 80.Cost of prefix sum querieseasy
  81. 81.Sliding window and negative numberseasy
  82. 82.First step in merging intervalseasy
  83. 83.When two intervals overlapeasy
  84. 84.Safe midpoint in binary searcheasy
  85. 85.parseInt on a CSS valueeasy
  86. 86.Number of an empty form fieldeasy
  87. 87.Splitting a line with empty fieldseasy
  88. 88.Where an element goes on transposeeasy
  89. 89.Letter to array indexeasy
  90. 90.Anagram check by sortingeasy
  91. 91.Steps to find a value by binary searcheasy
  92. 92.Can one person attend all meetingseasy
  93. 93.Zero-padding an invoice numbereasy
  94. 94.Spiral order of a 3x3 matrixeasy
  95. 95.Checking balanced bracketseasy
  96. 96.Case-insensitive comparison of nameseasy
  97. 97.Checking whether a value is an arrayeasy
  98. 98.Comparing an array with its copyeasy
  99. 99.Using shift as a queueeasy
  100. 100.join with null valueseasy
  101. 101.Length of an emoji stringeasy
  102. 102.Flattening a nested arrayeasy
  103. 103.Authentication versus authorizationeasy
  104. 104.What a password salt is foreasy
  105. 105.Is HTTP Basic auth encryptedeasy
  106. 106.Sending an access token to an APIeasy
  107. 107.What the Secure cookie flag doeseasy
  108. 108.Header that goes with a 401easy
  109. 109.Login error message wordingeasy
  110. 110.What not to write to logseasy
  111. 111.Modern password ruleseasy
  112. 112.Rules for a login OTPeasy
  113. 113.Weak point of SMS OTPeasy
  114. 114.Which pair is really two factorseasy
  115. 115.Permissions for a reporting serviceeasy
  116. 116.Safe default for new API routeseasy
  117. 117.The three parts of a JWTeasy
  118. 118.Encrypting passwords instead of hashingeasy
  119. 119.Login form on plain HTTPeasy
  120. 120.Session id in the URLeasy
  121. 121.Same email, different capital letterseasy
  122. 122.What the server stores for a passkeyeasy
  123. 123.Why cookie auth needs CSRF thoughteasy
  124. 124.Log out of all deviceseasy
  125. 125.API keys instead of a shared passwordeasy
  126. 126.What a CAPTCHA protects againsteasy
  127. 127.Which OAuth role issues tokenseasy
  128. 128.What an OAuth scope iseasy
  129. 129.OAuth flow to avoid in new appseasy
  130. 130.Why apps use refresh tokenseasy
  131. 131.What single sign-on meanseasy
  132. 132.Building SQL from user inputeasy
  133. 133.What atomicity guaranteeseasy
  134. 134.WHERE column = NULL finds nothingeasy
  135. 135.COUNT(*) versus COUNT(column)easy
  136. 136.Column type for priceseasy
  137. 137.Storing order times for two countrieseasy
  138. 138.Students and courses table designeasy
  139. 139.What a foreign key doeseasy
  140. 140.Rows come back in a new ordereasy
  141. 141.Search with a leading wildcardeasy
  142. 142.Deleting a customer with ON DELETE CASCADEeasy
  143. 143.Missing numbers in order idseasy
  144. 144.Where to keep product photoseasy
  145. 145.Inserts fail at 2.1 billioneasy
  146. 146.Checking if any rows existeasy
  147. 147.What is inside a MongoDB ObjectIdeasy
  148. 148.MongoDB's maximum document sizeeasy
  149. 149.Updating a counter in MongoDBeasy
  150. 150.Fields vanish after an updateeasy
  151. 151.Counting API calls in Rediseasy
  152. 152.KEYS * freezes production Rediseasy
  153. 153.Storing a user profile in Rediseasy
  154. 154.What TTL returns for a keyeasy
  155. 155.Naming Redis keyseasy
  156. 156.Cache empty after a Redis restarteasy
  157. 157.Deleting old sessions in MongoDBeasy
  158. 158.Finding products by tageasy
  159. 159.Missed Redis pub/sub messageseasy
  160. 160.Create the document if it is missingeasy
  161. 161.A simple job queue in Rediseasy
  162. 162.What a 92% cache hit ratio meanseasy
  163. 163.Which key an LRU cache evictseasy
  164. 164.Why cache entries have a TTLeasy
  165. 165.Arabic text shown to English userseasy
  166. 166.What a write-through cache doeseasy
  167. 167.Slow responses after a cache restarteasy
  168. 168.An address changed in one place onlyeasy
  169. 169.RPO versus RTOeasy
  170. 170.Backups that nobody has restoredeasy
  171. 171.Database busy with report querieseasy
  172. 172.SQLite says 'database is locked'easy
  173. 173.Signs that a problem suits DPeasy
  174. 174.What memoisation meanseasy
  175. 175.What tabulation meanseasy
  176. 176.Cost of plain recursive Fibonaccieasy
  177. 177.Fibonacci after adding a cacheeasy
  178. 178.Recursion with no base caseeasy
  179. 179.Ways to climb five stairseasy
  180. 180.Hidden memory cost of recursioneasy
  181. 181.Why merge sort is not DPeasy
  182. 182.When the greedy coin choice failseasy
  183. 183.Built-in memoisation in Pythoneasy
  184. 184.Robbing houses that are not neighbourseasy
  185. 185.The first step in designing a DPeasy
  186. 186.Fibonacci with two variableseasy
  187. 187.Cheapest way up the stairseasy
  188. 188.Paths across a 3 × 7 grideasy
  189. 189.Grid paths with blocked cellseasy
  190. 190.Cheapest path through a cost grideasy
  191. 191.What 0/1 knapsack meanseasy
  192. 192.Unbounded and 0/1 knapsackeasy
  193. 193.Subsequence and substringeasy
  194. 194.Longest common subsequence of two stringseasy
  195. 195.Operations counted by edit distanceeasy
  196. 196.Edit distance from kitten to sittingeasy
  197. 197.Table size for a two-string DPeasy
  198. 198.Common substring versus common subsequenceeasy
  199. 199.Cost of the knapsack DPeasy
  200. 200.Order to fill a right-or-down grid tableeasy
  201. 201.Palindromic substrings in "aaa"easy
  202. 202.Can some items add up to exactly Seasy
  203. 203.The pattern behind backtrackingeasy
  204. 204.Number of subsets of four itemseasy
  205. 205.Orderings of four distinct itemseasy
  206. 206.What makes a greedy algorithm correcteasy
  207. 207.Booking the most meetings in one roomeasy
  208. 208.What pruning does in a searcheasy
  209. 209.Edges in a tree with n nodeseasy
  210. 210.Most nodes in a binary tree of height 3easy
  211. 211.What inorder traversal of a BST giveseasy
  212. 212.Preorder output of a small treeeasy
  213. 213.Traversal for freeing a whole treeeasy
  214. 214.Data structure for level-order traversaleasy
  215. 215.BST search time, typical and worsteasy
  216. 216.Leaves in a full binary treeeasy
  217. 217.Recursive maximum depth of a treeeasy
  218. 218.Child positions in an array-based treeeasy
  219. 219.Inserting sorted keys into a plain BSTeasy
  220. 220.What makes a graph a treeeasy
  221. 221.Call stack depth of recursive traversaleasy
  222. 222.Finding the smallest key in a BSTeasy
  223. 223.Complete binary tree meaningeasy
  224. 224.Space for adjacency list and matrixeasy
  225. 225.The structure behind BFSeasy
  226. 226.How DFS remembers where to returneasy
  227. 227.Fewest hops between two userseasy
  228. 228.Sum of degrees in an undirected grapheasy
  229. 229.Edges in a complete grapheasy
  230. 230.Why traversals track visited nodeseasy
  231. 231.Running time of BFS with adjacency listseasy
  232. 232.Counting connected componentseasy
  233. 233.Neighbours of a cell in a grideasy
  234. 234.Storing a sparse road networkeasy
  235. 235.Fast check for one edgeeasy
  236. 236.Storing weights in an adjacency listeasy
  237. 237.In-degree in a follower grapheasy
  238. 238.What a DAG iseasy
  239. 239.The weight rule for Dijkstraeasy
  240. 240.Data structure inside Dijkstraeasy
  241. 241.Shortest paths with refunds as negative costseasy
  242. 242.Cost of Floyd-Warshalleasy
  243. 243.What a minimum spanning tree iseasy
  244. 244.How Kruskal’s algorithm workseasy
  245. 245.How Prim’s algorithm workseasy
  246. 246.The two operations of union-findeasy
  247. 247.What path compression doeseasy
  248. 248.Why union by size helpseasy
  249. 249.Dijkstra when every edge costs the sameeasy
  250. 250.What relaxing an edge meanseasy
  251. 251.A cycle with negative total costeasy
  252. 252.Running time of heap-based Dijkstraeasy
  253. 253.Counting groups after several unionseasy
  254. 254.Graphs that have a topological ordereasy
  255. 255.Where Kahn’s algorithm startseasy
  256. 256.A structure for search-box suggestionseasy
  257. 257.Cost of a trie lookupeasy
  258. 258.Courses that require each othereasy
  259. 259.How build tools order their stepseasy
  260. 260.More than one valid ordereasy
  261. 261.Storing children in a trie nodeeasy
  262. 262.Why a trie node needs an end markereasy
  263. 263.Which way the dependency edge pointseasy
  264. 264.Kahn’s algorithm finishes earlyeasy
  265. 265.When a trie beats a hash seteasy
  266. 266.What a segment tree is foreasy
  267. 267.What a Fenwick tree storeseasy
  268. 268.Nodes in a small trieeasy
  269. 269.Average cost of a hash map lookupeasy
  270. 270.Worst case for a hash map lookupeasy
  271. 271.Removing duplicates with a Seteasy
  272. 272.Number keys in a plain objecteasy
  273. 273.Iteration order of a Mapeasy
  274. 274.When to choose Map over a plain objecteasy
  275. 275.Set of look-alike objectseasy
  276. 276.Counting letters in a wordeasy
  277. 277.Two Sum with a hash mapeasy
  278. 278.Reading a key that is not in a Mapeasy
  279. 279.What load factor meanseasy
  280. 280.Safe counting in a Python dicteasy
  281. 281.Checking a key by its valueeasy
  282. 282.Intersecting two lists of IDseasy
  283. 283.Counting entries in a Mapeasy
  284. 284.Missing key in a Python Countereasy
  285. 285.Adding a value that is already in a Seteasy
  286. 286.Grouping with defaultdicteasy
  287. 287.Building a Map from pairseasy
  288. 288.Looping over a Mapeasy
  289. 289.Repeated membership checkseasy
  290. 290.Does a string have all unique characterseasy
  291. 291.Adding stock to an inventory mapeasy
  292. 292.Does a sentence use every lettereasy
  293. 293.Counting jewels among stoneseasy
  294. 294.What Map.delete returnseasy
  295. 295.Equal keys and hash valueseasy
  296. 296.null keys in Java mapseasy
  297. 297.Avoiding loops in graph searcheasy
  298. 298.What HashMap.put returnseasy
  299. 299.What in checks on a Python dicteasy
  300. 300.Creating an empty set in Pythoneasy
  301. 301.The in operator on a plain objecteasy
  302. 302.Memory used by a hash mapeasy
  303. 303.Counting with getOrDefault in Javaeasy
  304. 304.Argument order in Map.forEacheasy
  305. 305.Tallying voteseasy
  306. 306.Removing duplicates but keeping ordereasy
  307. 307.Choosing a structure for a contact lookupeasy
  308. 308.Items in exactly one of two setseasy
  309. 309.What HashSet.add returnseasy
  310. 310.Turning a Map into an object for JSONeasy
  311. 311.Looping over keys and values in Pythoneasy
  312. 312.String and number keys in a Mapeasy
  313. 313.Removing a missing item from a Python seteasy
  314. 314.Set size after a deleteeasy
  315. 315.Type of keys from Object.keyseasy
  316. 316.Emptying a Mapeasy
  317. 317.What a bucket is in a hash tableeasy
  318. 318.Counting words regardless of caseeasy
  319. 319.Checking a block listeasy
  320. 320.Inverting a Python dicteasy
  321. 321.Unique letters in a wordeasy
  322. 322.Stopping a coupon from being reusedeasy
  323. 323.Remainder of a negative numbereasy
  324. 324.Why 0.1 + 0.2 is not 0.3easy
  325. 325.Storing rupee amounts safelyeasy
  326. 326.GST inside an inclusive priceeasy
  327. 327.How many buses are neededeasy
  328. 328.Checking for a power of twoeasy
  329. 329.Which year is a leap yeareasy
  330. 330.Month number in new Dateeasy
  331. 331.Finding the nearest point fasteasy
  332. 332.Clamping a value into a rangeeasy
  333. 333.Math.sin(90) is not 1easy
  334. 334.Sum of 1 to 100easy
  335. 335.Random whole number in a rangeeasy
  336. 336.Percent up, then back downeasy
  337. 337.Reading binary 1011easy
  338. 338.Hex colour to RGB valueseasy
  339. 339.Median of four valueseasy
  340. 340.Checking for NaNeasy
  341. 341.Dividing by zero in JavaScripteasy
  342. 342.Interpolating a quarter of the wayeasy
  343. 343.Moving at the same speed on any deviceeasy
  344. 344.VAT inside a UAE priceeasy
  345. 345.Compound interest over two yearseasy
  346. 346.Converting Dubai time to India timeeasy
  347. 347.parseInt with a radixeasy
  348. 348.Sum of 5, 10, ..., 100easy
  349. 349.Years to double at 8%easy
  350. 350.Average roll of a dieeasy
  351. 351.Binary search steps for 1 millioneasy
  352. 352.Typical salary with one outliereasy
  353. 353.Turning an ADC reading into voltseasy
  354. 354.PWM duty cycle and average voltageeasy
  355. 355.First byte of 0x12345678 in memoryeasy
  356. 356.Queue versus topiceasy
  357. 357.Why put a queue between serviceseasy
  358. 358.What a RabbitMQ exchange doeseasy
  359. 359.Direct exchange routingeasy
  360. 360.Topic exchange wildcardseasy
  361. 361.Fanout exchange behavioureasy
  362. 362.SQS standard versus FIFOeasy
  363. 363.Purpose of a dead-letter queueeasy
  364. 364.Surviving a broker restarteasy
  365. 365.SQS long pollingeasy
  366. 366.How long SQS keeps messageseasy
  367. 367.SNS to SQS fan-outeasy
  368. 368.At-most-once deliveryeasy
  369. 369.Kafka message keyseasy
  370. 370.Queue as a shock absorbereasy
  371. 371.Redis Pub/Sub for jobseasy
  372. 372.Delaying an SQS messageeasy
  373. 373.Message TTL on a queueeasy
  374. 374.When to use a priority queueeasy
  375. 375.Events versus commandseasy
  376. 376.Handling incoming webhookseasy
  377. 377.Telling users about a long jobeasy
  378. 378.What Kafka does after a readeasy
  379. 379.A queue just for one clienteasy
  380. 380.What RabbitMQ vhosts are foreasy
  381. 381.Matching replies to requestseasy
  382. 382.setTimeout as a job queueeasy
  383. 383.Only some events for one subscribereasy
  384. 384.What MessageGroupId doeseasy
  385. 385.Calls with no timeouteasy
  386. 386.Which errors to retryeasy
  387. 387.Recommendations service is downeasy
  388. 388.RTO and RPOeasy
  389. 389.MTTR and MTBFeasy
  390. 390.Backups nobody has restoredeasy
  391. 391.Respecting Retry-Aftereasy
  392. 392.The bulkhead patterneasy
  393. 393.Turning off a broken feature fasteasy
  394. 394.Errors right after a deployeasy
  395. 395.Why use a canary releaseeasy
  396. 396.Heater controller loses its sensoreasy
  397. 397.An outage caused by a certificateeasy
  398. 398.Service dies after weeks of uptimeeasy
  399. 399.Connect timeout versus read timeouteasy
  400. 400.Why postmortems are blamelesseasy
  401. 401.N+1 capacityeasy
  402. 402.An alert at 3 a.m.easy
  403. 403.Which request is safe to retryeasy
  404. 404.Planned database maintenanceeasy
  405. 405.Bubble sort best case with early exiteasy
  406. 406.What a stable sort meanseasy
  407. 407.Merge sort time in every caseeasy
  408. 408.Best simple sort for nearly sorted dataeasy
  409. 409.Swaps made by selection sorteasy
  410. 410.What in-place sorting meanseasy
  411. 411.Quick sort worst-case timeeasy
  412. 412.JavaScript default sort on numberseasy
  413. 413.Comparator sign for ascending ordereasy
  414. 414.When counting sort is a good fiteasy
  415. 415.Python sorted() versus list.sort()easy
  416. 416.Lower bound for comparison sortingeasy
  417. 417.Extra memory used by merge sorteasy
  418. 418.Is heap sort stable?easy
  419. 419.Trace one bubble sort passeasy
  420. 420.Best case of binary searcheasy
  421. 421.Time complexity of binary searcheasy
  422. 422.Binary search steps for a million itemseasy
  423. 423.Overflow-safe midpoint formulaeasy
  424. 424.Loop condition for a closed search rangeeasy
  425. 425.Trace a binary searcheasy
  426. 426.One search in unsorted dataeasy
  427. 427.What bisect_left returnseasy
  428. 428.Java Arrays.binarySearch when not foundeasy
  429. 429.What C++ lower_bound returnseasy
  430. 430.Binary search on a sorted linked listeasy
  431. 431.Range size after several halvingseasy
  432. 432.Space used by recursive binary searcheasy
  433. 433.Which duplicate a plain search findseasy
  434. 434.The three steps of divide and conquereasy
  435. 435.Solving T(n) = 2T(n/2) + neasy
  436. 436.Solving T(n) = T(n/2) + 1easy
  437. 437.Fast exponentiation by squaringeasy
  438. 438.Solving T(n) = T(n - 1) + neasy
  439. 439.Grouping anagrams with a sorted keyeasy
  440. 440.Order rule of a stackeasy
  441. 441.Order rule of a queueeasy
  442. 442.Trace stack push and popeasy
  443. 443.Trace queue operationseasy
  444. 444.Using a JavaScript array as a stackeasy
  445. 445.Cost of Array.shift in a queueeasy
  446. 446.Cause of a stack overflow erroreasy
  447. 447.Serving patients by severityeasy
  448. 448.Data structure behind Undoeasy
  449. 449.Browser back and forward buttonseasy
  450. 450.Structure behind breadth-first searcheasy
  451. 451.Depth-first search without recursioneasy
  452. 452.Python queue: deque or listeasy
  453. 453.What peek does on a stackeasy
  454. 454.What stack underflow meanseasy
  455. 455.Reversing a string with a stackeasy
  456. 456.Building a stack on a linked listeasy
  457. 457.Inserting at the head of a linked listeasy
  458. 458.Reading the k-th node of a linked listeasy
  459. 459.Deleting a known node in a doubly linked listeasy
  460. 460.How a singly linked list endseasy
  461. 461.Reversing a linked list in placeeasy
  462. 462.Why use a dummy head nodeeasy
  463. 463.Why arrays often beat linked listseasy
  464. 464.Where the smallest value lives in a min-heapeasy
  465. 465.Heap parent and child indiceseasy
  466. 466.Cost of inserting into a binary heapeasy
  467. 467.Cost of reading the top of a heapeasy
  468. 468.Max-heap with Python heapqeasy
  469. 469.Shape of a binary heapeasy
  470. 470.Default order of Java PriorityQueueeasy
  471. 471.Heap memory versus the heap data structureeasy
  472. 472.What a deque supportseasy
  473. 473.Checking a palindrome with a dequeeasy
  474. 474.Round-robin scheduling with a queueeasy
  475. 475.What a dead-letter queue is foreasy
  476. 476.Keeping only the latest log lineseasy
  477. 477.When arrivals outpace processingeasy
  478. 478.What a load balancer doeseasy
  479. 479.Serving images to far-away userseasy
  480. 480.The cache-aside patterneasy
  481. 481.Scaling a read-heavy databaseeasy
  482. 482.Latency versus throughputeasy
  483. 483.Estimating requests per secondeasy
  484. 484.How much downtime 99.99% allowseasy
  485. 485.Why keep app servers statelesseasy
  486. 486.How a token bucket limits rateeasy
  487. 487.What an API gateway handleseasy
  488. 488.Large file uploadseasy
  489. 489.Spotting a single point of failureeasy
  490. 490.DNS failover is sloweasy
  491. 491.Cost of adding indexeseasy
  492. 492.Pushing live order statuseasy
  493. 493.Batch or stream processingeasy
  494. 494.A live game leaderboardeasy