Interview practice plan

M

Lead Software Engineer

Mastercard · Mumbai

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

AWSTerraformKubernetesObservabilityCI/CDSREPythonShell scriptingCloud securityIAMDockerHelmGitCybersecurity

Also named in the description, not covered below: Observability, SRE, Docker. 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 27 questions practised

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

01Required skill0/3

AWS

This role asks for AWS.

  • When would you choose Lambda, ECS on Fargate or EC2 for a workload?

    What good looks like

    Execution time limits, cold starts, steady versus spiky traffic cost, packaging and operational overhead. Tie the choice to the workload's shape.

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

02Required skill0/3

CI/CD & IaC

This role asks for Terraform, CI/CD and Git. These CI/CD & IaC questions cover the ground they share.

  • Design a CI/CD pipeline for a service with many contributors. Which gates would you put before production?

    What good looks like

    Fast unit tests on every PR, integration and security scans, build once and promote the same artifact, staged environments, and automated rollback.

  • Blue-green, canary or rolling deployment: how do you choose?

    What good looks like

    Blast radius, rollback speed, infrastructure cost and how good your metrics are for judging a canary. Give a case for each.

  • The build takes 40 minutes. How do you bring it down?

    What good looks like

    Measure where time goes, cache dependencies, parallelise and shard tests, only build what changed, and fix or quarantine the slowest tests.

03Required skill0/3

Kubernetes

This role asks for Kubernetes and Helm. These Kubernetes questions cover the ground they share.

  • How do liveness, readiness and startup probes differ, and how can a bad probe cause an outage?

    What good looks like

    Readiness controls traffic, liveness restarts, startup protects slow boots. A liveness probe that checks a shared dependency can restart every pod at once.

  • How do you achieve zero-downtime deployments and safe rollbacks on Kubernetes?

    What good looks like

    Rolling update settings, readiness probes, PodDisruptionBudgets, graceful shutdown with preStop hooks, and canary releases with automated rollback.

  • How would you secure a Kubernetes cluster used by several teams?

    What good looks like

    RBAC with least privilege, namespaces and network policies, pod security standards, image scanning and signing, secrets management and audit logs.

04Required 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.

05Required skill0/3

Cybersecurity

This role asks for Cloud security, IAM and Cybersecurity. These Cybersecurity questions cover the ground they share.

  • Walk me through your response to a suspected compromised user account.

    What good looks like

    Contain (revoke sessions and keys), scope using logs, eradicate, recover, communicate to the right people, and run a blameless review.

  • A scanner reports thousands of vulnerabilities. How do you prioritise them?

    What good looks like

    Exploitability and exposure, asset criticality, known-exploited lists, compensating controls, and remediation SLAs by risk rather than raw severity.

  • How would you secure a cloud environment for a new product team?

    What good looks like

    Identity first with least privilege, guardrail policies, central logging, encryption by default, network segmentation and secrets management.

06Fundamentals0/2

Core programming

This role asks for Shell scripting. We do not have questions specific to it 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 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 real-time chat system with one-to-one and group messages.

    What good looks like

    Connection handling (WebSockets), ordering and delivery receipts, offline storage and sync, fan-out for groups, and presence.

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

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

  • Tell me about a time you influenced an important decision without having formal authority.

    What good looks like

    Cover how you built the case (data, prototypes, allies), handled objections and what changed. Strong answers show patience and shared credit.

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

09Leadership0/3

Leadership

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

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

Company research brief: Mastercard

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

126

open roles

24

added in 30 days

66

in Engineering

Banking & Financial ServicesGCC

Hiring most for

  • Engineering66
  • Data & AI17
  • Other17
  • Finance & Legal9

Cities

Pune · 100Gurugram · 15Mumbai · 5Hyderabad · 5Bengaluru · 1
See all 126 roles at Mastercard →

Read before the interview

Questions to ask them

  • ›There are several open Engineering roles at Mastercard right now. How is the team growing, and where does this role fit?
  • ›The company hires in Pune, Gurugram, Mumbai. How do teams across locations work together day to day?
  • ›How does the team use AWS and Terraform 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: Lead Software Engineer at Mastercard | LYDJ