Building a (Category, 1) Pair RDD from sfpd in Scala

Company: Accenture

Difficulty: easy

Problem Statement

Question 1

Given the sfpd RDD, you need to create a pair RDD composed of tuples consisting of the form (Category, 1) in Scala. Which of the following options will you use?