0% found this document useful (0 votes)
78 views

How To Master Apache Spark Interview Questions

This document outlines topics and questions related to Apache Spark interview preparation. It is organized into 8 parts that cover Spark concepts like RDDs, transformations, actions, Spark SQL, and Spark Streaming. Each part contains 5 questions on a Spark topic along with video explanations of the answers ranging from 2-4 minutes in length. The goal is to help candidates learn about Spark and practice answering common interview questions.

Uploaded by

ravikumar lanka
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

How To Master Apache Spark Interview Questions

This document outlines topics and questions related to Apache Spark interview preparation. It is organized into 8 parts that cover Spark concepts like RDDs, transformations, actions, Spark SQL, and Spark Streaming. Each part contains 5 questions on a Spark topic along with video explanations of the answers ranging from 2-4 minutes in length. The goal is to help candidates learn about Spark and practice answering common interview questions.

Uploaded by

ravikumar lanka
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

 How to master Apache Spark interview questions?


 What are the main features of Apache Spark?
Preview03:34
 What is a Resilient Distribution Dataset in Apache Spark?
 What is a Transformation in Apache Spark?
 What are security options in Apache Spark?
 How will you monitor Apache Spark?

Spark Interview Questions - Part 25 lectures • 16min

 What are the main libraries of Apache Spark?


 What are the main functions of Spark Core in Apache Spark?
 How will you do memory tuning in Spark?
 What are the two ways to create RDD in Spark?
 What are the common Transformations in Apache Spark?

Spark Interview Questions - Part 35 lectures • 13min

 What are the common Actions in Apache Spark?


02:44
 What is a Shuffle operation in Spark?
02:43
 What is purpose of Spark SQL?
03:08
 What is a DataFrame in Spark SQL?
02:13
 What is a Parquet file in Spark?
02:32

Spark Interview Questions - Part 45 lectures • 14min

 What is the difference between Apache Spark and Apache Hadoop MapReduce?
Preview03:26
 What are the main languages supported by Apache Spark?
02:37
 What are the file systems supported by Spark?
02:19
 What is an RDD Lineage?
03:17
 What are the different deployment modes of Apache Spark?
02:30

Spark Interview Questions - Part 55 lectures • 14min

 What is lazy evaluation in Apache Spark?


Preview02:27
 What are the core components of a distributed application in Apache Spark?
03:10
 How will you remove data from cache in Apache Spark?
03:10
 Do we need HDFS for running Spark application?
02:19
 What is Spark Streaming?
03:22

Spark Interview Questions - Part 65 lectures • 13min

 What is a Pipeline in Apache Spark?


02:43
 What are the different types of Cluster Managers in Apache Spark?
02:22
 How will you minimize data transfer while working with Apache Spark?
02:35
 What is the main use of MLib in Apache Spark?
02:39
 What is Checkpointing in Apache Spark?
02:57

Spark Interview Questions - Part 75 lectures • 13min

 What is an Accumulator in Apache Spark?


03:04
 What is Structured Streaming in Apache Spark?
02:27
 What is a Property Graph?
02:23
 What is Neighborhood Aggregation in Spark?
02:11
 What are different Persistence levels in Apache Spark?
02:36

Spark Interview Questions - Part 83 lectures • 7min

 How will you select the storage level in Apache Spark?


02:25
 What are the options in Spark to create a Graph?
02:24
 What are the basic Graph operators in Spark?
 -=============
Course content
16 sections • 157 lectures • 42h 50m total length

Expand all sections

Introduction1 lecture • 1min
 Introduction
Preview00:42
Intergers7 lectures • 1hr 43min
 FizzBuzz (LeetCode 412) [Asked by LinkedIn]
05:35
 Single Number (LeetCode 136) [Asked by Amazon]
11:13
 Reverse Integer (LeetCode 7) [Asked by Facebook]
21:32
 Palindrome Number (LeetCode 9) [Asked by Facebook/Bloomberg]
16:37
 Factorial Trailing Zeroes (LeetCode 172) [Asked by Microsoft]
14:45
 Pow(x, n) (LeetCode 50) [Asked by Facebook/Amazon/LinkedIn]
10:59
 Nth Root of a Number (Not on LeetCode) [Asked by Directi]
22:08

Strings12 lectures • 3hr 3min


 Reverse String (LeetCode 344) [Asked by MicroSoft/Uber]
06:35
 Longest Common Prefix (LeetCode 14) [Asked by Facebook]
Preview11:11
 Repeated DNA Sequences (LeetCode 187) [Asked by Google]
11:00
 Longest Substring without Repeating Characters (LeetCode 3) [Asked by Google]
17:26
 Valid Parentheses (LeetCode 20) [Facebook]
15:04
 Longest Palindromic Substring (LeetCode 5) [Asked by Facebook]
16:31
 Decode String (LeetCode 394) [Asked by Google]
17:38
 Group Anagrams (LeetCode 49) [Asked by Facebook]
05:47
 Longest Valid Parentheses (LeetCode 32) [Asked by Google]
11:15
 Reverse Words in a String (LeetCode 151) [Asked by Facebook/Amazon]
27:45
 Valid Anagram (LeetCode 242) [Asked by Facebook]
20:24
 Integer to English Words (LeetCode 273) [Facebook, Microsoft]
22:45
 Quiz - 1 -- String
1 question
 Quiz - 2 -- String
1 question
 Quiz - 3 -- String
1 question

Binary Search4 lectures • 1hr 5min


 Binary Search (LeetCode 704) [Asked by Infosys,Oracle]
12:01
 Search in Rotated Sorted Array (LeetCode 33) [Asked by Facebook]
13:40
 Find Minimum in Rotated Sorted Array (LeetCode 153) [Asked by Facebook]
12:33
 Longest Increasing Subsequence--Binary Search (LeetCode 300) [Asked by Facebook]
26:18

Arrays26 lectures • 6hr 15min


 Best Time to Buy And Sell Stock(LeetCode 121) [Asked by Facebook/Microsoft]
10:49
 Move Zeroes (LeetCode 283) [Asked by Facebook]
Preview13:49
 Two Sum (LeetCode 1) [Asked by Google]
11:59
 Ransom Note
16:35
 Contains Duplicate (LeetCode 217) [Asked by Google]
06:52
 Length of Last Word (LeetCode 58) [Asked by Amazon]
06:53
 Can Place Flowers(LeetCode 605) [Asked by Google]
16:48
 Best Time to Buy and Sell Stock II (LeetCode 122) [Asked by Google]
06:52
 Merge Sorted Array (LeetCode 80) [Asked by Microsoft]
09:47
 Rotate Array (LeetCode 189) [Asked by Microsoft]
10:42
 Jump Game (LeetCode 55) [Asked by Google]
09:58
 Sort Colors (LeetCode 75) [Asked by Facebook]
Preview09:33
 Plus One (LeetCode 66) [Asked by Google]
08:38
 Product of Array Except Self (LeetCode 238) [Asked by Facebook]
19:53
 Sequential Digits (LeetCode 1291) [Asked by Facebook]
14:52
 Find All Disappeared Numbers in an Array (LeetCode 448) [Asked by Google]
15:00
 Find All Duplicates Numbers in an Array (Leetcode 442) [Asked by Facebook]
12:34
 First Missing Positive (LeetCode 41) [Asked by Microsoft]
19:28
 Next Permutation (LeetCode 31) [Asked by Google]
25:43
 Largest Subarray With 0 Sum [Asked by Microsoft]
17:14
 Subarray Product Less than K (LeetCode 713) [Asked by Goldman Sachs]
16:47
 K-Diff Pairs in an Array (LeetCode 532) [Asked by Amazon]
15:26
 Jump Game III (LeetCode 1306) [Asked by Facebook]
14:50
 Minimum Domino Rotations For Equal Row (LeetCode 1007) [Asked by Google]
11:26
 132 Pattern :: 3 Solution :: (LeetCode 456) [Asked by Meta]
21:19
 Sliding Window Maximum (LeetCode 239) [Asked by Google]
30:59

Two Pointers5 lectures • 1hr 11min


 Is Subsequence (LeetCode 392) [Asked by Google]
12:15
 Squares of a Sorted Array (LeetCode 977) [Asked by Facebook]
12:25
 Remove Duplicates from Sorted Array (LeetCode 26) [Asked by Facebook/Microsoft]
09:51
 Valid Palindrome (LeetCode 125) [Asked by Facebook]
09:58
 3 Sum (LeetCode 15) [Asked by Facebook]
26:34

Famous Algorithm2 lectures • 34min


 Boyer-Moore Voting Algorithm (Majority Element- LeetCode 169) [Asked by Amazon]
21:06
 Kaden's Algorithm (Maximum Subarray :: LeetCode 53) [Asked by Google]
12:28

Sorting Algorithms6 lectures • 2hr 56min


 Merge Sort Algorithm [Asked by Amazon, Microsoft]
35:23
 [OLD] Merge Sort ::Sort an Array (LeetCode 912)
Preview13:21
 Count Inversions -- Using Merge Sort [Asked by Amazon, Microsoft]
36:57
 [OLD] Quick Sort ::Sort an Array (LeetCode 912)
16:33
 Quick Sort Algorithm [Asked by Amazon, Microsoft]
35:46
 Kth Largest/Smallest Element (LeetCode 215) [Asked by Google, Microsoft]
37:55

2D Arrays / Matrix7 lectures • 1hr 56min


 Range Sum Query 2D - Immutable (LeetCode 304) [Asked by Amazon]
15:54
 Search a 2D Matrix (LeetCode 74) [Asked by Microsoft]
10:57
 Set Matrix Zeroes (LeetCode 73) [Asked by Facebook]
17:43
 Set Matrix Zeroes[OLD] (3 Solutions) (LeetCode 73) [Asked by Facebook]
27:39
 Spiral Matrix (LeetCode 54) [Asked by Microsoft]
20:12
 Spiral Matrix (LeetCode 54) [OLD] [Asked by Microsoft]
15:37
 Rotate Image (LeetCode 48) [Asked by Microsoft]
Preview08:25

Linked List15 lectures • 3hr 30min


 Delete Node in a Linked List (LeetCode 237) [Asked by Amazon,Microsoft]
03:47
 Merge Two Sorted Lists (LeetCode 21) [Asked by Microsoft]
13:23
 Reverse Linked List ::4 Ways:: (LeetCode 206) [Asked by Google, Facebook]
Preview26:36
 Reverse Nodes in k-group (LeetCode 25) [Asked by Microsoft]
Preview17:32
 Remove Duplicates from Sorted List ::O(N):: (LeetCode 83) [Asked by Microsoft]
09:13
 Remove Duplicates from Sorted List ::O(1):: (LeetCode 83) [Asked by Microsoft]
13:41
 Rotate List (LeetCode 61) [Asked by Microsoft]
14:30
 Reorder List (LeetCode 143) [Asked by Amazon,LinkedIn,Microsoft]
22:27
 Palindrome Linked List (LeetCode 234) [Asked by Microsoft]
20:22
 Flatten Binary Tree to Linked List (LeetCode 114) [Asked by Facebook]
13:07
 Linked List Cycle ii (LeetCode 142) [Asked by Microsoft]
16:54
 Linked List Cycle (LeetCode 141) [Asked by Amazon]
06:47
 Intersection of Two Linked List (LeetCode 160)
08:23
 Copy List with Random Pointer (LeetCode 138) [Asked by Google]
06:28
 LRU Cache (LeetCode 146) [Asked by Google/Facebook]
16:46

Tree, Stack, Queue22 lectures • 4hr 52min


 Tree Traversal Techniques in Details (Preorder, Inorder, Postorder)
09:21
 Binary Tree Preorder Traversal ::Recursive + Iterative Solution:: (LeetCode 144)
20:04
 Binary Tree Inorder Traversal ::Recursive + Iterative Solution:: (LeetCode 94)
17:23
 Binary Tree Post Order Traversal ::Recursive + Iterative:: (LeetCode 145)
17:27
 Level Order Traversal Binary Tree ::Recursive + Iterative:: (LeetCode 102)
15:32
 Binary Tree Zigzag Level Order Traversal ::Recursive + Iterative::(LeetCode 103)
25:07
 Convert Sorted Array to Binary Search Tree (LeetCode 108)
11:55
 Construct Binary Search Tree from Preorder Traversal (LeetCode 1008)
13:51
 Diameter of Binary Tree (LeetCode 543)
14:51
 Range Sum of BST (LeetCode 938)
04:01
 Same Tree (LeetCode 100) [Asked by Amazon,Microsoft]
12:06
 Flip/Invert Binary Tree (LeetCode 226)
06:58
 Minimum Depth of Binary Tree (LeetCode 111)
07:50
 Maximum Depth of Binary Tree (LeetCode 104)
06:39
 Balanced Binary Tree (LeetCode 110)
10:18
 Insert into a Binary Search Tree (LeetCode 701)
05:56
 Serialize and deserialize binary tree (LeetCode 297)
Preview10:58
 Binary Tree Maximum Path Sum (LeetCode 124)
07:32
 Validate Binary Search Tree (LeetCode 98)
24:36
 Robber House III (LeetCode 337)
10:52
 Lowest Common Ancestor of Binary Tree (LeetCode 236)
21:13
 Binary Tree Cameras (LeetCode 968) [Asked by Uber]
17:51

