Add office photos
Employer?
Claim Account for FREE

Beeline

4.0
based on 1 Review
Filter interviews by

IBM Interview Questions and Answers

Updated 24 Apr 2024

Q1. Difference between bucket and partitioning in hive

Ans.

Bucketing is a way of organizing data files into multiple files based on a hash function, while partitioning is dividing data into different directories based on the column values.

  • Bucketing is used for evenly distributing data across files for better query performance.

  • Partitioning is used for organizing data based on specific column values for easier data retrieval.

  • Example: Bucketing can be used to evenly distribute sales data into 4 files, while partitioning can organize the...read more

Add your answer

Q2. What are the tables in hive

Ans.

Hive tables are used to store structured data in Hive, similar to tables in a traditional database.

  • Hive tables are created using the CREATE TABLE statement.

  • Tables can be partitioned based on one or more columns.

  • External tables in Hive store data outside of the default location in HDFS.

  • Managed tables store data in the default location in HDFS.

  • Tables can be queried using SQL-like syntax in HiveQL.

Add your answer

Q3. Types of read mode in spark

Ans.

Types of read mode in Spark include permissive, dropMalformed, and failFast.

  • Permissive mode - ignores corrupted records and loads all possible data

  • DropMalformed mode - drops corrupted records during reading

  • FailFast mode - fails immediately upon encountering corrupted records

Add your answer

Q4. JDK, JVM, JRE difference

Ans.

JDK is a development kit, JRE is a runtime environment, and JVM is a virtual machine that executes Java bytecode.

  • JDK (Java Development Kit) is a software development kit used to develop Java applications.

  • JRE (Java Runtime Environment) is a software package that provides the libraries and components necessary for running Java applications.

  • JVM (Java Virtual Machine) is an abstract machine that provides the runtime environment in which Java bytecode can be executed.

  • JDK includes ...read more

Add your answer
Discover IBM interview dos and don'ts from real experiences

Q5. JVM GC description

Ans.

JVM GC manages memory by reclaiming unused objects, improving performance.

  • JVM GC stands for Java Virtual Machine Garbage Collection

  • It automatically manages memory by reclaiming unused objects

  • Different types of GC algorithms like Serial, Parallel, CMS, G1 are available

  • GC can cause pauses in application execution, affecting performance

Add your answer

Q6. Generics in kotlin

Ans.

Generics in Kotlin allow you to write flexible and reusable code by defining classes, functions, and interfaces with type parameters.

  • Generics in Kotlin are defined using angle brackets <> after the class name or function name.

  • You can specify the type parameter when creating an instance of a generic class or calling a generic function.

  • Generics help in writing type-safe code and avoid the need for casting.

  • Example: List is a generic type representing a list of strings.

Add your answer

Q7. Partition in spark

Ans.

Partition in Spark is a way to divide data into smaller chunks for parallel processing.

  • Partitions are basic units of parallelism in Spark

  • Data in RDDs are divided into partitions which are processed in parallel

  • Number of partitions can be controlled using repartition() or coalesce() methods

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.8
 • 159 Interview Questions
4.0
 • 40 Interview Questions
4.1
 • 21 Interview Questions
4.0
 • 15 Interview Questions
3.1
 • 14 Interview Questions
3.8
 • 14 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter