General Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

168 real interview questions asked at General. Covers Snowflake / Snowpipe, Snowflake / Time Travel, Snowflake / Fail-safe, Snowflake / Zero Copy Cloning, Snowflake / Data Quality, Snowflake / Performance Tuning, Snowflake / Architecture, Snowflake / Concepts, React / State Management, React / Complex UI, Node.js / WebSocket, SQL / Multi-tenancy, SQL / Concurrency, SQL / Transactions, Python / Memory, Python / Data Pipeline, Python / Caching, AWS / ECS, AWS / RDS, AWS / Architecture, Kafka / Consumer, TypeScript / Type System, MongoDB / Indexing, MongoDB / Schema Design, MongoDB / Write Concern, Security / SQL Injection, Behavioral / Ethics, Behavioral / Estimation, React / Micro Frontend, React / React Query, React / SSR, React / Performance, Python / Django, Python / Performance, Python / Celery, Python / Data Handling, Python / Multiprocessing, SQL / Data Warehousing, SQL / Database Theory, SQL / Schema Design, AWS / S3, AWS / Event Processing, AWS / VPC, AWS / Security, AWS / Serverless, AWS / Auto Scaling, AWS / CDN, AWS / SQS, DevOps / Kubernetes, DevOps / CI/CD, DevOps / Helm, DevOps / Docker, Kafka / Consumer Groups, Kafka / Partitioning, Kafka / Ordering, Kafka / Performance, Kafka / Durability, Security / IDOR, Security / Incident Response, Security / Secrets Management, System Design / Real-time ML, TypeScript / Type Safety, TypeScript / Utility Types, TypeScript / Runtime Errors, MongoDB / Aggregation, MongoDB / Internals, React / Next.js App Router, React / CSS-in-JS, React / UX Patterns, Node.js / Architecture, Node.js / Streams, SQL / Database Architecture, SQL / Hierarchical Data, SQL / PostgreSQL Internals, SQL / Full Text Search, AWS / Lambda Networking, AWS / Data Lake, AWS / S3 Cost, AWS / CloudFormation, Security / Incident, DevOps / Incident, SQL / Disaster Recovery, SQL / Performance, Security / Session Hijacking, Python / Performance Optimization, Redis / TTL, Redis / Data Structures, Elasticsearch / Cluster Health, Elasticsearch / Performance, Elasticsearch / Query Types, Elasticsearch / Index Management, GraphQL / Real-time, GraphQL / Schema Evolution, Data Engineering / Exactly Once, Data Engineering / Data Modeling, Data Engineering / Spark, Data Engineering / Architecture, Data Engineering / Data Quality, Data Engineering / ML Pipeline, React / Hydration, React / Patterns, React / Build Optimization, React / Architecture, Node.js / Core, Python / Memory Optimization, Python / Data Processing, DevOps / Terraform, DevOps / AWS Lambda, SQL / PostgreSQL, AWS / Lambda, AWS / Load Balancing, AWS / IAM, AWS / Networking, AWS / Container Orchestration, GraphQL / Performance, GraphQL / Core Concepts, GraphQL / Security, GraphQL / Client Patterns, Elasticsearch / Mapping, Data Engineering / Orchestration, Data Engineering / Processing, Data Engineering / Storage, TypeScript / Advanced Types, Architecture / Documentation, React / Next.js, PySpark / Core Concepts, PySpark / Optimization, PySpark / Debugging, PySpark / Caching, PySpark / Coding, Airflow / Scheduling, Airflow / Security, Airflow / Task Communication, Airflow / Backfill, Web / WebAssembly, Architecture / Multi-tenancy, Behavioral / Agile, GraphQL / Architecture, Python / Pandas. Reported by engineers who went through the General process.

Questions Interview GuidesInterview GuidesInterview Guides
168 questions
5116 engineers asked
7759 upvotes

Snowflake / Snowpipe (1)

General Medium Scenario round 5–8 YearsSnowflakeAWS S3Python

A file lands in AWS S3 and must be ingested into Snowflake automatically in near real-time. How would you design the solution? Explain the role of Snowpipe, event notifications, and the ingestion workflow.

↑ 67 upvotes · 48 engineers asked this · Data Engineer

Snowflake / Time Travel (1)

General Medium Scenario round 5–8 YearsSnowflakeSQL

A production table was accidentally deleted 2 hours ago. How would you recover the data using Snowflake Time Travel?

↑ 79 upvotes · 57 engineers asked this · Data Engineer

Snowflake / Fail-safe (1)

General Hard Scenario round 5–8 YearsSnowflakeSQL

A critical table was dropped 10 days ago and the Time Travel retention period has expired. What recovery options are available? Explain how Fail-safe works and its limitations.

↑ 61 upvotes · 44 engineers asked this · Data Engineer

Snowflake / Zero Copy Cloning (1)

General Medium Scenario round 5–8 YearsSnowflakeSQL

Your team needs a test environment containing production data without duplicating storage costs. How would you use Zero Copy Cloning and what are its benefits and limitations?

↑ 72 upvotes · 51 engineers asked this · Data Engineer

Snowflake / Data Quality (1)

General Hard Scenario round 5–8 YearsSnowflakeSQLPython

Snowpipe is ingesting duplicate records from cloud storage. How would you detect, prevent, and remediate duplicate data in Snowflake?

↑ 83 upvotes · 59 engineers asked this · Data Engineer

Snowflake / Performance Tuning (1)

General Hard Scenario round 5–8 YearsSnowflakeSQLPython

A query that previously completed in 2 minutes now takes 20 minutes. Describe your systematic approach to troubleshooting and optimizing performance in Snowflake.

↑ 91 upvotes · 65 engineers asked this · Data Engineer

Snowflake / Architecture (2)

General Hard Scenario round 5–8 YearsSnowflakePySparkAirflow

Design an end-to-end data pipeline using Python, PySpark, Snowflake, Airflow, and AWS S3. Explain data flow, orchestration, monitoring, and failure handling.

↑ 87 upvotes · 62 engineers asked this · Data Engineer
General Medium Screening round 2-5 years

What is Snowflake's virtual warehouse concept and how does credit consumption work?

↑ 9 upvotes · 37 engineers asked this · SDE2

Snowflake / Concepts (4)

General Medium Scenario round 5–8 YearsSnowflakeSQL

Compare Snowpipe and COPY INTO. When would you choose one over the other?

↑ 68 upvotes · 49 engineers asked this · Data Engineer
General Medium Scenario round 5–8 YearsSnowflakeSQL

Compare Time Travel and Fail-safe in Snowflake. What are the key differences and use cases for each?

↑ 64 upvotes · 46 engineers asked this · Data Engineer
General Medium Scenario round 5–8 YearsSnowflakeSQL

Compare Temporary, Transient, and Permanent tables in Snowflake. When would each table type be appropriate?

↑ 71 upvotes · 52 engineers asked this · Data Engineer
General Medium Scenario round 5–8 YearsSnowflakeSQL

Compare Streams and Tasks in Snowflake. How do they work together to support Change Data Capture (CDC) workflows?

↑ 77 upvotes · 55 engineers asked this · Data Engineer

React / State Management (3)

General Medium System Design round 3-5 years

Your team is arguing about whether to use Context API or Redux for a mid-sized app with 15 screens. Some data is global (user auth), some is page-level. Make the architecture decision and justify it.

↑ 60 upvotes · 28 engineers asked this · SDE2
General Hard System Design round 4-7 years

How would you implement a 'undo/redo' feature in a complex React form with 20 fields?

↑ 19 upvotes · 47 engineers asked this · SDE2
General Medium System Design round 2-5 years

How do you implement dark mode in a React app that persists across refreshes, respects OS preference, and allows manual override?

↑ 82 upvotes · 20 engineers asked this · SDE2

React / Complex UI (2)

General Hard System Design round 4-8 years

You're asked to build a drag-and-drop kanban board in React. The board has 10 columns and potentially 1000 cards total. Describe your complete implementation approach including performance considerations.

↑ 65 upvotes · 33 engineers asked this · SDE2
General Hard System Design round 4-8 years

You need to build a data table with sorting, filtering, pagination, and column resizing for 100 columns and 10,000 rows. Describe your complete technical approach.

↑ 57 upvotes · 15 engineers asked this · SDE2

Node.js / WebSocket (1)

General Hard System Design round 5-8 years

You're building a WebSocket server in Node.js that needs to broadcast messages to 50,000 concurrent connections. A naive broadcast loops through all 50,000 and calls socket.send(). What's wrong with this and how do you fix it?

↑ 79 upvotes · 47 engineers asked this · SDE2

SQL / Multi-tenancy (1)

General Hard System Design round 5-9 years

Design a schema to support a multi-tenant SaaS application where each tenant has its own isolated data. Compare row-level isolation, schema-per-tenant, and database-per-tenant. When would you choose each?

↑ 8 upvotes · 6 engineers asked this · Staff

SQL / Concurrency (1)

General Hard Technical round 4-8 years

A stored procedure runs fine in isolation but causes deadlocks when called concurrently by 50 threads. The procedure does: UPDATE accounts, then UPDATE transactions. Another procedure does the same in reverse order. What's happening and how do you fix it?

↑ 10 upvotes · 8 engineers asked this · SDE2

SQL / Transactions (1)

General Medium Screening round 2-5 years

Explain what happens step by step when you run: BEGIN; UPDATE accounts SET balance = balance - 100 WHERE id = 1; -- crash here. And why this matters for your application design.

↑ 15 upvotes · 13 engineers asked this · SDE2

Python / Memory (2)

General Hard Scenario round 2-5 years

You have a Python script that processes 1 million records from a database. It loads all records into a list, processes each, then writes results. Memory usage hits 16GB and the OS kills it. Fix this without changing the database schema.

↑ 38 upvotes · 36 engineers asked this · SDE2
General Hard Technical round 3-6 years

Your Python service deployed in Docker shows 10% more memory usage after each deployment with no code changes. What do you investigate?

↑ 42 upvotes · 10 engineers asked this · SDE2

Python / Data Pipeline (1)

General Hard System Design round 4-7 years

You're building a data pipeline in Python that processes streaming data. The pipeline has 5 stages. How do you ensure a failure in stage 3 doesn't lose data already processed by stages 1 and 2?

↑ 41 upvotes · 39 engineers asked this · SDE2

Python / Caching (1)

General Medium Scenario round 3-5 years

Your Python application has a function that should cache results but the @functools.lru_cache decorator is causing memory issues. Objects cached are large DataFrames. How do you implement a size-bounded cache?

↑ 42 upvotes · 40 engineers asked this · SDE2

AWS / ECS (1)

General Hard Technical round 3-7 years

You deploy a new version of your service on ECS Fargate. The deployment causes 2 minutes of 503 errors despite a rolling update configuration. What are the likely causes?

↑ 44 upvotes · 42 engineers asked this · SDE2

AWS / RDS (2)

General Hard Technical round 3-7 years

Your RDS MySQL instance CPU hits 100% every day between 2-4 PM. Your application traffic is steady. What are the most likely causes and how do you investigate?

↑ 45 upvotes · 43 engineers asked this · SDE2
General Hard Scenario round 3-6 years

Your RDS instance hits 100% CPU during peak hours. Queries are optimized. What are your scaling options?

↑ 29 upvotes · 27 engineers asked this · SDE2

AWS / Architecture (1)

General Hard System Design round 5-9 years

Design a data architecture on AWS for a startup that needs to: store raw events, run real-time analytics, run daily batch reports, and serve an API with sub-10ms response time.

↑ 46 upvotes · 44 engineers asked this · Staff

Kafka / Consumer (1)

General Hard Scenario round 4-7 years

You're consuming from a Kafka topic with 50 million messages backlog. Your consumer needs to catch up without overwhelming your database. How do you design the catch-up strategy?

↑ 59 upvotes · 7 engineers asked this · SDE2

TypeScript / Type System (3)

General Hard Technical round 3-6 years

You have a TypeScript function that accepts a union type of 10 different shapes. You use instanceof checks that work in tests but fail in production after webpack bundling. Why?

↑ 60 upvotes · 8 engineers asked this · SDE2
General Medium Screening round 2-5 years

Explain the difference between 'unknown' and 'any' in TypeScript. When would using 'any' be a valid technical choice rather than a code smell?

↑ 61 upvotes · 9 engineers asked this · SDE2
General Hard Screening round 3-6 years

Explain TypeScript's structural typing. How does it differ from nominal typing and why does it sometimes cause unexpected behavior?

↑ 55 upvotes · 3 engineers asked this · SDE2

MongoDB / Indexing (1)

General Hard Technical round 3-6 years

Your MongoDB collection has 50 million documents. A query filtering on a nested array field is doing a full collection scan despite having an index on that field. What's likely wrong?

↑ 63 upvotes · 11 engineers asked this · SDE2

MongoDB / Schema Design (1)

General Hard System Design round 4-7 years

Design a MongoDB schema for a chat application. Messages belong to conversations. Users can be in many conversations. You need to query: all messages in a conversation (paginated), all conversations for a user (sorted by latest message).

↑ 64 upvotes · 12 engineers asked this · SDE2

MongoDB / Write Concern (1)

General Hard Scenario round 4-8 years

Your MongoDB write throughput dropped 80% after enabling journaling and write concern w:majority. Explain what each does and propose a solution that maintains durability without killing performance.

↑ 65 upvotes · 13 engineers asked this · SDE2

Security / SQL Injection (1)

General Hard Technical round 3-7 years

A security audit finds that your Node.js API is vulnerable to SQL injection despite using parameterized queries everywhere. How is this possible?

↑ 66 upvotes · 14 engineers asked this · SDE2

Behavioral / Ethics (1)

General Hard HR round 3-10 years

Your team is two days before launch. A junior developer finds a critical security vulnerability in the payment flow. Fixing it will delay launch by a week. Your manager says 'we'll fix it after launch.' What do you do?

↑ 71 upvotes · 19 engineers asked this · Staff

Behavioral / Estimation (1)

General Hard HR round 3-8 years

You've been asked to estimate a project that you've never done before. Your manager needs a number by end of day. The project could take 2 weeks or 6 months depending on unknowns. How do you handle this?

↑ 73 upvotes · 21 engineers asked this · SDE2

React / Micro Frontend (1)

General Hard System Design round 6-10 years

You're building a micro-frontend architecture where 5 teams ship independent React apps that compose into one shell. How do you handle shared state, shared dependencies (avoid duplicate React), and routing?

↑ 11 upvotes · 39 engineers asked this · Staff

React / React Query (2)

General Medium Technical round 2-5 years

Your React app uses React Query. Users complain data is always stale — they update a record and the list still shows old data. What's the correct fix and what are the tradeoffs?

↑ 12 upvotes · 40 engineers asked this · SDE2
General Medium Screening round 2-5 years

What is React Query's staleTime vs cacheTime? Explain with a scenario where misconfiguring them causes UX problems.

↑ 9 upvotes · 27 engineers asked this · SDE2

React / SSR (1)

General Hard System Design round 5-9 years

Your team wants to add server-side rendering to an existing client-side React app. What are the actual technical challenges beyond 'just use Next.js'?

↑ 15 upvotes · 43 engineers asked this · Staff

React / Performance (2)

General Hard System Design round 4-8 years

A designer hands you a Figma design for an animated dashboard with 20 charts updating every second from WebSocket. How do you architect the React side to prevent the entire dashboard from re-rendering on each update?

↑ 16 upvotes · 44 engineers asked this · SDE2
General Medium HR round 3-6 years

A PM asks you to add Google Analytics and 3 other tracking scripts to your React app. You know this will hurt Core Web Vitals. How do you push back with data and propose a solution?

↑ 56 upvotes · 14 engineers asked this · SDE2

Python / Django (1)

General Hard Scenario round 3-6 years

Your Django REST API has an endpoint that calls 3 external services sequentially, each taking ~500ms. Total response time is ~1.5 seconds. How do you parallelize these calls?

↑ 35 upvotes · 13 engineers asked this · SDE2

Python / Performance (1)

General Hard Scenario round 3-6 years

You have a Python function that runs in 30 seconds. A profiler shows 90% of time is in one NumPy operation on a 10,000 x 10,000 matrix. How do you make it faster?

↑ 39 upvotes · 17 engineers asked this · SDE2

Python / Celery (1)

General Hard Technical round 3-6 years

Your Celery worker is processing tasks but tasks take 10 minutes each and the beat scheduler keeps adding duplicates because the first hasn't finished. Fix this.

↑ 40 upvotes · 18 engineers asked this · SDE2

Python / Data Handling (1)

General Medium Scenario round 2-4 years

Your Python service handles JSON data from multiple sources. Some send {'amount': '100.50'}, others send {'amount': 100.50}. Your code crashes intermittently when doing arithmetic. Fix this robustly.

↑ 42 upvotes · 20 engineers asked this · SDE2

Python / Multiprocessing (1)

General Hard Scenario round 4-8 years

You're using Python multiprocessing and processes need to share a large dictionary (2GB) read-only. Creating copies per process uses 20GB total. How do you share memory efficiently?

↑ 43 upvotes · 21 engineers asked this · SDE2

SQL / Data Warehousing (1)

General Hard System Design round 4-8 years

You have a slowly changing dimension in a data warehouse. Employee department changes over time and you need to query 'what department was this employee in on date X?' Design the table.

↑ 46 upvotes · 24 engineers asked this · SDE2

SQL / Database Theory (1)

General Medium Screening round 2-5 years

Explain ACID properties with a real banking transaction example. Which property does READ COMMITTED isolation level sacrifice?

↑ 53 upvotes · 31 engineers asked this · SDE2

SQL / Schema Design (1)

General Hard System Design round 4-8 years

You're designing a database for an online exam system. 10,000 students take an exam simultaneously. Each student answers 50 questions. Design the schema and identify the hot spots.

↑ 54 upvotes · 32 engineers asked this · SDE2

AWS / S3 (3)

General Hard Technical round 3-7 years

Your S3 bucket is being charged for 500TB of storage but your application only stores 100TB. Where is the rest coming from and how do you find and fix it?

↑ 55 upvotes · 33 engineers asked this · SDE2
General Hard Technical round 2-5 years

Your S3 bucket is publicly accessible and contains sensitive data. You turned on Block Public Access but users say the data is still accessible. Why?

↑ 24 upvotes · 22 engineers asked this · SDE2
General Medium Screening round 2-5 years

Explain S3 storage classes and how to set up lifecycle policies to optimize costs.

↑ 27 upvotes · 25 engineers asked this · SDE2

AWS / Event Processing (1)

General Hard System Design round 4-8 years

You need to process S3 files as soon as they're uploaded. Files come in bursts of 10,000 per hour. How do you architect this?

↑ 56 upvotes · 34 engineers asked this · SDE2

AWS / VPC (1)

General Medium Screening round 3-7 years

Explain the difference between NAT Gateway, Internet Gateway, and VPC Endpoints. When does each one make sense?

↑ 57 upvotes · 35 engineers asked this · SDE2

AWS / Security (2)

General Hard Scenario round 2-6 years

Your Lambda function needs credentials to access an RDS database. A developer hardcoded the password in environment variables. What's the correct approach?

↑ 58 upvotes · 36 engineers asked this · SDE2
General Medium Screening round 2-6 years

Explain how AWS IAM roles vs users vs policies work. Why should applications NEVER use IAM users with access keys?

↑ 11 upvotes · 49 engineers asked this · SDE2

AWS / Serverless (1)

General Hard System Design round 4-8 years

Design a serverless architecture for an API that: handles 10K req/sec at peak, has sub-100ms response, costs near-zero at zero traffic.

↑ 59 upvotes · 37 engineers asked this · SDE2

AWS / Auto Scaling (1)

General Hard Scenario round 3-7 years

Your EC2 instances are running at 90% CPU. Auto Scaling adds instances but they're not receiving traffic fast enough — users still see errors for 3 minutes during scale-out. How do you fix this?

↑ 60 upvotes · 38 engineers asked this · SDE2

AWS / CDN (2)

General Medium Technical round 2-5 years

Explain how CloudFront caching works. A developer updates an S3 file but users still see the old version for 24 hours. Fix this correctly.

↑ 61 upvotes · 39 engineers asked this · SDE2
General Medium Screening round 2-5 years

What is CloudFront? How does it reduce origin load and what cache behaviors can you configure?

↑ 26 upvotes · 24 engineers asked this · SDE2

AWS / SQS (2)

General Medium Screening round 2-5 years

Your team is debating between SQS Standard and SQS FIFO queues. List the actual tradeoffs with numbers.

↑ 62 upvotes · 40 engineers asked this · SDE2
General Medium Screening round 2-5 years

Explain the difference between AWS SQS Standard and FIFO queues. When would you choose each?

↑ 20 upvotes · 18 engineers asked this · SDE2

DevOps / Kubernetes (2)

General Hard Technical round 3-7 years

Your Kubernetes deployment has rollingUpdate maxUnavailable:0 and maxSurge:1. A new deployment is stuck at 1/2 pods ready and never completes. What's happening?

↑ 63 upvotes · 41 engineers asked this · SDE2
General Hard Scenario round 3-7 years

You need to run a database migration before deploying your new application version in Kubernetes. How do you handle this safely?

↑ 65 upvotes · 43 engineers asked this · SDE2

DevOps / CI/CD (1)

General Hard Scenario round 3-7 years

Your CI/CD pipeline takes 45 minutes. Developers complain. Break down how you'd systematically reduce it to under 10 minutes.

↑ 66 upvotes · 44 engineers asked this · SDE2

DevOps / Helm (1)

General Medium Screening round 2-5 years

Explain how Helm works in Kubernetes. What problem does it solve that kubectl apply doesn't?

↑ 67 upvotes · 45 engineers asked this · SDE2

DevOps / Docker (1)

General Hard Technical round 3-6 years

A Docker container is using 100% of its CPU allocation and throttling. The app inside is single-threaded. Adding more CPU limit doesn't help. What's the root cause?

↑ 68 upvotes · 46 engineers asked this · SDE2

Kafka / Consumer Groups (1)

General Hard Screening round 3-7 years

Explain Kafka's consumer group rebalancing. What triggers it and what are the performance implications?

↑ 70 upvotes · 48 engineers asked this · SDE2

Kafka / Partitioning (1)

General Medium Screening round 2-5 years

Your Kafka topic has 10 partitions. You scale your consumer group from 10 to 20 instances. What happens?

↑ 71 upvotes · 49 engineers asked this · SDE2

Kafka / Ordering (1)

General Hard System Design round 4-8 years

You need to process Kafka messages in exactly the order they were produced for each user, but process different users in parallel. How do you configure this?

↑ 72 upvotes · 50 engineers asked this · SDE2

Kafka / Performance (1)

General Hard Scenario round 3-7 years

Kafka consumer is falling behind (lag growing). Processing is in a tight loop with no I/O. How do you increase throughput?

↑ 73 upvotes · 51 engineers asked this · SDE2

Kafka / Durability (1)

General Hard Screening round 4-8 years

How does Kafka guarantee message durability? What configuration ensures messages are not lost even if a broker crashes mid-write?

↑ 74 upvotes · 52 engineers asked this · SDE2

Security / IDOR (1)

General Medium Screening round 2-5 years

Your API returns user data based on a user ID in the URL: GET /api/users/123/profile. A user changes 123 to 124 and sees someone else's profile. What vulnerability is this and how do you fix it?

