πŸ”

DATA-ENGINEER-PROFESSIONAL β€” questions

Page 5 of 6 Β· 110 total questions.

Topic 1 Β· Question 81

A junior data engineer has manually configured a series of jobs using the Databricks Jobs UI. Upon reviewing their work, the engineer realizes that they are listed as the "Owner" for each job. They attempt to transfer "Owner" privileges to the "DevOps" group, but cannot successfully accomplish this task. Which statement explains what is preventing this privilege transfer?

  • ADatabricks jobs must have exactly one owner; "Owner" privileges cannot be assigned to a group. (correct answer)
  • BThe creator of a Databricks job will always have "Owner" privileges; this configuration cannot be changed.
  • COnly workspace administrators can grant "Owner" privileges to a group.
  • DA user can only transfer job ownership to a group if they are also a member of that group.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Databricks jobs must have exactly one owner; "Owner" privileges cannot be assigned to a group.

Topic 1 Β· Question 82

A table named user_ltv is being used to create a view that will be used by data analysts on various teams. Users in the workspace are configured into groups, which are used for setting up data access using ACLs. The user_ltv table has the following schema: email STRING, age INT, ltv INT The following view definition is executed: An analyst who is not a member of the auditing group executes the following query: SELECT * FROM user_ltv_no_minors Which statement describes the results returned by this query?

Exhibit 1 for question 82
  • AAll columns will be displayed normally for those records that have an age greater than 17; records not meeting this condition will be omitted. (correct answer)
  • BAll age values less than 18 will be returned as null values, all other columns will be returned with the values in user_ltv.
  • CAll values for the age column will be returned as null values, all other columns will be returned with the values in user_ltv.
  • DAll columns will be displayed normally for those records that have an age greater than 18; records not meeting this condition will be omitted.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: All columns will be displayed normally for those records that have an age greater than 17; records not meeting this condition will be omitted.

Topic 1 Β· Question 83

All records from an Apache Kafka producer are being ingested into a single Delta Lake table with the following schema: key BINARY, value BINARY, topic STRING, partition LONG, offset LONG, timestamp LONG There are 5 unique topics being ingested. Only the "registration" topic contains Personal Identifiable Information (PII). The company wishes to restrict access to PII. The company also wishes to only retain records containing PII in this table for 14 days after initial ingestion. However, for non-PII information, it would like to retain these records indefinitely. Which solution meets the requirements?

  • AAll data should be deleted biweekly; Delta Lake's time travel functionality should be leveraged to maintain a history of non-PII information.
  • BData should be partitioned by the registration field, allowing ACLs and delete statements to be set for the PII directory.
  • CData should be partitioned by the topic field, allowing ACLs and delete statements to leverage partition boundaries. (correct answer)
  • DSeparate object storage containers should be specified based on the partition field, allowing isolation at the storage level.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Data should be partitioned by the topic field, allowing ACLs and delete statements to leverage partition boundaries.

Explanation

Retrieval-augmented generation grounds model responses in retrieved enterprise data to improve relevance and reduce unsupported claims.

Topic 1 Β· Question 84

The data governance team is reviewing code used for deleting records for compliance with GDPR. The following logic has been implemented to propagate delete requests from the user_lookup table to the user_aggregates table. Assuming that user_id is a unique identifying key and that all users that have requested deletion have been removed from the user_lookup table, which statement describes whether successfully executing the above logic guarantees that the records to be deleted from the user_aggregates table are no longer accessible and why?

Exhibit 1 for question 84
  • ANo; the Delta Lake DELETE command only provides ACID guarantees when combined with the MERGE INTO command.
  • BNo; files containing deleted records may still be accessible with time travel until a VACUUM command is used to remove invalidated data files. (correct answer)
  • CNo; the change data feed only tracks inserts and updates, not deleted records.
  • DYes; Delta Lake ACID guarantees provide assurance that the DELETE command succeeded fully and permanently purged these records.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No; files containing deleted records may still be accessible with time travel until a VACUUM command is used to remove invalidated data files.

Explanation

VACUUM removes old unreferenced Delta files after the retention period, reducing storage while preserving time-travel safety. Delta time travel queries or restores earlier table versions using transaction-log history.

Topic 1 Β· Question 85

An external object storage container has been mounted to the location /mnt/finance_eda_bucket. The following logic was executed to create a database for the finance team: After the database was successfully created and permissions configured, a member of the finance team runs the following code: If all users on the finance team are members of the finance group, which statement describes how the tx_sales table will be created?

Exhibit 1 for question 85Exhibit 2 for question 85
  • AA logical table will persist the query plan to the Hive Metastore in the Databricks control plane.
  • BAn external table will be created in the storage container mounted to /mnt/finance_eda_bucket.
  • CA managed table will be created in the DBFS root storage container.
  • DAn managed table will be created in the storage container mounted to /mnt/finance_eda_bucket. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: An managed table will be created in the storage container mounted to /mnt/finance_eda_bucket.

Explanation

Retrieval-augmented generation grounds model responses in retrieved enterprise data to improve relevance and reduce unsupported claims.

Topic 1 Β· Question 86

The data engineering team has been tasked with configuring connections to an external database that does not have a supported native connector with Databricks. The external database already has data security configured by group membership. These groups map directly to user groups already created in Databricks that represent various teams within the company. A new login credential has been created for each group in the external database. The Databricks Utilities Secrets module will be used to make these credentials available to Databricks users. Assuming that all the credentials are configured correctly on the external database and group membership is properly configured on Databricks, which statement describes how teams can be granted the minimum necessary access to using these credentials?

  • ANo additional configuration is necessary as long as all users are configured as administrators in the workspace where secrets have been added.
  • B"Read" permissions should be set on a secret key mapped to those credentials that will be used by a given team.
  • C"Read" permissions should be set on a secret scope containing only those credentials that will be used by a given team. (correct answer)
  • D"Manage" permissions should be set on a secret scope containing only those credentials that will be used by a given team.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: "Read" permissions should be set on a secret scope containing only those credentials that will be used by a given team. This option keeps traffic private / properly secured as required.

Topic 1 Β· Question 87

What is the retention of job run history?

  • AIt is retained until you export or delete job run logs
  • BIt is retained for 30 days, during which time you can deliver job run logs to DBFS or S3
  • CIt is retained for 60 days, during which you can export notebook run results to HTML (correct answer)
  • DIt is retained for 60 days, after which logs are archived
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: It is retained for 60 days, during which you can export notebook run results to HTML

Topic 1 Β· Question 88

A data engineer, User A, has promoted a new pipeline to production by using the REST API to programmatically create several jobs. A DevOps engineer, User B, has configured an external orchestration tool to trigger job runs through the REST API. Both users authorized the REST API calls using their personal access tokens. Which statement describes the contents of the workspace audit logs concerning these events?

  • ABecause the REST API was used for job creation and triggering runs, a Service Principal will be automatically used to identify these events.
  • BBecause User A created the jobs, their identity will be associated with both the job creation events and the job run events.
  • CBecause these events are managed separately, User A will have their identity associated with the job creation events and User B will have their identity associated with the job run events. (correct answer)
  • DBecause the REST API was used for job creation and triggering runs, user identity will not be captured in the audit logs.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Because these events are managed separately, User A will have their identity associated with the job creation events and User B will have their identity associated with the job run events.

Topic 1 Β· Question 89

