Cloudera CCA175 Question Answer
Problem Scenario 54 : You have been given below code snippet.
val a = sc.parallelize(List("dog", "tiger", "lion", "cat", "panther", "eagle"))
val b = a.map(x => (x.length, x))
operation1
Write a correct code snippet for operationl which will produce desired output, shown below.
Array[(lnt, String)] = Array((4,lion), (7,panther), (3,dogcat), (5,tigereagle))
Cloudera CCA175 Summary
- Vendor: Cloudera
- Product: CCA175
- Update on: Jan 2, 2026
- Questions: 96

