Deloitte — Interview Questions
Aptitude · Reasoning · English · CS — Corporate & Campus Interview Prep
654 Questions 5 Topics Take Test
Advertisement
Showing 191–200 of 654 questions
Q.191 Hard Deloitte
In a HashMap implementation used at Infosys, what happens when the load factor exceeds the threshold?
A The HashMap is locked and becomes read-only
B The HashMap is rehashed with a larger capacity
C All entries are deleted automatically
D The oldest entries are removed
Correct Answer:  B. The HashMap is rehashed with a larger capacity
Explanation:

When the load factor (ratio of entries to capacity) exceeds the threshold, the HashMap is rehashed with approximately double the capacity to maintain performance.

Take Test
Q.192 Medium Deloitte
In Infosys' microservices architecture, which design pattern is used to manage distributed transactions across multiple services?
A Saga Pattern
B Factory Pattern
C Singleton Pattern
D Observer Pattern
Correct Answer:  A. Saga Pattern
Explanation:

The Saga pattern is used in microservices to manage distributed transactions by breaking them into local transactions coordinated through event-driven communication.

Take Test
Q.193 Easy Deloitte
What is the primary purpose of Docker containerization technology used by Infosys developers?
A To increase application size
B To ensure consistency between development and production environments
C To reduce network bandwidth
D To eliminate the need for databases
Correct Answer:  B. To ensure consistency between development and production environments
Explanation:

Docker containerization ensures that applications run consistently across different environments by packaging the application with all its dependencies.

Take Test
Q.194 Medium Deloitte
An Infosys developer needs to optimize a SQL query that joins 4 tables. The query currently takes 8 seconds to execute. Which indexing strategy would be most effective?
A Index only the primary key columns
B Create composite indexes on join columns and filter conditions
C Index all columns in the tables
D Remove all existing indexes
Correct Answer:  B. Create composite indexes on join columns and filter conditions
Explanation:

Composite indexes on join columns and WHERE clause conditions significantly improve query performance by reducing the number of rows scanned.

Take Test
Q.195 Easy Deloitte
In Infosys' cloud infrastructure, what does the term 'elasticity' refer to?
A The ability to stretch applications across regions
B The ability to automatically scale resources up or down based on demand
C The flexibility in choosing programming languages
D The resistance of systems to failures
Correct Answer:  B. The ability to automatically scale resources up or down based on demand
Explanation:

Elasticity in cloud computing refers to the automatic scaling of resources to meet changing demand, ensuring optimal resource utilization and cost efficiency.

Take Test
Advertisement
Q.196 Hard Deloitte
An Infosys project uses Apache Kafka for real-time data streaming. If a consumer group has 5 consumers and the topic has 8 partitions, how many consumers will remain idle?
A 3 consumers
B 2 consumers
C 1 consumer
D 0 consumers
Correct Answer:  A. 3 consumers
Explanation:

In Kafka, the maximum number of active consumers in a group equals the number of partitions. With 8 partitions and 5 consumers, only 3 will remain idle.

Take Test
Q.197 Medium Deloitte
Which of the following represents the correct order of REST API maturity levels according to Richardson Maturity Model used at Infosys?
A Swamp -> Resources -> HTTP Verbs -> Hypermedia
B HTTP Verbs -> Resources -> Swamp -> Hypermedia
C Resources -> HTTP Verbs -> Hypermedia -> Swamp
D Swamp -> HTTP Verbs -> Resources -> Hypermedia
Correct Answer:  A. Swamp -> Resources -> HTTP Verbs -> Hypermedia
Explanation:

The Richardson Maturity Model progresses from the Swamp (0), to Resources (1), HTTP Verbs (2), and finally Hypermedia (3) as the highest level of REST maturity.

Take Test
Q.198 Easy Deloitte
In Infosys' DevOps pipeline, which tool is primarily used for continuous integration and continuous deployment (CI/CD)?
A Jenkins
B Slack
C Postman
D Git
Correct Answer:  A. Jenkins
Explanation:

Jenkins is the leading open-source automation server widely used by Infosys for implementing CI/CD pipelines to automate testing and deployment processes.

Take Test
Q.199 Medium Deloitte
An Infosys data engineer needs to process 10 TB of unstructured data. Which Apache tool would be most suitable for batch processing?
A Apache Spark
B Apache NiFi
C Apache Hadoop MapReduce
D Apache Storm
Correct Answer:  A. Apache Spark
Explanation:

Apache Spark is superior for large-scale batch processing due to its in-memory computing capabilities, providing faster execution than MapReduce for processing large datasets.

Take Test
Q.200 Hard Deloitte
In thread-safe programming at Infosys, which Java construct provides the most granular level of locking?
A Synchronized method
B Synchronized block
C ReentrantReadWriteLock
D Volatile keyword
Correct Answer:  C. ReentrantReadWriteLock
Explanation:

ReentrantReadWriteLock provides separate read and write locks, allowing multiple readers but only one writer, offering finer-grained control than basic synchronized constructs.

Take Test
IGET
iget AI
Online · Ask anything about exams
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips