Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Spark Test Assessment

Topics Covered

  • Spark Core
  • Spark SQL
  • Spark Streaming

Useful for hiring

  • Big Data Software Engineer - Spark
  • Software Developer - Spark

Start hiring job-fit candidates using this assessment

GET A DEMO

"We realized that to acquire quality talent, our recruitment process was in dire need of automation. Too many of our technicalteam were simply wasting hours conducting interviews that did not yield the desired results. For us the foremost criteria were to finda recruitment partner who could tick all the right boxes"

Rehana Nisar, Gartner,
Global Product & Services Recruitment Head
Question

You can cache the data from SchemaRDD by:

Note: There can be multiple correct answers to this question.

Answer
    • hiveCtx.cacheTable("tableName")

    • Hive SQL Statment CACHE TABLE tableName

    • regular cache method on RDDs

    • None of the mentioned

Question

Assume that we have input data below:

1;bat man;23
112;spider man;23
112;spider man;27
112;spider man;29
12;superman ;23

What is the output if we run this code?

public static void main(String[] args) {
    SparkConf conf = new SparkConf().setAppName("org.sparkexample.sampleCode").setMaster("local");
    JavaSparkContext sc = new JavaSparkContext(conf);
    JavaRDD lines = sc.textFile("C:\\Users\\Hoang Ngo\\workspace\\HelloSpark-Java\\sampledata");
    JavaPairRDD lineLengths = lines.map(s -> s.split(";", -1))
    .filter(s->!s[0].equals("1"))
    .mapToPair(s-> new Tuple2(s[0], s[0]+";"+s[1]+";"+s[2]));
    JavaPairRDD counts = lineLengths.reduceByKey((a, b) -> a+b);
    System.out.println(counts.collect());
}

Answer
    • []

    • [(112,112;spider man;23112;spider man;27112;spider man;29)]

    • Run time error

    • [(112,112;spider man;23112;spider man;27112;spider man;29), (12,12;superman ;23)]

Question

We have Spark Streaming window function as below:

lines.countByWindow(Second(30), Seconds(10)).print()

If we use following prompt for streaming:
prompt>nc -lk 9999
10 (0th second)
20 (10 seconds later) 
30 (20 seconds later) 
40 (30 seconds later) 

What will be the output?

Answer
    • Output:
      1
      2
      3
      3

    • Output:
      2
      3
      3
      4

    • Output:
      1
      2
      3

    • Output:
      1
      2
      3
      4

Test details:

Spark test enables employers and recruiters to identify potential hires by evaluating working skills and job readiness. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge. 

Test Details: 20 minutes 

  • 15 Application Oriented Questions

  • 05 Theory Questions 

The combination on Application and Theory questions helps to evaluate Technical as well as practical Skills of Candidates

Test description:

Apache Spark is designed for fast computation and is used to cover a wide range of workloads such as iterative algorithms, interactive queries and streaming. Spark supports multiple languages like Python, SCALA and Java API. Spark is a modified version of Hadoop and it uses Hadoop for storage and processing. This test is specially designed to check application, practical skills of an Spark developer – as per Industry Standards. Our Spark skill test is created and validated by Subject Matter Experts. 
 

Test Topics :
 

The  Spark assessment contains questions on following topics: 

  • Spark Core

  • Spark SQL

  • Spark Streaming
     

The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False. Using powerful reporting, you will have a detailed analysis of test results to help you make better decisions and predict candidate and employee success. 

 

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO