Data Preparation for ML and AI
An ML pipeline repeatedly reads a few numeric columns from a wide dataset in Amazon S3. Which output format best reduces unnecessary column reads while providing compression and typed schemas?
Show the answer
Correct answerB. Apache Parquet
AWhy not this: Uncompressed CSV requires row parsing and provides neither embedded types nor compression.
BWhy this is right: Parquet supports column projection, compression, and typed schemas for analytical reads.
CWhy not this: Newline-delimited JSON supports record-oriented ingestion but does not provide columnar reads.
DWhy not this: Gzip reduces file size, but CSV remains row-oriented and lacks embedded column types.
Apache Parquet stores data by column, enabling readers to scan selected columns with compression and schema information. Gzip-compressed CSV reduces storage size but remains row-oriented and requires parsing rows to extract columns.