Advancedcomparison Verified ~7 min
What is an accumulator, and why can its value be wrong?
Source: PySpark documentation
Quick answerFree
A shared variable that tasks can only add to and the driver can read, used for counters such as bad records. Spark guarantees each task's update is applied exactly once only for updates inside actions.
Detailed answer· ~220 words
Interview PrepUnlock the full answer with Interview Prep
Get a ~220-word model answer, 3 key points, a visual explainer, 5 common mistakes and 5 follow-ups, plus 43 more Apache Spark questions.
Also in Pro (₹499 / 90 days).
Key points· 3 points
Interview PrepUnlock with Interview Prep
Visual explainer· animated, step by step
Interview PrepUnlock with Interview Prep
Common mistakes· 5
Interview PrepLocked
Best practices· 5
Interview PrepLocked
Likely follow-ups· 5 questions
Interview PrepUnlock with Interview Prep
+ 43 more Apache Spark questions in Interview Prep, each with the full answer.