Free Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Actual Exam Questions - Question 5 Discussion

Question No. 5
In the code block below, aggDF contains aggregations on a streaming DataFrame:
Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 practice exam questions
Which output mode at line 3 ensures that the entire result table is written to the console during each
trigger execution?
Select one option, then reveal solution.
US
IC
Irfan C.
2026-02-18

A/B? Append only adds new rows, so it can’t output the whole table. Complete mode outputs the full aggregation every trigger, which matches what the question asks. Options C and D don’t exist in standard Spark modes.

0
IC
Irfan C.
2026-02-15

A, complete mode always outputs full aggregation results every trigger run.

0
SM
Sam M.
2026-02-05

Probably A here too. Since the question is about writing the entire result table every trigger, complete mode is the one that guarantees that. Append only outputs new rows, so it won’t show the full aggregation each time. Also, C and D aren’t actual output modes in Spark Structured Streaming, so they can be ruled out easily. Complete is the go-to for full aggregation outputs on console sinks.

0
SM
Sam M.
2026-01-31

Not B, since append mode only outputs new rows and won’t show the full aggregation result every time. Complete mode (A) fits because it writes the entire table after each trigger.

0
SM
Sam M.
2026-01-30

A, since complete mode outputs the full aggregation result every trigger.

0
MR
Marco R.
2026-01-28

Good catch on ruling out C and D since they’re not real modes. I’d also say append (B) can’t work here because aggregations don’t just add rows, so A is the only one that makes sense.

0
BR
Bilal R.
2026-01-26

A/B? Complete mode outputs the full table every time, while append only shows new rows. Replace and aggregate don’t exist as output modes, so they can be ruled out easily.

0
SZ
Shoaib Z.
2026-01-24

Option A, complete mode is the only valid choice that outputs the full aggregation every trigger.

0
TF
Tom F.
2026-01-22

A, complete mode is the only one that reprints the full aggregation result every trigger. Append just adds new data and doesn’t rewrite the whole table. The others aren’t valid output modes anyway.

0
OJ
Osama J.
2026-01-17

A, complete mode is the only one that outputs the full aggregated result each time the query runs. Append mode only outputs new rows, so it won’t show the entire table. The other options, replace and aggregate, aren’t valid output modes in Structured Streaming.

0
OJ
Osama J.
2026-01-12

It's definitely A. complete mode writes the full result every time, which fits the question about the entire table output.

0