Prepstellar

DP-750 · Compute and Catalog Foundations

20 cards

Configuring Compute Features

Swipe, scroll or use ← →
  1. Features decide capability, capacity decides size

    Performance settings allocate resources: how many cores, how much memory, how many workers. Feature settings answer a different question — which execution technology and which runtime environment the workload receives. A cluster can be enormous and still be unable to run your code, or perfectly sized and slower than it needs to be.

    Three decisions belong to this family:

    1. Photon acceleration, the execution engine for SQL and DataFrame work.
    2. The Databricks Runtime and, with it, the Spark version.
    3. The machine learning environment, when the workload needs prepared libraries or GPUs.

    Make each one from how the workload behaves and what it is compatible with, not by treating every feature as a general speed switch.

    1 / 20
  2. Features decide capability, capacity decides size

    Photon is a query execution engine that replaces traditional Spark execution components with optimized native code. Enable it and the compute resource runs SQL queries and DataFrame operations through that accelerated engine, with no change to the code you already wrote.

    Its scope is precise, and knowing the edges matters:

    Photon accelerates Photon does not do
    SQL queries Install GPU drivers or compile CUDA
    DataFrame operations Run RDD or R workloads faster
    Scans, joins, and aggregations over large tables Grant permissions or bind a workspace to a catalog

    Photon is an execution feature, not an access-control feature and not a machine learning environment. It changes how supported operators run; it does not change who can run them.

    2 / 20
  3. Quick check

    Which work does Photon accelerate on supported compute?

    1. AInstalling GPU drivers and compiling CUDA for deep-learning frameworks

      Those belong to the machine learning environment; Photon is an execution engine and installs nothing.

    2. BSQL queries and DataFrame operations

      Right. Photon replaces standard Spark execution components with native code for exactly these two kinds of work.

    3. CGranting cluster permissions and binding workspaces to a catalog

      Permissions and workspace bindings are governance settings and are untouched by the execution engine.

    3 / 20

  4. When Photon pays off, and when it cannot be used

    Photon rewards work that has something substantial to optimize. Complex transformations, joins, aggregations, and scans across large tables benefit most, and so do workloads that hit disk often, process wide tables, or transform the same data repeatedly. An hourly aggregation across millions of rows is the archetype.

    The opposite case is just as clear. A simple batch job over a small dataset, or a calculation that finishes in a couple of seconds, has almost nothing to accelerate, and the extra compute cost is not repaid.

    Photon is enabled by default on Databricks Runtime 9.1 LTS and later, and the setting can be verified or changed when the compute resource is created.

    4 / 20
  5. When Photon pays off, and when it cannot be used

    There is one hard incompatibility: Photon is not supported on GPU-enabled clusters. A workload that requires GPU instances for machine learning or deep learning must run with Photon disabled.

    That turns into a straightforward choice rather than a dilemma:

    The workload is Configure
    CPU-based SQL or DataFrame processing, where query execution is the concern Photon enabled
    Deep learning or similar work that needs GPU instances GPU compute with Photon disabled

    The two features cannot be combined on the same cluster, so the workload's real requirement decides which one survives.

    5 / 20
  6. Quick check

    A daily production job scans wide tables and runs complex aggregations on CPU compute, with no GPUs involved. The team wants faster SQL and DataFrame execution without rewriting the pipeline. What should be enabled?

    1. APhoton acceleration

      Right. Photon accelerates exactly these SQL and DataFrame operators, it needs no code changes, and with no GPUs present nothing blocks it.

    2. BA dedicated group access mode for the job's cluster

      An access mode decides who may use the cluster; it has no effect on how fast the operators run.

    3. CDatabricks Runtime ML with its GPU drivers installed

      That runtime prepares a machine learning environment this job does not need, and its GPU path would rule Photon out.

    6 / 20

  7. The runtime carries Spark with it

    Databricks Runtime supplies the core components that run on the compute resource: Apache Spark, preloaded packages, and Databricks optimizations. The version you select decides which features are available and how your code meets those packages.

    The consequence that catches people out is this: selecting a Databricks Runtime also selects its Apache Spark version. Spark is not a separate dropdown. Newer runtimes carry more recent Spark releases with additional features and fixes; older runtimes carry older ones, stable but without recent Spark functionality.

    That is why a missing Spark feature is a runtime question. No access mode, subscription, or catalog binding can add it — those are independent controls that never change which Spark release is running.

    7 / 20
  8. Quick check

    What else does a team choose when it selects a Databricks Runtime version?

    1. AA compute permission level for the cluster's users

      Permission levels are granted separately and have nothing to do with which runtime is installed.

    2. BA Unity Catalog binding between the workspace and its catalog

      A workspace binding is a governance setting and is independent of the runtime.

    3. CThe Apache Spark version that comes with that runtime

      Right. The runtime packages Spark together with the platform optimizations, so picking one fixes the other.

    8 / 20

  9. Keep your progress in the app

    That’s 3 of 8 quick checks. In the app they stay answered, and every lesson remembers where you left off.

  10. Current versus long-term support

    The right runtime depends on what the compute is for.

    Compute Preferred runtime Reason
    Interactive development The most current version Latest optimizations and compatibility with recent packages while you explore and build
    Operational job compute A Long Term Support version Extended compatibility and stability, so an unexpected runtime change cannot disrupt a production pipeline

    A Long Term Support (LTS) release is chosen precisely for that stability posture. It does not convert anything to serverless, it does not make Photon work on GPUs, and it does not excuse testing.

    Whatever the choice, test the workload against the new runtime in a development environment before you change production compute. That step is the difference between an upgrade and an incident.

    9 / 20
  11. Current versus long-term support

    Stability and a needed feature are not in conflict as often as they seem. When a daily pipeline requires a recent Spark capability but must stay dependable, the approach is to pick an LTS runtime that already contains the feature, then validate it in development before production.

    Compare that with the alternatives:

    • Taking the newest non-LTS release straight to production buys the feature and gives up the stability that was a requirement.
    • Staying on the old runtime and changing something else — an access mode, for example — cannot add Spark functionality at all.

    The feature comes from the runtime; the safety comes from choosing a supported release and testing it first.

    10 / 20
  12. Quick check

    A daily production pipeline must move to a newer runtime: it needs a recent Spark capability, but stability is non-negotiable. What is the best approach?

    1. ADeploy the newest non-LTS runtime straight to production so the capability is available immediately

      That delivers the feature but abandons the stability the pipeline was said to require.

    2. BKeep the current runtime and switch the cluster to a different access mode

      An access mode governs who shares the cluster and can never add a Spark capability.

    3. CSelect an LTS runtime that includes the capability and test it in development first

      Right. The runtime supplies the Spark feature, an LTS release supplies the stability, and development testing protects the production run.

    11 / 20

  13. Who controls the version

    Runtime selection is not available everywhere, and that fact often decides the compute type.

    On classic compute, the version is explicit: you choose it, and you decide when to move to another. On serverless compute, the runtime is versionless and Azure Databricks upgrades it automatically — convenient, but there is no version for you to pin.

    Compute Runtime version
    Classic Selected and managed by you
    Serverless Versionless and upgraded automatically by the platform

    So when a workload has to sit on a specific runtime version — for a certified dependency, a validated pipeline, or a compatibility requirement — the requirement points at classic compute. Nothing about an access mode or a specialized runtime restores version control on serverless.

    12 / 20
  14. Quick check

    Which behavior prevents a team from selecting a specific runtime version for its workload?

    1. AServerless compute runs a versionless runtime that the platform upgrades automatically

      Right. Versionless means there is nothing to pin, which is why a version requirement points to classic compute.

    2. BClassic compute requires an explicit runtime selection when the cluster is created

      Explicit selection is the capability the team wants, not an obstacle to it.

    3. CDatabricks Runtime ML ships without Apache Spark, so no version applies

      Every Databricks Runtime, machine learning editions included, is built around Apache Spark.

    13 / 20

  15. Databricks Runtime ML and GPU work

    Databricks Runtime ML is the runtime variant prepared for machine learning. It ships with preinstalled machine learning libraries, GPU drivers, and frameworks such as CUDA, so a team does not spend its first day resolving package conflicts.

    Select it instead of the standard runtime whenever the workload needs that prepared environment. A standard runtime does not contain the bundle, and neither a SQL warehouse nor a runtime preloaded onto pool machines is a substitute for it: preloading only copies a chosen runtime onto idle machines in advance.

    14 / 20
  16. Databricks Runtime ML and GPU work

    The hardware underneath follows the stage of the work.

    • For initial experimentation, a single-node resource with a large instance type is often enough, especially for frameworks that do not distribute across workers: there is no shuffle overhead to pay for. What a single-node resource cannot do is scale out with more workers, and it offers no worker redundancy if the driver is lost.
    • For computationally intensive deep learning — image recognition, natural language processing, neural network training — GPU instances turn work that would take hours on processors into minutes.
    15 / 20
  17. Quick check

    For which initial machine learning experiment is a large single-node resource a reasonable choice?

    1. AA shared SQL dashboard queried by many concurrent analysts

      Concurrent dashboard users belong on a SQL warehouse, which is the surface built for analytics.

    2. BA framework whose training does not distribute across worker nodes

      Right. With nothing to distribute, one large machine avoids shuffle overhead and is enough for early experiments.

    3. CA large Spark job that needs to scale horizontally as the dataset grows

      Horizontal scaling requires workers, and a single-node resource has none to add.

    16 / 20

  18. Keep the combination compatible

    Feature settings have to agree with each other. Two configurations are worth memorizing because they cover most real cases.

    Workload Runtime Compute Photon
    Neural network training that needs CUDA and GPU drivers Databricks Runtime ML GPU instances Disabled — unsupported on GPU clusters
    Wide-table SQL and DataFrame processing Standard Databricks Runtime CPU instances Enabled

    Read the two rows together and the invalid combinations become obvious. A standard runtime on GPU compute is missing the drivers and CUDA the work depends on. Runtime ML on GPU compute with Photon enabled is not a valid cluster at all. And Photon is never the GPU framework: it accelerates SQL and DataFrame operators, it does not drive graphics processors.

    17 / 20
  19. Quick check

    A notebook trains an image-recognition neural network that needs CUDA and GPU drivers; SQL acceleration is irrelevant here. Which combination is valid?

    1. AA standard runtime on GPU compute with Photon enabled for extra speed

      A standard runtime lacks the drivers and CUDA, and Photon cannot run on a GPU cluster anyway.

    2. BDatabricks Runtime ML on GPU compute with Photon enabled

      The runtime is right, but Photon is not supported on GPU-enabled clusters, so this cluster is not valid.

    3. CDatabricks Runtime ML on GPU compute with Photon disabled

      Right. Runtime ML supplies CUDA and the GPU drivers, and Photon is off because GPU clusters do not support it.

    18 / 20

  20. Key takeaways

    • Photon accelerates SQL queries and DataFrame operations, and pays off most on large scans, joins, aggregations, and repeated transformations; tiny, fast jobs gain little.
    • Photon is enabled by default from Databricks Runtime 9.1 LTS onward, and it is not supported on GPU-enabled clusters.
    • Selecting a Databricks Runtime also selects its Apache Spark version; a missing Spark feature is a runtime decision, not a permissions one.
    • Prefer a Long Term Support runtime for operational job compute and the current release for interactive development, and test any upgrade in development first.
    • Use Databricks Runtime ML for its prepared libraries, GPU drivers, and CUDA; a large single-node resource can carry early experiments, while GPU instances carry deep learning.
    19 / 20
  21. Quick check

    Which statement pairs each feature setting with the right reason?

    1. APhoton is chosen for SQL and DataFrame acceleration, an LTS runtime for production stability, and Runtime ML for prepared libraries and GPU drivers

      Right. Each feature is matched with the workload behavior or compatibility requirement that actually motivates it.

    2. BPhoton is chosen to drive GPU training, an LTS runtime to obtain the newest Spark features, and Runtime ML to accelerate SQL scans

      Photon cannot run on GPU clusters, LTS releases trade newest features for stability, and Runtime ML prepares an environment rather than accelerating queries.

    3. CPhoton is chosen to grant cluster permissions, an LTS runtime to convert compute to serverless, and Runtime ML to remove Spark

      None of those are feature settings: permissions, compute type, and the presence of Spark are all decided elsewhere.

    20 / 20

  22. 8 quick checks · then the test

    In the app, finishing the quick checks opens this lesson’s 10-question test, and the ones you miss come back exactly when you’re about to forget them.

The whole course, on your phone

Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.