Interview practice plan

M

Software Engineer 2

Microsoft · Hyderabad

EngineeringMid level16 practice questions

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.

C++C#JavaJavaScriptPython

Sign in to see your gap areas first. We compare this role with the skills on your profile.

0 of 16 questions practised

Answer each one out loud, then tick it. Progress is saved in this browser only.

01Required skill0/3

Java

This role asks for Java.

  • Explain the Java Memory Model. What do volatile and synchronized actually guarantee?

    What good looks like

    Visibility versus atomicity, happens-before, and why a volatile counter++ is still not thread-safe (use atomics or locks).

  • Your Java service throws OutOfMemoryError in production about once a week. How do you investigate?

    What good looks like

    Heap dump on OOM, analyse retained sizes and dominators, check caches and unbounded collections, and correlate with traffic or batch jobs.

  • When are Java streams the wrong choice compared with a plain loop?

    What good looks like

    Readability and debugging trade-offs, checked exceptions inside lambdas, and parallel streams with shared state or the common fork-join pool.

02Required skill0/3

JavaScript

This role asks for JavaScript.

  • Explain the event loop. In what order do setTimeout, a resolved Promise and code after await run?

    What good looks like

    Call stack, microtask queue (promises) drained before the next macrotask (timers), and how await splits a function into a microtask continuation.

  • What is a closure? Give a practical use and a bug closures can cause.

    What good looks like

    A function remembering its lexical scope; uses include private state and factories; classic bug is var in a loop or a stale value captured in a callback.

  • Implement debounce, and explain when you would use debounce versus throttle.

    What good looks like

    Debounce waits for a pause (search input), throttle limits the rate (scroll handlers). Handle this, arguments and clearing the timer.

03Required skill0/3

Python

This role asks for Python.

  • What are generators, and when would you use one instead of building a list?

    What good looks like

    Lazy evaluation with yield, constant memory for large or infinite streams, and pipelines of generators; note they can only be iterated once.

  • Explain decorators. Write one that retries a function with exponential backoff.

    What good looks like

    A function that wraps another, functools.wraps to keep metadata, configurable retries and delays, and only retrying exceptions that are actually transient.

  • A Python data-processing script takes hours. How do you speed it up?

    What good looks like

    Profile first, replace row-by-row loops with vectorised NumPy or pandas operations, process in chunks, then consider multiprocessing or a distributed engine.

04Fundamentals0/3

Core programming

This role asks for C++ and C#. We do not have questions specific to these yet, so practise these fundamentals and answer them in that language.

  • Explain the difference between a process and a thread, and when you would use each.

    What good looks like

    Memory isolation versus shared memory, cost of creation and context switches, and the synchronisation problems that sharing introduces.

  • Given an array of integers and a target, return the indices of two numbers that add up to the target. Then improve the complexity.

    What good looks like

    Start with the O(n^2) brute force, move to a single pass with a hash map for O(n), and talk through duplicates and the no-answer case before coding.

  • What makes code testable? Show how you would refactor a function to make it easier to test.

    What good looks like

    Separate pure logic from I/O, inject dependencies instead of constructing them inside, and keep functions small with clear inputs and outputs.

05Every loop0/4

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 disagreed with a teammate or your manager. How did it resolve?

    What good looks like

    Show that you disagreed on substance with evidence, listened properly, and committed once a decision was made, even if it went the other way.

  • Tell me about a time a project you owned was at risk of missing its date.

    What good looks like

    Show early detection, honest escalation and the scope, sequencing or resourcing levers you pulled. Avoid stories that end with "we all worked weekends".

  • Why do you want this role, and why now?

    What good looks like

    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.

  • Tell me about a time you worked closely with a team in another time zone or culture.

    What good looks like

    Mention concrete practices (async updates, overlap hours, written decisions) and a moment where a misunderstanding was caught and fixed.

Company research brief: Microsoft

From the roles we track on LYDJ, refreshed daily from the official careers page.

120

open roles

51

added in 30 days

54

in Engineering

Product & SoftwareGCC

Hiring most for

  • Engineering54
  • Other27
  • Data & AI14
  • Operations7

Cities

Hyderabad · 79Bengaluru · 20Mumbai · 5Pune · 3Noida · 2
See all 120 roles at Microsoft →

Read before the interview

Questions to ask them

  • ›There are several open Engineering 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 C++ and C# 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 done

Saved in this browser only.

Interview prep: Software Engineer 2 at Microsoft | LYDJ