Interview questions
How do you handle NULL values in SQL? Mention functions like COALESCE and ISNULL.
How do you optimize a long-running SQL query?
How would you handle duplicate records in an SQL table?
Write a SQL query to find top 3 earners in each department.
Design a Delta table layout for mixed workload: point lookups by user_id, range scans by date, and full partition scans. Compare partitioning vs. Z-ordering—when to use each, and the rewrite cost trade-off.
Architect incremental load in ADF + Databricks with idempotency, late-arrival handling, and cost/scalability implications of watermark vs. change data capture.
What is the small-file problem in Spark, and how do you solve it?
What is the difference between Managed and External Tables in Databricks?
Replace words and perform string operations in Python (replace, vowel removal, word count, pattern check).
Write Python program to find consecutive numbers in a list.
Write a Python program to reverse words in a string.
Count the number of nulls in each column of a table.
Explain the difference between partition count and query performance in Spark.
Find employees who earn the third-highest salary.
Identify consecutive numbers in a column (at least 3 consecutive).
Scenario: Query optimization for a large dataset.
Write SQL query to replace specific patterns in a string column.
Write SQL to identify employees whose salary is higher than their manager's.
Write a SQL query to find departments with more than 10 employees.
Write a SQL query to remove duplicates from a table.
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.