Are there questions about scala basic operations on non-mysql data


#1

To whoever already took the exams, can anyone tell me if there are questions about Scala operations only?

Something like below:

You have been given below code snippet.
val anRDD = sc.parallelize(List(1,2,3,4,5,6,7,8,2,4,2,1,1,1,1,1))
Operation_xyz

Write a correct code snippet for Operation _xyz which will produce below output
Scala.collection.Map[Int,Long]= Map(5->1,8->1,3->1,6->1,1->6,2->3,4->2,7->1)

or all the 7 spark questions are about data from mysql database tables and can be resolved using registered temp tables in sqlContext sql