Interview practice plan
Software Engineer II
Microsoft · 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.
Sign in to see your gap areas first. We compare this role with the skills on your profile.
0 of 19 questions practised
Answer each one out loud, then tick it. Progress is saved in this browser only.
Java
This role asks for Java.
What is the difference between checked and unchecked exceptions, and how do you decide which to throw?
What good looks likeHide hint
Checked for recoverable conditions the caller must handle, unchecked for programming errors. Mention wrapping, not swallowing exceptions, and keeping the cause.
Explain the Java Memory Model. What do volatile and synchronized actually guarantee?
What good looks likeHide hint
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 likeHide hint
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.
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 likeHide hint
Call stack, microtask queue (promises) drained before the next macrotask (timers), and how await splits a function into a microtask continuation.
Implement debounce, and explain when you would use debounce versus throttle.
What good looks likeHide hint
Debounce waits for a pause (search input), throttle limits the rate (scroll handlers). Handle this, arguments and clearing the timer.
How do you handle errors in async code? What happens to an unhandled promise rejection?
What good looks likeHide hint
try/catch around await, .catch on chains, Promise.allSettled when partial failure is fine, and a global handler for logging unhandled rejections.
Python
This role asks for Python.
Explain the GIL and how it affects threading, multiprocessing and asyncio.
What good looks likeHide hint
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.
What are generators, and when would you use one instead of building a list?
What good looks likeHide hint
Lazy evaluation with yield, constant memory for large or infinite streams, and pipelines of generators; note they can only be iterated once.
What goes wrong with def add(item, items=[])?
What good looks likeHide hint
Default arguments are evaluated once, so the list is shared across calls. Use None as the default and create the list inside.
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.
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 likeHide hint
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 likeHide hint
Separate pure logic from I/O, inject dependencies instead of constructing them inside, and keep functions small with clear inputs and outputs.
Compare the time complexity of lookups and inserts in arrays, hash maps and balanced trees. When does the difference matter in practice?
What good looks likeHide hint
Know the Big-O, but also mention ordering needs, worst cases, memory overhead and cache locality, with a real example where it changed a design.
System design
This role asks for Distributed systems, so expect an architecture round. State requirements and numbers first, then trade-offs.
Design an upload and processing pipeline for large documents such as resumes.
What good looks likeHide hint
Direct-to-storage uploads with signed URLs, async processing through a queue, retries and a dead-letter queue, malware scanning, and status updates for the user.
Your service's p99 latency doubled after a release. Walk me through how you investigate.
What good looks likeHide hint
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.
Design the REST API for a multi-tenant SaaS product.
What good looks likeHide hint
Resource modelling, versioning, pagination, authentication and tenant isolation, idempotent writes, and a consistent error contract.
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 likeHide hint
Show that you disagreed on substance with evidence, listened properly, and committed once a decision was made, even if it went the other way.
Describe a time you had several urgent priorities at once. How did you decide what to do first?
What good looks likeHide hint
Explain your criteria (impact, deadlines, dependencies), how you communicated the trade-offs, and what you deliberately dropped or delayed.
Tell me about a time a project you owned was at risk of missing its date.
What good looks likeHide hint
Show early detection, honest escalation and the scope, sequencing or resourcing levers you pulled. Avoid stories that end with "we all worked weekends".
What is a goal you set for yourself in the last year, and how did you track it?
What good looks likeHide hint
Pick a measurable goal, describe the system you used to track it, and be honest about where you fell short.
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
Hiring most for
- Engineering49
- Other31
- Data & AI14
- Operations8
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 Distributed systems 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 doneSaved in this browser only.