Data Engineer Interview Question

When would you use Parquet versus Avro, and why?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Parquet is columnar, so it compresses well and lets a query read only the columns it needs, which makes it right for analytical reads. Avro is row oriented with a compact binary encoding and strong schema evolution support, which makes it right for write heavy paths and message payloads where you consume whole records. In short, Avro for transport and landing, Parquet for the analytical tables you query.

Why interviewers ask this

Format choice is a daily data engineering decision with real cost consequences, so interviewers check whether you understand the physical layout rather than the brand names. Strong answers mention predicate pushdown and column pruning, row group statistics, and the fact that both carry schemas, so this is not a typed versus untyped debate.

How to structure your answer

  • Contrast columnar versus row oriented layout first.
  • Connect columnar layout to compression and column pruning.
  • Connect row layout to cheap appends and whole record reads.
  • Mention schema evolution behavior for both.
  • Give a concrete pipeline where you used each.

Example answer

Spoken example, first person

The difference is physical layout. Parquet stores values column by column, so all the timestamps sit together and compress hard, and a query selecting three of forty columns genuinely reads three columns' worth of bytes. It also keeps min and max statistics per row group, so predicate pushdown can skip chunks entirely. Avro is row oriented, so a record is contiguous, which is what you want when you are appending events or reading whole messages off a topic. On the last pipeline I built, the Kafka payloads were Avro with a schema registry, we landed them as Avro in the raw zone, then compacted into Parquet in the curated layer. That gave us cheap writes at the edge and cheap analytical reads downstream. Both handle schema evolution, but Avro's rules around adding a field with a default are more forgiving for producers and consumers that deploy at different times, which is why it tends to win on the transport side.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • What is predicate pushdown and when does it fail to help?
  • How does a schema registry change your compatibility guarantees?
  • Where does ORC fit compared to Parquet?

Related data engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot