Interview practice plan

M

Principal Software Engineer

Microsoft · Hyderabad

EngineeringLead / Manager28 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.

System designC++C#JavaJavaScriptPythonDistributed systemsAzureAWSGCPCI/CD

Also named in the description, not covered below: CI/CD. 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.

01Required skill0/3

Java

This role asks for Java.

  • How does garbage collection work in the JVM, and how would you tune it for a low-latency service?

    What good looks like

    Generational heap, G1 versus ZGC trade-offs, reading GC logs, and reducing allocation rate before reaching for JVM flags.

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

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

Azure

This role asks for Azure.

  • How would you organise Azure management groups, subscriptions and resource groups for several teams?

    What good looks like

    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 like

    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 like

    Federated workload identity instead of stored secrets, Key Vault, environment approvals, infrastructure as code with Bicep or Terraform, and policy checks.

05Required skill0/3

AWS

This role asks for AWS.

  • How would you design a highly available web application on AWS across multiple availability zones?

    What good looks like

    Load balancer across AZs, auto-scaling stateless compute, a multi-AZ database, externalised sessions, health checks and a tested failover plan.

  • The AWS bill has grown 40% in six months. How do you bring it under control?

    What good looks like

    Tagging and cost allocation first, then rightsizing, savings plans, storage lifecycle rules, data transfer review, and budgets with alerts.

  • Design a VPC for an app with public web servers and private databases.

    What good looks like

    Public and private subnets in each AZ, NAT for outbound traffic, security groups versus NACLs, and VPC endpoints to keep service traffic private.

06Required skill0/3

GCP

This role asks for GCP.

  • When would you choose Cloud Run, GKE or Compute Engine?

    What good looks like

    Cloud Run for stateless containers with minimal ops, GKE for complex orchestration needs, VMs for special runtimes or licensing; compare cost and control.

  • How does BigQuery pricing work, and how do you keep query costs under control?

    What good looks like

    On-demand bytes scanned versus capacity pricing, partitioning and clustering, avoiding SELECT *, dry runs, and per-user quotas.

  • Design an event-driven pipeline on Pub/Sub. How do you handle duplicate and out-of-order messages?

    What good looks like

    At-least-once delivery means idempotent consumers, ordering keys where order matters, dead-letter topics, and replay strategy.

07Fundamentals0/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.

08Design round0/3

System design

This role asks for System design and Distributed systems, so expect an architecture round. State requirements and numbers first, then trade-offs.

  • Design the home feed for a professional networking app.

    What good looks like

    Discuss fan-out on write versus read, very large accounts, ranking, pagination and cache invalidation, and state your trade-offs explicitly.

  • Design a distributed cache. How do you handle node failures and hot keys?

    What good looks like

    Consistent hashing, replication, eviction policy, protection against cache stampedes, and the consistency guarantees callers can actually live with.

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

09Every 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.

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

  • Describe the most complex technical or analytical problem you have solved.

    What good looks like

    Explain why it was hard, the options you considered, how you de-risked the chosen approach, and what you would do differently now.

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

  • Tell me about a time you used data to change someone's mind.

    What good looks like

    Explain what the data showed, how you made it understandable for that audience, and which decision changed as a result.

10Leadership0/3

Leadership

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

  • Tell me about a time you resolved a conflict between two people on your team.

    What good looks like

    Show you addressed it early and privately, focused on behaviours and shared goals rather than personalities, and followed up afterwards.

  • How would you approach your first 90 days in this role?

    What good looks like

    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.

  • 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 System design 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 at Microsoft | LYDJ