Databricks Data Engineer Professional (DBX-DEP): 5 Practice Questions on Data Ingestion & Acquisition
Practice Data Ingestion & Acquisition for the Databricks Data Engineer Professional (DBX-DEP) exam with the 5 questions below. It makes up about 12% of the exam. Every option is explained, so a wrong pick still teaches something.

Databricks Data Engineer Professional (DBX-DEP) · Data Ingestion & Acquisition · 5 questions with answers and explanations
Question 1 of 5
A running Kinesis query uses option("streamName", "clicks"). The platform team wants to identify the source by streamARN instead. An engineer changes the option and restarts with the same checkpoint. What does Databricks recommend instead?
streamARN and a fresh checkpoint, and use an idempotent sink during the cutoverstreamName and streamARN together and picks whichever is availablefailOnDataLoss to false, so that any mismatch of stored positions is ignored without errorsShow answer
✅ Answer: B
Difficulty: advanced · Topic: Structured Streaming, Amazon Kinesis
Source identity is part of the checkpoint
The checkpoint stores per-shard offsets for the source as identified by the options. Databricks warns not to switch between streamName and streamARN for an active query; restarting can lead to duplicate records or data loss. You must specify either streamName or streamARN, but not both.
Cutover plan
• Drain or stop the old query and record the last processed sequence position.
• Start the new query with streamARN and a new checkpoint; choose the starting position consciously.
• Use an idempotent sink (merge on a business key) so any overlap is harmless.
Adding or removing streams in a multi-stream list is a different, supported operation on recent runtimes (removed streams fail the restart unless failOnDataLoss is turned off temporarily).
Why each option works or fails
• ✗ A. Same checkpoint: Databricks explicitly does not support switching mid-stream because the restart can duplicate or lose records.
• ✓ B. Fresh query and checkpoint for the ARN (correct): this is the documented path, and an idempotent sink absorbs any overlap between the old and the new readers.
• ✗ C. Both options: specifying both is rejected; exactly one of the two options is required.
• ✗ D. failOnDataLoss false: it only relaxes data-loss checks and would hide exactly the loss or duplication that the switch can cause.
Question 2 of 5
A CDC target in Delta has deletion vectors enabled because MERGE deletes are frequent. A partner using Trino needs to read it as Iceberg. The engineer runs ALTER TABLE ... SET TBLPROPERTIES ('delta.universalFormat.enabledFormats' = 'iceberg') and the command is rejected. How should the team proceed?
REORG while enabling Iceberg reads, with column mapping on, and accept asynchronous metadata generationINSERT OVERWRITE so that no deletion vectors are ever written, and then set the propertyShow answer
✅ Answer: A
Difficulty: advanced · Topic: Delta Lake, UniForm, Apache Iceberg
Iceberg reads on Delta (UniForm)
Enabling Iceberg reads makes a Delta table generate Iceberg metadata asynchronously next to the Delta log; the Parquet files are shared. Requirements include a Unity Catalog table (managed or external), column mapping enabled, a minimum reader and writer protocol, and writes from a supported runtime.
Deletion vectors
Deletion vectors cannot be enabled on a table that has Iceberg reads enabled. For an existing table with them, use REORG to turn off and purge deletion vectors while enabling Iceberg reads. Afterwards, merges rewrite files instead of marking rows, which costs more write effort.
Operational notes
Metadata generation is asynchronous and uses the writing compute; wait for it to complete before external clients query.
Why each option works or fails
• ✓ A. REORG while enabling Iceberg reads (correct): it purges the vectors, enables the format, and fits the documented upgrade path, with column mapping and asynchronous metadata as conditions.
• ✗ B. Keeping deletion vectors: the combination is not allowed on one table, so the property change is rejected rather than tolerated.
• ✗ C. External table elsewhere: both managed and external tables in Unity Catalog support Iceberg reads, so no move is needed.
• ✗ D. INSERT OVERWRITE: the existing vectors remain until purged, and replacing merges with overwrites changes the CDC design, rewriting far more data.
Question 3 of 5
An admin wants data engineers who are not admins to create their own SQL Server ingestion gateway-pipeline pairs, without handing them the database password or making them metastore admins. What should the admin do?
Show answer
✅ Answer: D
Difficulty: advanced · Topic: Lakeflow Connect, Unity Catalog connections
Personas in a database ingestion setup
Two user models are documented for the connectors:
• Single user: an admin configures the source database, creates the Unity Catalog connection, the ingestion gateway and the ingestion pipeline.
• Multi-user: an admin configures the source database (a dedicated ingestion user, change tracking or CDC) and creates a connection that non-admin users can use to create gateway-pipeline pairs.
The credential lives in the Unity Catalog connection object, so access to it is governed by Unity Catalog privileges and engineers never see the password.
Not shareable
Each ingestion pipeline is associated with exactly one gateway, and gateways cannot be shared across pipelines, so each engineer creates a pair.
Why each option works or fails
• ✗ A. One shared pipeline: each pipeline has exactly one gateway and the requirement is that engineers create their own pairs, so a single admin-owned pipeline does not meet it.
• ✗ B. Database owner role: the ingestion needs a dedicated user with the documented privileges, and ownership of the whole source database is far beyond least privilege.
• ✗ C. Shared secret scope: it exposes the password to every engineer, which is exactly what the admin wants to avoid, and it bypasses the connection object.
• ✓ D. Admin-created connection (correct): the credential stays inside the Unity Catalog connection and the engineers build their own gateway-pipeline pairs from it, which is the documented multi-user path.
Question 4 of 5
A company is migrating to Unity Catalog in stages. Some tables are still registered in an AWS Glue catalog, and their files sit in S3. The team wants to query them from Unity Catalog now, with the most cost-effective execution and without copying the data. Which approach fits?
Show answer
✅ Answer: A
Difficulty: advanced · Topic: Lakehouse Federation
Two kinds of Lakehouse Federation
• Query federation targets external relational databases (MySQL, PostgreSQL, SQL Server and others) through JDBC. Queries are pushed down and run on both sides. It is read-only and suits ad hoc reporting and proofs of concept.
• Catalog federation connects external catalog platforms such as Hive Metastore, AWS Glue or Snowflake. Queries access the files directly in object storage and run only on Databricks compute, which is more cost-effective and performance-optimized than query federation.
Catalog federation setup
Create a connection to the external catalog, a storage credential and an external location for the table paths, a foreign catalog from the connection and the external location, grant privileges, and query. It fits incremental migration and long-term hybrid models, and it is read-only too.
Why each option works or fails
• ✓ A. Catalog federation (correct): Glue is a catalog platform with data in object storage, so queries read the S3 files directly on Databricks compute with no copy and lower cost than JDBC pushdown.
• ✗ B. Query federation over JDBC: Glue is not a relational database to be queried through JDBC pushdown, and catalog federation is the lower-cost option for catalog platforms.
• ✗ C. Managed ingestion: it creates a copy that has to be kept refreshed, which the team wants to avoid, and Lakeflow Connect connectors cover databases and SaaS applications rather than Glue tables.
• ✗ D. Open share from Glue: OpenSharing provides data from Unity Catalog providers to recipients, and it is not a way to mount an external catalog into Unity Catalog.
Question 5 of 5
A bank shares a Unity Catalog table with an analytics vendor that uses Power BI and Python, with no Databricks workspace. Security rejects long-lived bearer tokens that the vendor would have to store, and wants the vendor's own identity provider to enforce multi-factor authentication. What should the bank configure?
Show answer
✅ Answer: C
Difficulty: advanced · Topic: OpenSharing, OIDC federation
Authentication for Databricks-to-Open recipients
Recipients without a Unity Catalog workspace use the Databricks-to-Open protocol. The provider chooses how they authenticate:
• Bearer token: Databricks generates a long-lived credential file and an activation link. Providers should configure token lifetime, can restrict recipients with IP access lists, and must ask recipients to store the file securely.
• OIDC federation: the provider defines a federation policy naming the issuer of the recipient's identity provider (such as Microsoft Entra ID or Okta) and the allowed user, group, service principal or application. The recipient's IdP issues a short-lived JWT, enforces policies such as MFA, and Databricks only validates the JWT against the policy. Databricks does not create or manage these tokens.
Why the other mode does not fit
Databricks-to-Databricks needs a Unity Catalog-enabled workspace on the recipient side. Email-based invitations (a Beta feature) do not support OIDC federation either, so they are not a way around it.
Why each option works or fails
• ✗ A. Self-managed server and copy: it duplicates the data outside Unity Catalog governance and gives up the integrated provider-side controls, and the question needs none of it.
• ✗ B. Short-lived bearer token plus daily links: the credential is still a Databricks-issued bearer token that the vendor must store, and MFA is not enforced by the vendor's IdP.
• ✓ C. OIDC federation (correct): it fits recipients on any platform, uses short-lived tokens from the vendor's own IdP with its MFA, and removes shared credentials that need to be stored.
• ✗ D. Sharing identifier: Databricks-to-Databricks requires the recipient to have a Unity Catalog-enabled workspace, which the vendor does not have.
🎯 What to remember
• Never swap streamName for streamARN on a live checkpoint; start a new query and make the sink idempotent.
• To expose a Delta CDC table to Iceberg readers, purge deletion vectors with REORG, enable column mapping, and expect asynchronous metadata.
• In a multi-user setup the admin prepares the source and creates the Unity Catalog connection; non-admins then create their own gateway-pipeline pairs.
• Use catalog federation (connection plus external location) to query Glue, Hive Metastore or Snowflake tables in place on Databricks compute.
• For non-Databricks recipients that need short-lived credentials and IdP-enforced MFA, use Databricks-to-Open sharing with OIDC federation.
📊 About this set
Exam: DBX-DEP · 60 questions · 120 minutes
This set: 5 advanced · 2 scenario, 1 comparison, 1 trade-off, 1 troubleshooting
Topics: Structured Streaming, Amazon Kinesis, Delta Lake, UniForm, Apache Iceberg, Lakeflow Connect, Unity Catalog connections, Lakehouse Federation, OpenSharing, OIDC federation
🔗 Related practice sets
• 5 Questions to Test Your Data Governance Knowledge (DBX-DEP)
• Debugging and Deploying: 5 DBX-DEP Questions with Full Explanations
• Databricks Data Engineer Professional (DBX-DEP): 5 Practice Questions on Data Modeling
• All DBX-DEP practice sets
• Every exam on this blog
📚 More DBX-DEP practice
More DBX-DEP questions: https://hyunhp.github.io/cert-bank/#exam=DBX-DEP
Study guide: https://hyunhp.github.io/cert-bank/study.html#exam=DBX-DEP
These are original practice questions, not real exam questions, and cert-bank is not affiliated with any certification vendor.
Original practice questions written for this blog, not exam dumps.
Comments
Post a Comment