Infosys Interview Questions 2026: 12 Real Candidate Experiences

Infosys Interview Questions 2026: 12 Real Candidate Experiences

Infosys Interview Questions 2026: 12 Real Candidate Experiences

Infosys Interview Experience 2026: 12 Candidate Reports With Questions and Answers

Last updated: 13 November 2026

If you are preparing for an Infosys technical interview, the most useful thing you can do is read what other candidates were actually asked. This page collects 7 candidate-reported interview experiences covering DSA, SQL, core computer science, projects, APIs and AWS. After each report you will find a short note on how to answer, so you are not only reading questions but learning how to handle them.

Please note: these are experiences shared by candidates. They are not official Infosys question papers. Rounds, questions and difficulty change with the role, your resume, the hiring route and the interviewer, so use this as preparation guidance and not as a guaranteed question list.

Quick Summary: What Infosys Interviewers Usually Focus On

  • Introduction and resume: almost every candidate started here, and projects were discussed in detail.
  • DSA: greedy, arrays, sliding window, bit manipulation, sorting, intervals and basic dynamic programming.
  • SQL: second or Nth highest salary, joins, GROUP BY with HAVING, self join and department averages.
  • Core CS: OOP, process vs thread, deadlock, virtual memory, TCP/IP, DNS and DBMS basics.
  • Projects: architecture, database design, API flow, error handling, technology choices and scaling.

Table of Contents

  1. Student 1: DSA, SQL and Machine Learning
  2. Student 2: SQL, Quick Sort, Core CS and RAG Project
  3. Student 3: Coding, SQL, APIs and AWS
  4. Student 4: Sliding Window, SQL and Projects
  5. Student 5: Bit Manipulation, DP and DBMS
  6. Student 6: Greedy Intervals, OS, OOP and SQL
  7. Student 7: DP, Self Join, Java and REST API
  8. More reports from the 17 August 2026 interviews
  9. Worked coding question: maximum sum of K consecutive elements
  10. How to Prepare
  11. Frequently Asked Questions

Student 1: DSA, SQL and Machine Learning Discussion

Reported duration: around 1 hour. Format: one-to-one technical interview.

The candidate said the interview began with a casual conversation, then moved to a WingSpan-style coding round. Two problems were given, and the candidate was asked to complete one and explain the approach.

DSA question: Greedy / Array

The problem was based on children with greed factors and cookies of different sizes. A cookie could be given to a child only if it satisfied the stated condition, and each child could get at most one cookie.

How to answer: Sort both arrays. Move through the cookies from smallest to largest and give each valid cookie to the least greedy child who is still unsatisfied. Skip cookies that fail the condition. The reason this works is that using the smallest valid cookie keeps bigger cookies available for children who need them. Sorting makes it O(n log n).

SQL question: Second Highest Salary

SELECT salary
FROM (
  SELECT salary,
         DENSE_RANK() OVER (ORDER BY salary DESC) AS rnk
  FROM Employee
) t
WHERE rnk = 2;

Tip: mention that DENSE_RANK handles duplicate salaries correctly, while ROW_NUMBER would not.

Resume and ML topics asked

  • ACID properties
  • ROC-AUC, and accuracy vs ROC-AUC
  • A model with high local accuracy that performs badly in production
  • Vanishing gradient problem
  • Bagging vs boosting
  • Binary search and its complexity
  • Software architecture and design patterns

How to answer: For the accuracy question, explain that accuracy can be misleading on imbalanced data, while ROC-AUC shows how well the model separates classes across thresholds. For production problems, mention data drift, different data distribution and data leakage during training.


Student 2: SQL, Quick Sort, Core CS and a RAG Project

This candidate started with an introduction and a detailed project discussion covering what the project does, the technology stack and how it was implemented.

SQL question: Customers who never ordered

SELECT c.id, c.name, c.address
FROM Customers c
LEFT JOIN Orders o
  ON c.id = o.customerId
WHERE o.customerId IS NULL;

Tip: a LEFT JOIN keeps every customer. The WHERE condition then keeps only the ones with no matching order.

DSA question: Quick Sort dry run

The candidate was asked to dry run Quick Sort step by step and explain partitioning and complexity.

quickSort(arr, low, high):
    if low < high:
        p = partition(arr, low, high)
        quickSort(arr, low, p - 1)
        quickSort(arr, p + 1, high)

How to answer: Pick a pivot, place smaller elements on its left and larger on its right, then repeat on both sides. Average time is O(n log n). The worst case is O(n²), which happens with poor pivot choices such as an already sorted array with the first element as pivot.

Core CS topics asked

  • Operating system basics
  • TCP/IP model, DNS and its purpose
  • What happens when a website is accessed using an IP address
  • OOP and its four pillars, Dependency Injection
  • Process vs thread, deadlock

Project questions asked

  • What does the project do and what problem does it solve?
  • Technology stack and why it was chosen
  • RAG implementation and overall architecture
  • Exception and API failure handling

Takeaway: project questions here led directly into CS fundamentals. If your project uses APIs, be ready to talk about networking, databases and failure cases.


Student 3: Coding, SQL, APIs and AWS

This interview started directly with a coding problem and then moved to SQL, backend and cloud topics.

DSA question: Array modification

The candidate could add an integer x to one array element and had to find the maximum possible sum of two adjacent elements after that change.

How to answer: Start with the simple idea. Adding x to one element helps only the pairs that include it, so the best result is the maximum adjacent sum plus x. Explain this reasoning clearly and then confirm with a small example. A brute force version that tries every index is a good fallback to mention first.

SQL question: 10th highest salary

SELECT salary
FROM (
  SELECT salary,
         DENSE_RANK() OVER (ORDER BY salary DESC) AS rnk
  FROM Employee
) t
WHERE rnk = 10;

Backend and API topics

  • FastAPI, REST APIs and GraphQL
  • Request validation and HTTP errors
  • Choosing an API technology for a project

AWS topics

  • Amazon EC2 and AWS Lambda
  • When Lambda is better than a continuously running server
  • How an API and a database communicate in AWS

How to answer: EC2 gives you a virtual server that you manage. Lambda runs code only when triggered and you pay per execution, so it suits short, event-driven or irregular workloads.


Student 4: Sliding Window, SQL and Projects

The interview began with an introduction and then moved to DSA, SQL and project questions.

DSA question: Smallest subarray with sum at least target

left = 0
sum = 0
answer = infinity

for right from 0 to n-1:
    sum += arr[right]
    while sum >= target:
        answer = min(answer, right - left + 1)
        sum -= arr[left]
        left++

return answer

This works because the array contains positive numbers only, so the window can expand and shrink predictably. Time complexity is O(n).

Follow-up questions reported

  • Why does this approach fail with negative numbers?
  • Sliding window vs two pointers
  • Can prefix sums solve it?
  • What changes for a circular array?

How to answer: With negative numbers, shrinking the window no longer guarantees a smaller sum, so the technique breaks. A prefix sum with a deque or a different approach is needed there.

SQL question: Salary above department average

SELECT e.name, e.salary, e.department_id
FROM Employee e
JOIN (
  SELECT department_id, AVG(salary) AS avg_salary
  FROM Employee
  GROUP BY department_id
) d
ON e.department_id = d.department_id
WHERE e.salary > d.avg_salary;

Project questions asked

  • Explain your architecture and your own contribution
  • Which APIs did you use and how did you handle errors?
  • How did you test the application and design the database?
  • What happens when the API server is unavailable?

Student 5: Bit Manipulation, DP and DBMS

This was a technical discussion mixing DSA, database concepts, dynamic programming and project implementation.

DSA question: Single number

Find the element that appears once when every other element appears twice.

answer = 0
for value in arr:
    answer = answer XOR value
return answer

How to answer: XOR of a number with itself is 0 and XOR with 0 gives the number back, so all pairs cancel out and only the single element remains. Time O(n), space O(1).

Bit manipulation follow-ups

  • Checking whether a number is even using bits
  • Checking whether the k-th bit is set
  • Left shift vs right shift
  • Swapping two values using XOR

Dynamic programming

The candidate was expected to explain the state, recurrence, base cases, order of calculation and complexity. A good practice example is Climbing Stairs: dp[i] = dp[i-1] + dp[i-2].

SQL and DBMS topics

  • Primary key vs foreign key
  • Normalization and views
  • ACID properties
  • Indexes and when they improve performance

Tip: indexes speed up reads and searches but slow down inserts and updates slightly, so say both sides.

Project questions asked

  • How did you design the project and how does data flow through it?
  • Why did you pick these technologies?
  • What was the hardest problem and how would you scale it?

Student 6: Greedy Intervals, OS, OOP and SQL

This interview began with an introduction and project discussion before moving to DSA, core CS and SQL.

DSA question: Maximum non-overlapping intervals

sort intervals by end time
count = 0
lastEnd = -infinity

for interval in intervals:
    if interval.start >= lastEnd:
        count++
        lastEnd = interval.end

return count

How to answer: Always pick the interval that ends earliest, because it leaves the most room for the rest.

Core CS topics asked

  • Process vs thread
  • Deadlock and its four necessary conditions (mutual exclusion, hold and wait, no preemption, circular wait)
  • Inheritance, polymorphism, abstraction, encapsulation
  • Virtual memory

SQL question: Departments with more than 5 employees

SELECT department_id,
       COUNT(*) AS employee_count
FROM Employee
GROUP BY department_id
HAVING COUNT(*) > 5;

Common follow-up: WHERE filters rows before grouping. HAVING filters groups after aggregation.

Project questions asked

  • Database design and API flow
  • User authentication
  • Invalid input handling
  • Performance improvements

Student 7: DP, Self Join, Java and REST API

The candidate reported an introduction and resume discussion first, followed by coding, SQL and implementation concepts.

DSA question: Dynamic programming

The candidate first thought of a recursive solution and then explained how to convert it to DP. A simple way to structure your explanation:

  1. Define the state.
  2. Explain the transition.
  3. Identify the base cases.
  4. Explain the order of calculation.
  5. Discuss time and space complexity.

A good practice example is House Robber: dp[i] = max(dp[i-1], dp[i-2] + nums[i]).

SQL question: Employees earning more than their manager

SELECT e.id, e.name, e.salary
FROM Emp e
JOIN Emp m
  ON e.manager_id = m.id
WHERE e.salary > m.salary;

This is a self join because employees and managers are stored in the same table.

Java and backend topics

  • Creating a REST API and GET, POST, PUT, DELETE
  • Exception handling, checked vs unchecked exceptions
  • Java file handling

Database and project follow-ups

  • Views, primary keys, foreign keys, self-referencing foreign keys
  • Complete architecture and frontend-to-backend communication
  • Data storage, API failure handling and scaling

More Reports From the 17 August 2026 On-Campus Interviews

Five more students shared what they faced in the Infosys on-campus technical interviews held on 17 August 2026 (2027 batch). Every interview opened with two DSA problems, then moved to SQL, core CS and the resume. Students who got stuck on coding were moved to basic theory questions instead of being dropped straight away.

Student 8: Dynamic programming and bit manipulation

  • DSA 1 (solved): maximum sum of non-adjacent elements. Explain the DP state, the recurrence and how to cut space to O(1).
  • DSA 2 (partly solved): find the element that appears once using XOR.
  • SQL: primary vs foreign key, WHERE vs HAVING, GROUP BY, INNER JOIN, a query to find duplicate records.
  • Design: high-level design of a notes app for millions of users, and low-level classes for Student, Subject, Note and PDF.

Student 9: Sliding window and greedy

  • DSA 1 (solved): longest substring without repeating characters, using a sliding window with a set of characters.
  • DSA 2 (approach only): minimum number of coins, with a follow-up on why greedy works.
  • SQL: INNER vs LEFT JOIN, self join, normalization, DELETE vs DROP vs TRUNCATE, second-highest salary.
  • Other: OOP pillars, overloading vs overriding, process vs thread, Docker, horizontal vs vertical scaling.

Student 10: Struggled with coding, moved to fundamentals

  • DSA (not completed): maximum subarray sum (Kadane) and counting set bits.
  • Then: basic SQL (keys, joins, GROUP BY), OS (deadlock and its four conditions), DBMS (indexing, transactions) and a detailed walk through the main project.

The lesson from this report: even if the coding round goes badly, strong fundamentals and a clear project explanation keep you in the interview.

Student 11: Sliding window, bit manipulation and AWS

  • DSA 1 (solved): maximum consecutive ones with a sliding window.
  • DSA 2: check whether a number is a power of two with n & (n - 1).
  • AWS (from the resume): EC2 vs S3, IAM, and why AWS was chosen for the project.
  • Design: a chat system for millions of users, with User, Chat, Message and Conversation classes.

Student 12: Greedy, DP and a long SQL round

  • DSA 1 (solved): activity selection, sorting by finish time.
  • DSA 2: minimum cost to reach the end of an array (DP).
  • SQL and DBMS: second-highest salary, duplicates, a two-table query, ACID, candidate keys, indexing.

Worked Coding Question: Maximum Sum of K Consecutive Elements

This sliding window problem comes up often in Infosys coding rounds. Given an array and a number K, find the K-length run with the largest sum. For [2, 5, 1, 0, 4, 3, 6, 2] with K = 3, the answer is 13 from [4, 3, 6].

A nested-loop solution is O(N × K) and can time out on large hidden test cases. The sliding window keeps a running sum: add the element entering the window and subtract the one leaving it, which gives O(N) time and O(1) space.

public static void findMaxSubarray(int[] arr, int k) {
    if (arr == null || arr.length == 0 || k <= 0 || k > arr.length) return;
    long windowSum = 0;
    for (int i = 0; i < k; i++) windowSum += arr[i];
    long maxSum = windowSum;
    int bestStart = 0;
    for (int i = k; i < arr.length; i++) {
        windowSum += arr[i] - arr[i - k];   // add new element, drop old one
        if (windowSum > maxSum) { maxSum = windowSum; bestStart = i - k + 1; }
    }
    System.out.println("Max sum: " + maxSum + ", starts at index " + bestStart);
}

Edge cases to mention before you code: an array of only negative numbers (so start maxSum from the first window, not 0), very large values (use long), and K equal to the array length. The same pattern also solves Student 4’s smallest subarray question above.

Want more practice? Try the Top 80 Infosys Round 2 coding questions and the SQL interview questions with answers.

How to Prepare for an Infosys Technical Interview

1. DSA

Practise greedy, arrays, sorting, sliding window, bit manipulation, binary search and basic DP. Do not just write the code. Explain why the approach works, state the complexity and mention edge cases.

2. SQL and DBMS

Be comfortable with joins, self joins, Nth highest salary, GROUP BY, HAVING, subqueries, indexes, normalization and ACID.

3. Core CS

Revise OOP, processes and threads, deadlock, virtual memory, TCP/IP and DNS. Keep answers short and clear.

4. Your projects

This is where many candidates are tested the most. For every project, be ready to explain the problem it solves, the architecture, the database design, the API flow, error handling, why you chose each technology and how you would scale it. If you cannot explain something on your resume, remove it or learn it.

5. Communication

Think aloud. Interviewers often care about how you reason more than whether you reach the perfect answer immediately.

Frequently Asked Questions

Are these official Infosys interview questions?

No. They are candidate-reported experiences and should be used only for preparation.

Is DSA asked in the Infosys interview?

Many reported experiences include coding problems, mostly easy to medium level, along with a request to explain the logic and complexity.

Is SQL important for Infosys interviews?

Yes. Second or Nth highest salary, joins, GROUP BY with HAVING and self joins appeared repeatedly in these reports.

How important are projects?

Very important. Most candidates were asked about architecture, APIs, databases and error handling.

Can I share my own Infosys interview experience?

Yes. Send it to us through the contact page. Please do not include confidential company or assessment material.

Disclaimer: Hiring processes, questions and eligibility can change between candidates and hiring cycles. Always check Infosys’s official careers page for current information.

Keep preparing with these guides on the same topic:

About the author

Watch the video guides on YouTube, get job alerts on the WhatsApp channel, or read how we check our information.