Exam Details

  • Exam Code
    :CCA175
  • Exam Name
    :CCA Spark and Hadoop Developer Exam
  • Certification
    :Cloudera Certified Associate CCA
  • Vendor
    :Cloudera
  • Total Questions
    :95 Q&As
  • Last Updated
    :May 12, 2024

Cloudera Cloudera Certified Associate CCA CCA175 Questions & Answers

  • Question 91:

    Problem Scenario 82 : You have been given table in Hive with following structure (Which you have created

    in previous exercise).

    productid int code string name string quantity int price float

    Using SparkSQL accomplish following activities.

    1.

    Select all the products name and quantity having quantity <= 2000

    2.

    Select name and price of the product having code as 'PEN'

    3.

    Select all the products, which name starts with PENCIL

    4.

    Select all products which "name" begins with 'P\ followed by any two characters, followed by space, followed by zero or more characters

  • Question 92:

    Problem Scenario 67 : You have been given below code snippet.

    lines = sc.parallelize(['lts fun to have fun,','but you have to know how.'])

    M = lines.map( lambda x: x.replace(',7 ').replace('.',' 'J.replaceC-V ').lower())

    r2 = r1.flatMap(lambda x: x.split())

    r3 = r2.map(lambda x: (x, 1))

    operation1

    r5 = r4.map(lambda x:(x[1],x[0]))

    r6 = r5.sortByKey(ascending=False)

    r6.take(20)

    Write a correct code snippet for operationl which will produce desired output, shown below.

    [(2, 'fun'), (2, 'to'), (2, 'have'), (1, its'), (1, 'know1), (1, 'how1), (1, 'you'), (1, 'but')]

  • Question 93:

    Problem Scenario 5 : You have been given following mysql database details.

    user=retail_dba password=cloudera database=retail_db jdbc URL = jdbc:mysql://quickstart:3306/retail_db Please accomplish following activities.

    1.

    List all the tables using sqoop command from retail_db

    2.

    Write simple sqoop eval command to check whether you have permission to read database tables or not.

    3.

    Import all the tables as avro files in /user/hive/warehouse/retail cca174.db

    4.

    Import departments table as a text file in /user/cloudera/departments.

  • Question 94:

    Problem Scenario 51 : You have been given below code snippet.

    val a = sc.parallelize(List(1, 2,1, 3), 1)

    val b = a.map((_, "b"))

    val c = a.map((_, "c"))

    Operation_xyz

    Write a correct code snippet for Operationxyz which will produce below output.

    Output:

    Array[(lnt, (lterable[String], lterable[String]))] = Array(

    (2,(ArrayBuffer(b),ArrayBuffer(c))),

    (3,(ArrayBuffer(b),ArrayBuffer(c))),

    (1,(ArrayBuffer(b, b),ArrayBuffer(c, c))) )

  • Question 95:

    Problem Scenario 55 : You have been given below code snippet.

    val pairRDDI = sc.parallelize(List( ("cat",2), ("cat", 5), ("book", 4),("cat", 12))) val

    pairRDD2 = sc.parallelize(List( ("cat",2), ("cup", 5), ("mouse", 4),("cat", 12)))

    operation1

    Write a correct code snippet for operationl which will produce desired output, shown below.

    Array[(String, (Option[lnt], Option[lnt]))] = Array((book,(Some(4},None)),

    (mouse,(None,Some(4))), (cup,(None,Some(5))), (cat,(Some(2),Some(2)),

    (cat,(Some(2),Some(12))), (cat,(Some(5),Some(2))), (cat,(Some(5),Some(12))),

    (cat,(Some(12),Some(2))), (cat,(Some(12),Some(12)))J

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Cloudera exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your CCA175 exam preparations and Cloudera certification application, do not hesitate to visit our Vcedump.com to find your solutions here.