Quiz: Data Engineer
Data Engineer questions from real interviews as a quiz, with an explanation for every option.
Try it: 5 questions
Loading…
Sample questions
Which settings can commonly be adjusted to control LLM response generation? Select all that apply.
- Top-p
- Temperature
- Number of model layers
- Maximum output tokens
- Embedding dimension
Which of the following are data quality risks? Select all that apply.
- Missing fields, invalid values, and violations of business rules.
- Growing data volume that requires more storage space.
- Incorrect links between entities and distortions during data transformations.
- Slow queries caused by missing suitable indexes.
- Duplicate records, stale data, and delays in data arrival.
To group anagrams, each of
nwords of length aboutkis sorted, and the sorted characters are used as a key. What are the time and space complexities?- Time
O(n · k), spaceO(n) - Time
O(n log n), spaceO(nk) - Time
O(n · k log k), spaceO(nk log k) - Time
O(n · k log k), spaceO(nk)
- Time
Which approaches to storing data in S3 are generally suitable for later analysis in Spark? Select all that apply.
- Store everything only as JSON because Spark analyzes text formats most efficiently.
- For data requiring transactional updates, use Delta Lake, Iceberg, or Hudi on top of Parquet.
- Keep raw data separately in its original format so it can be reprocessed when needed.
- Store prepared analytical data in Parquet.
- Choose CSV for the analytical layer because it preserves types and schema better than Parquet.
What does the function return for this string?
import re def solution(s): numbers = re.findall(r"\d+", s) return max(map(int, numbers)) if numbers else None solution("df122gk123dfgd124dfghjk1sdfg2db99")- None
- 124
- 1221231241299
- 99
In pandas, fill each
NULLwith the nearest non-null value from a later row—that is, fill from bottom to top. Which method should you use?bfill()ffill()interpolate()dropna()
Despite differences in implementation, what is the general purpose of asynchrony in programming languages?
- To speed up computations by automatically reducing the amount of work.
- To avoid blocking program execution while an operation waits for a result.
- To always run each task on a separate thread.
- To guarantee that tasks run simultaneously on multiple cores.
How should a data quality check failure typically be handled in a production pipeline?
- Stop the pipeline on every failure and restart it automatically.
- Always quarantine all records without sending alerts or stopping the load.
- Choose the action by severity: alert on non-critical issues and stop on critical ones.
- Always send an alert and continue loading, regardless of the check result.
Which circumstances can cause data skew between segments? Select all that apply.
- During a join or aggregation, some keys produce a disproportionate number of rows.
- The distribution key has high cardinality and roughly uniform value frequencies.
- The distribution key contains popular values or many
NULLs. - Every segment receives the same number of rows, but one has a faster processor.
- The distribution key has low cardinality or does not fit the data's distribution well.
Which statement best describes how Apache Iceberg differs from Parquet?
- Iceberg is a table format that manages a set of data files and their metadata; Parquet is a format for storing individual files.
- Iceberg is a query engine that runs SQL on Parquet files and manages their distribution.
- Iceberg is a directory layout for Parquet files that defines fixed paths and table partitions.
- Iceberg is a more efficient columnar format that replaces Parquet and compresses data better.