Trie & Heap5 lectures • 2hr 11min


 Kth Largest Element in an Array (LeetCode 215) [Asked by Microsoft, Amazon]
20:12
 Find Median in a Data Stream
34:08
 Implement Trie (LeetCode 208) :: HashMap :: [Asked by Amazon, Microsoft]
36:14
 Implement Trie (LeetCode 208) :: Array :: [Asked by Amazon, Microsoft]
14:18
 Prefix and Suffix Search (LeetCode 745) [Asked by Google]
26:00

Recursion & Backtracking16 lectures • 5hr 24min


 String Permutation - (Non Duplicates) [Asked by Google]
15:36
 String Permutation - (Duplicates) [Asked by Google]
20:02
 Permutations -- Array (LeetCode 46) [Asked by Google]
20:37
 Combinations (LeetCode 77) [Asked by Google/Facebook/Amazon]
17:47
 Combination Sum (LeetCode 39) [Asked by Google]
Preview23:22
 [OLD] Combination Sum iii (LeetCode 216) [Asked by Microsoft]
10:08
 Generate Parentheses (LeetCode 22) [Asked Facebook,Microsoft]
19:05
 [OLD] Generate Parentheses (LeetCode 22) [Asked Facebook/Microsoft]
08:47
 Letter Combinations of a Phone Number (LeetCode 17) [Asked by Google]
25:23
 [OLD]Letter Combinations of a Phone Number (LeetCode 17) [Asked by Google]
11:40
 Restore IP Addresses (LeetCode 93) [Asked by Facebook/Apple]
27:31
 Splitting a String Into Descending Consecutive Values (1849) [Asked by Google]
17:30
 Max Len of a Concatenated Str with Unique Char (LeetCode 1239) [Asked by Google]
16:44
 Partition to K Equal Sum Subsets (LeetCode 698) [Asked by Microsoft]
32:48
 Rat in a Maze [Asked by Amazon/Microsoft]
31:10
 M-Coloring [Asked by Amazon]
25:56

Graph Theory6 lectures • 2hr 2min








Dynamic Programming15 lectures • 4hr 29min
 Triangle (LeetCode 120) [Asked by Facebook]
13:53
 Pascal's Triangle (LeetCode 118) [Asked by Amazon/Uber]
17:02
 Pascal's Triangle II (LeetCode 119) [Asked by Google]
11:21
 Word Break (LeetCode 139) [Asked by Microsoft]
Preview16:23
 Maximum Product Subarray (LeetCode 152) [Asked by Amazon]
13:43
 House Robber (LeetCode 198)
16:38
 House Robber II (LeetCode 213)
22:12
 Fibonacci Number :: 3 Solutions :: (LeetCode 509)
25:09
 Climbing Stair using Fibonacci Sequence
07:15
 Climbing Stairs (LeetCode 70)
10:25
 Minimum Path Sum (LeetCode 64)
11:32
 Longset Increasing Subsequence(LeetCode 300)
24:59
 Longest Common Subsequence (LeetCode 1143)
17:24
 Edit Distance (LeetCode 72)
27:54
 Regular Expression Matching (LeetCode 10)
32:46

Bit Manipulation8 lectures • 1hr 40min


 Find the Difference (LeetCode 389)
05:05
 Reverse Bits (LeetCode 190)
06:02
 Hamming Distance (LeetCode 461)
08:11
 Complement of Base 10 Integer (LeetCode 1009)
09:03
 Counting Bits (LeetCode 338)
16:11
 Power Set (Asked by Snapdeal)
17:44
 Sum of Two Integers (LeetCode 371)
Preview13:58
 Divide Two Integers (LeetCode 29)
23:23



Preview00:10
 Question 2: What is the difference between a database and DBMS?
Preview00:47
 Question 3: What is the difference between DBMS and Relational DBMS?
Preview00:32
 Question 4. What are DDL, DML and DCL statements?
Preview00:52
 Question 5: What is SQL?
Preview00:52
 Question 6: How do you create a table?
Preview01:43
 Question 7: What is the difference between CHAR and VARCHAR2 datatype in sql
Preview02:21
 Question 8: How do you create a table from another table?
Preview03:48
 Question 9: How do you insert values into a table?
Preview03:59
 Question 10: Can you insert data into the same table by taking data from it?
Preview01:13
 Question 11: What will happen if you insert a bigger value into a varchar column
01:03
 Question 12: How do you select data from a table?
01:30
 Question 13: How do you select data from a table using WHERE clause?
02:02
 Question 14: How do you delete all data from a table?
00:41
 Question 15: How do you delete data from a table based on a condition?
