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
Related questions
What is the purpose of 'Sqoop job'?
View question →
What is a 'UDF' in Hive?
View question →
What is the purpose of the 'safemode' in HDFS?
View question →
Which type of Flume Source is used to capture output from a Unix command?
View question →
Which of the following describes the 'schema-on-write' approach?
View question →
What is the purpose of the 'Partitioner' in MapReduce?
View question →
QuestionBack to list