Interview practice plan
Java Lead_Vice President _Software Engineer
Morgan Stanley · Bengaluru
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: Observability, Python, ETL, React. 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 28 questions practised
Answer each one out loud, then tick it. Progress is saved in this browser only.
Java
This role asks for Java and Spring Boot. These Java questions cover the ground they share.
How does Spring Boot auto-configuration decide which beans to create, and how do you override it?
What good looks likeHide hint
Conditional annotations on classpath, properties and missing beans; override by defining your own bean, properties or exclusions, and debug with the conditions report.
Explain @Transactional: propagation, self-invocation and which exceptions trigger a rollback.
What good looks likeHide hint
It is proxy-based, so calls within the same class bypass it; by default only unchecked exceptions roll back; know REQUIRED versus REQUIRES_NEW.
How would you make a Spring Boot service production-ready?
What good looks likeHide hint
Health and readiness endpoints, externalised config and secrets, structured logs, metrics and tracing, connection pool sizing and graceful shutdown.
Kafka
This role asks for Kafka.
Explain at-most-once, at-least-once and exactly-once delivery. How would you get effectively-once processing?
What good looks likeHide hint
Idempotent producers and transactions, committing offsets after processing, and idempotent consumers keyed on a business id.
A consumer group is lagging badly. How do you diagnose and fix it?
What good looks likeHide hint
Check lag per partition, slow processing versus too few partitions or consumers, rebalancing storms, and batching or scaling out.
How would you choose the number of partitions for a new topic?
What good looks likeHide hint
Target throughput per partition, consumer parallelism, key distribution, and the cost of too many partitions; increasing later changes key-to-partition mapping.
SQL
This role asks for SQL.
Find users who were active on at least three consecutive days.
What good looks likeHide hint
A gaps-and-islands pattern: subtract ROW_NUMBER() from the activity date, group by user and that difference, and count.
A query that used to take 2 seconds now takes 2 minutes. How do you debug it?
What good looks likeHide hint
Read the execution plan, check stale statistics, missing or unused indexes, data growth and skew, parameter-sensitive plans, and locking.
Explain transaction isolation levels and an anomaly each one prevents.
What good looks likeHide hint
Dirty reads, non-repeatable reads and phantoms across read committed, repeatable read and serializable, and how MVCC databases implement them.
CI/CD & IaC
This role asks for CI/CD and Git. These CI/CD & IaC questions cover the ground they share.
Design a CI/CD pipeline for a service with many contributors. Which gates would you put before production?
What good looks likeHide hint
Fast unit tests on every PR, integration and security scans, build once and promote the same artifact, staged environments, and automated rollback.
Blue-green, canary or rolling deployment: how do you choose?
What good looks likeHide hint
Blast radius, rollback speed, infrastructure cost and how good your metrics are for judging a canary. Give a case for each.
The build takes 40 minutes. How do you bring it down?
What good looks likeHide hint
Measure where time goes, cache dependencies, parallelise and shard tests, only build what changed, and fix or quarantine the slowest tests.
LLMs & GenAI
This role asks for LLMs, LangChain and RAG. 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.
What are the main cost and latency levers for an LLM application in production?
What good looks likeHide hint
Model choice and routing, prompt caching, trimming context, batching, streaming responses, and caching repeated answers.
What security risks are specific to LLM applications, and how do you mitigate prompt injection?
What good looks likeHide hint
Treat retrieved content as untrusted data, give tools least privilege, validate outputs, require human confirmation for side effects, and log for review.
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.
System design
This role asks for Microservices, REST APIs and Distributed systems, so expect an architecture round. State requirements and numbers first, then trade-offs.
How would you break a monolith into microservices? Where would you start?
What good looks likeHide hint
Start from domain boundaries and the parts that change most, use a strangler approach, plan for shared data and distributed transactions, and invest in observability first.
Design a distributed cache. How do you handle node failures and hot keys?
What good looks likeHide hint
Consistent hashing, replication, eviction policy, protection against cache stampedes, and the consistency guarantees callers can actually live with.
Design a real-time chat system with one-to-one and group messages.
What good looks likeHide hint
Connection handling (WebSockets), ordering and delivery receipts, offline storage and sync, fan-out for groups, and presence.
Behavioural
Every interview loop has a behavioural round. For lead and manager roles, the focus is on people decisions, prioritisation and leading through change. Use the STAR structure.
Describe a piece of feedback that changed how you work.
What good looks likeHide hint
State the feedback, your honest first reaction and the concrete behaviour you changed. Close with evidence that the change stuck.
Give an example of when you went beyond your role to fix a problem for your team or a customer.
What good looks likeHide hint
Pick something with real impact, explain why it mattered, and how you involved the owner rather than quietly working around them.
Tell me about a time you influenced an important decision without having formal authority.
What good looks likeHide hint
Cover how you built the case (data, prototypes, allies), handled objections and what changed. Strong answers show patience and shared credit.
Why do you want this role, and why now?
What good looks likeHide hint
Connect two or three specific requirements of the role to your experience and to a direction you are deliberately moving in. Generic praise of the company scores poorly.
Leadership
The title marks this as a senior leadership role. Expect questions on hiring, developing people and setting priorities.
How do you balance delivery pressure against technical debt or quality?
What good looks likeHide hint
Give a concrete mechanism (a capacity budget, a debt register, quality gates) and an example where you made the trade-off explicit to stakeholders.
How would you approach your first 90 days in this role?
What good looks likeHide hint
Listen and map stakeholders first, find one or two early wins, then set direction with the team. Promising a big re-org on day one is a red flag.
How do you give difficult feedback to a very experienced peer or senior colleague?
What good looks likeHide hint
Keep it private, specific and about behaviour and impact. Show that you also invited their side and agreed on a next step.
Company research brief: Morgan Stanley
From the roles we track on LYDJ, refreshed daily from the official careers page.
70
open roles
20
added in 30 days
9
in Engineering
Hiring most for
- Other35
- Engineering9
- Operations7
- Finance & Legal7
Read before the interview
Questions to ask them
- ›There are several open Engineering roles at Morgan Stanley right now. How is the team growing, and where does this role fit?
- ›The company hires in Mumbai, Bengaluru. How do teams across locations work together day to day?
- ›How does the team use Java and Spring Boot 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/8 doneSaved in this browser only.