Kell has a requirement to reuse an RDD in his coding logic.He decides to persist it in primary memory but however if the primary memory is full, He wants it to be stored in disk as well. Which of the given syntax/code can be used by her?

rdd.persist(StorageLevel.MEMORY_ONLY)

rdd.persist(StorageLevel.MEMORY_AND_DISK)

rdd.persist(StorageLevel.MEMORY_AND_DISKSER)

rdd.save(StorageLevel.MEMORY_DISKMEMORY)

Verified Answer
Correct Option - b

To get all Infosys Certified Spark Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram