Company Interview Questions · IT Services
Tech Mahindra: AI Engineer, Noida (Offer)
Tech Mahindra: AI Engineer Interview Experience (Noida, 2025, Offer). Rounds, real reported questions and model answers, compiled from public candidate reports (sources at the end). Practice mode hides every answer: say your answer first, press Show answer, then rate yourself. Use 🔁 Review again to build your revision list and 🎲 Random question for a quick drill.
About this interview
Compiled from a public candidate report for a Tech Mahindra AI Engineer role in Noida (October 2025, offer accepted) and a public question-bank guide for Tech Mahindra ML roles. The questions are paraphrased, and the model answers are written by EasyLearnSpace.
| Role | AI Engineer |
| Rounds | 3: technical 1 → technical 2 → client round |
| Focus | Basic Python, applying AI in your project, Transformer architecture, cloud technologies (client round) |
| Outcome | Offer accepted; rated positive and of average difficulty |
01Rounds at a glance
- Technical 1: basic Python coding, then "how did you implement AI in your project?" and follow-ups.
- Technical 2: Transformer architecture plus project depth.
- Client round: the client checks which cloud services you have used (Azure, AWS or GCP) and how you would run the solution in their environment.
02Questions and model answers
Q1
How did you implement AI in your project? Walk through the pipeline.
- Business problem → data → model → serving → monitoring.
- Example: "An email-triage assistant for a telecom client.
- Emails go through PII masking and are then classified into 12 intents by a fine-tuned DistilBERT.
- For complex cases, a GPT-4o-mini RAG step drafts a reply from the knowledge base.
- The service runs on FastAPI in Azure App Service and is monitored with Application Insights.
- Outcome: 38% fewer manual touches and 2 minutes saved per email."
- Always say why each component was chosen and what you measured.
Q2
Explain the Transformer architecture briefly.
- Embeddings: tokens become embeddings, and positional encodings are added.
- N blocks, each containing multi-head self-attention (softmax(QKᵀ/√d)V) and a feed-forward network, with residual connections and layer norm around both.
- Variants: encoders (BERT) understand text, decoders (GPT) generate it with a causal mask, and encoder-decoders (T5) translate or summarise.
- Why it is powerful: parallel training, long-range context, and it scales to LLMs.
Q3
Client round: which cloud services would you use to deploy a GenAI app on Azure?
- Models: Azure OpenAI (private endpoint) or Azure AI Foundry for open models.
- Retrieval: Azure AI Search (hybrid + semantic ranker), with Blob Storage for documents.
- Compute: Azure Container Apps, AKS or App Service running FastAPI; Functions for ingestion jobs.
- Security: Entra ID authentication, Key Vault for secrets, VNet with private endpoints, and Content Safety filters.
- Operations: Application Insights / Azure Monitor, plus a CI/CD pipeline in Azure DevOps or GitHub Actions.
- On AWS: Bedrock, OpenSearch, ECS or Lambda, Secrets Manager, CloudWatch.
Q4
Python: return all primes up to n.
def primes_upto(n):
if n < 2: return []
sieve = [True] * (n + 1); sieve[0] = sieve[1] = False
for i in range(2, int(n ** 0.5) + 1):
if sieve[i]:
sieve[i*i::i] = [False] * len(sieve[i*i::i])
return [i for i, p in enumerate(sieve) if p]
- The Sieve of Eratosthenes runs in O(n log log n). Return an empty list when n < 2.
Q5
How would you predict customer churn for a telecom client?
- Label: the customer churned within the next 30 or 60 days.
- Features: tenure, plan, ARPU trend, data usage drop, complaints and support calls, payment delays, network quality in the customer's area.
- Model: a gradient-boosted tree with time-based validation, judged on PR-AUC, and lift in the top decile.
- Action: give retention offers to the high-risk, high-value segment; measure uplift with a control group, not just accuracy.
- Explain the drivers with SHAP for the business team.
Q6
How do you clean missing values in a dataset?
import pandas as pd
df = pd.read_csv("customers.csv")
print(df.isna().mean().sort_values(ascending=False)) # missing ratio
df["income_missing"] = df["income"].isna().astype(int) # keep the signal
df["income"] = df["income"].fillna(df["income"].median())
df["city"] = df["city"].fillna("Unknown")
df = df.dropna(subset=["customer_id"]) # critical key
- Strategy: understand why values are missing (completely at random, at random, or not at random). Drop a column if more than ~60% is missing and it isn't useful. Impute with median or mode, or use model-based imputation (KNN, iterative). Fit imputers on the training data only.
03How to prepare for Tech Mahindra
- Know your project's AI part end to end. That is where round 1 goes.
- Revise Transformers and one cloud stack thoroughly. The client round checks practical cloud experience.
- Practise easy Python and pandas cleaning tasks.
Sources
- Glassdoor: Tech Mahindra AI Engineer, Noida (Oct 2025)
- Interview Query: Tech Mahindra ML Engineer question guide
Created by Ajeetkumar