Certified Data Engineer Professional Practice Test

Certified Data Engineer Professional Practice Test practice questions, page 9 of 14, with answer review and explanations.

Question 41

The DevOps team has configured a production workload as a collection of notebooks scheduled to run daily using the Jobs UI. A new data engineering hire is onboarding to the team and has requested access to one of these notebooks to review the production logic. What are the maximum notebook permissions that can be granted to the user without allowing accidental changes to production code or data?

  1. Can Manage
  2. Can Edit
  3. No permissions
  4. Can Read
  5. Can Run

Question 42

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 marketing group executes the following query: SELECT * FROM email_ltv - Which statement describes the results returned by this query?

  1. Three columns will be returned, but one column will be named "REDACTED" and contain only null values.
  2. Only the email and ltv columns will be returned; the email column will contain all null values.
  3. The email and ltv columns will be returned with the values in user_ltv.
  4. The email.age, and ltv columns will be returned with the values in user_ltv.
  5. Only the email and ltv columns will be returned; the email column will contain the string "REDACTED" in each row.

Question 43

The data governance team has instituted a requirement that all tables containing Personal Identifiable Information (PH) must be clearly annotated. This includes adding column comments, table comments, and setting the custom table property "contains_pii" = true. The following SQL DDL statement is executed to create a new table: Which command allows manual confirmation that these three requirements have been met?

  1. DESCRIBE EXTENDED dev.pii_test
  2. DESCRIBE DETAIL dev.pii_test
  3. SHOW TBLPROPERTIES dev.pii_test
  4. DESCRIBE HISTORY dev.pii_test
  5. SHOW TABLES dev

Question 44

The data governance team is reviewing code used for deleting records for compliance with GDPR. They note the following logic is used to delete records from the Delta Lake table named users. Assuming that user_id is a unique identifying key and that delete_requests contains all users that have requested deletion, which statement describes whether successfully executing the above logic guarantees that the records to be deleted are no longer accessible and why?

  1. Yes; Delta Lake ACID guarantees provide assurance that the DELETE command succeeded fully and permanently purged these records.
  2. No; the Delta cache may return records from previous versions of the table until the cluster is restarted.
  3. Yes; the Delta cache immediately updates to reflect the latest data files recorded to disk.
  4. No; the Delta Lake DELETE command only provides ACID guarantees when combined with the MERGE INTO command.
  5. No; files containing deleted records may still be accessible with time travel until a VACUUM command is used to remove invalidated data files.

Question 45

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?

  1. A logical table will persist the query plan to the Hive Metastore in the Databricks control plane.
  2. An external table will be created in the storage container mounted to /mnt/finance_eda_bucket.
  3. A logical table will persist the physical plan to the Hive Metastore in the Databricks control plane.
  4. An managed table will be created in the storage container mounted to /mnt/finance_eda_bucket.
  5. A managed table will be created in the DBFS root storage container.