01:16
 Question 16: What is the difference between DELETE and TRUNCATE statements?
01:10
 Question 17: How do you drop a table?
01:47
 Question 18: What is the difference between Delete and Drop?
01:34
 Question 19: What are constraints and what is their importance?
01:46
 Question 20: What is a Primary Key?
01:12
 Question 21: How do you create a Primary key while creating a table?
00:53
 Question 22: How do you create a table level Primary Key?
00:44
 Question 23: How do you create a Unique Key while creating a table?
01:11
 Question 24: How do you create a table level Unique Key?
01:29
 Question 25: What is the difference between a Primary Key and Unique Key?
02:30
 Question 26: How do you create a Check constraint while creating a table?
01:53
 Question 27: How do you create a table level check constraint?
02:49
 Question 28: Create a check constraint to restrict values to a range
01:10
 Question 29: Create a check constraint to have name starting with A
02:06
 Question 30: How do you create a foreign key on a table?
02:44
 Question 31: How do you create a table level foreign key?
01:46
 Question 32: What is meant by a nullable column?
01:00
 Question 33: What are aggregate functions?
00:25
 Question 34: Write a SQL statement to count the total number of rows of a table
00:42
 Question 35: Write a SQL statement to count number of rows matching a condition
00:57
 Question 36: Write a SQL statement where column matches with a string value(LIKE
01:29
 Question 37: How do you calculate the average,minimum and maximum salary from em
00:42
 Question 38: How do you calculate total salary for employees grouped by employee
01:18
 Question 39: How do you select data in a table in sorted order(Asc & and desc)
01:16
 Question 40: How do you specify a condition with a GROUP BY clause?
02:03
 Question 41: Can you have both HAVING and WHERE clauses together?
01:06
 Question 42: Write a query to display schema of a table
01:43
 Question 43: Alter a table to add a new column to a table
00:56
 Question 44: How do you change the data type of a column of a table
01:18
 Question 45: How do you drop a column from a table?
00:54
 Question 46: What is a Join?
01:10
 Question 47: Explain different types of joins
00:49
 Question 48: What is the difference between an outer join and inner join?
02:36
 Question 49: What is the difference between Left Inner Join and Left Outer join?
01:28
 Question 50: What is Cross Join? Where is it useful?
02:40
 Question 51: What is Full Join?
01:40
 Question 52: What is Self Join?
02:40
 Question 53: Write a sql statement to display current date and time
00:30
 Question 54: Write a sql statement to display the server and database name
00:35
 Question 55: Write a sql statement to display the user name
00:27
 Question 56: Write a sql statement to display the number of tables present in db
01:50
 Question 57: Write sql to display the second highest salary from employee table
02:02
 Question 58: Write a SQL query to return a substring from a string
01:36
 Question 59: Write a SQL query to return the no of characters of a given string
00:41
 Question 60: Write SQL to return the numeric position of a character in a string
01:05
 Question 61: Write a SQL statement to display distinct salaries from a table
00:54
 Question 62: How do you concatenate two strings in sql?
01:08
 Question 63: Create a empty table with the same structure as another table
01:20
 Question 64: SQL to return first 3 characters(right and middle also) of a string
01:37
 Question 65: What are indexes? Why they are used?
01:59
 Question 66: What are clustered indexes?
02:28
 Question 67: What are non-clustered index?
02:28
 Question 68: What is a Unique index? Write a SQL to create one
02:29
 Question 69: What is a view? Write a sql statement to create a view
01:43
 Question 70: Write a sql statement to display the number of views present
01:40
 Question 71: What is a subquery? Why is it used?
02:12
 Question 72: Write a query to remove spaces present in a string from sides
01:34
 Question 73: What is the difference between Union and Union all?
02:04
 Question 74: What is EXCEPT or MINUS operator?
01:49
 Question 75: What is Intersect operator?
00:55
 Question 76: What are temp tables in SQL Server?
01:06
 Question 77: What are global temp tables in SQL?
01:13
 Question 78: How to get nth maximum salary from a table?
03:13
 Question 79: Nth maximum salary when there are duplicate salaries
04:22
 Question 80: What is COALESCE function in SQL?
01:36
 Question 81: What is OLTP?
01:24
 Question 82: What is the difference between OLTP and OLAP systems?
01:21
 Question 83: What are the different types of relationship existing in RDBMS?
01:02
 Question 84: How to create a temp table in SQL Server?
00:41
 Question 85: How to write a CASE statement in SQL?
02:24
 Question 86: How do we delete duplicate rows?

You might also like