Questions and Answers

Question MeVqTX40PfqdEWAC711K

Question

Which Python variable contains a list of directories to be searched when trying to locate required modules?

Choices

  • A: importlib.resource_path
  • B: sys.path
  • C: os.path
  • D: pypi.path
  • E: pylib.source

Question TTuKjKEcZbEEOQllsYtW

Question

Incorporating unit tests into a PySpark application requires upfront attention to the design of your jobs, or a potentially significant refactoring of existing code. Which statement describes a main benefit that offset this additional effort?

Choices

  • A: Improves the quality of your data
  • B: Validates a complete use case of your application
  • C: Troubleshooting is easier since all steps are isolated and tested individually
  • D: Yields faster deployment and execution times
  • E: Ensures that all steps interact correctly to achieve the desired end result

Question 0pcKzI21PdsGuSJ5JVkM

Question

Which statement describes integration testing?

Choices

  • A: Validates interactions between subsystems of your application
  • B: Requires an automated testing framework
  • C: Requires manual intervention
  • D: Validates an application use case
  • E: Validates behavior of individual elements of your application

Question ZlE8i3jg0gHzvdrBWkoq

Question

Which REST API call can be used to review the notebooks configured to run as tasks in a multi-task job?

Choices

  • A: /jobs/runs/list
  • B: /jobs/runs/get-output
  • C: /jobs/runs/get
  • D: /jobs/get
  • E: /jobs/list

Question iIJr36zuKbUAwtjssoZo

Question

A Databricks job has been configured with 3 tasks, each of which is a Databricks notebook. Task A does not depend on other tasks. Tasks B and C run in parallel, with each having a serial dependency on task A. If tasks A and B complete successfully but task C fails during a scheduled run, which statement describes the resulting state?

Choices

  • A: All logic expressed in the notebook associated with tasks A and B will have been successfully completed; some operations in task C may have completed successfully.
  • B: All logic expressed in the notebook associated with tasks A and B will have been successfully completed; any changes made in task C will be rolled back due to task failure.
  • C: All logic expressed in the notebook associated with task A will have been successfully completed; tasks B and C will not commit any changes because of stage failure.
  • D: Because all tasks are managed as a dependency graph, no changes will be committed to the Lakehouse until ail tasks have successfully been completed.
  • E: Unless all tasks complete successfully, no changes will be committed to the Lakehouse; because task C failed, all commits will be rolled back automatically.