Interview practice plan

M

Principal Software Engineer IC5

Microsoft · Hyderabad

EngineeringLead / Manager25 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#JavaJavaScriptPythonTypeScriptReact

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

0 of 25 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).

  • When would you use CompletableFuture, a bounded ExecutorService, or virtual threads?

    What good looks like

    Virtual threads for blocking I/O-heavy code, CompletableFuture for composing async steps, bounded pools for CPU-bound work, and the pinning caveats of virtual threads.

  • 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.

02Required skill0/1

JavaScript

This role asks for JavaScript.

  • How would you find and fix a memory leak in a single-page app?

    What good looks like

    Heap snapshots in browser DevTools, detached DOM nodes, listeners and intervals not cleaned up, and caches that grow with every navigation.

03Required skill0/3

Python

This role asks for Python.

  • Explain the GIL and how it affects threading, multiprocessing and asyncio.

    What good looks like

    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.

  • How does Python manage memory, and why might a long-running process keep growing?

    What good looks like

    Reference counting plus a cyclic garbage collector, fragmentation, unbounded caches or globals, and using tracemalloc to find the growth.

  • How do you structure a Python codebase so a team can work on it safely?

    What good looks like

    Locked dependencies, pyproject-based packaging, type hints checked in CI, pytest with fixtures, linting and formatting, and clear module boundaries.

04Required skill0/3

TypeScript

This role asks for TypeScript.

  • What are discriminated unions, and how do they help with exhaustive checks?

    What good looks like

    A shared literal field narrows the type in a switch; assigning the default case to never makes the compiler flag any unhandled variant.

  • When is using any or a type assertion acceptable, and how do you keep a large codebase strictly typed?

    What good looks like

    Prefer unknown plus narrowing, enable strict mode, validate external data at the boundary, and tighten gradually with lint rules.

  • How would you keep frontend API types in sync with the backend?

    What good looks like

    Generate types from an OpenAPI or GraphQL schema, share a contracts package, and validate responses at runtime where data crosses a trust boundary.

05Required skill0/3

React

This role asks for React.

  • How do you decide between local state, context and a global store in a large app?

    What good looks like

    Keep state as local as possible, use context for low-frequency shared values, a store for complex shared client state, and a data-fetching cache for server state.

  • Server components versus client components: what runs where, and what can a server component not do?

    What good looks like

    Server components render on the server with direct data access and no client JS; they cannot use state, effects or browser APIs, so interactivity lives in client components.

  • A list of 10,000 rows is slow to render and scroll. How do you fix it?

    What good looks like

    Measure with the Profiler, virtualise the list, use stable keys and memoised rows, and consider pagination or server-side filtering.

06Fundamentals0/2

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.

  • How would you find and fix a memory leak in a long-running service?

    What good looks like

    Confirm with memory metrics over time, take and compare heap snapshots, look for unbounded caches, listeners and global collections, then add a regression check.

  • 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.

07Design round0/3

System design

Lead / Manager engineering roles almost always include a design round. State requirements and rough numbers first, then walk through trade-offs.

  • Design a job alerts system that emails users when new roles match their saved searches.

    What good looks like

    Cover ingestion, matching at scale (inverted index versus per-user scans), batching and de-duplication, unsubscribe and rate limits, and failure handling.

  • Design a payment service that must never charge a customer twice.

    What good looks like

    Idempotency keys, a payment state machine, reconciliation with the provider, and at-least-once delivery with de-duplication rather than hoping for exactly-once.

  • Your service's p99 latency doubled after a release. Walk me through how you investigate.

    What good looks like

    Check what changed, compare dashboards and traces, isolate by endpoint and dependency, roll back first if users are hurting, then find the root cause with profiling.

08Every loop0/4

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 like

    State the feedback, your honest first reaction and the concrete behaviour you changed. Close with evidence that the change stuck.

  • Tell me about a mistake you made at work and what happened next.

    What good looks like

    Own it without blaming others, explain how you contained the impact, and what you changed so it would not happen again.

  • 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.

  • Describe a time you had to deliver bad news to a stakeholder.

    What good looks like

    Show that you told them early, came with options and a recommendation rather than just the problem, and kept their trust.

09Leadership0/3

Leadership

The title marks this as a lead or manager role. Expect questions on hiring, developing people and setting priorities.

  • How do you handle a team member who is consistently underperforming?

    What good looks like

    Diagnose first (skills, motivation or context), set clear written expectations, support with a time-boxed plan, and be ready to make a fair hard call.

  • Tell me about someone you mentored or developed. What changed for them?

    What good looks like

    Describe their starting point, what you specifically did (stretch work, feedback, sponsorship) and their measurable growth.

  • Tell me about a time you led a team through a significant change, such as a re-org or new way of working.

    What good looks like

    Explain the why you communicated, how you handled resistance, and how you measured whether the change actually worked.

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

49

in Engineering

Product & SoftwareGCC

Hiring most for

  • Engineering49
  • Other31
  • Data & AI14
  • Operations8

Cities

Hyderabad · 78Bengaluru · 17Mumbai · 7Gurugram · 2Pune · 1
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/9 done

Saved in this browser only.

Interview prep: Principal Software Engineer IC5 at Microsoft | LYDJ