Tcs Interview Questions (3+ Questions)
Last Updated: June 23, 2026 β’ 3 Questions β’ Real Company Interviews
Prepare for your Tcs interview with our comprehensive collection of 3+ real interview questions and detailed answers. These questions have been curated from actual Tcs technical interviews across various roles including DevOps Engineer, Data Engineer, QA Engineer, and more.
Table of Contents
- Debug SSH Lockout (medium)
- Overall System Downtime Aggregation (medium) π
- Store Performance Comparison (easy) π
Our Tcs interview questions cover a wide range of technical topics and difficulty levels, from entry-level positions to senior roles. Each question includes detailed explanations and answers to help you understand the concepts and prepare effectively for your interview.
π‘ Pro Tips for Tcs Interviews
- Practice each question and understand the underlying concepts
- Review Tcs's specific technologies and methodologies
- Prepare follow-up questions and edge cases
- Practice explaining your solutions clearly and concisely
Interview Questions & Answers
1. Debug SSH Lockout
We have developer account dev that has been locked out of the server and security logs indicate that there were too many failed SSH identification attempts. We need to check logs and count exactly how many attempts this user had today. And once we have this number, we need to update the configuration to increase this allowed login attempts above this number. We'll need to check log for login attempts. We'll need to use sudo to view this as admin. We can use grep command to filter out the lines that we need. We can also count this with word count hyphen L, which will print us number of lines. We need to change SSHD daemon configuration file, which is located under etc ssh and then sshd config. Find something that says Max. Finally, restart sshd daemon using systemctl restart.
2. Overall System Downtime Aggregation
Objective
You are provided with a maintenance_logs table that records system maintenance activities. Each record includes a unique identifier, the start and end times of the maintenance, and the reason for the downtime. Your task is to write an SQL query that calculates the total downtime in ...
π Premium Content
Detailed explanation and solution available for premium members.
3. Store Performance Comparison
Objective
Write a SQL query that calculates the revenue per square foot for each store and the total revenue. The results should be ordered by revenue per square foot in descending order.
Additional Information
- The query should join the
storesandsalestables onstore_id. - The rev...
π Premium Content
Detailed explanation and solution available for premium members.
Ready to Practice More?
Explore interview questions from other companies or try our hands-on labs to build practical experience.