




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Enable features that simplify data layout decisions and optimize query performance Correct answer: Partitioning OPTIMIZE ZORDER Data skipping Delta statistics Cache tables Small le problem File compaction Predicate pushdown Auto optimize / auto compaction
Understand scenarios like:
compute terms
triggered, continuous, development, production modes Correct answer: Triggered mode = batch-like (run once) Continuous mode = streaming (keeps running) Development mode = keep compute alive Production mode = optimize + terminate compute
delta lake sql commands pt 1 Correct answer: Performance optimization
Storage cleanup
Data modication
History & recovery
Correct answer: Lakehouse architecture Dierences between:
Focus on:
unied governance Correct answer: A centralized approach to managing data access, security, auditing, and metadata across all workloads.
centralized through Unity Catalog, mainly to manage access control and metadata across workloads, as well as data lineage and auditing capabilities for compliance
uses RBAC model
metastore: top-level container that stores metadata about data assets Metastore → Catalog → Schema → Table/View
scalability advantages Correct answer: The ability to eiciently handle increasing data volumes and workloads by dynamically adjusting compute resources.
horizontal scalability: adding more nodes to a cluster allowing for processing massive datasets by distributing work across multiple machines (adds executors)
delta lake benets Correct answer: delta lake: A storage layer built on top of data lakes that provides ACID transactions, reliability, and performance improvements for big data workloads. ACID: Atomicity, Consistency, Isolation, Durability.
solves data inconsistency, corruption, and lack of transactional reliability, schema enforcement/evolution, time travel,
data intelligence platform integrations with Spark, ML workows, and BI tools Correct answer: Spark
medallion architecture (data organization)
governance layer
analytics and AI later
data warehouse vs data lake vs lakehouse Correct answer: data warehouse: structured system designed for business analytics and reporting.
data lake: stores large volumes of raw data in its original format.
lakehouse: combines the best features of data lakes and data warehouses
Unied analytics platform Correct answer: a single platform that allows organizations to perform data engineering, data analytics, machine learning, and data science on the same data and infrastructure.
Instead of using separate systems for each workload, the platform unies all analytics tasks in one environment.
Databricks provides a unied platform built on: Apache Spark Delta Lake Cloud object storage
Users / Teams (Data Engineers, Analysts, Data Scientists) │ Databricks Workspace │ Notebooks / Jobs / SQL
cost optimization strategies Correct answer: Pick compute and cluster settings that deliver required performance at the lowest reliable cost. The exam guide points to this indirectly through objectives on choosing the right compute for a use case, selecting cluster type/conguration by scenario, using serverless, and optimizing with Spark UI.
spot instances vs on-demand Correct answer: Spot instances = discounted spare cloud capacity; cheaper but can be interrupted/terminated by the cloud provider
On-demand instances = regular full-price capacity; more reliable/stable and not reclaimed for spot market reasons
cluster policies Correct answer: Cluster policies are admin-dened guardrails for compute. They control which cluster settings users can choose, so clusters stay standardized, secure, and cost- controlled. They can enforce or restrict things like:
Allowed instance types
Minimum/maximum workers Autoscaling required or limited Specic Databricks Runtime versions Single-node vs multi-node restrictions Whether users can use pools Whether certain settings are xed, hidden, or optional
instance types Correct answer: The VM/hardware type used for driver and worker nodes — it determines resources like CPU, memory, and local disk.
underlying machine size/capacity for cluster nodes
Compute-optimized → more CPU; good for heavy transformations and parallel processing Memory-optimized → more RAM; good for large joins, caching, shules, skewed/wide data Storage-optimized → more local disk; useful when workloads spill heavily to disk General-purpose → balanced CPU/RAM; good default for mixed ETL workloads GPU-enabled → specialized; typically not the default for standard DE Associate ETL questions
driver vs worker nodes Correct answer: Driver node coordinates the Spark application: creates the SparkSession, plans work, schedules tasks, and tracks results.
Worker nodes execute the tasks and store/cache data for processing.
cluster autoscaling
serverless compute
Use Databricks Connect in a data engineering workow. Correct answer: local development workow connecting IDE to Databricks clusters debugging PySpark locally development lifecycle for Spark apps advantages vs notebook-only workows
advantages vs notebook-only workows Correct answer: Databricks Connect supports a local IDE-centered workow, which is useful when development benets from local coding/debugging practices.
Databricks Connect = local development workow integrated with Databricks
Notebook-only workow = development directly in Databricks notebooks
development lifecycle for Spark apps Correct answer: Develop locally → test/validate with Databricks-backed workow → productionize in Databricks jobs/workows. → (debugging)
debugging PySpark locally Correct answer: local debugging: Faster iteration in IDE when developing PySpark logic before or while validating against Databricks workows
Databricks debugging / platform tools = troubleshooting in the Databricks environment
local development workow Correct answer: in Databricks Connect, you write locally, and execute with Databricks- backed Spark behavior
connecting IDE to Databricks clusters Correct answer: Using your local development environment while targeting Databricks compute/resources instead of treating local execution as the production environment.
IDE = where you write/debug code Databricks compute = where the workow is meant to run/test at scale.
Determine the capabilities of the Notebooks functionality Correct answer: supported languages:
Correct answer: Widgets are input controls you add to a notebook so users can provide values without editing the code directly. Databricks says widgets let you add parameters to notebooks and dashboards, making notebooks more interactive and reusable
The main purpose is parameterization. Widgets let you run the same notebook with dierent input values, such as a date, le path, table name, or lter value, instead of hard- coding those values into the notebook. This makes notebooks reusable for dierent runs and use cases.
Widget values are accessed through dbutils.widgets. In notebook tasks, Databricks specically notes that notebooks use the dbutils.widgets submodule to receive task parameters. This is the main exam-level association: notebook parameters → dbutils.widgets.
dashboards and visualizations Correct answer: Notebook dashboards are a way to publish graphs and visualizations derived from notebook output and share them in a presentation-style view. They show the latest run results from the notebook output that was published to the dashboard.
Databricks notebooks let you create charts directly from the results of notebook cells. The visualization tools are built into notebooks and the SQL editor, so you can turn result sets into charts without exporting the data elsewhere
version control with notebooks
Correct answer: Databricks notebooks have automatic versioning built in. Notebook versions are saved in notebook history, so you can review prior versions without setting up external Git rst. Databricks states that notebooks provide automatic versioning, and its notebook version history page says notebooks maintain a history of notebook versions.
Notebook history = local/workspace version tracking Git folders = full Git-based source control workow
notebook collaboration Correct answer: Databricks notebooks support real-time coauthoring. Multiple users can work in the same notebook, making notebooks a collaborative development tool rather than just a personal editor. Databricks states that notebooks provide real-time coauthoring, automatic versioning, and built-in visualizations.
magic commands for databricks notebooks Correct answer: Magic commands are special commands that begin with % and let you change the behavior of a notebook cell. Common examples:
%python
Correct answer: A streaming pipeline ingestion pattern is a way of continuously or incrementally loading new data into Databricks as it arrives, instead of doing one-time batch loads. Databricks says Structured Streaming is used for near real-time and incremental processing workloads, and Lakeow Spark Declarative Pipelines supports both batch and streaming data pipelines
schema evolution Correct answer: Schema evolution means Auto Loader can detect when new columns appear in incoming les and update the inferred schema so ingestion can continue with the new structure. Databricks says Auto Loader can automatically detect schema, initialize tables without an explicit schema, and evolve the schema as new columns are introduced.
You typically congure a schema location using cloudFiles.schemaLocation. Databricks stores inferred schema information there so Auto Loader can keep track of schema changes across arriving les
directory monitoring for Auto Loader Correct answer: Directory monitoring means Auto Loader watches a cloud object storage directory/path and discovers les to ingest as they appear. Auto Loader's cloudFiles source is built to process new les as they arrive, with the option to also process les that already exist in that directory
In directory listing mode, Auto Loader repeatedly checks the storage path by listing les in the input directory and determining which ones are new. This is the exam-level meaning of "directory monitoring" for Auto Loader: it is monitoring the directory by scanning listings, not by polling a database or reading a message queue.
The alternative is le notication mode. In le notication mode, Auto Loader uses cloud notication and queue services to learn about le arrivals instead of relying only on directory listings. Databricks says le notication mode is faster and more scalable than directory listing mode.
incremental le ingestion for Auto Loader Correct answer: Incremental le ingestion means Auto Loader processes new les as they arrive in cloud object storage instead of rescanning and reprocessing the full dataset each time. Databricks says Auto Loader "incrementally and eiciently processes new data les as they arrive in cloud storage" using the Structured Streaming source cloudFiles.
Incremental = ingest only newly discovered les, not a full reload.
You congure a streaming read with .format("cloudFiles"), specify the underlying le format with cloudFiles.format, and point it at a cloud storage path. Databricks documents cloudFiles as the source that automatically processes new les in cloud storage.
cloud object storage ingestion for Auto Loader Correct answer: Auto Loader is Databricks' incremental le ingestion feature for cloud object storage. It provides a Structured Streaming source called cloudFiles that processes new les as they arrive and can also process existing les already in the source directory. Databricks says Auto Loader can scale to near real-time ingestion of millions of les per hour and can also be used to process billions of les for migrations or backlls.