Morgan Stanley interview prep · updated Oct 2026

Morgan Stanley Software Engineer Interview Questions

Software Engineer 8 questions

A software engineer at a firm centred on wealth management and investment work for clients builds the calculations and checks behind client portfolios: returns, rebalancing, currency conversion and rules that decide whether an investment suits a client. Prepare to talk about getting calculations exactly right, reviewing a colleague's numbers, keeping client and deal information separate, and resisting shortcuts into production. What to show here: calculations you can explain and rules you never skip. Each question below has what the interviewer is checking, an answer frame and a sample spoken answer to adapt.

Behavioral

1. Tell me about a time you reviewed a colleague's change to a calculation and believed the result was wrong, even though all the tests passed.

What they are checking
Checks whether you review for meaning, not just style, and can raise a doubt with evidence and respect.
Answer frame
  1. Describe the change and what made you doubt it.
  2. Explain how you checked your doubt.
  3. Show how you raised it with the author.
  4. Share the outcome and what was added to the tests.
Sample spoken answer

“A colleague changed how we averaged a series of monthly values, and the tests were green. Something looked odd to me: the new code divided by the number of months in the year, not the number of months with data. For a new customer with only a few months, that would give a figure far too low. I worked one example by hand and sent it to him privately with both numbers. He had tested only full years. He fixed it and thanked me. We added cases for partial periods, and I learned to ask in every review what the tests do not cover. After that, your result.”

Red flag to avoid

Weak answers approve because the tests pass, or criticise the author in public without checking first.

Behavioral

2. Describe a time you had to keep information from one project or client strictly away from people working on another, even though they were your colleagues.

What they are checking
Checks whether you understand information barriers, which matter in a firm that both advises companies and invests for clients.
Answer frame
  1. Describe the two pieces of work and why they had to stay apart.
  2. Explain the moment it was tested.
  3. Show what you did.
  4. Share how you set things up to make it easy to keep.
Sample spoken answer

“At a previous company I worked on a system for one customer while a friend on my team worked for that customer's direct competitor. Our contracts said the work must stay separate. Over lunch he asked how we had solved a problem he was stuck on. I told him I could not talk about that project, and offered to discuss the general technique with a made-up example. It was a little awkward. I also asked our lead to split the repositories and chat channels, since shared ones made slips likely. After the split, nobody had to rely on memory to do the right thing.”

Red flag to avoid

Weak answers see no harm in sharing between colleagues, or depend on good intentions with no separation in the systems.

Technical

3. A client adds money to their portfolio in some months and withdraws in others. How would you calculate the portfolio's return for the year so that deposits are not counted as gains?

What they are checking
Checks whether you can reason about a calculation with a trap in it, and explain the choice of method in plain words.
Answer frame
  1. Show why end value over start value is wrong when money moves in or out.
  2. Split the year into periods at each cash movement.
  3. Compute the return of each period and link them together.
  4. Test with a case where the answer is known.
Sample spoken answer

“If I divide the end value by the start value, a large deposit looks like a gain, which is wrong. So I would break the year at each deposit or withdrawal. For each period, I compute the return from the value at its start to the value just before the next cash movement. Then I link the period returns by multiplying their growth factors. That shows how the investments performed, whatever the client paid in. I would test with a portfolio that holds only cash with no growth: whatever the deposits, the return must be zero. I would also state which method the report uses.”

Red flag to avoid

Weak answers compare start and end values only, or cannot explain why deposits distort the result.

System Design

4. Client portfolios drift away from their target mix as markets move. Design a tool that proposes the trades needed to bring a portfolio back, for an advisor to review.

What they are checking
Checks whether you can turn a business goal into an algorithm with limits, and keep a human in control.
Answer frame
  1. Compare current weights with target weights and set a tolerance.
  2. Compute buys and sells that close the gap.
  3. Apply limits: minimum trade size, cash needs, holdings the client will not sell.
  4. Present proposals with reasons, for the advisor to approve or change.
Sample spoken answer

“The tool values the portfolio and compares each asset type's weight with the target. If the gap is inside a tolerance, it proposes nothing, because small trades cost more than they help. Otherwise it works out how much to sell of what is overweight and buy of what is underweight. Then limits apply: keep the cash the client needs, skip trades below a minimum size, and respect holdings the client has asked to keep. The output is a proposal, not an order. The advisor sees each trade with the reason and the weights before and after, and can change it. The proposal and the decision are both stored.”

Red flag to avoid