↑ 75 upvotes · 3 engineers asked this · SDE2

Security / Incident Response (2)

General Hard Scenario round 3-7 years

You find a log file containing plaintext credit card numbers. What immediate steps do you take and in what order?

↑ 77 upvotes · 5 engineers asked this · SDE2
General Hard Scenario round 2-7 years

A junior developer on your team committed an API key to a public GitHub repository 3 days ago. What do you do?

↑ 11 upvotes · 19 engineers asked this · SDE2

Security / Secrets Management (1)

General Medium Screening round 2-6 years

How do you securely store API keys that your application needs to call third-party services? Compare 4 approaches.

↑ 78 upvotes · 6 engineers asked this · SDE2

System Design / Real-time ML (1)

General Hard System Design round 6-10 years

Design a system that detects fraudulent credit card transactions in real-time (decision in under 50ms). The system processes 10,000 transactions per second.

↑ 81 upvotes · 9 engineers asked this · Staff

TypeScript / Type Safety (1)

General Medium Technical round 2-5 years

You have a TypeScript codebase where a function returns string | undefined. Throughout the codebase, developers use the ! non-null assertion operator everywhere. Why is this a code smell?

↑ 5 upvotes · 13 engineers asked this · SDE2

TypeScript / Utility Types (1)

General Medium Screening round 2-5 years

Explain the TypeScript utility types: Partial<T>, Required<T>, Pick<T,K>, Omit<T,K>, and Record<K,V>. Give a real use case for each.

↑ 6 upvotes · 14 engineers asked this · SDE2

TypeScript / Runtime Errors (1)

General Hard Technical round 3-6 years

Your TypeScript code compiles fine but throws 'Cannot read property X of undefined' at runtime. How is this possible in a strictly typed TypeScript codebase?

↑ 9 upvotes · 17 engineers asked this · SDE2

MongoDB / Aggregation (1)

General Hard Technical round 3-7 years

You have a MongoDB aggregation pipeline that runs for 30 seconds on a collection with 10 million documents. How do you optimize it?

↑ 10 upvotes · 18 engineers asked this · SDE2

MongoDB / Internals (1)

General Hard Screening round 4-8 years

Explain MongoDB's WiredTiger storage engine. How does its document-level locking differ from earlier MMAPv1 collection-level locking?

↑ 11 upvotes · 19 engineers asked this · SDE2

React / Next.js App Router (1)

General Hard System Design round 4-8 years

Your Next.js app fetches user data in a Server Component. The data is user-specific so caching is tricky. How do you handle per-user caching without leaking data between users?

↑ 55 upvotes · 13 engineers asked this · SDE2

React / CSS-in-JS (1)

General Hard Technical round 4-8 years

Your React app uses CSS-in-JS (Styled Components). After migrating to Next.js App Router (Server Components), styles are missing on first render. Why?

↑ 59 upvotes · 17 engineers asked this · SDE2

React / UX Patterns (1)

General Medium System Design round 3-6 years

You're asked to implement 'skeleton loading' for a complex page with 5 different data sources. Each section should show a skeleton while its data loads, then transition smoothly. How?

↑ 60 upvotes · 18 engineers asked this · SDE2

Node.js / Architecture (3)

General Hard System Design round 3-7 years

You're building a Node.js API that needs to process uploaded images: resize to 3 formats, upload to S3, and update database. How do you design this for high throughput?

↑ 67 upvotes · 25 engineers asked this · SDE2
General Hard Scenario round 3-6 years

Your Node.js service sends 10K emails per hour. Email provider rate-limits at 100/second. How do you implement this without losing emails?

↑ 27 upvotes · 45 engineers asked this · SDE2
General Hard System Design round 3-7 years

Design a Node.js service that handles file uploads up to 500MB. Multiple instances run in containers. Where should uploaded files go?

↑ 30 upvotes · 48 engineers asked this · SDE2

Node.js / Streams (1)

General Hard Scenario round 3-6 years

Your Node.js app needs to tail a large log file (100GB, growing) and stream new lines to connected clients via WebSocket. How do you implement this efficiently?

↑ 73 upvotes · 31 engineers asked this · SDE2

SQL / Database Architecture (1)

General Medium Screening round 3-7 years

Explain the difference between OLTP and OLAP databases. Why can't you use the same database for both? What are the architectural alternatives?

↑ 75 upvotes · 33 engineers asked this · SDE2

SQL / Hierarchical Data (1)

General Hard System Design round 4-8 years

Design a schema for a multi-level referral system where tracking chains of 10+ levels is required, and you need to query 'who referred this user?' and 'who did this user refer?' efficiently.

↑ 77 upvotes · 35 engineers asked this · SDE2

SQL / PostgreSQL Internals (1)

General Hard Screening round 4-8 years

Explain PostgreSQL's MVCC (Multi-Version Concurrency Control). How does it enable concurrent reads and writes without blocking?

↑ 79 upvotes · 37 engineers asked this · SDE2

SQL / Full Text Search (1)

General Hard System Design round 4-7 years

You have a users table with 100M rows. You need to add a full-text search on the bio column (free text). Show how to implement this in PostgreSQL.

↑ 80 upvotes · 38 engineers asked this · SDE2

AWS / Lambda Networking (1)

General Hard Scenario round 3-7 years

Your Lambda function needs to access a VPC resource (RDS in private subnet) but also needs to call external APIs. What's the networking concern and how do you resolve it?

↑ 7 upvotes · 45 engineers asked this · SDE2

AWS / Data Lake (1)

General Hard System Design round 5-9 years

Design a data lake architecture on AWS that ingests both real-time streams and batch uploads, makes data queryable within 5 minutes, and costs less than $10K/month for 100TB.

↑ 8 upvotes · 46 engineers asked this · Staff

AWS / S3 Cost (1)

General Hard Technical round 3-7 years

You have an S3 bucket that's costing $5K/month just for PUT/GET requests. Traffic hasn't changed. What could cause a spike in request costs?

↑ 10 upvotes · 48 engineers asked this · SDE2

