SQL questions from Capco data engineering interviews.
These sql questions are sourced from Capco data engineering interviews. Each includes an expert-level answer.
Demonstrate the difference between DENSE_RANK() and RANK()
Compare Glue partition discovery with Hive MSCK/ADD PARTITION. Explain the operational and cost implications of crawler-based vs. partition-projection approaches. When does partition projection become necessary, and what are its limitations?
Explain how you would optimize Redshift query performance for a reporting system with large fact tables.
Explain the differences between table re-creation and ALTER TABLE operations.
Explain the use of Amazon Athena for serverless querying.
Explain the use of Elastic Resize vs. Classic Resize in Redshift.
How does partitioning in S3 affect Athena query performance?
How does the MAXERROR parameter affect data loading in Redshift?
How would you add columns to a table without impacting queries?
How would you automate Redshift cluster scaling for peak loads?
How would you handle data type changes for an existing column?
How would you prevent small file problems in S3 when loading data into Redshift?
What are the benefits and drawbacks of using compression encodings in Redshift?
What metrics would trigger an auto-scaling event?
What strategies would you use to manage dynamic partitions efficiently?
Download the complete interview prep bundle with expert answers. Study offline, on your commute, anywhere.