/ QUESTION BANK

Real questions. From real interviews.

Filter by track, sub-track, difficulty and company. Click any question to start a mock.

1000 questionsPage 1 of 20
HardJavaScriptfrontend

How would you implement a Promise polyfill?

How would you implement a Promise polyfill?

HardJavaScriptfrontend

How would you implement Promise.all() from scratch?

How would you implement Promise.all() from scratch?

MediumJavaScriptfrontend

Why doesn't async/await automatically run code in parallel?

Why doesn't async/await automatically run code in parallel?

MediumJavaScriptfrontend

What's the difference between Promise.all(), Promise.race(), Promise.any(), and Promise.allSettled()?

What's the difference between Promise.all(), Promise.race(), Promise.any(), and Promise.allSettled()?

MediumJavaScriptfrontend

What does .then() return?

What does .then() return?

MediumJavaScriptfrontend

Why does an async function always return a Promise?

Why does an async function always return a Promise?

MediumJavaScriptfrontend

What's the difference between microtasks and macrotasks?

What's the difference between microtasks and macrotasks?

MediumJavaScriptfrontend

Why does Promise.then() run before setTimeout(..., 0)?

Why does Promise.then() run before setTimeout(..., 0)?

MediumJavaScriptfrontend

Why is class just syntactic sugar over prototypes?

Why is class just syntactic sugar over prototypes?

MediumJavaScriptfrontend

Why can't arrow functions be used as constructors?

Why can't arrow functions be used as constructors?

HardJavaScriptfrontend

How would you implement an LRU Cache?

How would you implement an LRU Cache?

MediumJavaScriptfrontend

What happens during the Creation Phase of the Execution Context?

What happens during the Creation Phase of the Execution Context?

MediumJavaScriptfrontend

How does this work in default, implicit, explicit, and new binding?

How does this work in default, implicit, explicit, and new binding?

HardJavaScriptfrontend

How many closures are created in nested functions?

How many closures are created in nested functions?

HardJavaScriptfrontend

Why does typeof sometimes throw a ReferenceError?

Why does typeof sometimes throw a ReferenceError?

MediumJavaScriptfrontend

How does JavaScript find a variable? (Lexical Scope and the Scope Chain)

How does JavaScript find a variable? (Lexical Scope and the Scope Chain)

HardJavaScriptfrontend

How would you deep clone an object with circular references?

How would you deep clone an object with circular references?

HardVector Databasesdatabase

Explain how you would benchmark and compare the performance of two vector DB solutions (e.g., Pinecone vs.…

Explain how you would benchmark and compare the performance of two vector DB solutions (e.g., Pinecone vs. Milvus) for a real-time image similarity service, including dataset preparation, query patterns, and cost analysis.

HardVector Databasesdatabase

How would you design a scalable vector similarity search pipeline that handles 10M+ high-dimensional embedd…

How would you design a scalable vector similarity search pipeline that handles 10M+ high-dimensional embeddings per day while guaranteeing sub-second latency for top-k retrieval?

HardVector Databasesdatabase

In a multi-tenant SaaS product, what strategies would you employ to isolate and secure each tenant's vector…

In a multi-tenant SaaS product, what strategies would you employ to isolate and secure each tenant's vector index while still sharing underlying hardware resources?

HardVector Databasesdatabase

Explain how you would combine approximate nearest neighbor (ANN) algorithms (e.g., HNSW, IVF-PQ) with a fal…

Explain how you would combine approximate nearest neighbor (ANN) algorithms (e.g., HNSW, IVF-PQ) with a fallback exact search to meet both speed and recall requirements in a recommendation system.

HardVector Databasesdatabase

Describe a production-grade data ingestion workflow that continuously updates embeddings from a streaming s…

Describe a production-grade data ingestion workflow that continuously updates embeddings from a streaming source (Kafka) into a vector DB without causing index corruption or downtime.

HardVector Databasesdatabase

How can you implement dynamic re-ranking that merges traditional BM25 scores with dense vector similarity s…

How can you implement dynamic re-ranking that merges traditional BM25 scores with dense vector similarity scores in real time, and what trade-offs does this introduce?

HardVector Databasesdatabase

Discuss the impact of dimensionality reduction techniques (e.g., PCA, UMAP) on index size and query accurac…

Discuss the impact of dimensionality reduction techniques (e.g., PCA, UMAP) on index size and query accuracy when storing billions of vectors — when would you apply them, and how would you validate the loss of information?

HardVector Databasesdatabase

What monitoring metrics and alerting thresholds would you set up to detect vector drift or degradation in s…

What monitoring metrics and alerting thresholds would you set up to detect vector drift or degradation in similarity quality over time?

HardVector Databasesdatabase

Propose a cost-effective strategy to shard a large vector index across multiple geographic regions while pr…

Propose a cost-effective strategy to shard a large vector index across multiple geographic regions while preserving global nearest-neighbor semantics.

HardVector Databasesdatabase

How would you integrate role-based access control (RBAC) and field-level encryption into a vector database…

How would you integrate role-based access control (RBAC) and field-level encryption into a vector database that stores sensitive user embeddings?

HardVector Databasesdatabase

Outline a CI/CD pipeline for deploying schema migrations (e.g., adding new metadata fields) to a live vecto…

Outline a CI/CD pipeline for deploying schema migrations (e.g., adding new metadata fields) to a live vector index without interrupting ongoing search queries.

HardVector Databasesdatabase

In a hybrid search scenario, how would you architect a system that simultaneously supports keyword, hybrid,…

In a hybrid search scenario, how would you architect a system that simultaneously supports keyword, hybrid, and pure vector queries while maintaining a single API surface?

HardLangGraphai

How do you implement a supervisor agent in LangGraph?

How do you implement a supervisor agent in LangGraph?

HardLangGraphai

What are the main multi-agent patterns in LangGraph?

What are the main multi-agent patterns in LangGraph?

HardLangGraphai

How do you implement a tool that modifies graph state directly?

How do you implement a tool that modifies graph state directly?

MediumLangGraphai

How do you bind tools to an LLM in LangGraph?

How do you bind tools to an LLM in LangGraph?

MediumLangGraphai

What is create_react_agent and when should you use it vs building a custom graph?

What is create_react_agent and when should you use it vs building a custom graph?

HardLangGraphai

How do you implement parallel tool execution in LangGraph?

How do you implement parallel tool execution in LangGraph?

MediumLangGraphai

How do you handle tool errors in LangGraph?

How do you handle tool errors in LangGraph?

MediumLangGraphai

What is a ToolNode and how does it work?

What is a ToolNode and how does it work?

MediumLangGraphai

What is the difference between interrupt_before and interrupt_after?

What is the difference between interrupt_before and interrupt_after?

MediumLangGraphai

How do you resume a graph after a human-in-the-loop interrupt?

How do you resume a graph after a human-in-the-loop interrupt?

HardLangGraphai

What is the interrupt() function and how does it differ from compile-time interrupts?

What is the interrupt() function and how does it differ from compile-time interrupts?

MediumLangGraphai

How do you implement human-in-the-loop in LangGraph?

How do you implement human-in-the-loop in LangGraph?

HardLangGraphai

How do you implement cross-thread memory (shared state across conversations)?

How do you implement cross-thread memory (shared state across conversations)?

HardLangGraphai

What is checkpoint_ns and when does it matter?

What is checkpoint_ns and when does it matter?

MediumLangGraphai

How do you update state manually between graph invocations?

How do you update state manually between graph invocations?

HardLangGraphai

How does time-travel work in LangGraph?

How does time-travel work in LangGraph?

MediumLangGraphai

Explain the concept of checkpoints, threads, and runs in LangGraph.

Explain the concept of checkpoints, threads, and runs in LangGraph.

MediumLangGraphai

What is a thread_id and how does it relate to checkpointing?

What is a thread_id and how does it relate to checkpointing?

MediumLangGraphai

What checkpointer backends does LangGraph support?

What checkpointer backends does LangGraph support?

MediumLangGraphai

What is a checkpointer in LangGraph and why is it critical?

What is a checkpointer in LangGraph and why is it critical?

MediumLangGraphai

What is a conditional edge and how do you implement one?

What is a conditional edge and how do you implement one?