TCS

TCS

Large multinational IT services and consulting enterprise based in India.

3 Rounds ~14 Days Medium
Start Mock Interview

The Interview Loop

Recruiter Screen (30 min)

Standard fit check, behavioral questions, and resume overview.

Technical Loop (3-4 Rounds)

Deep dive into domain knowledge, coding, and system design.

Interview Question Bank

Backend Engineer Behavioral easy

Why do you want to join TCS, and how do your values align with the Tata Code of Conduct?

#Company Knowledge #Ethics #Motivation
Backend Engineer Behavioral medium

Describe a time when you had a technical disagreement with a senior architect. How did you resolve it?

#Conflict Resolution #Communication #Collaboration
Backend Engineer Behavioral medium

Describe a time when you optimized a legacy system to improve performance for a client.

#Performance Tuning #Legacy Code #Impact
Backend Engineer Behavioral medium

How do you handle a production outage caused by a deployment you just made?

#Incident Management #Accountability #Problem Solving
Backend Engineer Behavioral medium

Tell me about a time you had to learn a new technology stack quickly to deliver a project.

#Learning #Agility #Problem Solving
Backend Engineer Behavioral medium

Tell me about a time you had to push back on a client's unrealistic deadline during a sprint. How did you communicate this?

#Communication #Agile #Stakeholder Management
Backend Engineer Coding medium

Given an array of intervals, merge all overlapping intervals and return an array of the non-overlapping intervals.

#Arrays #Sorting
Backend Engineer Coding medium

Write a program to group anagrams together from an array of strings.

#Strings #HashMaps
Backend Engineer Coding medium

Given a string, find the length of the longest substring without repeating characters.

#Strings #Sliding Window
Backend Engineer Coding easy

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

#Arrays #HashMaps
Backend Engineer Coding easy

Write a function to detect if a cycle exists in a singly linked list.

#Linked Lists #Two Pointers
Backend Engineer Coding easy

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

#Stacks #Strings
Backend Engineer Coding medium

Write a Java program to find the second highest salary from a list of Employee objects using Java 8 Streams.

#Streams #Lambdas #Sorting
Backend Engineer System Design hard

How would you design a distributed cache for a global e-commerce application?

#Caching #Redis #Distributed Systems
Backend Engineer System Design medium

Design an API Rate Limiter for a public-facing TCS client portal to prevent DDoS attacks.

#Security #Algorithms #Caching
Backend Engineer System Design medium

Design a URL Shortener service like Bitly. How do you ensure the generated short URLs are unique?

#Hashing #Scalability #Database Design
Backend Engineer System Design hard

Design a high-throughput transaction processing system for a retail banking client. How do you handle data consistency?

#Distributed Systems #ACID #Microservices
Backend Engineer System Design hard

Explain the Saga design pattern. How do you handle rollbacks in a distributed transaction?

#Microservices #Distributed Transactions #Event Driven
Backend Engineer System Design medium

Design a notification service that sends Email, SMS, and Push notifications to millions of users.

#Asynchronous Processing #Message Queues #Scalability
Backend Engineer Technical medium

How do you secure a REST API? Explain the JWT authentication flow.

#REST #JWT #Authentication
Backend Engineer Technical medium

What is the N+1 select problem in Hibernate/JPA, and how do you resolve it?

#Hibernate #JPA #Database Optimization
Backend Engineer Technical medium

Write a SQL query to find all employees who earn more than their direct managers.

#Self Joins #Query Optimization
Backend Engineer Technical medium

Explain the internal working of ConcurrentHashMap in Java. How does it differ from a synchronized HashMap?

#Collections #Multithreading #Concurrency
Backend Engineer Technical medium

How does Spring Boot auto-configuration work under the hood? Explain the role of @EnableAutoConfiguration.

#Spring Boot #Annotations #Framework Internals
Backend Engineer Technical medium

Explain the Bean Lifecycle in the Spring framework. At what point are @PostConstruct methods executed?

#IoC Container #Dependency Injection #Lifecycle Callbacks
Backend Engineer Technical medium

What is the difference between pessimistic and optimistic locking in JPA? When would you use each?

#JPA #Concurrency #Transactions
Backend Engineer Technical medium

Explain the Circuit Breaker pattern. How would you implement it in a Spring Boot microservice?

#Resilience #Fault Tolerance #Design Patterns
Backend Engineer Technical hard

How does Garbage Collection work in Java? What is the difference between G1GC and ZGC?

#JVM #Memory Management #Performance Tuning
Backend Engineer Technical easy

What is the difference between Singleton and Prototype scope in Spring? When would you use Prototype?

#Bean Scopes #IoC Container
Backend Engineer Technical easy

What is the difference between TRUNCATE, DELETE, and DROP in SQL?

#DDL #DML #Database Basics
Backend Engineer Technical medium

Explain indexing in relational databases. How does a B-Tree index work, and when should you NOT use an index?

#Database Optimization #Data Structures
Backend Engineer Technical hard

How do you implement distributed tracing in a microservices architecture?

#Observability #Logging #Tracing
Backend Engineer Technical easy

What is the difference between @Controller and @RestController in Spring Boot?

#MVC #REST #Annotations
Backend Engineer Technical medium

Explain the CAP theorem. Where does a relational database like PostgreSQL fit, and where does MongoDB fit?

#Distributed Systems #NoSQL #RDBMS
Backend Engineer Technical medium

Explain the difference between Kafka and RabbitMQ. When would you choose Kafka for a client project?

#Event Driven Architecture #Kafka #RabbitMQ
Cloud Engineer Behavioral medium

Tell me about a time you had to push back on a client or a project manager who proposed an unrealistic timeline for a cloud migration.

#Communication #Stakeholder Management #Agile
Cloud Engineer Behavioral easy

Why do you want to join TCS as a Cloud Engineer, and how do you feel about working in a consulting environment where you may switch clients and tech stacks periodically?

#Motivation #Consulting #Flexibility
Cloud Engineer Behavioral medium

Tell me about a cloud project that failed, missed a deadline, or didn't go as planned. What went wrong and what did you learn from it?

#Failure #Lessons Learned #Accountability
Cloud Engineer Behavioral easy

What is your approach to documenting infrastructure, CI/CD pipelines, and operational runbooks? Why is it important?

#Documentation #Knowledge Sharing
Cloud Engineer Behavioral hard

Describe a time when you strongly disagreed with a senior architect's or client's proposed technical design. How did you handle the disagreement?

#Teamwork #Professionalism #Technical Debate
Cloud Engineer Behavioral medium

As a Cloud Engineer at TCS, you will often interact with non-technical stakeholders. Give an example of how you explained a complex cloud architecture to someone without a technical background.

#Client Facing #Soft Skills
Cloud Engineer Behavioral medium

Tell me about a time you proactively identified a way to save costs or optimize performance in a cloud environment without being asked.

#FinOps #Proactivity #Value Addition
Cloud Engineer Behavioral medium

How do you ensure that security and compliance standards (like HIPAA or PCI-DSS) are maintained when deploying infrastructure for a client?

#DevSecOps #Governance #Best Practices
Cloud Engineer Behavioral easy

Cloud technology evolves rapidly. Tell me about a time you had to learn a completely new cloud service or tool on the job to deliver a client requirement.

#Continuous Learning #Problem Solving
Cloud Engineer Behavioral medium

Describe a situation where you were handling a P1 (Priority 1) production outage in a cloud environment. What was your role and how did you resolve it?

#Troubleshooting #Under Pressure #Operations
Cloud Engineer Coding easy

Write a Bash script to parse an Nginx access.log file and output the top 10 IP addresses with the highest number of requests.

#Bash #Linux #Log Parsing
Cloud Engineer Coding medium

Write a Terraform module that provisions an AWS EC2 instance, a Security Group allowing SSH only from a specific IP, and outputs the instance's public IP.

#Terraform #AWS #Security Groups
Cloud Engineer Coding medium

Write a declarative Jenkinsfile (or GitHub Actions YAML) that checks out code, builds a Docker image, pushes it to a registry, and deploys it to a Kubernetes cluster.

#Jenkins #GitHub Actions #Pipelines #Docker
Cloud Engineer Coding medium

Write a Kubernetes Deployment YAML for a Node.js application. Include resource requests/limits, a liveness probe, and 3 replicas.

#Kubernetes #YAML #Configuration
Cloud Engineer Coding medium

Write a Python script that calls a REST API with pagination to fetch a list of users, extracts their email addresses, and saves them to a CSV file.

#Python #APIs #Data Processing
Cloud Engineer Coding easy

Write a SQL query to find the second highest salary from an 'Employees' table. (A common basic check in TCS technical rounds).

#SQL #Queries
Cloud Engineer Coding medium

Write a Python script using Boto3 to find all unattached EBS volumes in an AWS region and delete them if they have been unattached for more than 30 days.

#Python #Boto3 #AWS #Automation
Cloud Engineer System Design hard

Design a highly available, fault-tolerant 3-tier web application architecture on AWS for a global e-commerce client expecting massive traffic spikes during Black Friday.

#AWS #High Availability #Scalability #Architecture
Cloud Engineer System Design medium

Design a centralized logging and monitoring solution for a hybrid cloud environment (on-premise VMs and Azure AKS).

#Observability #Logging #Hybrid Cloud
Cloud Engineer System Design hard

How would you design a zero-downtime database migration from an on-premise Oracle database to Amazon Aurora PostgreSQL?

#Database Migration #AWS DMS #Zero Downtime
Cloud Engineer System Design hard

A TCS client has a monthly AWS bill of $500,000 and wants to reduce it by 20%. Walk me through your architectural and operational approach to Cloud Cost Optimization (FinOps).

#FinOps #Cost Optimization #AWS
Cloud Engineer System Design medium

Design an authentication and authorization flow for a microservices-based application using API Gateway and Identity Providers.

#Security #Microservices #OAuth/OIDC
Cloud Engineer System Design hard

A healthcare client requires a Disaster Recovery (DR) setup with an RPO of 15 minutes and an RTO of 1 hour. How would you design this across two cloud regions?

#Disaster Recovery #RTO/RPO #Architecture
Cloud Engineer System Design medium

Design a serverless data processing pipeline on GCP or AWS that triggers when a CSV file is uploaded, validates the data, and loads it into a data warehouse.

#Serverless #Data Pipeline #Event-Driven Architecture
Cloud Engineer Technical easy

TCS often uses the '6 R's' framework for cloud migration. Can you explain the difference between Replatforming and Refactoring?

#Migration Strategies #Cloud Architecture
Cloud Engineer Technical medium

In a multi-environment setup for a TCS enterprise client, how do you securely manage and share Terraform state files, and what happens if two engineers apply changes simultaneously?

#Terraform #State Management #Concurrency
Cloud Engineer Technical medium

A client's microservice deployed on Amazon EKS is repeatedly going into a CrashLoopBackOff state. Walk me through your step-by-step troubleshooting process.

#Kubernetes #Troubleshooting #Docker
Cloud Engineer Technical hard

A financial client is migrating 50 different on-premise applications to AWS, each requiring its own VPC. How would you architect the network connectivity to ensure they can communicate with on-premise servers efficiently?

#AWS #Transit Gateway #VPC Peering #Hybrid Cloud
Cloud Engineer Technical medium

Explain the difference between Azure ExpressRoute and Azure VPN Gateway. When would you recommend one over the other for a TCS client?

#Azure #Networking #Hybrid Cloud
Cloud Engineer Technical easy

A retail client is storing terabytes of transaction logs in Amazon S3, leading to high monthly bills. How would you automate cost optimization for this storage?

#AWS S3 #Cost Optimization #Lifecycle Policies
Cloud Engineer Technical medium

How do you implement cross-account access in AWS? For example, allowing a CI/CD pipeline in an 'Operations' account to deploy resources in a 'Production' account.

#AWS IAM #Cross-Account Roles #Security
Cloud Engineer Technical medium

We noticed our Docker image builds for a Java Spring Boot application are taking too long and the final image size is over 1GB. How would you optimize this?

#Docker #Optimization #CI/CD
Cloud Engineer Technical medium

Explain the difference between Blue-Green and Canary deployment strategies. Which one would you choose for a mission-critical banking application and why?

#Deployment Strategies #DevOps #Risk Management
Cloud Engineer Technical hard

How do you secure communication between different microservices running inside the same Kubernetes cluster?

#Kubernetes #Network Policies #Service Mesh
Data Engineer Behavioral easy

Why do you want to join TCS as a Data Engineer, and how does your previous experience align with our focus on enterprise-scale digital transformations?

#Motivation #Company Knowledge
Data Engineer Behavioral medium

Tell me about a time when a client changed the requirements of a data pipeline in the middle of a sprint. How did you handle it?

#Agile #Client Management #Adaptability
Data Engineer Behavioral hard

A critical production data pipeline fails at 2 AM on a Saturday, and the client SLA is at risk. Walk me through your immediate actions.

#Incident Management #Communication #Problem Solving
Data Engineer Behavioral medium

How do you explain a complex technical issue, like a Spark data skew causing pipeline delays, to a non-technical business stakeholder?

#Communication #Stakeholder Management
Data Engineer Behavioral medium

Describe a situation where you had a disagreement with the QA/Testing team regarding a bug they raised in your ETL code. How was it resolved?

#Conflict Resolution #Teamwork
Data Engineer Behavioral easy

TCS places a heavy emphasis on continuous learning through platforms like Elevate and Xplore. How do you keep your technical skills updated in the rapidly changing Data Engineering landscape?

#Continuous Learning #TCS Values
Data Engineer Coding medium

Write a Python decorator that calculates and logs the execution time of any data transformation function it is applied to.

#Python #Decorators #Logging
Data Engineer Coding medium

Write a Python generator function to read a 50GB CSV file chunk by chunk to prevent Out-Of-Memory (OOM) errors.

#Python #Memory Management #Generators
Data Engineer Coding medium

How do you delete duplicate records from a massive table in SQL while keeping exactly one instance of each duplicate?

#SQL #Data Cleansing #CTEs
Data Engineer Coding medium

Write a SQL query to find the second highest salary in each department without using the MAX() function.

#SQL #Window Functions #Aggregations
Data Engineer Coding medium

What are Window functions in PySpark? Write a PySpark code snippet to calculate the running total of sales per region ordered by date.

#PySpark #Window Functions #Coding
Data Engineer Coding medium

Write a PySpark script to read a CSV file, drop rows with null values in the 'customer_id' column, fill nulls in 'age' with the average age, and write to Parquet.

#PySpark #Data Cleansing #Coding
Data Engineer Coding medium

Explain Slowly Changing Dimension (SCD) Type 2. Write a conceptual SQL merge statement to implement it.

#Data Modeling #Data Warehousing #SQL
Data Engineer Coding medium

Write a PySpark snippet to flatten a deeply nested JSON structure containing arrays of structs.

#PySpark #Data Manipulation #JSON
Data Engineer System Design hard

How do you handle 'late-arriving data' in a daily batch ETL pipeline? For example, data from Monday arrives on Wednesday.

#ETL #Data Quality #Architecture
Data Engineer System Design hard

Design an end-to-end data pipeline for a retail client that generates 10TB of POS transaction data daily. The data needs to be available for BI reporting by 8 AM every day.

#ETL #Batch Processing #Architecture
Data Engineer System Design hard

Design a data migration strategy for a client moving 500TB of historical data from an on-premise Hadoop cluster to AWS S3 / Azure Data Lake.

#Cloud Migration #AWS #Azure #Architecture
Data Engineer System Design medium

Explain the Medallion Architecture in Databricks. What specific transformations happen between the Bronze, Silver, and Gold layers?

#Databricks #Data Lakehouse #Architecture
Data Engineer System Design medium

Design an Azure Data Factory (ADF) pipeline to perform a daily incremental load (Delta load) from an on-premise SQL Server to Azure Synapse Analytics.

#Azure Data Factory #ETL #Incremental Load
Data Engineer System Design medium

Explain the difference between Lambda and Kappa architectures. Which one is more prevalent in modern cloud data engineering?

#Architecture #Streaming #Batch Processing
Data Engineer Technical easy

Explain the exact difference between repartition() and coalesce() in PySpark. If you are writing data to an Azure Data Lake, which one do you use to reduce the number of output files?

#PySpark #Partitioning #Shuffling
Data Engineer Technical medium

You notice a high consumer lag in your Kafka topic. What are the potential reasons, and how would you resolve it?

#Kafka #Troubleshooting #Streaming
Data Engineer Technical hard

How do you achieve exactly-once processing semantics in an Apache Kafka to Spark Structured Streaming pipeline?

#Kafka #Spark Streaming #Architecture
Data Engineer Technical easy

Explain the concept of 'Time Travel' in Snowflake or Delta Lake. How would you recover a table that was accidentally dropped yesterday?

#Snowflake #Delta Lake #Data Recovery
Data Engineer Technical medium

In Snowflake, what are micro-partitions and how do clustering keys improve query performance on large tables?

#Snowflake #Architecture #Performance Tuning
Data Engineer Technical hard

How does Delta Lake implement ACID transactions on top of cloud object storage (like S3 or ADLS)?

#Databricks #Delta Lake #ACID
Data Engineer Technical medium

What is the difference between Cache() and Persist() in Spark? What are the different storage levels available?

#PySpark #Caching #Optimization
Data Engineer Technical hard

How do you optimize a slow-running Copy Activity in Azure Data Factory that is transferring 5TB of data?

#Azure Data Factory #Performance Tuning
Data Engineer Technical hard

Your PySpark ETL job running on an AWS EMR cluster is failing with an 'Out Of Memory (OOM)' error. Walk me through your step-by-step debugging process.

#PySpark #Troubleshooting #Memory Management
Data Engineer Technical medium

Explain the difference between a CTE and a Temporary Table. In a scenario where you are processing 50 million rows for a client report, which one would you choose and why?

#SQL #Performance Tuning #Database Architecture
Data Engineer Technical medium

Why are Python UDFs (User Defined Functions) considered bad for performance in PySpark, and what is the modern alternative?

#PySpark #UDFs #Optimization
Data Engineer Technical medium

In PySpark, what is the difference between a Broadcast Hash Join and a Sort Merge Join? When does Spark automatically choose a Broadcast Join?

#PySpark #Joins #Optimization
Data Engineer Technical hard

You are joining a massive fact table with a dimension table in PySpark, and the job is stuck at 99% on the last task. How do you identify and resolve this issue?

#PySpark #Data Skewness #Performance Tuning
Data Engineer Technical easy

Compare Star Schema and Snowflake Schema. If a client prioritizes fast read performance for a BI dashboard, which one do you recommend and why?

#Data Modeling #Data Warehousing
Data Engineer Technical medium

What is a Factless Fact Table? Give a real-world business scenario where you would use one.

#Data Modeling #Data Warehousing
Data Scientist Behavioral easy

Why do you want to join TCS, and how do you align with our focus on continuous learning and delivering value to global enterprise clients?

#Company Knowledge #Motivation #Core Values
Data Scientist Behavioral medium

Tell me about a time you had to explain a complex machine learning model's predictions to a non-technical business stakeholder.

#Stakeholder Management #Explainable AI #Communication
Data Scientist Behavioral medium

Describe a situation where a client's data quality was extremely poor. How did you handle the project delivery?

#Data Quality #Client Management #Adaptability
Data Scientist Behavioral easy

How do you prioritize tasks when working on multiple client deliverables with conflicting deadlines?

#Prioritization #Agile #Client Delivery
Data Scientist Behavioral hard

Tell me about a time your model performed well in training and testing, but failed in production. What went wrong and how did you fix it?

#Production Issues #Debugging #Real-world ML
Data Scientist Coding easy

Write a SQL query to find the employee who earns more than their direct manager.

#Self Join #SQL Queries
Data Scientist Coding medium

Write a Pandas code snippet to fill missing values in a 'Sales' column with the rolling 7-day average of that specific store.

#Pandas #Data Imputation #Time Series
Data Scientist Coding hard

Write a SQL query to find the 3rd highest salary from an Employee table without using the LIMIT or TOP keywords.

#Subqueries #Correlated Subqueries
Data Scientist Coding medium

Write a SQL query using window functions to find the top 3 highest spending customers in each region for a retail client.

#Window Functions #DENSE_RANK #PARTITION BY
Data Scientist Coding medium

Write a Python function to merge two overlapping Pandas DataFrames based on a common ID, keeping only the updated values from the second DataFrame.

#Pandas #Data Manipulation
Data Scientist Coding easy

Write a Python program to extract all valid email addresses from a given large text file.

#Regex #String Parsing
Data Scientist Coding easy

Write a Python function to detect if two strings are anagrams of each other, optimizing for time complexity.

#Strings #Hash Maps #Python
Data Scientist Coding medium

Write a SQL query to calculate the cumulative sum of revenue per month for the year 2023.

#Window Functions #Aggregations
Data Scientist Coding medium

Given an array of integers, write a Python script to find the maximum sum of any contiguous subarray.

#Dynamic Programming #Kadane's Algorithm
Data Scientist System Design hard

A client wants to implement a Generative AI solution to query their internal PDF documents. How would you architect this?

#GenAI #RAG #Vector Databases #LLMs
Data Scientist System Design hard

How would you design a real-time recommendation system for a global e-commerce client?

#Recommendation Engines #Collaborative Filtering #Real-time Processing #Scalability
Data Scientist System Design medium

How do you monitor a deployed machine learning model for concept drift in a production environment?

#Model Monitoring #Concept Drift #MLOps
Data Scientist System Design medium

Design an architecture to deploy a Python-based ML model as a highly available REST API.

#Deployment #Docker #FastAPI #Kubernetes
Data Scientist System Design hard

Design a predictive maintenance system for a manufacturing client to predict machine failures before they occur.

#Predictive Maintenance #IoT #Time Series #Classification
Data Scientist System Design medium

Design a churn prediction pipeline for a telecom client. What features would you create and what model would you choose?

#Churn Prediction #Feature Engineering #Pipeline Design
Data Scientist Technical hard

Explain the architecture of a Transformer model. What makes Self-Attention more efficient than RNNs for NLP tasks?

#Transformers #NLP #Self-Attention #LLMs
Data Scientist Technical easy

Explain the difference between Precision and Recall. In a medical diagnosis model for a fatal disease, which one is more important?

#Evaluation Metrics #Classification
Data Scientist Technical medium

What is Multicollinearity? How does it affect a model, and how do you detect it?

#Multicollinearity #VIF #Feature Engineering
Data Scientist Technical easy

How does the K-Means clustering algorithm work? How do you choose the optimal number of clusters?

#Clustering #K-Means #Unsupervised Learning
Data Scientist Technical hard

Explain the mathematical difference between L1 (Lasso) and L2 (Ridge) regularization. Why does L1 lead to sparsity?

#Regularization #Mathematics #Feature Selection
Data Scientist Technical medium

What is the vanishing gradient problem in Deep Learning, and how do modern architectures solve it?

#Neural Networks #Gradients #Activation Functions
Data Scientist Technical medium

Explain the concept of Word Embeddings. How does Word2Vec differ from contextual embeddings like BERT?

#NLP #Embeddings #BERT #Word2Vec
Data Scientist Technical medium

Given a massive transactional dataset from a banking client, how would you handle highly imbalanced classes for a fraud detection model?

#Imbalanced Data #SMOTE #Class Weights #Fraud Detection
Data Scientist Technical medium

How would you optimize a Pandas script that is currently taking 2 hours to process 10 million rows of data?

#Optimization #Pandas #Big Data
Data Scientist Technical easy

Explain the difference between Bagging and Boosting. Give an example of an algorithm for each.

#Ensemble Methods #Random Forest #XGBoost
Data Scientist Technical medium

What is the difference between Generative and Discriminative models? Give an example of each.

#Model Types #Generative AI #Statistics
Data Scientist Technical medium

How does XGBoost handle missing values internally?

#XGBoost #Missing Data #Algorithms
Data Scientist Technical medium

What is the curse of dimensionality, and how do you mitigate it in a dataset with 5000 features?

#Dimensionality Reduction #PCA #Feature Engineering
Data Scientist Technical medium

What is Data Leakage in machine learning? Give an example of how it might occur in a time-series forecasting project.

#Data Leakage #Time Series #Cross-validation
Data Scientist Technical medium

What are the assumptions of Linear Regression? How do you check if they are violated?

#Linear Regression #Statistics #Assumptions
DevOps Engineer Behavioral medium

At TCS, you often work across different time zones with offshore and onsite teams. How do you ensure seamless communication and handover of critical DevOps tasks?

#Communication #Global Teams #Process
DevOps Engineer Behavioral medium

Tell me about a time you accidentally caused a production outage. How did you handle it, and what was the post-mortem process?

#Incident Management #Accountability #Continuous Improvement
DevOps Engineer Behavioral medium

Describe a situation where you had to collaborate with a difficult development team that resisted adopting DevOps standards like unit testing and code reviews.

#Collaboration #Conflict Resolution #DevOps Culture
DevOps Engineer Behavioral hard

A client insists on using a legacy manual deployment method instead of migrating to a modern CI/CD pipeline. How do you convince them of the ROI of DevOps practices?

#Client Communication #DevOps Culture #Negotiation
DevOps Engineer Coding hard

Write a Python script to monitor a specific URL. If it returns a non-200 status code 3 times in a row, trigger a Slack webhook.

#Python #Monitoring #API Integration
DevOps Engineer Coding easy

Write a Bash one-liner to find all files in `/var/log` modified in the last 7 days and archive them into a tarball.

#Bash #Linux Commands
DevOps Engineer Coding medium

Write a Bash script to parse an Nginx access log and find the top 5 IP addresses with the most HTTP 500 errors.

#Bash #Log Parsing #Linux Commands
DevOps Engineer Coding medium

Write a Python script using the `boto3` library to find and delete all unattached EBS volumes in an AWS region.

#Python #AWS #Boto3 #Automation
DevOps Engineer System Design hard

Design a disaster recovery strategy for a production Kubernetes cluster hosted on Azure Kubernetes Service (AKS).

#Azure #Kubernetes #Disaster Recovery
DevOps Engineer System Design medium

A client wants to migrate a legacy on-premise application to AWS. Walk me through the 6 R's of cloud migration and which one you would recommend for a quick exit from a data center.

#Cloud Migration #AWS #Strategy
DevOps Engineer System Design hard

Design a Blue-Green deployment strategy for a monolithic application being migrated to AWS. How do you handle database schema changes during the switch?

#AWS #Blue-Green Deployment #Database Migration
DevOps Engineer System Design hard

Design a highly available and fault-tolerant 3-tier architecture on AWS for a banking client. Include networking, compute, and database layers.

#AWS #High Availability #Networking #Databases
DevOps Engineer Technical medium

What are AWS VPC Endpoints, and why would a financial client require them instead of using a NAT Gateway for S3 access?

#AWS #Networking #Security
DevOps Engineer Technical medium

How do you troubleshoot a Linux server that is responding very slowly, but the `top` command shows low CPU and memory usage?

#Linux #Troubleshooting #I/O Wait #Networking
DevOps Engineer Technical easy

Explain the difference between `git merge` and `git rebase`. When would you use one over the other in a collaborative team environment?

#Git #Collaboration
DevOps Engineer Technical hard

How do you implement a Jenkins declarative pipeline that uses Shared Libraries to enforce mandatory security scanning (like SonarQube and Trivy) across 50+ microservices?

#Jenkins #Groovy #DevSecOps #Automation
DevOps Engineer Technical medium

Your Docker image size is over 2GB, causing slow pipeline builds and deployments. What specific steps would you take to optimize and reduce the image size?

#Docker #Optimization
DevOps Engineer Technical medium

A Pod in your Kubernetes cluster is stuck in the `CrashLoopBackOff` state. Walk me through your exact troubleshooting steps.

#Kubernetes #Troubleshooting
DevOps Engineer Technical hard

Explain how you would expose a set of microservices running in a Kubernetes cluster to the public internet securely using an Ingress Controller and cert-manager.

#Kubernetes #Networking #Security #TLS
DevOps Engineer Technical medium

In Terraform, how do you handle a situation where someone manually modified a security group in the AWS console that was originally provisioned by Terraform?

#Terraform #State Management #AWS
DevOps Engineer Technical hard

Explain how you structure Terraform code for multiple environments (Dev, QA, Prod) to maximize reuse and minimize the blast radius.

#Terraform #Architecture #Best Practices
DevOps Engineer Technical medium

Write an Ansible playbook strategy to patch 500 Linux VMs with zero downtime for the highly available application running on them.

#Ansible #Automation #Zero Downtime
DevOps Engineer Technical medium

How do you securely grant an EC2 instance access to read objects from a specific S3 bucket without hardcoding AWS credentials?

#AWS #IAM #Security
DevOps Engineer Technical hard

How do you set up Prometheus and Grafana to monitor custom application metrics, and how do you handle high cardinality data?

#Prometheus #Grafana #Monitoring
DevOps Engineer Technical medium

How do you integrate container image vulnerability scanning into an Azure DevOps pipeline, and how do you handle false positives?

#Azure DevOps #Security #Containers
DevOps Engineer Technical hard

What is the difference between a StatefulSet and a Deployment in Kubernetes? Give a real-world scenario where you must use a StatefulSet.

#Kubernetes #Architecture
DevOps Engineer Technical medium

You get a 'No space left on device' error on a Linux server, but `df -h` shows 50% free disk space. What is the issue and how do you fix it?

#Linux #Troubleshooting #Filesystems
DevOps Engineer Technical medium

A developer accidentally pushed a commit containing an AWS secret key to the remote `main` branch. What are the immediate steps you take to remediate this?

#Git #Security #Incident Response
DevOps Engineer Technical medium

Explain the concept of GitOps. How does it differ from traditional push-based CI/CD pipelines?

#GitOps #Kubernetes #ArgoCD
DevOps Engineer Technical hard

Explain the packet flow when a user types a URL in their browser and it hits a Kubernetes service backed by an external cloud load balancer.

#Kubernetes #Networking #DNS
DevOps Engineer Technical medium

How do you manage secrets (like database passwords) when provisioning infrastructure with Terraform?

#Terraform #Security #Secret Management
DevOps Engineer Technical hard

How do you handle database migrations in an automated CI/CD pipeline without causing application downtime?

#Database #Automation #Zero Downtime
DevOps Engineer Technical medium

Explain the ELK stack architecture. What happens if Logstash becomes a bottleneck, and how do you scale the logging infrastructure?

#ELK #Logging #Architecture
DevOps Engineer Technical medium

What is the difference between `ENTRYPOINT` and `CMD` in a Dockerfile? How do they interact if both are specified?

#Docker #Best Practices
DevOps Engineer Technical medium

How do you implement resource quotas and limits in Kubernetes? What happens if a pod exceeds its memory limit versus its CPU limit?

#Kubernetes #Resource Management
Frontend Engineer Behavioral medium

Tell me about a time you had to push back on a client or product manager regarding an unrealistic deadline. How did you handle it?

#Communication #Agile #Stakeholder Management
Frontend Engineer Behavioral easy

Explain a time when you had to mentor a junior developer who was struggling to grasp complex React concepts like Hooks or Redux.

#Mentorship #Empathy #Knowledge Sharing
Frontend Engineer Behavioral medium

Tell me about a time you were assigned to a project with poorly documented, legacy code written by a previous vendor. How did you approach understanding and optimizing it?

#Legacy Code #Refactoring #Adaptability
Frontend Engineer Behavioral easy

How do you stay updated with the latest frontend technologies, and how do you decide when it is safe to adopt a new tool in a large enterprise project?

#Continuous Learning #Risk Assessment #Tech Stack
Frontend Engineer Behavioral medium

Describe a situation where you had a conflict with a backend developer regarding an API contract or data format. How was it resolved?

#Teamwork #Conflict Resolution #API Design
Frontend Engineer Coding medium

Write a JavaScript function to flatten a deeply nested array without using the built-in Array.prototype.flat() method.

#Recursion #Arrays #Data Structures
Frontend Engineer Coding hard

Implement a custom Promise.all() polyfill.

#Promises #Asynchronous JavaScript #Polyfills
Frontend Engineer Coding medium

Write a React component that fetches a list of users from an API and renders them. Implement pagination (Next/Previous buttons) and handle loading/error states.

#Component Design #Pagination #API Integration
Frontend Engineer Coding medium

Design and implement a custom React hook called 'useFetch' that takes a URL and returns data, loading, and error states. Include basic caching.

#Custom Hooks #API Integration #State Management
Frontend Engineer Coding hard

Implement an LRU (Least Recently Used) Cache class in JavaScript with get() and put() methods operating in O(1) time complexity.

#Data Structures #Caching #Hash Maps #Linked Lists
Frontend Engineer Coding hard

Write a function to deep clone a nested JavaScript object. How would you modify it to handle circular references?

#Objects #Recursion #Memory Management
Frontend Engineer Coding medium

Implement a debounce function from scratch. How does it differ from throttling, and when would you use each?

#Performance #Higher-Order Functions #DOM Events
Frontend Engineer System Design hard

Design a scalable file upload component that supports drag-and-drop, progress bars, chunking for large files, and resumable uploads.

#File Handling #Network Requests #UX
Frontend Engineer System Design medium

Design an autocomplete search bar component for an e-commerce site. Consider network latency, caching, and race conditions.

#Component Design #Debouncing #Caching
Frontend Engineer System Design hard

A major retail client at TCS wants to migrate their monolithic frontend to a Micro-frontend architecture. How would you architect this?

#Micro-frontends #Webpack Module Federation #Scalability
Frontend Engineer System Design hard

Design the frontend architecture for a real-time stock trading dashboard. Focus on data fetching, state management, and performance.

#WebSockets #Real-time Data #Architecture
Frontend Engineer System Design medium

How would you implement offline support for a web application used by field workers with intermittent internet connectivity?

#Service Workers #PWA #IndexedDB
Frontend Engineer Technical easy

Explain CSS Specificity. If a div has an ID, a class, and an inline style, which rule applies and why? How does '!important' affect this?

#Specificity #Cascading #Styling
Frontend Engineer Technical medium

Explain prototypal inheritance in JavaScript. How do ES6 classes differ from traditional constructor functions under the hood?

#Prototypes #OOP #ES6
Frontend Engineer Technical medium

Explain the event loop in JavaScript. What will be the output of a script containing synchronous logs, a setTimeout, and a Promise.resolve().then()?

#Event Loop #Microtasks #Macrotasks
Frontend Engineer Technical easy

What are closures in JavaScript? Provide a real-world use case where you would use a closure in an enterprise application.

#Closures #Scope #Lexical Environment
Frontend Engineer Technical easy

What is the difference between '==' and '===' in JavaScript? How does type coercion work under the hood?

#Type Coercion #Equality #Fundamentals
Frontend Engineer Technical medium

How does the 'this' keyword work in JavaScript? Explain how its behavior changes between regular functions, arrow functions, and event listeners.

#Context #Arrow Functions #Execution Context
Frontend Engineer Technical medium

Explain the difference between useMemo and useCallback in React. Provide a scenario where misusing them could actually degrade performance.

#Hooks #Performance Optimization #Memoization
Frontend Engineer Technical medium

How does React's Virtual DOM work? Why is it considered faster than direct DOM manipulation?

#Virtual DOM #Reconciliation #Rendering
Frontend Engineer Technical easy

What is Prop Drilling in React? What are the various strategies to avoid it in a large-scale enterprise application?

#Component Architecture #State Management #Context API
Frontend Engineer Technical medium

Explain the core principles of Redux. Walk me through the exact flow of data from a React component dispatching an action to the UI updating.

#Redux #Flux Architecture #Immutability
Frontend Engineer Technical medium

How do you handle asynchronous side effects in Redux? Compare Redux Thunk with Redux Saga.

#Redux Middleware #Asynchronous Logic #Generators
Frontend Engineer Technical hard

What are React Server Components (RSC)? How do they differ from traditional Server-Side Rendering (SSR) in frameworks like Next.js?

#Server Components #Next.js #Rendering Strategies
Frontend Engineer Technical easy

Map the traditional React class component lifecycle methods (componentDidMount, componentDidUpdate, componentWillUnmount) to their functional component Hook equivalents.

#Lifecycle #Hooks #useEffect
Frontend Engineer Technical hard

You are assigned to a legacy React application at TCS that is rendering very slowly. What specific steps and tools would you use to profile and optimize it?

#Profiling #Optimization #React DevTools
Frontend Engineer Technical medium

Compare CSS Grid and Flexbox. In a responsive dashboard layout, when would you choose Grid over Flexbox?

#Layouts #Flexbox #CSS Grid
Frontend Engineer Technical medium

How do you ensure a web application is accessible (a11y) for users relying on screen readers? Name at least 5 best practices.

#a11y #ARIA #Semantic HTML
Frontend Engineer Technical medium

Explain Cross-Site Scripting (XSS). How would you prevent XSS attacks in a modern Single Page Application?

#Security #XSS #Sanitization
Frontend Engineer Technical hard

What are Core Web Vitals? Specifically, explain Largest Contentful Paint (LCP) and strategies to improve a poor LCP score.

#Core Web Vitals #LCP #SEO
Full Stack Engineer Behavioral medium

Describe a situation where you had to deliver a critical project under a very tight deadline. How did you manage your time and ensure quality?

#Time Management #Prioritization #Stress Management
Full Stack Engineer Behavioral medium

Tell me about a time you had a disagreement with a senior developer or architect regarding a technical choice. How did you resolve it?

#Conflict Resolution #Communication #Teamwork
Full Stack Engineer Behavioral easy

Why do you want to join TCS? How do your career goals align with the services and culture of Tata Consultancy Services?

#Motivation #Company Knowledge #Career Goals
Full Stack Engineer Coding easy

Given two strings, write a method to determine if they are valid anagrams of each other. Optimize for time and space complexity.

#Strings #Hash Map #Sorting
Full Stack Engineer Coding medium

Write a program to find the longest substring without repeating characters.

#Strings #Sliding Window #Hash Map
Full Stack Engineer Coding easy

Given an array of integers, write a function to move all zeros to the end while maintaining the relative order of the non-zero elements.

#Arrays #Two Pointers
Full Stack Engineer Coding easy

Write a function to reverse a linked list. Follow up: Can you do it recursively?

#Linked Lists #Pointers #Recursion
Full Stack Engineer Coding medium

Write a code to check if a given binary tree is a valid Binary Search Tree (BST).

#Trees #Recursion #DFS
Full Stack Engineer Coding easy

Write a SQL query to find the second highest salary of an employee from a given department.

#SQL #Database #Queries
Full Stack Engineer System Design hard

Design an e-commerce shopping cart system. How would you handle inventory reservation during the checkout process to prevent overselling?

#Concurrency #Database Locks #E-commerce
Full Stack Engineer System Design medium

How would you design a URL shortener service like Bitly? Focus on the database schema and read/write scaling.