AWS / CloudFormation (1)

General Hard Scenario round 3-7 years

Your CloudFormation stack update fails and rolls back, leaving your application in a partially deployed state. How do you prevent this and handle it when it happens?

↑ 12 upvotes · 50 engineers asked this · SDE2

Security / Incident (1)

General Hard HR round 2-6 years

You join a company and find the main API has no authentication on 3 endpoints that return user PII. Your manager says 'it's legacy, we'll fix it later.' What do you do?

↑ 19 upvotes · 7 engineers asked this · SDE2

DevOps / Incident (1)

General Hard Scenario round 4-8 years

Your Kubernetes cluster is down. Entire production is offline. You have 15 minutes before CEO calls. What do you do?

↑ 23 upvotes · 11 engineers asked this · SDE2

SQL / Disaster Recovery (1)

General Hard Scenario round 3-8 years

A junior developer accidentally ran DROP TABLE orders in production. The table has 50M rows and no recent backup. The last backup is from 3 days ago. What do you do?

↑ 24 upvotes · 12 engineers asked this · SDE2

SQL / Performance (1)

General Hard Scenario round 3-7 years

A data analyst complains that a report that runs daily takes 8 hours but used to take 30 minutes, starting 2 weeks ago. Nothing changed in the report query. What do you investigate?

↑ 31 upvotes · 19 engineers asked this · SDE2

Security / Session Hijacking (1)

General Hard Scenario round 3-7 years

A user says they can log in to your app as another user by changing a value in their session cookie. How serious is this and what's your immediate response?

↑ 33 upvotes · 21 engineers asked this · SDE2

Python / Performance Optimization (1)

General Hard Technical round 3-6 years

Your Python script takes 10 minutes to process 1 million CSV rows. Profile shows 80% time is in a string parsing function. Rewrite this function for maximum performance.

↑ 36 upvotes · 24 engineers asked this · SDE2

Redis / TTL (1)

General Medium Technical round 2-5 years

You store user sessions in Redis with 2-hour TTL. Users complain they're logged out after 30 minutes of browsing. What's likely wrong?

↑ 49 upvotes · 37 engineers asked this · SDE2

Redis / Data Structures (1)

General Hard Scenario round 3-7 years

Your Redis sorted set is used for a leaderboard with 10 million players. ZRANGEBYSCORE queries are slow. How do you optimize?

↑ 52 upvotes · 40 engineers asked this · SDE2

Elasticsearch / Cluster Health (1)

General Medium Screening round 3-6 years

Your Elasticsearch cluster has 3 nodes. One node goes down. Searches return partial results (yellow status). Why not red? What's the difference?

↑ 54 upvotes · 42 engineers asked this · SDE2

Elasticsearch / Performance (1)

General Hard Scenario round 4-8 years

You're indexing 1 million documents per hour into Elasticsearch. Indexing is slow and search performance degrades during indexing. How do you fix this?

↑ 56 upvotes · 44 engineers asked this · SDE2

Elasticsearch / Query Types (1)

General Medium Screening round 2-5 years

Explain the difference between a term query and a match query in Elasticsearch. When does using a match query on an exact-match field cause incorrect results?

↑ 57 upvotes · 45 engineers asked this · SDE2

Elasticsearch / Index Management (1)

General Hard System Design round 4-8 years

Your Elasticsearch index is 500GB but only 10GB of data is actually queried (hot data from last 7 days). Cold data from older dates slows down all searches. How do you architect this?

↑ 58 upvotes · 46 engineers asked this · SDE2

GraphQL / Real-time (1)

General Hard System Design round 4-8 years

Should you use GraphQL subscriptions or WebSockets directly for real-time updates in a chat application? Compare the approaches.

↑ 62 upvotes · 50 engineers asked this · SDE2

GraphQL / Schema Evolution (1)

General Medium System Design round 3-6 years

Your GraphQL schema evolved and you need to deprecate a field. Old clients use it. New clients use the replacement. How do you handle this?

↑ 63 upvotes · 51 engineers asked this · SDE2

Data Engineering / Exactly Once (1)

General Hard System Design round 4-8 years

Your data pipeline reads from Kafka, transforms data, and writes to a data warehouse. On failure, it must resume from exactly where it left off, without duplicates or missing records. How?

↑ 65 upvotes · 3 engineers asked this · SDE2

Data Engineering / Data Modeling (3)

General Medium Screening round 3-7 years

Explain the difference between a star schema and a snowflake schema in a data warehouse. Which is better for query performance?

↑ 66 upvotes · 4 engineers asked this · SDE2
General Hard Screening round 3-7 years

What are slowly changing dimensions (SCD) in data warehousing? Explain Type 1, Type 2, and Type 3.

↑ 46 upvotes · 44 engineers asked this · SDE2
General Medium Screening round 3-6 years

What is a star schema vs snowflake schema in data modeling? Trade-offs?

↑ 48 upvotes · 46 engineers asked this · SDE2

Data Engineering / Spark (2)

General Hard Scenario round 3-7 years

You have a Spark job that runs fine on 1GB data but OOMs on 100GB. Your cluster has 20 nodes with 16GB each. How do you diagnose and fix this?

↑ 67 upvotes · 5 engineers asked this · SDE2
General Hard Technical round 4-7 years

You have a Spark job that processes 1TB of data. It runs fine for 900GB but fails with OOM on the remaining 100GB. Why?

↑ 49 upvotes · 47 engineers asked this · SDE2

Data Engineering / Architecture (4)

General Hard Screening round 4-8 years

Explain the CAP theorem in the context of choosing between Apache Kafka and a traditional database for event sourcing.

↑ 68 upvotes · 6 engineers asked this · SDE2
General Medium Screening round 2-5 years

Explain the difference between batch processing and stream processing. Can you use Spark for both?

↑ 70 upvotes · 8 engineers asked this · SDE2
General Medium Screening round 3-7 years

What is a data lakehouse and how does it differ from a data lake + data warehouse architecture?