Weak answers trade back to the exact target every time, or send orders with no review by the advisor.

Technical

5. Before an investment is bought for a client, a check must confirm it fits the client's risk profile. The rules change often. How would you build this check so it is easy to update and impossible to bypass?

What they are checking
Checks how you separate changing rules from code and design a control that fails safe.
Answer frame
  1. Keep rules as versioned data, separate from the engine that runs them.
  2. Place the check on the single path every order must take.
  3. Refuse the order if the check cannot run.
  4. Record the rule version and inputs with every decision.
Sample spoken answer

“I would keep the rules as data with versions and effective dates, reviewed before they go live, and an engine that evaluates them. That way a rule change does not need a code release. The check sits in the one service that every order must pass through, not in each screen, so no new channel can skip it. If the check cannot run, because data is missing or the service is down, the order is refused, not waved through. Every decision is stored with the inputs and the rule version, so we can later show why an order was allowed. Any override needs a named person and a reason.”

Red flag to avoid

Weak answers put the check in the user interface, or allow orders through when the check is unavailable.

Technical

6. A client holds investments in several currencies and wants one total in their home currency. What decisions do you have to make to convert correctly?

What they are checking
Checks attention to detail: which rate, taken when, from where, and how rounding and history are handled.
Answer frame
  1. Choose the source of rates and the time they are taken.
  2. Use the same rate set for the whole report.
  3. Convert each holding, then add, and round at the end.
  4. Store the rates used so the figure can be reproduced.
Sample spoken answer

“The first decision is which rate: from which source and taken at what time. For an end-of-day report I would use one agreed closing rate for each currency pair, and the same set for every holding, so the parts agree with the total. For a past date, I use that date's rates, not today's. I convert each holding's value, add the converted values, and round only when displaying. I store the rates used with the report, so the figure can be reproduced later. I would also show the client the value in the original currency, so they can see how much of a change came from the rate.”

Red flag to avoid

Weak answers use whatever rate is current for every date, or round each holding before adding.

Scenario

7. Advisors are waiting on a fix, and a colleague asks you to copy a corrected file straight onto the production server because the normal release takes too long. What do you do?

What they are checking
Checks whether you hold to change control under pressure and look for the fastest safe path.
Answer frame
  1. Acknowledge the urgency and decline the manual copy.
  2. Ask what the emergency release path is and use it.
  3. Offer a workaround for the waiting users.
  4. Afterwards, raise why the normal path was too slow.
Sample spoken answer

“I would say no to copying the file by hand, and explain why: there would be no record, no review and no clean way back if it made things worse. But I would not stop there, because the advisors are really waiting. I would ask our lead to start the emergency release path, which still has a second reviewer and a record, and offer to be that reviewer at once. Meanwhile I would check whether there is a workaround the advisors can use for an hour. Afterwards I would raise the real problem: if the normal release is too slow for urgent fixes, people will keep being tempted.”

Red flag to avoid

Weak answers do the manual copy to be helpful, or refuse and walk away from the problem.

Why this company

8. What interests you about engineering for wealth management and investment work at Morgan Stanley?

What they are checking
Checks whether you are drawn to precise, rule-bound engineering in service of clients and advisors.
Answer frame
  1. Say which kind of problem you enjoy.
  2. Connect it to portfolios, advice and the rules around them.
  3. Link it to your experience.
  4. Say what you want to grow into.
Sample spoken answer

“I enjoy problems where the hard part is being exactly right, and where I can explain the answer to someone who is not an engineer. Wealth management is full of those: returns, fees, conversions, and rules about what suits a client. At Morgan Stanley that work supports advisors and the people who trust them with their savings. I have spent a few years on calculation-heavy services and found I like the testing and the discipline as much as the design. I want to grow into someone who understands the finance well enough to question a requirement, not just implement it.”

Red flag to avoid

Weak answers mention fast markets and prestige, and say nothing about clients, advice or correctness.

Salary questions come last

No figures on this page: pay depends on the level, the city and the offer in front of you. When the offer comes, the free salary negotiation script helps with that part.

For the call itself

The questions above are the prep. On the real call, ClapAssist helps with the ones you did not practice.

ClapAssist is an AI interview assistant for Mac and Windows. It listens to the interview on your computer and shows you what to say, in short lines you can read while you talk. Your live interview audio and screen are never stored. Your resume and notes are saved to your account so the app fills them in on any computer. It is hidden from screen share on every plan, including Free; only you can see it.

Download with 10 free minutes
Mac and Windows · Stays out of screen share · No card