Interview questions · medium
Describe a scenario where partitioning and bucketing would improve query performance.
When would you choose a Snowflake schema over a Star schema?
Implement a query to find the top 5 customers by total sales amount.
Write an SQL query to find duplicate emails in a users table.
Tell me about a time you handled a data pipeline failure during a critical operation.
Compute the moving average of daily transactions over a 7-day window.
Describe a time when you had to deal with a major data quality issue. How did you handle it?
Describe the concept of data sharding and when to use it.
Compare OLTP and OLAP systems in the context of financial transactions.
Describe a scenario where you would use a CROSS JOIN vs. an INNER JOIN.
Explain indexing and its impact on database performance.
Explain your approach to optimizing a slow-running query on a table with billions of rows.
Given a complex nested query, how would you refactor it for better readability and efficiency?
Identify and remove duplicate records from a table, keeping the most recent record based on a timestamp column.
Simulate a producer-consumer model using multithreading.
Type or paste your answer to any of these questions and our AI Coach scores it, highlights gaps, and rewrites it at FAANG quality. Free to try.