Courseiva

Databricks-DE-Assoc Working with Lakeflow Jobs Practice Question

A data engineer is creating a Lakeflow Job that must run a Python script stored in DBFS. The engineer wants to ensure the script is executed with the correct dependencies and environment. Which task type should be used?

⚠ Common exam trap

The trap here is assuming a notebook task can run any Python file; notebook tasks specifically require a notebook format and do not execute standalone .py scripts.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Python script task

Lakeflow Jobs offer a dedicated Python script task type that runs a Python file from DBFS or other storage locations. It supports specifying libraries and environment settings, ensuring the script runs with the correct dependencies. Notebook, JAR, and pipeline tasks serve different purposes and cannot directly execute a standalone Python script with its own environment.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    JAR task

    Why it's wrong here

    JAR tasks are used to run Java applications packaged as JAR files. They are not suitable for executing Python scripts, as they expect a Java main class and JVM environment. Using a JAR task for a Python script would fail because the script cannot be executed by the Java runtime.

  • ✗

    Notebook task

    Why it's wrong here

    Notebook tasks are designed to run Databricks notebooks, not standalone Python scripts stored in DBFS. While you can use %run or import mechanisms within a notebook, the task type itself expects a notebook path. It does not directly execute a .py file from DBFS with its own environment, so it is not the correct choice.

  • ✗

    Pipeline task

    Why it's wrong here

    Pipeline tasks are used to trigger Delta Live Tables pipelines, which are defined in declarative notebooks or SQL. They are not designed to run arbitrary Python scripts. While a pipeline can contain Python code, it operates within the DLT framework and does not execute a standalone script from DBFS.

  • ✓

    Python script task

    Why this is correct

    The Python script task type in Lakeflow Jobs allows you to specify a Python file stored in DBFS, Unity Catalog volumes, or cloud storage. It executes the script with the specified libraries and environment, making it ideal for running standalone Python scripts with dependencies. This directly matches the requirement.

About these practice questions

This Databricks-DE-Assoc question is part of Courseiva's 276-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Databricks exam blueprint

This Databricks-DE-Assoc practice question is part of Courseiva's free Databricks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Databricks-DE-Assoc exam.