Databricks Certified Associate Developer for Apache Spark — Question 19
Which of the following is the most complete description of lazy evaluation?
Answer options
- A. None of these options describe lazy evaluation
- B. A process is lazily evaluated if its execution does not start until it is put into action by some type of trigger
- C. A process is lazily evaluated if its execution does not start until it is forced to display a result to the user
- D. A process is lazily evaluated if its execution does not start until it reaches a specified date and time
- E. A process is lazily evaluated if its execution does not start until it is finished compiling
Correct answer: B
Explanation
Option B is correct because it accurately describes lazy evaluation as a process that begins execution only when triggered. The other options are incorrect as they either mischaracterize the triggering conditions or introduce unrelated criteria that do not define lazy evaluation.