DP-750 · Compute and Catalog Foundations
21 cards
Compute Libraries and Access Permissions
-
Quick check
Two teams share a cluster and need incompatible versions of the same Python package, each only inside its own notebook session, and the shared cluster configuration must not change. What fits best?
AInstall both versions as compute-scoped libraries on the shared cluster
A compute-scoped install reaches every workload on the cluster, so both versions would collide there.
BInstall one unpinned compute-scoped package and let each session resolve it
An unpinned package still installs cluster-wide, and leaving the version unspecified adds unpredictability on top of the conflict.
CUse notebook-scoped installations inside each team's own separate sessions
Right. Notebook scope keeps each version inside its own session and leaves the shared cluster configuration untouched.
3 / 21
-
Quick check
Why should a production installation from PyPI name an exact package version?
ABecause the pinned version grants the installer permission to manage the cluster
Permission to install comes from the cluster's permission level, not from how the package is written.
BBecause repeated installations then produce the same package every time
Right. Without a version, a later cluster start can silently install a newer package and break code that already worked.
CBecause pinning exempts the library from approval checks on shared clusters
Approval requirements on shared compute apply regardless of whether a version is specified.
6 / 21
-
Quick check
A library file is stored in a Unity Catalog volume. What must the installing identity hold to install it?
ACREATE CATALOG on the metastore where the volume lives
Creating catalogs is a metastore-level privilege and has nothing to do with reading one library file.
BREAD VOLUME on the volume that stores the file
Right. Installation reads the file, so the installer needs read access to the volume that holds it.
CWRITE VOLUME on every volume in the catalog
Installing a library never writes to the volume, and one file's permission does not extend to the whole catalog.
9 / 21
-
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.
-
Quick check
A Standard-mode cluster must install an approved JAR stored in a volume. The operator can manage the cluster, but the installation still fails an access check. What should be verified?
AThat the path is on the allowlist and that the installing identity holds READ VOLUME on the volume
Right. Approval and data access are separate checks, and both have to pass on top of managing the cluster.
BThat the path is on the allowlist, which by itself also authorizes reading the file
Approval permits the use of the path; it never grants the data access needed to read the file.
CThat the operator holds CAN RESTART and that WRITE VOLUME is granted on the volume
CAN RESTART is below the level required to install anything, and installation reads the file rather than writing to it.
12 / 21
-
Quick check
When is an init script the right choice instead of a compute-scoped library?
AWhenever the package is a Python wheel published on PyPI
A published wheel is exactly the ordinary case that compute-scoped libraries handle better.
BWhen cluster startup needs system-level configuration that a library cannot perform
Right. System packages, environment variables, and similar startup configuration are outside what a library can do.
CWhen a dependency should apply to one notebook session only
A single session is served by a notebook-scoped installation; an init script affects the whole cluster at startup.
14 / 21
-
Quick check
Which permission level is required to install a compute-scoped library on a cluster?
ACAN MANAGE
Right. Installing a library changes the cluster's configuration, which is the authority this level adds.
BCAN ATTACH TO
This level covers attaching notebooks and monitoring; it never reaches configuration.
CCAN RESTART
Lifecycle control stops short of configuration, so it cannot install a library.
17 / 21
-
Quick check
An analyst runs notebooks and inspects Spark execution; a team lead must be able to recover a stopped cluster; only the platform owner may change configuration or libraries. Which mapping applies least privilege?
AAnalyst: CAN MANAGE; team lead: CAN ATTACH TO; owner: CAN RESTART
This hands the analyst full configuration control and leaves the owner unable to configure anything.
BAnalyst: CAN RESTART; team lead: CAN MANAGE; platform owner: CAN ATTACH TO
The analyst gains lifecycle control that was never required, and the owner is left below the level needed to install libraries.
CAnalyst: CAN ATTACH TO; lead: CAN RESTART; owner: CAN MANAGE
Right. Each role receives exactly the tier its work requires: usage, then lifecycle, then configuration.
19 / 21
-
Quick check
Which statement keeps scope and authority straight?
AA notebook-scoped install reconfigures the cluster, and CAN RESTART covers library installation
Notebook scope changes nothing on the cluster, and lifecycle control stops short of installing anything.
BA compute-scoped library serves every workload on its cluster, and installing one requires CAN MANAGE
Right. The scope explains who is affected, and the permission level explains who is allowed to make the change.
CAn allowlist entry supplies both approval and the data access needed to read the library file
Approval and data access are independent: the installer still needs read access to the volume holding the file.
21 / 21
-
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.