Essential cookies keep authentication working. With your permission, we also use analytics cookies to understand and improve the product. Read our Privacy Policy

DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPricingBlog
ProLogin

Interview Questions

Real questions from top companies

700+ Easy450+ Medium650+ Hard
All CategoriesBehavioralSpark/Big DataSQLPython/CodingSystem Design/ArchitectureCloud/ToolsGeneral/Othereasymediumhard
541

Explain how partitioning and bucketing in Hive/Spark optimize queries. What are the trade-offs in bucket count, partition cardinality, and small-file problem? When does over-partitioning or over-bucketing become counterproductive?

SQLmediumjoinpartitionspark0.6 min read
Adidas
β†’
542

Explain the Medallion Architecture (Bronze, Silver, Gold).

SQLhardjoinoptimizationpartition3.6 min read
Databricks
β†’
543

Explain the concept of window functions in SQL and provide an example

SQLmediumjoinpartitionsql0.6 min read
McKinsey
β†’
544

Explain the difference between Star and Snowflake schemas. When would you choose one over the other?

SQLmediumjoinsnowflakesql0.6 min read
BCG
β†’
545

Explain the difference between partition count and query performance in Spark.

SQLmediumpartitionspark0.5 min read
Incedo
β†’
546

Find average salary for each manager – Assume a table with manager_id and employee_salary

SQLmedium1 min read
Pubmatic
β†’
547

Find each student's previous year's scores using the LAG function.

SQLmediumpartition2 min read
Deolite
β†’
548

Find the third-highest salary for each department.

SQLmediumpartition2 min read
Freight Tiger
β†’
549

Finding nth Highest Salary within each department

SQLmediumpartition2 min read
Walmart
β†’
550

Given a CSV file with raw customer transactions, design an ETL pipeline that cleans data, aggregates total sales by region and product, and loads into target table

SQLhardetljoinoptimization3.6 min read
McKinsey
β†’
551

Given a dataset, perform transformations: Filter rows where sales > 1000, Add a new column calculating a 10% discount on sales, Group data by region and calculate total revenue.

SQLeasyspark2 min read
Warner Bros Discovery
β†’
552

Given a table with 10 records and another with 4 records, how many records result from a cross join?

SQLmediumjoin2 min read
Aarete
β†’
553

Given two dataframes (df1: id, name and df2: id, country, address, city, count), join them, filter for rows where country = 'Singapore', and pivot the output. Sort cities in descending order of population count

SQLmediumjoin2 min read
JP Morgan
β†’
554

How can you automate data insertion into BigQuery using Python?

SQLhardairflowbigquerypython2 min read
Aarete
β†’
555

How can you delete partitions from a table in Hive using a command?

SQLmediumpartition2 min read
Dunnhumby
β†’
556

How do you count occurrences in a column in SQL?

SQLeasysql2 min read
Globant
β†’
557

How do you design a scalable and fault-tolerant data warehouse on a cloud platform?

SQLhardjoinoptimizationpartition3.6 min read
HashedIn
β†’
558

How do you interact with Google BigQuery using Python?

SQLeasybigquerypython1 min read
Aarete
β†’
559

How do you keep a specific column on top in SQL?

SQLeasysql2 min read
Globant
β†’
560

How many records result from Inner Join, Left Join, Right Join given Table A and Table B?

SQLmediumjoin2 min read
EY
β†’

Reading isn't practice. Get AI feedback on your answers.

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.

Try AI Answer Coach β€” FreeStart a Mock Interview
Previous1...2627282930...47Next
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeAWSAzureMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsPySpark QuestionsTop Python QuestionsTop System DesignKafka QuestionsAirflow QuestionsSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerAnswer Vault PDFsPricing
Company
About & Editorial PolicyContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
Β© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer