Docsity

Databricks Data Engineering Associate Certification Questions and Answers, Exams of Programming Methodologies

Toggle sidebar
bg1
DATABRICKS DATA ENGINEERING ASSOCIATE
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:
- improving query speed on large tables
-ltering performance
- reducing storage scans
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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Databricks Data Engineering Associate Certification Questions and Answers and more Exams Programming Methodologies in PDF only on Docsity!

DATABRICKS DATA ENGINEERING ASSOCIATE

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:

  • improving query speed on large tables
  • ltering performance
  • reducing storage scans

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

  • OPTIMIZE: Compacts small les in a Delta table to improve query performance.
  • OPTIMIZE ZORDER BY: Clusters data by a column to speed up ltering.
  • CACHE TABLE: stores a table in cluster memory for faster repeated queries.
  • UNCACHE TABLE: Removes the table from memory cache.

Storage cleanup

  • VACUUM: Deletes old data les not needed by the Delta table.
  • VACUUM with retention (RETAIN): Deletes data les older than specied time

Data modication

  • MERGE / MERGE INTO: Performs updates and inserts in one operation.
  • UPDATE: Updates rows in a Delta table.
  • DELETE: Deletes rows from a Delta table.
  • INSERT INTO: Adds new rows to a table.
  • INSERT OVERWRITE: Replaces all existing data with new data.

History & recovery

  • DESCRIBE HISTORY: Shows the commit history of a Delta table.
  • RESTORE:
  • TIME TRAVEL (VERSION): Query a previous table version.
  • TIME TRAVEL (TIMESTAMP): Query a previous date RESTORE TABLE: Restore a table to a previous version.

Correct answer: Lakehouse architecture Dierences between:

  • data warehouse
  • data lake
  • lakehouse Unied analytics platform Integration with:
  • Spark
  • ML workows
  • BI tools Delta Lake benets scalability advantages unied governance

Focus on:

  • why organizations migrate to Databricks
  • how lakehouse solves warehouse/lake limitations

unied 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

  • permissions can be granted through catalog, schema, table, view, function, and column levels

metastore: top-level container that stores metadata about data assets Metastore → Catalog → Schema → Table/View

scalability advantages Correct answer: The ability to eiciently 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 benets 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 workows, and BI tools Correct answer: Spark

  • databricks cluster is a set of compute resources running spark (drivers and executers) used to process workloads
  • autoscaling clusters adjusts resources based on workload demand to optimize cost and performance
  • common APIs include DataFrame API and Spark SQL

medallion architecture (data organization)

  • bronze, silver, and gold layer data

governance layer

  • Databricks provides Unity Catalog for centralized governance. (secure data sharing)
  • Capabilities include Data access control, Table permissions, Data lineage, and Metadata management

analytics and AI later

  • SQL Analytics (BI dashboards)
  • Data Engineering (ETL pipelines)
  • Machine Learning
  • Streaming analytics

data warehouse vs data lake vs lakehouse Correct answer: data warehouse: structured system designed for business analytics and reporting.

  • structured data only
  • using formed from ETL tasks
  • optimized for SQL queries and BI tools
  • strong data governance and consistency

data lake: stores large volumes of raw data in its original format.

  • stores structured, semi-structured, and unstructured data
  • Data is stored as-is (schema-on-read)
  • Supports big data and machine learning workloads
  • Cheaper storage compared to warehouses

lakehouse: combines the best features of data lakes and data warehouses

  • Built on data lake storage
  • Adds ACID transactions
  • Supports SQL analytics
  • Handles ML + BI in the same system
  • Uses open table formats

Unied 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 unies all analytics tasks in one environment.

Databricks provides a unied 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/conguration by scenario, using serverless, and optimizing with Spark UI.

  • choosing right compute
  • prefer job clusters for scheduled ETL instead of interactive all-purpose clusters
  • autoscaling
  • auto-termination
  • spot instances when interruption is acceptable
  • serverless when favors databricks-managed optimization
  • enforce cluster policies
  • optimize query not just software

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-dened 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 Specic 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, shules, 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

  • cost-eicient as they only run for the duration of the job
  • each job runs on its own dedicated compute environment

serverless compute

  • Fully managed compute where Databricks automatically provisions and scales resources.
  • Use for SQL analytics, dashboards, and workloads that require minimal infrastructure management.
  • no cluster management required
  • automatically scales based on workload demand

Use Databricks Connect in a data engineering workow. Correct answer: local development workow connecting IDE to Databricks clusters debugging PySpark locally development lifecycle for Spark apps advantages vs notebook-only workows

advantages vs notebook-only workows Correct answer: Databricks Connect supports a local IDE-centered workow, which is useful when development benets from local coding/debugging practices.

Databricks Connect = local development workow integrated with Databricks

Notebook-only workow = development directly in Databricks notebooks

  • interactive notebook features
  • quick collaborative exploration
  • direct work inside Databricks notebooks.

development lifecycle for Spark apps Correct answer: Develop locally → test/validate with Databricks-backed workow → productionize in Databricks jobs/workows. → (debugging)

debugging PySpark locally Correct answer: local debugging: Faster iteration in IDE when developing PySpark logic before or while validating against Databricks workows

Databricks debugging / platform tools = troubleshooting in the Databricks environment

local development workow 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 workow is meant to run/test at scale.

Determine the capabilities of the Notebooks functionality Correct answer: supported languages:

  • Python
  • SQL
  • Scala

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 dierent 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 dierent runs and use cases.

Widget values are accessed through dbutils.widgets. In notebook tasks, Databricks specically notes that notebooks use the dbutils.widgets submodule to receive task parameters. This is the main exam-level association: notebook parameters → dbutils.widgets.

  • text
  • dropdown
  • combobox
  • multiselect

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.

  • view previous notebook versions
  • compare changes with side-by-side dis
  • restore an earlier version

Notebook history = local/workspace version tracking Git folders = full Git-based source control workow

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.

  • sharing the notebook with coworkers
  • co-editing in real time
  • leaving comments on code
  • mentioning other users with @username

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 Lakeow Spark Declarative Pipelines supports both batch and streaming data pipelines

  • cloud object storage les using Auto Loader
  • message buses / queues such as Kafka
  • Delta tables as streaming sources in some scenarios

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 congure 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.

  • best for simplest setup without permission congurations other than access to your data on cloud storage

The alternative is le notication mode. In le notication mode, Auto Loader uses cloud notication and queue services to learn about le arrivals instead of relying only on directory listings. Databricks says le notication mode is faster and more scalable than directory listing mode.

  • File notication mode is better when le arrival volume is high and you need better scale and eiciency.

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 eiciently 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 congure 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 backlls.

  • Amazon S