Certified Data Engineer Professional Practice Test

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

Question 46

Although the Databricks Utilities Secrets module provides tools to store sensitive credentials and avoid accidentally displaying them in plain text users should still be careful with which credentials are stored here and which users have access to using these secrets. Which statement describes a limitation of Databricks Secrets?

  1. Because the SHA256 hash is used to obfuscate stored secrets, reversing this hash will display the value in plain text.
  2. Account administrators can see all secrets in plain text by logging on to the Databricks Accounts console.
  3. Secrets are stored in an administrators-only table within the Hive Metastore; database administrators have permission to query this table by default.
  4. Iterating through a stored secret and printing each character will display secret contents in plain text.
  5. The Databricks REST API can be used to list secrets in plain text if the personal access token has proper credentials.

Question 47

What statement is true regarding the retention of job run history?

  1. It is retained until you export or delete job run logs
  2. It is retained for 30 days, during which time you can deliver job run logs to DBFS or S3
  3. It is retained for 60 days, during which you can export notebook run results to HTML
  4. It is retained for 60 days, after which logs are archived
  5. It is retained for 90 days or until the run-id is re-used through custom run configuration

Question 48

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?

  1. Because the REST API was used for job creation and triggering runs, a Service Principal will be automatically used to identify these events.
  2. Because User B last configured the jobs, their identity will be associated with both the job creation events and the job run events.
  3. 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.
  4. Because the REST API was used for job creation and triggering runs, user identity will not be captured in the audit logs.
  5. Because User A created the jobs, their identity will be associated with both the job creation events and the job run events.

Question 49

A user new to Databricks is trying to troubleshoot long execution times for some pipeline logic they are working on. Presently, the user is executing code cell-by-cell, using display() calls to confirm code is producing the logically correct results as new transformations are added to an operation. To get a measure of average time to execute, the user is running each cell multiple times interactively. Which of the following adjustments will get a more accurate measure of how code is likely to perform in production?

  1. Scala is the only language that can be accurately tested using interactive notebooks; because the best performance is achieved by using Scala code compiled to JARs, all PySpark and Spark SQL logic should be refactored.
  2. The only way to meaningfully troubleshoot code execution times in development notebooks Is to use production-sized data and production-sized clusters with Run All execution.
  3. Production code development should only be done using an IDE; executing code against a local build of open source Spark and Delta Lake will provide the most accurate benchmarks for how code will perform in production.
  4. Calling display() forces a job to trigger, while many transformations will only add to the logical query plan; because of caching, repeated execution of the same logic does not provide meaningful results.
  5. The Jobs UI should be leveraged to occasionally run the notebook as a job and track execution time during incremental code development because Photon can only be enabled on clusters launched for scheduled jobs.

Question 50

A production cluster has 3 executor nodes and uses the same virtual machine type for the driver and executor. When evaluating the Ganglia Metrics for this cluster, which indicator would signal a bottleneck caused by code executing on the driver?

  1. The five Minute Load Average remains consistent/flat
  2. Bytes Received never exceeds 80 million bytes per second
  3. Total Disk Space remains constant
  4. Network I/O never spikes
  5. Overall cluster CPU utilization is around 25%