#Scalability #Database Design #Hashing
Full Stack Engineer System Design hard

Design a rate limiter for a public-facing REST API. What algorithms would you consider?

#API Design #Algorithms #Redis
Full Stack Engineer System Design medium

Design a scalable notification system that sends emails, SMS, and push notifications to millions of users.

#Message Queues #Scalability #Asynchronous Processing
Full Stack Engineer System Design hard

Explain the Saga design pattern. How would you implement distributed transactions across multiple microservices?

#Microservices #Distributed Systems #Transactions
Full Stack Engineer Technical medium

How does the Virtual DOM work in React, and what is the reconciliation process?

#React #Architecture #Performance
Full Stack Engineer Technical medium

How do you create a custom annotation in Java? Provide an example of where you would use one in a Spring Boot application.

#Java #Spring Boot #AOP
Full Stack Engineer Technical easy

What is Cross-Origin Resource Sharing (CORS)? How do you configure a Spring Boot backend to allow requests from a React frontend hosted on a different domain?

#CORS #Spring Boot #Security
Full Stack Engineer Technical medium

What is the difference between useMemo and useCallback in React? Give a real-world scenario where you would use them.

#React #Performance Optimization #Hooks
Full Stack Engineer Technical medium

Explain the difference between Subject and BehaviorSubject in RxJS. How do you use them for component communication in Angular?

#Angular #RxJS #State Management
Full Stack Engineer Technical medium

What is the N+1 select problem in Hibernate, and how do you resolve it?

#Hibernate #JPA #Database Performance
Full Stack Engineer Technical medium

Explain the internal working of ConcurrentHashMap in Java 8 and how it differs from Hashtable.

#Java #Collections #Multithreading
Full Stack Engineer Technical medium

Explain the concept of Server-Side Rendering (SSR) vs Client-Side Rendering (CSR). When would you choose one over the other?

#Architecture #Performance #SEO
Full Stack Engineer Technical easy

How do you handle global exceptions in a Spring Boot REST API?

#Spring Boot #REST API #Exception Handling
Full Stack Engineer Technical medium

Explain the difference between clustered and non-clustered indexes in SQL Server/PostgreSQL.

#SQL #Indexing #Performance Tuning
Full Stack Engineer Technical medium

What is an API Gateway? Why is it necessary in a microservices architecture, and what cross-cutting concerns does it handle?

#Microservices #API Gateway #Routing
Full Stack Engineer Technical medium

Explain your CI/CD pipeline setup. How do you deploy a containerized Spring Boot and React application to AWS/Azure?

#CI/CD #Docker #Cloud
Full Stack Engineer Technical medium

Explain the difference between Monolithic, Microservices, and Serverless architectures. What factors drive the decision to migrate from a monolith to microservices?

#System Architecture #Cloud #Microservices
Full Stack Engineer Technical medium

What strategies do you use to optimize the load time and performance of a large-scale single-page application (SPA)?

#Performance #Lazy Loading #Webpack
Full Stack Engineer Technical easy

What are the new features introduced in Java 11 and Java 17 that you have used in your recent projects?

#Java #Language Features
Full Stack Engineer Technical medium

Explain the difference between CompletableFuture and traditional Threads/Runnables in Java. How do you handle asynchronous programming?

#Java #Concurrency #Asynchronous
Full Stack Engineer Technical medium

How does JWT authentication work? What are the security risks associated with storing JWTs in local storage vs HTTP-only cookies?

#Authentication #JWT #Web Security
Full Stack Engineer Technical medium

What are ACID properties in a database? Give an example of how Isolation is maintained during concurrent transactions.

#SQL #Transactions #ACID
Full Stack Engineer Technical easy

What is your approach to unit testing and integration testing in a full-stack application? Mention the tools you use.

#JUnit #Mockito #Jest #TDD
Full Stack Engineer Technical medium

How do you implement service discovery in a microservices architecture? Explain using Eureka or Consul.

#Microservices #Service Discovery #Spring Cloud
Full Stack Engineer Technical easy

Explain the concept of Dependency Injection and Inversion of Control. How does Spring implement this?

#Spring #Design Patterns #Core Java
Machine Learning Engineer Behavioral hard

Tell me about a time a machine learning model you deployed failed or performed poorly in production. What was your Root Cause Analysis (RCA) process?

#RCA #Production Issues #Accountability
Machine Learning Engineer Behavioral medium

At TCS, you might work on multiple Proof of Concepts (PoCs) simultaneously. How do you prioritize your tasks when facing tight, conflicting deadlines?

#Time Management #Agile #Prioritization
Machine Learning Engineer Behavioral medium

Describe a situation where a client provided you with data that was of extremely poor quality or lacked labels. How did you handle the project?

#Data Cleaning #Client Management #Ambiguity
Machine Learning Engineer Behavioral easy

The AI/ML landscape is evolving rapidly (e.g., GenAI). How do you stay updated, and can you give an example of how you applied a recently learned concept to a project?

#Continuous Learning #AI Trends #Adaptability
Machine Learning Engineer Behavioral medium

Tell me about a time you had to explain the results and limitations of a complex Machine Learning model to a non-technical client stakeholder.

#Stakeholder Management #Storytelling #Consulting
Machine Learning Engineer Coding medium

Implement a custom F1-score calculation function from scratch using pure Python and NumPy, without using scikit-learn.

#Python #NumPy #Evaluation Metrics
Machine Learning Engineer Coding medium

Given an array of intervals where intervals[i] = [start_i, end_i], merge all overlapping intervals. This is often used in processing time-series data for sensor logs.

#Arrays #Sorting #Data Structures
Machine Learning Engineer Coding medium

Write a SQL query to find the top 3 highest-grossing products in each category from a 'sales' table. Assume a standard enterprise retail schema.

#Window Functions #Aggregation #Data Engineering
Machine Learning Engineer Coding medium

Given a string representing a sequence of user actions, find the length of the longest substring without repeating characters.

#Sliding Window #Strings #Hash Map
Machine Learning Engineer Coding medium

You have a pandas DataFrame with 10 million rows containing missing values and outliers. How do you efficiently clean this data without running out of memory?

#Pandas #Memory Optimization #Data Preprocessing
Machine Learning Engineer System Design hard

Design a batch prediction pipeline that scores 50 million customer records every night to predict churn. The data resides in an AWS S3 data lake.

#Batch Processing #Cloud Architecture #PySpark #AWS
Machine Learning Engineer System Design medium

Design a scalable architecture for a customer churn prediction model that needs to be retrained weekly with the latest transactional data.

#Continuous Training #Pipeline Orchestration #Classification
Machine Learning Engineer System Design hard

Design a pipeline to automatically extract key entities (Vendor Name, Invoice Date, Total Amount) from scanned PDF invoices for an accounting client.

#OCR #NLP #Information Extraction #Pipeline Design
Machine Learning Engineer System Design hard

Design a personalized product recommendation engine for an e-commerce client. How do you handle the 'cold start' problem for new users and new products?

#Recommendation Systems #Collaborative Filtering #Cold Start
Machine Learning Engineer System Design hard

Design an end-to-end ML system for real-time credit card fraud detection. The system must process 5,000 transactions per second with sub-50ms latency.

#Real-time Processing #Streaming #Fraud Detection #Architecture
Machine Learning Engineer System Design hard

Design a Retrieval-Augmented Generation (RAG) system for a client who wants an internal chatbot to query their proprietary HR policy PDFs.

#RAG #Vector Databases #LLMs #System Architecture
Machine Learning Engineer Technical medium

Walk me through your exact strategy for tuning hyperparameters for a Gradient Boosting model to prevent overfitting.

#Hyperparameter Tuning #Optimization #Overfitting
Machine Learning Engineer Technical hard

What is LoRA (Low-Rank Adaptation) and why has it become the standard for fine-tuning Large Language Models in enterprise settings?

#PEFT #LoRA #LLM Fine-tuning
Machine Learning Engineer Technical medium

Describe the architecture of a Convolutional Neural Network (CNN) you would build for a multi-class image classification task. What is the purpose of pooling layers?

#CNN #Image Classification #Deep Learning
Machine Learning Engineer Technical hard

A manufacturing client wants to deploy a defect detection deep learning model on edge devices (Raspberry Pi). How do you optimize the model for inference speed and size?

#Edge AI #Quantization #Model Pruning #Computer Vision
Machine Learning Engineer Technical medium

Explain the vanishing and exploding gradient problems in standard RNNs. How do LSTM networks solve this mathematically?

#RNN #LSTM #Optimization
Machine Learning Engineer Technical medium

When would you choose to fine-tune an open-source LLM (like Llama 3) versus using a RAG approach with a commercial API (like GPT-4)?

#LLMs #Fine-tuning #RAG #Model Selection
Machine Learning Engineer Technical hard

Explain the Self-Attention mechanism in Transformer architectures. How are the Query, Key, and Value matrices generated and used?

#Transformers #NLP #Attention Mechanism
Machine Learning Engineer Technical medium

Explain the mathematical difference between L1 (Lasso) and L2 (Ridge) regularization. Why does L1 lead to sparsity?

#Regularization #Mathematics #Feature Selection
Machine Learning Engineer Technical medium

For a BFSI client, we are building a credit card fraud detection model where the fraud rate is 0.01%. How do you handle this severe class imbalance?

#Imbalanced Data #Classification #SMOTE
Machine Learning Engineer Technical medium

Explain the internal working of XGBoost. How does it differ from a Random Forest algorithm?

#Ensemble Methods #Decision Trees #Gradient Boosting
Machine Learning Engineer Technical hard

What is the 'Curse of Dimensionality'? Explain the mathematics behind Principal Component Analysis (PCA) and how it mitigates this issue.

#Dimensionality Reduction #Linear Algebra #PCA
Machine Learning Engineer Technical medium

We are clustering customer profiles for a retail client, but we have no ground truth labels. How do you evaluate the quality of your clustering algorithm?

#Unsupervised Learning #Clustering #Evaluation Metrics
Machine Learning Engineer Technical easy

Explain the concepts of Bagging and Boosting. Give one real-world example where you would prefer one over the other.

#Ensemble Methods #Model Selection
Machine Learning Engineer Technical medium

A model deployed for a client 6 months ago is now degrading in performance. How do you detect data drift and concept drift, and how do you resolve it?

#Model Monitoring #Data Drift #Production ML
Machine Learning Engineer Technical medium

How do you ensure model fairness and mitigate bias in a machine learning model built to approve or reject bank loans?

#AI Ethics #Bias Mitigation #Explainable AI
Machine Learning Engineer Technical medium

Explain the core components of an MLOps pipeline. How have you used tools like MLflow or Weights & Biases in your previous projects?

#CI/CD #MLflow #Experiment Tracking #Model Registry
Machine Learning Engineer Technical medium

We want to replace an existing rule-based system with a new ML model. What is your strategy for A/B testing the new model in production safely?

#A/B Testing #Experimentation #Deployment Strategies
Machine Learning Engineer Technical medium

Explain your approach to containerizing a Python-based ML model using Docker and deploying it on a Kubernetes cluster.

#Docker #Kubernetes #Model Deployment
Machine Learning Engineer Technical medium

You are processing 100-page legal contracts using an LLM, but you are hitting the context window token limit. What strategies do you use to handle this?

#NLP #Context Windows #Chunking
Product Manager Behavioral medium

A client asks TCS to build a custom CRM from scratch, but you believe an off-the-shelf solution integrated via APIs is better. How do you handle this 'Build vs. Buy' conversation?

#Build vs Buy #Client Communication #Negotiation
Product Manager Behavioral medium

Tell me about a time a major client changed their requirements in the middle of an Agile sprint. How did you manage the engineering team and the client?

#Agile #Scope Creep #Conflict Resolution
Product Manager Behavioral medium

A competitor launches a highly anticipated feature three months before your planned release. How do you react?

#Competition #Roadmap #Adaptability
Product Manager Behavioral medium

How do you pitch a highly technical product roadmap (e.g., database migration, infrastructure upgrades) to non-technical business stakeholders to secure funding?

#Communication #Business Value #Roadmap
Product Manager Behavioral medium

Tell me about a time a product or feature you launched failed to hit its target metrics. What was the root cause and what did you learn?

#Failure Analysis #Continuous Improvement #Metrics
Product Manager Behavioral easy

How do you ensure alignment and maintain velocity when working with a distributed team (e.g., onshore business stakeholders and offshore TCS development teams)?

#Distributed Teams #Communication #Agile
Product Manager Behavioral hard

A massive enterprise client (e.g., Citi) demands highly customized features on your core product, which threatens to fork your codebase. How do you manage this?

#Customization vs Standardization #Enterprise Clients #Roadmap
Product Manager Behavioral medium

Describe a situation where you strongly disagreed with your Engineering Lead regarding paying off technical debt versus building new features.

#Cross-functional Collaboration #Technical Debt #Negotiation
Product Manager Behavioral medium

Your product release is delayed by two weeks due to a QA bottleneck. The client is expecting the release tomorrow. How do you handle this?

#Crisis Management #Client Communication #QA
Product Manager Behavioral hard

You need to sunset a legacy product that still generates $2M in annual revenue but costs $3M to maintain. How do you manage the transition for the remaining clients?

#Sunsetting #Client Management #Lifecycle
Product Manager Behavioral hard

How do you balance the need to innovate and build new features with the requirement to maintain 99.99% uptime for a critical financial product?

#Reliability #Innovation #Trade-offs
Product Manager Coding hard

Write a SQL query to calculate the month-over-month churn rate for a SaaS product using a 'subscriptions' table.

#SQL #Churn #Window Functions
Product Manager Coding medium

Write a SQL query to find the top 5 enterprise clients by total API call volume in the last 30 days from an 'api_logs' table.

#SQL #Data Analysis #Aggregations
Product Manager System Design hard

A healthcare client wants to migrate their on-premise patient data system to AWS. Design a migration strategy that ensures zero downtime and strict data integrity.

#Cloud Migration #Healthcare #Data Integrity
Product Manager System Design medium

Design an AI-powered chatbot for an enterprise IT helpdesk to reduce L1 support tickets by 40%.

#AI/ML #Chatbots #Enterprise IT
Product Manager System Design hard

Your B2B product currently supports 10 enterprise clients, but sales just signed 90 more to be onboarded in the next 6 months. How do you scale the product and team?

#Scaling #Onboarding #B2B
Product Manager System Design hard

Design the high-level system architecture for an online assessment platform like TCS iON that needs to handle 100,000 concurrent users during a national exam.

#Scalability #High Availability #EdTech
Product Manager System Design medium

Design a rate-limiting strategy for a B2B API to prevent abuse while ensuring premium clients get their guaranteed throughput.

#APIs #Rate Limiting #B2B
Product Manager Technical hard

A major banking client wants to transition their on-premise core banking system to a cloud-based SaaS model. Walk me through your product strategy for this migration.

#Cloud Migration #Enterprise Software #Go-to-Market
Product Manager Technical hard

Imagine you are the Product Manager for TCS BaNCS. How would you prioritize a roadmap for integrating a new Open Banking API module while maintaining legacy client commitments?

#Prioritization #B2B SaaS #FinTech
Product Manager Technical hard

You notice a sudden 20% drop in user engagement on an internal HR portal. Walk me through your step-by-step approach to diagnose the issue.

#Root Cause Analysis #Engagement #Metrics
Product Manager Technical medium

You want to A/B test a new dashboard layout for corporate users. How do you segment the users, and how long do you run the test?

#A/B Testing #UX #Data Analysis
Product Manager Technical medium

What would be the North Star metric for an enterprise ERP system deployed by TCS for a manufacturing client?

#North Star Metric #ERP #Enterprise
Product Manager Technical medium

