AWS Certified Data Engineer - Associate (DEA-C01) Practice Questions

AWS Certified Data Engineer - Associate (DEA-C01) exam preparation

AWS Certified Data Engineer - Associate (DEA-C01) practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 130 minutes.

AWS Certified Data Engineer - Associate (DEA-C01) free question 3 / 10 · Domain 1: Data Ingestion and Transformation

An application sends CSV lines to an Amazon Data Firehose stream. The data engineers want the objects in Amazon S3 stored as Apache Parquet so that Athena queries are faster. How should the Firehose stream be set up?

  1. Leave the objects as CSV, as row-oriented text files are as quick to query as columnar files
  2. Enable record format conversion to Parquet and choose the OpenX JSON SerDe as the deserializer for the CSV lines
  3. Add a Lambda transformation that turns the CSV lines into JSON, and enable record format conversion to Parquet
  4. Group the CSV lines of a batch into a JSON array in one record and enable the conversion to Parquet
Show the answer and explanation

Answer: C

Why this is correct
Amazon Data Firehose can convert JSON input to Apache Parquet or Apache ORC before it stores the data in Amazon S3. These columnar formats save space and enable faster queries than row-oriented formats. The conversion needs a JSON deserializer, either the Apache Hive JSON SerDe or the OpenX JSON SerDe. For CSV or other structured text, you first use AWS Lambda data transformation to produce JSON, and the conversion then writes Parquet.

Why the other options are wrong
"Enable record format conversion to Parquet and choose the OpenX JSON SerDe as the deserializer for the CSV lines" … Both deserializers read JSON. For an input format other than JSON, such as CSV, the page says to use Lambda to transform it to JSON first.
"Group the CSV lines of a batch into a JSON array in one record and enable the conversion to Parquet" … An array of JSON documents is not a valid input for the conversion. Multiple documents in one record must be written one after another, not as an array.
"Leave the objects as CSV, as row-oriented text files are as quick to query as columnar files" … Parquet and ORC are columnar formats that save space and enable faster queries compared to row-oriented formats, which is the benefit the engineers want.

Key points
Parquet and ORC are columnar data formats that save space and enable faster queries compared to row-oriented formats like JSON. The page also says you can convert the format of your data even if you aggregate your records before sending them to Firehose.

Go to the AWS Certified Data Engineer - Associate (DEA-C01) practice app (10 free questions; purchase unlocks all questions)

See the full practice set