Which of the following is a common way to create an RDD in Spark?

Answer

All of the above

Explanation

RDDs can be created in Spark in several ways: by parallelizing an existing collection in your driver program, or by referencing datasets in external storage systems like HDFS, local filesystems, or other data sources, and also by applying transformations to existing RDDs.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list