Tech Lead · interview questions
Tech Lead interview questions
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
Tech Lead Core 40
- Most asked What does a tech lead do, and how is it different from an engineering manager?
- Most asked How much should a tech lead code?
- Most asked You join as tech lead of an existing team. What do you do in the first 90 days?
- Most asked Two senior engineers have argued about an approach for weeks. What do you do?
- Most asked How do you keep code reviews fast without lowering quality?
- Most asked How do you manage technical debt on a team that is always under delivery pressure?
- Most asked A production incident is happening and eight engineers are on the call. What is your role as tech lead?
- Most asked How do you grow the engineers on your team?
- Most asked Tell me about a time you made a technical decision that turned out to be wrong.
- Most asked Tell me about a time you had to push back on a deadline or scope.
- Most asked Tell me about the most complex system you designed or led.
- Most asked Product wants to skip tests and code review to hit a launch date. What do you do?
- Most asked Your team wants to rewrite a legacy service. How do you evaluate the proposal?
- Most asked What makes a good design document, and when do you require one?
- Most asked How do you decide how much process a technical decision needs?
- Most asked A product manager asks when a large project will be done. How do you answer?
- Most asked How do you communicate project status to stakeholders?
- How do you set technical direction for a team?
- How do you approach build vs buy decisions?
- How do you break down a large feature so it can ship incrementally?
- Why should postmortems be blameless, and doesn't that remove accountability?
- How do you balance reliability work against feature work?
- Your project depends on a change from another team that hasn't been scheduled. What do you do?
- Tell me about a time you resolved a technical disagreement in your team.
- Tell me about a time you improved how your team works.
- Tell me about a time you mentored someone through a hard project.
- Tell me about an incident you led.
- A senior engineer on your team consistently ignores the team's code review agreement. How do you handle it?
- A key engineer is the only person who understands a critical system. What do you do?
- Your team's velocity is dropping. How do you investigate?
- How do you work with your engineering manager as a tech lead?
- How do you work with your product manager as a tech lead?
- What would you look at to judge the technical health of a team you just joined?
- What is an ADR and why would you use one?
- How do you run a design review that is useful rather than a gate?
- How do you handle a production bug caused by code you approved in review?
- How do you make sure your team's services are operable in production?
- How do you onboard a new engineer to a complex code base quickly?
- How do you decide whether to adopt a new technology the team is excited about?
- What's the hardest part of being a tech lead, in your experience?
System Design Problems Core 31
- Most asked Design a URL shortener (like bit.ly).
- Most asked Design a distributed rate limiter.
- Most asked Design a chat application (like WhatsApp or Slack).
- Most asked Design a social media news feed (like Twitter/X or Instagram).
- Most asked Design a notification system (email, SMS, push).
- Most asked Design a payment system.
- Most asked Design a ticket booking system (like Ticketmaster).
- Most asked Design a distributed unique ID generator.
- Most asked Design a rate limiter for a public API.
- Most asked Design a webhook delivery system.
- Most asked Design an authentication service with SSO for multiple apps.
- Design a file storage and sharing service (like Dropbox or Google Drive).
- Design search autocomplete (typeahead).
- Design a distributed job scheduler / task queue.
- Design a video streaming platform (like YouTube).
- Design a web crawler.
- Design a real-time leaderboard for a game.
- Design a ride-sharing service (like Uber).
- Design the checkout and inventory system for an e-commerce site.
- Design a distributed cache (like Memcached/Redis Cluster).
- Design a collaborative document editor (like Google Docs).
- Design a metrics monitoring and alerting system (like Prometheus/Datadog).
- Design a centralized logging pipeline.
- Design an API gateway.
- Design a distributed key-value store (like DynamoDB/Cassandra).
- Design Pastebin.
- Design a 'find nearby places' service (like Yelp).
- Design a feature flag service.
- Design a stock exchange order matching engine.
- Design a full-text search service for a product catalog.
- Design a system to count likes/views at large scale.
Behavioral & STAR Core 41
- Most asked Tell me about a time you worked with a difficult teammate.
- Most asked Describe a disagreement you had with a coworker and how you resolved it.
- Most asked Tell me about a time you disagreed with your manager's decision.
- Most asked Tell me about a time you failed at something important.
- Most asked Describe a mistake that had a significant impact and how you handled it.
- Most asked Tell me about a time you had to work with unclear or changing requirements.
- Most asked Tell me about a time you missed a deadline.
- Most asked Tell me about a time you received critical feedback and how you responded.
- Most asked Describe a project you owned from start to finish.
- Most asked Tell me about a time you had to juggle multiple competing deadlines.
- Tell me about a time you led a project without formal authority.
- Tell me about a time you took responsibility for a team failure.
- Describe a time you had to collaborate with someone whose working style was very different from yours.
- Tell me about a successful project you completed as part of a team.
- Tell me about a time you helped a struggling teammate.
- Describe a time you had to push back on a stakeholder's request.
- Describe a time you had to deliver unwelcome feedback to a peer.
- Describe a time you had to motivate a team through a difficult period.
- Tell me about a decision you made that was unpopular with your team.
- Tell me about a time you had to make a decision with incomplete information as a leader.
- Tell me about a project that didn't go as planned.
- Tell me about a time you went above and beyond your job description.
- Describe a time you identified a problem no one had asked you to solve.
- Describe a situation where you had to make a decision without all the information you wanted.
- Tell me about a time priorities shifted midway through a project.
- Describe how you decide what to work on when everything feels urgent.
- Tell me about a time you helped a colleague grow their skills.
- Tell me about a time you received feedback that was hard to hear.
- Describe a time you had to rely on a team member you didn't fully trust yet.
- Tell me about a conflict between two people on your team and how you handled it.
- Describe a time you delegated an important task.
- Tell me about a time you had to say no to your manager.
- Describe how you handle working on something without a clear owner.
- Tell me about a time you had to say no to a request to protect a deadline.
- Describe a time you had to deprioritize something important.
- Describe your approach to onboarding a new team member.
- Tell me about a time you gave someone feedback that changed their behavior.
- Describe a time you learned something valuable from someone more junior than you.
- Describe how you typically respond to criticism.
- Tell me about a time you gave feedback that was poorly received.
- Describe a time feedback from a peer changed how you approached your work.
Team Lead Recommended 38
- Most asked What is the main job of a team lead?
- Most asked How do you run 1:1s with your team members?
- Most asked How do you give difficult feedback?
- Most asked How do you measure your team's performance?
- Most asked How do you keep your team motivated?
- Most asked What is psychological safety, and how do you build it?
- Most asked Two people on your team are in ongoing conflict. How do you handle it?
- Most asked How do you handle an underperforming team member?
- Most asked Stakeholders keep adding 'small' requests to your team's work. How do you handle it?
- Most asked Tell me about a time you helped someone on your team grow.
- Most asked Tell me about a time you gave feedback that was hard to deliver.
- Most asked Tell me about a time your team missed a deadline. What did you do?
- Most asked A high performer on your team is rude to colleagues. What do you do?
- Most asked What would you do in your first 30 days as a new team lead?
- Most asked Your team regularly finishes only about half of what it plans in a sprint. What do you do?
- Most asked Your team has many items in progress and everything takes weeks. How do you improve it?
- Most asked Your team is constantly interrupted by questions from other teams. What do you do?
- What was the hardest part of moving from engineer to team lead, and how did you handle it?
- How do you set up working agreements for a team?
- How do you make retrospectives useful?
- How do you onboard a new engineer to your team?
- How do you work with your own manager?
- How do you lead a team spread across locations and time zones?
- How do you work with product managers and designers?
- Tell me about a conflict in your team that you resolved.
- Tell me about a process change you introduced that made your team more effective.
- Tell me about a time someone on your team was struggling personally. How did you handle it?
- Tell me about a time you had to say no to a stakeholder.
- A team member asks for a promotion you don't think they're ready for. How do you respond?
- Your team is burning out after a long crunch. What do you do?
- You inherit a team with low trust and frequent complaints. Where do you start?
- Product asks you to commit to a date for a feature your team hasn't scoped yet. What do you say?
- How do you balance your own technical work with leading the team?
- How do you handle a team member who disagrees with a decision you made?
- What makes a team high-performing, in your view?
- A team member wants to work fully remote while the rest of the team is in the office. How do you make it work?
- How do you decide what to delegate as a team lead?
- How do you recognise good work on your team?
Design Patterns Recommended 80
- Most asked What is a design pattern, and why are they useful?
- Most asked Explain the SOLID principles.
- Most asked What is the difference between dependency inversion, dependency injection and inversion of control?
- Most asked Why is composition often preferred over inheritance?
- Most asked What is dependency injection, and what forms does it take?
- Most asked Explain the Factory Method pattern and how it differs from a simple factory.
- Most asked What problem does the Builder pattern solve? Show an example.
- Most asked How do you implement a Singleton, and why is it often considered an anti-pattern?
- Most asked What is the Adapter pattern? Give an example.
- Most asked What is the Decorator pattern? How is it different from inheritance?
- Most asked Explain the Observer pattern and give examples from real frameworks.
- Most asked Explain the Strategy pattern with an example.
- Most asked What is the difference between the Strategy and State patterns?
- Most asked Compare Adapter, Decorator, Proxy and Facade.
- Most asked What is the difference between Observer and Pub/Sub?
- Most asked What is the Repository pattern, and when is it worth using?
- Most asked When should you NOT use a design pattern?
- Most asked Scenario: your checkout supports card and PayPal, and the business adds a new payment provider every quarter. How would you design it?
- Most asked What are the three categories of Gang of Four design patterns?
- Most asked Explain the Liskov Substitution Principle with an example.
- Most asked What is the Facade pattern?
- Most asked How would you implement undo/redo with the Command pattern?
- Most asked Compare Factory Method, Abstract Factory and Builder.
- Most asked What is MVC, and which design patterns does it combine?
- Most asked What is an anti-pattern? Name a few common ones.
- Most asked Scenario: when an order is placed, several systems (email, inventory, analytics, loyalty) must react, and more will be added. How do you design it?
- What does the Single Responsibility Principle mean in practice?
- How do you apply the Open/Closed Principle?
- What kinds of Proxy are there, and what does each do?
- What is the State pattern? When would you use it?
- What is the Circuit Breaker pattern?
- How do you safely refactor existing code toward a design pattern?
- What is the Interface Segregation Principle?
- What does "program to an interface, not an implementation" mean?
- What are coupling and cohesion, and how do design patterns affect them?
- When would you use the Abstract Factory pattern?
- What is the Prototype pattern, and what is the main pitfall when implementing it?
- What is the Bridge pattern?
- Explain the Composite pattern with a real-world example.
- Explain Chain of Responsibility and give a web-development example.
- What is the Iterator pattern, and how do modern languages support it?
- What is the Template Method pattern?
- When would you use a Decorator instead of subclassing?
- Template Method or Strategy: how do you choose?
- Is HTTP middleware Chain of Responsibility or Decorator?
- What is the Unit of Work pattern?
- What is CQRS, and how does it relate to the Command pattern?
- Which design patterns do you see in React?
- Which design patterns do Laravel and Spring use internally?
- What is the Middleware (pipeline) pattern used for?
- How would you refactor a god object?
- Why is a service locator considered worse than dependency injection?
- Scenario: you need undo/redo in a drawing or text editor. Which pattern would you use?
- Scenario: a third-party SDK you must use has a completely different interface from the rest of your code. What do you do?
- Scenario: a class has a constructor with ten parameters, many optional. How would you improve it?
- Scenario: you need to add caching and logging to an existing service without modifying it. How?
- Scenario: every method of an `Order` class starts with a switch on `status`. How would you refactor it?
- How would you explain to a junior developer how to choose the right design pattern?
- What is the difference between Active Record and Data Mapper?
- Which design patterns does the Java standard library use?
- Which design patterns do Python features replace or simplify?
- Which design patterns do you use in PHP and Laravel day to day?
- Which design patterns are common in TypeScript and Node.js code?
- How do design patterns relate to testability?
- What is the Flyweight pattern, and when is it worth using?
- What is the Mediator pattern?
- What is the Memento pattern?
- What is the Visitor pattern, and what is its main trade-off?
- What is the Interpreter pattern?
- Command or Memento for undo: which would you use?
- How is Mediator different from Observer?
- What is the difference between Bridge and Adapter?
- How do Composite and Decorator differ, given both use recursive composition?
- When would you use a simple factory, and when a dependency injection container?
- What is the Null Object pattern, and when can it be harmful?
- What is the Specification pattern?
- Scenario: product categories contain products and subcategories to any depth, and you need totals per category. Which pattern fits?
- What is the Object Pool pattern, and where do you meet it?
- What is the Strangler Fig pattern, and how do design patterns help with it?
- Is it a good idea to name classes after patterns, such as `PaymentStrategy` or `UserFactory`?
API Design Recommended 33
- Most asked What makes an API RESTful, and what are good REST design practices?
- Most asked Which HTTP methods are safe and idempotent, and why does it matter?
- Most asked Which HTTP status codes should an API use, and when?
- Most asked Compare offset pagination and cursor (keyset) pagination.
- Most asked How should you version an API?
- Most asked How do idempotency keys work for POST requests?
- Most asked Write an Express or FastAPI endpoint that creates an order idempotently.
- Most asked Write a SQL query that returns each customer's three most recent orders.
- Most asked When would you choose GraphQL over REST, or gRPC over both?
- An API endpoint that was fast is now taking seconds under load. Walk through your investigation.
- How should APIs format error responses?
- How do you design reliable webhooks?
- How should APIs support filtering, sorting and field selection?
- Why use OpenAPI (and contract-first design)?
- What counts as a breaking change in an API?
- How should an API communicate rate limits to clients?
- How do you design APIs for long-running operations?
- How do APIs prevent lost updates from concurrent edits?
- What is HATEOAS and is it used in practice?
- How do you design bulk or batch endpoints?
- What naming conventions make APIs easier to use?
- What security practices apply to API design?
- What does an API gateway do, and when do you need one?
- How should APIs represent dates, times and money?
- What makes a great developer experience for a public API?
- PUT vs PATCH: how do you implement updates?
- How do you design event-driven APIs (events between services)?
- How should APIs handle large file uploads and downloads?
- What should a health or status endpoint return?
- How can APIs leverage HTTP caching?
- How do you deprecate an API endpoint responsibly?
- What consistency guarantees should an API document?
- How do APIs handle localization?