Lead Backend Developer Interview Questions

12,383 lead backend developer interview questions shared by candidates

In this case you are tasked with designing and building a simple off-chain system and the on-chain smart-contract to enable cheap auctions. The goal is to enable trades between an ERC721 and a ERC20 with a single on-chain transaction. The auctions should work as follows: - Owner of the NFT approves all NFT’s to the Marketplace - Owner of the NFT signs to create an off-chain auction listing with a minimum price - Bidder approves ERC20 tokens to Marketplace - Bidder signs a bid for the auction - If owner approves the bid, signs it back and retrieve to bidder - Anyone with both signatures can settle the transaction, the owner takes the ERC20 whilst the bidder takes the NFT.
avatar

Senior Blockchain Backend Developer

Interviewed at Rather Labs

3.8
Aug 22, 2022

In this case you are tasked with designing and building a simple off-chain system and the on-chain smart-contract to enable cheap auctions. The goal is to enable trades between an ERC721 and a ERC20 with a single on-chain transaction. The auctions should work as follows: - Owner of the NFT approves all NFT’s to the Marketplace - Owner of the NFT signs to create an off-chain auction listing with a minimum price - Bidder approves ERC20 tokens to Marketplace - Bidder signs a bid for the auction - If owner approves the bid, signs it back and retrieve to bidder - Anyone with both signatures can settle the transaction, the owner takes the ERC20 whilst the bidder takes the NFT.

Phase 2 (API Design/System Design) 5. We have a table with two columns: driver_id and phone_no. The table contains 1-10 Lakhs of data(by that he meant a huge deal). Given the driver_id as a parameter, design an API to send text messages to drivers. The api gets 5 calls/sec (which is huge according to him). Ans: i. As the driver_id is the primary key here, we can fetch the respective row from the database using that. ii. But the database is huge. So, is it good to call the DB everytime we get an API call? (Followup Question) iii. Okay in that case we can use caching to cache frequently called driver_ids. iv. How can we do that? (Followup Question) v. Well, maybe we can use a dictionary to save the frequently called driver_id, phone_no. vi. So, you mean in memory DB? (Followup Question) vii. Yes. viii. But maybe our service is running on three different servers. How would you handle that? (Followup Question) ix. Well, in that case maybe we can use a caching DB like Redis. So, we may be able to call it from any server. x. But the API gets a hit of 5/sec. It’ll still perform poorly. How can we solve this issue? (Followup Question) xi. After thinking for a moment I said, sorry, no idea. xii. Haven’t you used async programming? We can use async to handle multiple requests at a time! (Answered himself as I got stuck)

Backend Software Engineer

Interviewed at Pathao

3.7
Sep 13, 2021

Phase 2 (API Design/System Design) 5. We have a table with two columns: driver_id and phone_no. The table contains 1-10 Lakhs of data(by that he meant a huge deal). Given the driver_id as a parameter, design an API to send text messages to drivers. The api gets 5 calls/sec (which is huge according to him). Ans: i. As the driver_id is the primary key here, we can fetch the respective row from the database using that. ii. But the database is huge. So, is it good to call the DB everytime we get an API call? (Followup Question) iii. Okay in that case we can use caching to cache frequently called driver_ids. iv. How can we do that? (Followup Question) v. Well, maybe we can use a dictionary to save the frequently called driver_id, phone_no. vi. So, you mean in memory DB? (Followup Question) vii. Yes. viii. But maybe our service is running on three different servers. How would you handle that? (Followup Question) ix. Well, in that case maybe we can use a caching DB like Redis. So, we may be able to call it from any server. x. But the API gets a hit of 5/sec. It’ll still perform poorly. How can we solve this issue? (Followup Question) xi. After thinking for a moment I said, sorry, no idea. xii. Haven’t you used async programming? We can use async to handle multiple requests at a time! (Answered himself as I got stuck)

Viewing 5161 - 5170 interview questions

Glassdoor has 12,383 interview questions and reports from Lead backend developer interviews. Prepare for your interview. Get hired. Love your job.