↑ 72 upvotes · 10 engineers asked this · SDE2
General Medium Screening round 3-6 years

Explain the differences between a Data Warehouse, Data Lake, and Data Lakehouse architecture.

↑ 43 upvotes · 41 engineers asked this · SDE2

Data Engineering / Data Quality (1)

General Hard Scenario round 3-7 years

Your data warehouse query returns the wrong totals for a report. The same query on raw data shows different numbers. How do you investigate this?

↑ 69 upvotes · 7 engineers asked this · SDE2

Data Engineering / ML Pipeline (1)

General Hard System Design round 5-9 years

Design a pipeline to detect fraudulent transactions in near-real-time. Transactions arrive at 10,000/second. Your ML model takes 5ms to evaluate one transaction.

↑ 71 upvotes · 9 engineers asked this · Staff

React / Hydration (1)

General Hard Technical round 3-6 years

Your Next.js app shows 'Loading...' forever on first visit but works fine on refresh. What's happening?

↑ 80 upvotes · 18 engineers asked this · SDE2

React / Patterns (1)

General Medium System Design round 2-5 years

Design a Toast notification system in React that can be triggered from anywhere in the app, shows multiple toasts, and auto-dismisses after 3 seconds.

↑ 8 upvotes · 26 engineers asked this · SDE2

React / Build Optimization (1)

General Hard System Design round 4-7 years

How do you implement tree shaking in a React component library so importing one component doesn't bundle the entire library?

↑ 11 upvotes · 29 engineers asked this · SDE2

React / Architecture (1)

General Hard System Design round 6-10 years

Explain Module Federation in React micro-frontends. What are the main production challenges?

↑ 12 upvotes · 30 engineers asked this · Staff

Node.js / Core (1)

General Hard Technical round 2-5 years

Your Node.js API loses precision on large numbers (e.g., 9007199254740993 becomes 9007199254740992). What's happening?

↑ 26 upvotes · 44 engineers asked this · SDE2

Python / Memory Optimization (1)

General Hard Screening round 3-6 years

What is Python's __slots__ and when would you use it? What are the trade-offs?

↑ 36 upvotes · 4 engineers asked this · SDE2

Python / Data Processing (1)

General Hard Scenario round 3-6 years

Your Python code processes a 10GB JSON file. json.load() fails with MemoryError. How do you handle it?

↑ 37 upvotes · 5 engineers asked this · SDE2

DevOps / Terraform (1)

General Hard Scenario round 3-7 years

How does Terraform manage state and what happens when two developers run 'terraform apply' simultaneously?

↑ 78 upvotes · 46 engineers asked this · SDE2

DevOps / AWS Lambda (1)

General Medium Technical round 2-5 years

Your AWS Lambda function runs fine in testing but times out in production on the first invocation. Why?

↑ 83 upvotes · 51 engineers asked this · SDE2

SQL / PostgreSQL (1)

General Hard Screening round 3-6 years

Explain what happens during a VACUUM operation in PostgreSQL. Why is it necessary?

↑ 14 upvotes · 12 engineers asked this · SDE2

AWS / Lambda (1)

General Medium Technical round 2-5 years

Your AWS Lambda functions have a shared utility layer. You update the layer and some functions get the new version, some don't. Why?

↑ 21 upvotes · 19 engineers asked this · SDE2

AWS / Load Balancing (1)

General Medium Screening round 3-6 years

Explain the difference between AWS Application Load Balancer and Network Load Balancer. When would you choose NLB?

↑ 22 upvotes · 20 engineers asked this · SDE2

AWS / IAM (1)

General Medium Screening round 2-5 years

What is the difference between AWS IAM Role and IAM User? Best practice when your EC2 instance needs S3 access?

↑ 23 upvotes · 21 engineers asked this · SDE2

AWS / Networking (1)

General Medium Screening round 4-7 years

Explain how AWS VPC peering differs from AWS Transit Gateway. When would you choose each?

↑ 25 upvotes · 23 engineers asked this · SDE2

AWS / Container Orchestration (1)

General Medium Screening round 3-6 years

What is AWS ECS vs EKS? When would you choose ECS over Kubernetes?

↑ 28 upvotes · 26 engineers asked this · SDE2

GraphQL / Performance (1)

General Hard Screening round 3-6 years

What is the N+1 problem in GraphQL and how do DataLoaders solve it?

↑ 35 upvotes · 33 engineers asked this · SDE2

GraphQL / Core Concepts (1)

General Easy Screening round 1-4 years

Explain the difference between GraphQL queries, mutations, and subscriptions. When would you use each?

↑ 36 upvotes · 34 engineers asked this · SDE2

GraphQL / Security (1)

General Hard Scenario round 3-6 years

Your GraphQL API has a deeply nested query that hits 15 database tables. How do you prevent abuse?

↑ 37 upvotes · 35 engineers asked this · SDE2

GraphQL / Client Patterns (1)

General Medium Screening round 2-5 years

What are GraphQL fragments and how do they improve client code?

↑ 38 upvotes · 36 engineers asked this · SDE2

Elasticsearch / Mapping (1)

General Medium Screening round 2-5 years

What is the difference between Elasticsearch index mapping types and when would you use keyword vs text field?

↑ 42 upvotes · 40 engineers asked this · SDE2

Data Engineering / Orchestration (1)

General Medium Screening round 2-5 years

What is Apache Airflow and how does it differ from a cron job for orchestrating data pipelines?

↑ 44 upvotes · 42 engineers asked this · SDE2

Data Engineering / Processing (1)

General Hard Screening round 4-7 years

Explain the difference between batch and streaming data processing. When is Flink better than Spark for streaming?

↑ 45 upvotes · 43 engineers asked this · SDE2

Data Engineering / Storage (1)

General Hard Screening round 4-7 years

Explain partitioning strategies in Parquet files on S3. How does column pruning and predicate pushdown reduce query cost?

↑ 47 upvotes · 45 engineers asked this · SDE2

TypeScript / Advanced Types (1)

