0% found this document useful (0 votes)
4 views1 page

Python SQL Quiz Data Engineering

The document presents a quiz designed for data engineering interviews, focusing on Python and SQL concepts. It includes questions on method types in Python, handling large files, JSON processing, retry logic, and SQL queries for duplicates, salaries, running totals, and indexing strategies. The quiz assesses both theoretical knowledge and practical skills relevant to data engineering roles.

Uploaded by

craft toffy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Python SQL Quiz Data Engineering

The document presents a quiz designed for data engineering interviews, focusing on Python and SQL concepts. It includes questions on method types in Python, handling large files, JSON processing, retry logic, and SQL queries for duplicates, salaries, running totals, and indexing strategies. The quiz assesses both theoretical knowledge and practical skills relevant to data engineering roles.

Uploaded by

craft toffy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Python & SQL Quiz for Data Engineering Interviews

1. What is the difference between @staticmethod, @classmethod, and instance methods in Python?

2. How do you handle large CSV files in Python without exhausting memory?

3. Write a Python script to read a JSON file from S3 and send an SNS alert if a certain key is

missing.

4. What is the purpose of the 'with' statement in Python?

5. How do you implement retry logic in Python for an API call that might fail intermittently?

6. Write a SQL query to find duplicate records in a table based on two columns.

7. How do you get the second highest salary in each department using SQL?

8. Explain the difference between DENSE_RANK() and ROW_NUMBER() with an example.

9. Write a SQL query to calculate a running total of sales grouped by month.

10. What indexing strategies can you use to improve join performance on large tables?

You might also like