How do you ensure GDPR and data privacy compliance when building a new analytics dashboard for a European financial client?

#GDPR #Data Privacy #FinTech
Product Manager Technical medium

Explain the difference between a monolithic and a microservices architecture as if you were explaining it to a non-technical client sponsor.

#Microservices #Architecture #Communication
Product Manager Technical hard

Develop a Go-to-Market (GTM) strategy for launching a new blockchain-based supply chain tracking product to global logistics companies.

#GTM #Blockchain #Supply Chain
Product Manager Technical medium

How would you conduct a competitor analysis against Infosys or Wipro for a specific digital transformation product suite?

#Competitor Analysis #Market Positioning #Enterprise IT
Product Manager Technical medium

You are launching a new API gateway for a retail client. What are the top 3 metrics you would track to measure its success?

#APIs #Success Metrics #Retail
Product Manager Technical hard

TCS built an internal tool that is highly successful. Leadership wants to package it and sell it as a commercial SaaS product. What are your first steps?

#Commercialization #Market Research #SaaS
Product Manager Technical hard

Your leadership wants to incorporate Generative AI into an existing 15-year-old legacy enterprise application. How do you evaluate if this is a good idea?

#Generative AI #Legacy Systems #Innovation
Product Manager Technical easy

Explain how you would use the RICE framework to prioritize features for an internal employee portal like TCS Ultimatix.

#Prioritization #Frameworks #Internal Tools
Product Manager Technical medium

What key components would you include in a Product Requirements Document (PRD) for a multi-tenant architecture feature in a SaaS product?

#PRD #SaaS #Multi-tenancy
Product Manager Technical medium

Define the Minimum Viable Product (MVP) for a new digital onboarding module for enterprise employees.

#MVP #User Experience #HR Tech
Product Manager Technical hard

How would you define the pricing strategy for a new AI-driven IT operations automation tool similar to TCS Ignio?

#Pricing Strategy #AI Products #B2B
Product Manager Technical medium

How would you create a sales enablement plan to help TCS account executives sell a newly developed internal cybersecurity tool to existing clients?

#Sales Enablement #Cybersecurity #B2B
Software Engineer Behavioral easy

What is your understanding of the Tata Group's core values, and how do you align with them?

#Company Values #Integrity #HR
Software Engineer Behavioral easy

Why do you want to join TCS over other IT service-based companies or product-based startups?

#Company Knowledge #Motivation #HR
Software Engineer Behavioral medium

Describe a time when you had a disagreement with a team member or manager regarding a technical decision. How did you resolve it?

#Conflict Resolution #Communication #Teamwork
Software Engineer Behavioral medium

TCS often requires engineers to work on legacy systems and perform maintenance tasks. How do you feel about maintaining and refactoring older codebases?

#Adaptability #Patience #Mindset
Software Engineer Behavioral easy

TCS operates across multiple locations and time zones. Are you willing to relocate to any TCS development center and work in rotational shifts if the project demands it?

#Adaptability #Flexibility #HR
Software Engineer Coding easy

Write a SQL query to find all duplicate rows in a table based on a specific column (e.g., email).

#GROUP BY #HAVING #Data Cleaning
Software Engineer Coding easy

Given an array of size N containing distinct numbers in the range from 1 to N+1, find the single missing number.

#Arrays #Math #Bit Manipulation
Software Engineer Coding easy

Write a program to print the Fibonacci series up to N terms using recursion.

#Recursion #Math #Basic Programming
Software Engineer Coding hard

Given two sorted arrays, merge them into a single sorted array without using any extra space (O(1) auxiliary space).

#Arrays #Sorting #Math
Software Engineer Coding easy

Write a function to check if two given strings are anagrams of each other.

#Strings #Sorting #Hash Map
Software Engineer Coding medium

Write a program to reverse a string without using inbuilt functions, ensuring that special characters remain in their exact original positions.

#Strings #Two Pointers #Data Structures
Software Engineer Coding medium

Write a Java 8 program using Streams to find the second highest number in an array of integers.

#Java 8 #Streams API #Arrays
Software Engineer Coding easy

Find the first non-repeating character in a given string and return its index. If it doesn't exist, return -1.

#Strings #Hash Map #Arrays
Software Engineer Coding medium

Write a SQL query to find the 3rd highest salary of an employee from the 'Employee' table without using the LIMIT keyword.

#SQL Queries #Subqueries #Database
Software Engineer Coding medium

Write a program to find the longest palindromic substring in a given string.

#Strings #Dynamic Programming #Expand Around Center
Software Engineer Coding easy

Given an array of integers and a target sum, return the indices of the two numbers that add up to the target. (Two Sum problem)

#Arrays #Hash Map
Software Engineer Coding medium

Write a program to detect a loop (cycle) in a singly linked list.

#Linked List #Floyd's Cycle-Finding Algorithm #Pointers
Software Engineer System Design hard

How would you design an e-commerce checkout system that can handle massive spikes in traffic during a flash sale without crashing?

#High Availability #Message Queues #Load Balancing
Software Engineer System Design hard

Design a centralized logging and monitoring system for a distributed microservices architecture.

#Observability #Logging #Microservices
Software Engineer System Design medium

Design a scalable URL shortener service like Bitly. Focus on the database schema and the algorithm used to generate the short URL.

#Scalability #Database Design #Hashing
Software Engineer System Design hard

In a microservices architecture, how do you handle transaction management across multiple independent services?

#Microservices #Distributed Systems #Saga Pattern
Software Engineer System Design medium

What is the API Gateway pattern in Microservices? What cross-cutting concerns does it handle?

#Microservices #API Gateway #Security
Software Engineer Technical easy

In Spring Boot, what is the difference between the @RestController and @Controller annotations?

#Spring MVC #REST APIs #Annotations
Software Engineer Technical medium

What are the different types of memory areas allocated by the JVM? Where are objects and local variables stored?

#JVM #Memory Management #Garbage Collection
Software Engineer Technical easy

Explain the exact differences between TRUNCATE, DELETE, and DROP commands in SQL.

#DDL #DML #Database Management
Software Engineer Technical medium

What is the difference between fail-fast and fail-safe iterators in Java? Give an example of each.

#Collections #Iterators #Concurrency
Software Engineer Technical medium

Explain the concepts of Dependency Injection (DI) and Inversion of Control (IoC) in the Spring framework.

#Spring Core #Architecture #Design Principles
Software Engineer Technical easy

Explain the difference between an Abstract Class and an Interface in Java. What changes were introduced in Java 8 regarding interfaces?

#Object-Oriented Programming #Java #Interfaces
Software Engineer Technical medium

How does Spring Boot auto-configuration work under the hood? Explain the role of the @SpringBootApplication annotation.

#Spring Boot #Annotations #Auto-configuration
Software Engineer Technical medium

Explain the internal working of a HashMap in Java. What specific optimization was introduced in Java 8 to handle frequent hash collisions?

#Collections Framework #Data Structures #Hashing
Software Engineer Technical medium

How do you implement global exception handling in a Spring Boot REST API?

#Exception Handling #REST APIs #Annotations
Software Engineer Technical medium

Explain the difference between clustered and non-clustered indexes in a relational database.

#Indexing #Performance Tuning #SQL
Software Engineer Technical easy

What are the primary differences between REST and SOAP web services?

#APIs #Protocols #Architecture
Software Engineer Technical medium

Explain the Singleton design pattern. How do you ensure that a Singleton class is completely thread-safe in a multithreaded environment?

#Design Patterns #Multithreading #Core Java
Software Engineer Technical easy

Explain the ACID properties in the context of Database Management Systems.

#Transactions #Database Theory

Difficulty Radar

Based on recent AI-sourced data.

Meet Your Interviewers

The "Standard" Interviewer

Senior Engineer

Focuses on core competencies, system constraints, and clear communication.

Simulate

Unwritten Rules

Think Out Loud

Always explain your thought process before writing code or drawing architecture.

Practice Now