Interview practice plan
Data Scientist 2
Microsoft · Hyderabad
Practice content written by LYDJ for interview preparation. These are common questions for this kind of role, not this employer's actual interview questions.
What this role asks for
Skills we found in the job description. The plan below is built around them.
Also named in the description, not covered below: SQL, Scala, Git, CI/CD, Power BI. Review these on your own.
Sign in to see your gap areas first. We compare this role with the skills on your profile.
0 of 22 questions practised
Answer each one out loud, then tick it. Progress is saved in this browser only.
Data analysis
This role asks for Statistics. These Data analysis questions cover the ground it builds on.
Explain a p-value and a confidence interval in plain language.
What good looks likeHide hint
A p-value is how surprising the data would be if there were no real effect; a confidence interval is a range of plausible effect sizes. Neither is the chance the hypothesis is true.
Explain Simpson's paradox with an example, and how you guard against it.
What good looks likeHide hint
A trend in every subgroup reverses in the aggregate because group sizes differ; segment by likely confounders before drawing conclusions.
A stakeholder asks you to report a metric you think is misleading. What do you do?
What good looks likeHide hint
Understand the decision behind the request, show concretely how the metric misleads, propose a better one, and agree the definition in writing.
Machine Learning
This role asks for Machine Learning, scikit-learn, Deep Learning and PyTorch. These Machine Learning questions cover the ground they share.
Your classifier has 98% accuracy but the business says it is useless. What might be going on?
What good looks likeHide hint
Class imbalance. Look at precision, recall, PR-AUC and the confusion matrix, the cost of each error type, and threshold tuning.
How do you detect and prevent data leakage?
What good looks likeHide hint
Time-based splits, features computed after the label, target encoding outside cross-validation folds, and the same entity appearing in train and test.
How do you choose evaluation metrics for a ranking or recommendation problem?
What good looks likeHide hint
NDCG, MAP or recall@k depending on the use, aligned with a business metric, and awareness of the gap between offline and online results.
LLMs & GenAI
This role asks for Generative AI and LLMs. These LLMs & GenAI questions cover the ground they share.
Explain retrieval-augmented generation. When does it beat fine-tuning?
What good looks likeHide hint
RAG grounds answers in fresh, citable documents without retraining; fine-tuning changes style or format behaviour. Many systems use both.
How would you evaluate an LLM-powered feature before launch?
What good looks likeHide hint
A golden dataset of real tasks, rubric-based and automated checks, human review of samples, a regression suite for prompt changes, and live feedback.
How do you reduce hallucinations in a question-answering system over company documents?
What good looks likeHide hint
Improve retrieval (chunking, hybrid search, reranking), instruct the model to answer only from sources with citations, allow it to abstain, and measure with evals.
Azure
This role asks for Azure.
How would you organise Azure management groups, subscriptions and resource groups for several teams?
What good looks likeHide hint
Management groups for policy inheritance, subscriptions as billing and isolation boundaries, resource groups per workload lifecycle, and consistent tagging.
When would you pick App Service, Azure Functions or AKS?
What good looks likeHide hint
Compare operational effort, scaling model, execution limits, cost profile and team skills, and give a workload that fits each.
How would you build a secure pipeline that deploys infrastructure and apps to Azure?
What good looks likeHide hint
Federated workload identity instead of stored secrets, Key Vault, environment approvals, infrastructure as code with Bicep or Terraform, and policy checks.
ETL & data pipelines
This role asks for ETL.
How do you design a pipeline that can be safely re-run for a past date?
What good looks likeHide hint
Idempotent writes via partition overwrite or merge on keys, deterministic inputs, no side effects outside the target, and a backfill procedure.
Batch or streaming: how do you decide for a new use case?
What good looks likeHide hint
How fresh the data must be, cost and operational complexity, late data handling, and whether micro-batches are good enough.
What is incremental loading, and how would you implement change data capture?
What good looks likeHide hint
Load only new or changed rows using watermarks or log-based CDC, handle deletes and updates, and reconcile counts periodically.
Python
This role asks for Python and Pandas. These Python questions cover the ground they share.
Explain the GIL and how it affects threading, multiprocessing and asyncio.
What good looks likeHide hint
Threads help I/O-bound work but not CPU-bound Python code; multiprocessing sidesteps the GIL at a memory and IPC cost; asyncio suits many concurrent I/O tasks.
Explain decorators. Write one that retries a function with exponential backoff.
What good looks likeHide hint
A function that wraps another, functools.wraps to keep metadata, configurable retries and delays, and only retrying exceptions that are actually transient.
What goes wrong with def add(item, items=[])?
What good looks likeHide hint
Default arguments are evaluated once, so the list is shared across calls. Use None as the default and create the list inside.
Behavioural
Every interview loop has a behavioural round. At mid level, expect questions on delivering independently, handling ambiguity and working through disagreement. Use the STAR structure.
Tell me about a time you had to learn something new quickly to deliver on a deadline.
What good looks likeHide hint
Name the specific gap, show how you learned (sources, people, practice) and quantify what you shipped. Interviewers want a repeatable learning method, not heroics.
Describe a time you had several urgent priorities at once. How did you decide what to do first?
What good looks likeHide hint
Explain your criteria (impact, deadlines, dependencies), how you communicated the trade-offs, and what you deliberately dropped or delayed.
Tell me about a time you worked with unclear or changing requirements.
What good looks likeHide hint
Show how you reduced ambiguity: clarifying questions, writing down assumptions, small experiments and getting explicit sign-off.
Tell me about a time you used data to change someone's mind.
What good looks likeHide hint
Explain what the data showed, how you made it understandable for that audience, and which decision changed as a result.
Company research brief: Microsoft
From the roles we track on LYDJ, refreshed daily from the official careers page.
120
open roles
57
added in 30 days
31
in Other
Hiring most for
- Engineering49
- Other31
- Data & AI14
- Operations8
Read before the interview
Questions to ask them
- ›There are several open Other roles at Microsoft right now. How is the team growing, and where does this role fit?
- ›The company hires in Hyderabad, Bengaluru, Mumbai. How do teams across locations work together day to day?
- ›How does the team use Statistics and Machine Learning today, and what would you like to change?
- ›What does success look like in this role after six months?
- ›What is the biggest challenge the team is facing this year?
Preparation checklist
0/7 doneSaved in this browser only.