Reviewed by Aditya Kumar · Last reviewed 2026-08-08
When new files arrive with schema changes, the primary approach involves prioritizing additive schema evolution, validating incoming data against an expected schema, and leveraging robust data lake…
Pro-Move: 'New column "region" arrived. Pipeline added with default null. Backfill job for historical. Both versions supported for 2 weeks.'
This easy-level System Design/Architecture question appears frequently in data engineering interviews at companies like Delivery Hero. While less common, it tests deeper understanding that distinguishes strong candidates.
Start by clearly defining the core concept being asked about. Interviewers want to see that you understand the fundamentals before diving into implementation details. Structure your answer with a definition, then explain the practical application with a concise example. The expert answer includes a code example that demonstrates the implementation pattern.
When new files arrive with schema changes, the primary approach involves prioritizing additive schema evolution, validating incoming data against an expected schema, and leveraging robust data lake table formats or schema registries to manage and enforce these changes seamlessly.
NULL) are assigned, ensuring backward compatibility. This maintains a consistent view for existing consumers.
Data validation is crucial. Incoming data should be checked against the current schema. Records or files with unexpected columns, incorrect data types, or missing mandatory fields should be quarantined, rejected, or routed to a dead-letter queue to maintain data quality and prevent downstream failures.
mergeSchema=True option automatically adds new columns from incoming data to the table schema.
df.write.format("delta") \
.mode("append") \
.option("mergeSchema", "true") \
.save("/path/to/delta_table")
This approach ensures that consumers can adapt to evolving schemas. For significant, breaking changes (e.g., removing a column), a new version of the dataset might be published, requiring consumers to explicitly migrate or be updated to handle the new structure.
In the interview, also mention: The trade-off between strict schema enforcement (higher data quality, less flexibility) and schema evolution (more flexibility, potential for data quality issues if not managed well).
Pro-Move: 'New column "region" arrived. Pipeline added with default null. Backfill job for historical. Both versions supported for 2 weeks.'
Some links below are affiliate links. If you buy through them we may earn a small commission at no extra cost to you — it helps keep DataEngPrep free.
According to DataEngPrep.tech, this is one of the most frequently asked System Design/Architecture interview questions, reported at 1 company. DataEngPrep.tech maintains an editor-reviewed database of 1,863 data engineering interview questions across 7 categories.