A distributed team of data analysts share computing resources on an interactive cluster with autoscaling configured. In order to better manage costs and query throughput, the workspace administrator is hoping to evaluate whether cluster upscaling is caused by many concurrent users or resource-intensive queries. In which location can one review the timeline for cluster resizing events?

  • AWorkspace audit logs
  • BDriver's log file
  • CGanglia
  • DCluster Event Log (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Cluster Event Log

Topic 1 Β· Question 90

When evaluating the Ganglia Metrics for a given cluster with 3 executor nodes, which indicator would signal proper utilization of the VM's resources?

  • AThe five Minute Load Average remains consistent/flat
  • BCPU Utilization is around 75% (correct answer)
  • CNetwork I/O never spikes
  • DTotal Disk Space remains constant
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: CPU Utilization is around 75%

Topic 1 Β· Question 91

The data engineer is using Spark's MEMORY_ONLY storage level. Which indicators should the data engineer look for in the Spark UI's Storage tab to signal that a cached table is not performing optimally?

  • AOn Heap Memory Usage is within 75% of Off Heap Memory Usage
  • BThe RDD Block Name includes the β€œ*” annotation signaling a failure to cache
  • CSize on Disk is > 0 (correct answer)
  • DThe number of Cached Partitions > the number of Spark Partitions
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Size on Disk is > 0

Topic 1 Β· Question 92

Review the following error traceback: Which statement describes the error being raised?

Exhibit 1 for question 92
  • AThere is a syntax error because the heartrate column is not correctly identified as a column.
  • BThere is no column in the table named heartrateheartrateheartrate (correct answer)
  • CThere is a type error because a column object cannot be multiplied.
  • DThere is a type error because a DataFrame object cannot be multiplied.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: There is no column in the table named heartrateheartrateheartrate

Topic 1 Β· Question 93

What is a method of installing a Python package scoped at the notebook level to all nodes in the currently active cluster?

  • ARun source env/bin/activate in a notebook setup script
  • BInstall libraries from PyPI using the cluster UI
  • CUse %pip install in a notebook cell (correct answer)
  • DUse %sh pip install in a notebook cell
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use %pip install in a notebook cell

Topic 1 Β· Question 94

What is the first line of a Databricks Python notebook when viewed in a text editor?

  • A%python
  • B// Databricks notebook source
  • C# Databricks notebook source (correct answer)
  • D-- Databricks notebook source
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: # Databricks notebook source

Topic 1 Β· Question 95

When scheduling Structured Streaming jobs for production, which configuration automatically recovers from query failures and keeps costs low?

  • ACluster: New Job Cluster; Retries: Unlimited; Maximum Concurrent Runs: 1 (correct answer)
  • BCluster: New Job Cluster; Retries: Unlimited; Maximum Concurrent Runs: Unlimited
  • CCluster: Existing All-Purpose Cluster; Retries: Unlimited; Maximum Concurrent Runs: 1
  • DCluster: New Job Cluster; Retries: None; Maximum Concurrent Runs: 1
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Cluster: New Job Cluster; Retries: Unlimited; Maximum Concurrent Runs: 1

Explanation

A job cluster provides isolated, ephemeral compute for a job run and terminates afterward to control cost. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 96

A Delta Lake table was created with the below query: Realizing that the original query had a typographical error, the below code was executed: ALTER TABLE prod.sales_by_stor RENAME TO prod.sales_by_store Which result will occur after running the second command?

Exhibit 1 for question 96
  • AThe table reference in the metastore is updated.
  • BAll related files and metadata are dropped and recreated in a single ACID transaction.
  • CThe table name change is recorded in the Delta transaction log. (correct answer)
  • DA new Delta transaction log is created for the renamed table.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The table name change is recorded in the Delta transaction log.

Topic 1 Β· Question 97

The data engineering team has configured a Databricks SQL query and alert to monitor the values in a Delta Lake table. The recent_sensor_recordings table contains an identifying sensor_id alongside the timestamp and temperature for the most recent 5 minutes of recordings. The below query is used to create the alert: The query is set to refresh each minute and always completes in less than 10 seconds. The alert is set to trigger when mean (temperature) > 120. Notifications are triggered to be sent at most every 1 minute. If this alert raises notifications for 3 consecutive minutes and then stops, which statement must be true?

Exhibit 1 for question 97
  • AThe total average temperature across all sensors exceeded 120 on three consecutive executions of the query
  • BThe average temperature recordings for at least one sensor exceeded 120 on three consecutive executions of the query (correct answer)
  • CThe source query failed to update properly for three consecutive minutes and then restarted
  • DThe maximum temperature recording for at least one sensor exceeded 120 on three consecutive executions of the query
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: The average temperature recordings for at least one sensor exceeded 120 on three consecutive executions of the query

Explanation

Retrieval-augmented generation grounds model responses in retrieved enterprise data to improve relevance and reduce unsupported claims.

Topic 1 Β· Question 98

The Databricks workspace administrator has configured interactive clusters for each of the data engineering groups. To control costs, clusters are set to terminate after 30 minutes of inactivity. Each user should be able to execute workloads against their assigned clusters at any time of the day. Assuming users have been added to a workspace but not granted any permissions, which of the following describes the minimal permissions a user would need to start and attach to an already configured cluster.

  • A"Can Manage" privileges on the required cluster
  • BCluster creation allowed, "Can Restart" privileges on the required cluster
  • CCluster creation allowed, "Can Attach To" privileges on the required cluster
  • D"Can Restart" privileges on the required cluster (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: "Can Restart" privileges on the required cluster

Topic 1 Β· Question 99

The data science team has created and logged a production model using MLflow. The following code correctly imports and applies the production model to output the predictions as a new DataFrame named preds with the schema "customer_id LONG, predictions DOUBLE, date DATE". The data science team would like predictions saved to a Delta Lake table with the ability to compare all predictions across time. Churn predictions will be made at most once per day. Which code block accomplishes this task while minimizing potential compute costs?

Exhibit 1 for question 99
  • Apreds.write.mode("append").saveAsTable("churn_preds") (correct answer)
  • Bpreds.write.format("delta").save("/preds/churn_preds")
  • C
  • D
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: preds.write.mode("append").saveAsTable("churn_preds")

Topic 1 Β· Question 100

A data architect has designed a system in which two Structured Streaming jobs will concurrently write to a single bronze Delta table. Each job is subscribing to a different topic from an Apache Kafka source, but they will write data with the same schema. To keep the directory structure simple, a data engineer has decided to nest a checkpoint directory to be shared by both streams. The proposed directory structure is displayed below: Which statement describes whether this checkpoint directory structure is valid for the given scenario and why?

Exhibit 1 for question 100
  • ANo; Delta Lake manages streaming checkpoints in the transaction log.
  • BYes; both of the streams can share a single checkpoint directory.
  • CNo; only one stream can write to a Delta Lake table.
  • DNo; each of the streams needs to have its own checkpoint directory. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: No; each of the streams needs to have its own checkpoint directory.

Explanation

A streaming checkpoint stores progress and state so a query can recover without reprocessing committed data. This option meets the real-time / low-latency performance requirement.

Showing questions 81–100 of 110 Β· Page 5 of 6