General Hard Screening round 4-7 years

What is declaration merging in TypeScript and what problems can it solve?

↑ 59 upvotes · 7 engineers asked this · SDE2

Architecture / Documentation (1)

General Medium HR round 3-8 years

Your team has been writing code for 6 months with no documentation. How do you introduce documentation without disrupting velocity?

↑ 64 upvotes · 12 engineers asked this · SDE2

React / Next.js (1)

General Hard System Design round 3-6 years

Explain how you would handle authentication in a Next.js app. Compare NextAuth vs rolling your own JWT solution.

↑ 72 upvotes · 20 engineers asked this · SDE2

PySpark / Core Concepts (1)

General Medium Screening round 2-5 years

Explain the difference between Spark transformations and actions. Why are transformations lazy?

↑ 14 upvotes · 42 engineers asked this · SDE2

PySpark / Optimization (1)

General Hard Screening round 4-7 years

What is Spark's DAG and how does the Catalyst optimizer improve query performance?

↑ 15 upvotes · 43 engineers asked this · SDE2

PySpark / Debugging (1)

General Hard Technical round 3-6 years

Your PySpark job fails with 'Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded' on the executor. What does this mean?

↑ 16 upvotes · 44 engineers asked this · SDE2

PySpark / Caching (1)

General Medium Screening round 3-6 years

Explain the difference between persist() and cache() in Spark. When should you persist to disk?

↑ 17 upvotes · 45 engineers asked this · SDE2

PySpark / Coding (1)

General Medium Technical round 2-5 years

Write a PySpark job that reads a CSV, computes the top 10 customers by total spend, and writes to Parquet.

↑ 18 upvotes · 46 engineers asked this · SDE2

Airflow / Scheduling (1)

General Hard Screening round 3-6 years

Explain Airflow's execution_date vs scheduled_interval. A DAG scheduled daily at midnight runs at 1am. What is the execution_date?

↑ 19 upvotes · 47 engineers asked this · SDE2

Airflow / Security (1)

General Medium Screening round 3-6 years

How do you handle secrets in Airflow? What are the risks of storing them in the DAG file or UI Variables?

↑ 20 upvotes · 48 engineers asked this · SDE2

Airflow / Task Communication (1)

General Medium Screening round 2-5 years

What is an Airflow XCom? What are its limitations for large data?

↑ 21 upvotes · 49 engineers asked this · SDE2

Airflow / Backfill (1)

General Medium Scenario round 2-5 years

Explain backfill in Airflow. Your daily pipeline is new. You need to process data for the last 30 days. How?

↑ 22 upvotes · 50 engineers asked this · SDE2

Web / WebAssembly (1)

General Hard Screening round 4-7 years

What is WebAssembly (WASM) and when would you use it in a web application?

↑ 28 upvotes · 6 engineers asked this · SDE2

Architecture / Multi-tenancy (1)

General Hard System Design round 4-8 years

You're building a multi-tenant SaaS application. How do you isolate data between tenants?

↑ 32 upvotes · 10 engineers asked this · SDE2

Behavioral / Agile (2)

General Hard HR round 3-7 years

Your sprint backlog has 15 user stories. By day 3 of a 10-day sprint, the team realizes they've underestimated by 50%. What do you do?

↑ 62 upvotes · 40 engineers asked this · SDE2
General Medium HR round 2-7 years

A stakeholder wants a feature added mid-sprint that is 'absolutely critical.' How do you handle this?

↑ 63 upvotes · 41 engineers asked this · SDE2

GraphQL / Architecture (1)

General Medium Screening round 3-6 years

Explain GraphQL's schema-first vs code-first approach. Trade-offs for a team of 5 backend developers?

↑ 10 upvotes · 18 engineers asked this · SDE2

Python / Pandas (1)

General Medium Technical round 1-4 yearsPython

What is the difference between .loc[] and .iloc[] in pandas? Give an example where using the wrong one silently returns the wrong row.

↑ 22 upvotes · 13 engineers asked this · Data Scientist

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

General interview guides by role

General Data Engineer Guide General SDE2 Guide General Staff Guide

General questions by technology

General Snowflake General Python General SQL

More companies

Amazon Google Microsoft Flipkart Swiggy Meta Apple Netflix Uber Airbnb Stripe Razorpay PhonePe Paytm Zomato Salesforce Oracle Adobe LinkedIn Atlassian Accenture Deloitte Wipro Infosys TCS Capgemini PayU Anthropic OpenAI TikTok JPMorgan Walmart Spotify DoorDash Goldman Sachs Revolut Canva Capital One Lyft SAP Siemens Shopify Grab Cognizant LTIMindtree Myntra Hotstar Twitter Snowflake

Frequently asked questions

A file lands in AWS S3 and must be ingested into Snowflake automatically in near real-time. How would you design the solution? Explain the role of Snowpipe, event notifications, and the ingestion workflow.
A file lands in AWS S3 and must be ingested into Snowflake automatically in near real-time. How would you design the solution? Explain the role of Snowpipe, event notifications, and the ingestion workflow.
A production table was accidentally deleted 2 hours ago. How would you recover the data using Snowflake Time Travel?
A production table was accidentally deleted 2 hours ago. How would you recover the data using Snowflake Time Travel?
A critical table was dropped 10 days ago and the Time Travel retention period has expired. What recovery options are available? Explain how Fail-safe works and its limitations.
A critical table was dropped 10 days ago and the Time Travel retention period has expired. What recovery options are available? Explain how Fail-safe works and its limitations.
Your team needs a test environment containing production data without duplicating storage costs. How would you use Zero Copy Cloning and what are its benefits and limitations?
Your team needs a test environment containing production data without duplicating storage costs. How would you use Zero Copy Cloning and what are its benefits and limitations?
Snowpipe is ingesting duplicate records from cloud storage. How would you detect, prevent, and remediate duplicate data in Snowflake?
Snowpipe is ingesting duplicate records from cloud storage. How would you detect, prevent, and remediate duplicate data in Snowflake?