CertLumen

Question of the day · Databricks

Databricks Certified Data Engineer Associate: today's question

Today · Data Transformation and Modeling

A data engineer has a cleaned DataFrame silver_df and must create, or fully replace, the Unity Catalog managed table workspace.silver.orders with its contents. Which code does this?

  1. Asilver_df.write.format('delta').mode('overwrite').save('workspace.silver.orders')
  2. Bsilver_df.createOrReplaceTempView('workspace.silver.orders')
  3. Csilver_df.write.mode('append').saveAsTable('workspace.silver.orders')
  4. Dsilver_df.write.mode('overwrite').saveAsTable('workspace.silver.orders')
Show the answer

D. saveAsTable writes a table registered under the given three-level Unity Catalog name (Delta and managed by default), and mode('overwrite') replaces any existing contents, so re-runs are idempotent. The SQL equivalent is CREATE OR REPLACE TABLE … AS SELECT.

Written for practice in the style of the exam: never a question from the real exam. A new one every day.

Get one question a day by email

Each morning at 7 am your time, with the day before's answer. One click stops it.

We send a link to confirm the address first. See privacy.

Want ten more now?

The free readiness check asks ten questions weighted like the real exam and shows your score by section.

Take the free check

About the course · More practice questions · Other exams