CertLumen

Databricks Data Engineer Professional · Section 2 · 12% of the exam

Develop data ingestion pipelines to ingest a variety of data formats, including Delta Lake, Parquet, JSON, Iceberg, CSV, and Binary from diverse sources such as message buses (Kafka, Kinesis, Pub/Sub) and cloud storage.

One of the objectives of the Databricks Certified Data Engineer Professional exam, in the section “Data Ingestion & Acquisition”. Here is what it covers, the points to remember and a question to try.

What it covers

Choose the right reader and options for every source the exam names: files in cloud storage (JSON, CSV, Parquet, binary), Delta and Iceberg tables, and the Kafka, Kinesis and Pub/Sub message buses, with production details such as start positions, rate limits, authentication and serverless triggers.

Points to remember

  • Auto Loader and STREAM read_files read JSON, CSV, XML, Parquet, Avro, ORC, text and binaryFile; Delta and Iceberg are table formats and are read as tables.
  • Auto Loader infers JSON, CSV and XML as STRING unless cloudFiles.inferColumnTypes is true; Parquet, Avro and ORC carry their own types.
  • binaryFile returns path, modificationTime, length and content; filter with pathGlobFilter.
  • Recommended discovery: file events on the external location plus cloudFiles.useManagedFileEvents = true (DBR 14.3 LTS+).
  • Streaming from Delta: maxFilesPerTrigger defaults to 1000; use skipChangeCommits to ignore upstream updates and deletes, or the change data feed to process them.

Try a question

A bronze streaming table ingests JSON order files with Auto Loader (cloudFiles), and no schema is provided. Downstream queries fail because amount, quantity and order_ts all arrived as STRING columns. Which option makes Auto Loader infer numeric and timestamp types from the JSON data?

  1. AcloudFiles.schemaEvolutionMode set to addNewColumnsWithTypeWidening
  2. BcloudFiles.inferColumnTypes set to true
  3. CinferSchema set to true, the option the batch CSV reader uses
  4. DmergeSchema set to true on the write to the bronze table
Show the answer

B. For formats that don't encode data types (JSON, CSV and XML), Auto Loader infers every column as STRING by default, including nested JSON fields, so that files with conflicting values never break the stream. Setting cloudFiles.inferColumnTypes to true makes it sample the data and choose types the way the DataFrameReader does; cloudFiles.schemaHints can still pin individual columns. Parquet, Avro and ORC carry their own types.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Ingesting File Formats, Table Formats and Message Buses teaches this objective (about 45 minutes), and 12 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 45 objectives · Next objective →