Placement Papers — Infosys Questions
TCS, Infosys, Wipro, Cognizant actual papers
100 Questions 12 Topics Take Test
Advertisement
Showing 1–10 of 100 questions in Infosys Questions
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
Q.2 Medium Infosys Questions
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
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.4 Medium Infosys Questions
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
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
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
Q.7 Medium Infosys Questions
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
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.9 Medium Infosys Questions
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
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
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