Spark Test Assessment

Topics covered

Spark Core, Spark SQL, Spark Streaming

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

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. 

 

This pre-employment test is useful for hiring:
  • Big Data Software Engineer - Spark
  • Software Developer - Spark

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

Spark Test

Question #1 of 3

You can cache the data from SchemaRDD by:

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

    • hiveCtx.cacheTable("tableName")

    • Hive SQL Statment CACHE TABLE tableName

    • regular cache method on RDDs

    • None of the mentioned

Question #2 of 3

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());
}

    • []

    • [(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 #3 of 3

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?

    • Output:
      1
      2
      3
      3

    • Output:
      2
      3
      3
      4

    • Output:
      1
      2
      3

    • Output:
      1
      2
      3
      4

SAMPLE REPORT
Candidate Name: David Messi Test Date: 28-May-2014
Test Name: Spark Test Test Start Time: 13.30

Score: 18 Out Of 20

Percentage: 90

Result: PASS

passing score image
SECTION PERFORMANCE
Section Name FAIL PASS
Spark
Score: 18/20
STRENGTH AND WEAKNESS
Strength Spark
Weakness -
* Note: If score <= 40 then its a Weakness. If score >= 80 then its a Strength.
ONLINE PROCTORING
0%
10 20 30 40 50 60 70 80 90 100%
Tolerable Limit Not acceptable
Window Violation: 0 | Time Violation: 0 secs
CANDIDATE DETAILS
Gender : Male Phone Number : +1-541-754-3010
Total Experience (Years) : 3 Total Experience (Months) : 5
Skill Set : Spark Current Employer : Interview Mocha
Current Job Title : Solution Architect Current Salary : 600.00
Expected Salary : 1000000.00 Current Location : Chicago

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo

How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • hexaware
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo