InterviewStack.io LogoInterviewStack.io

Big Data Technologies Apache Spark Questions

Understand Apache Spark fundamentals: RDDs, DataFrames, and Datasets. Know Spark SQL for data processing. Understand distributed processing concepts: partitioning, shuffling, and task execution. Know when to use Spark for data processing tasks and its advantages over traditional SQL.

MediumTechnical
49 practiced
You notice severe skew on the join key when joining an events table to a users table, where a small set of user_ids account for most events. Propose a strategy to detect skew and mitigate its impact on joins and aggregations in Spark, including salting, broadcasting hot keys, and sample-based approaches.
EasyTechnical
86 practiced
Compare Spark SQL with a traditional single-node SQL engine like Postgres for analytics workloads. Discuss differences in distributed query execution, latency vs throughput trade-offs, concurrency, handling of large datasets, and when Spark SQL provides advantages over a traditional SQL database.
MediumTechnical
90 practiced
Explain checkpointing versus write-ahead logs (WAL) in Spark Streaming contexts. What does each persist, when is each used, and how do they help with recovery? Describe how Structured Streaming uses checkpoints and what you must include in a reliable checkpoint directory.
EasyTechnical
43 practiced
Explain the differences between RDDs, DataFrames, and Datasets in Apache Spark. For each abstraction describe: API characteristics (typed vs untyped), serialization and optimizer support, performance trade-offs, common use cases in production ETL, and language support differences (Scala/Java/Python). Give examples of when you would pick one over the others.
MediumTechnical
50 practiced
Write PySpark code that performs an efficient join between a large DataFrame users_df (millions of rows) and a small dimension DataFrame countries_df (hundreds of rows) by broadcasting the small table. Provide the code and explain how to verify that broadcast join happened using explain() or the Spark UI.

Unlock Full Question Bank

Get access to hundreds of Big Data Technologies Apache Spark interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.