Interview practice plan
Senior Software Engineer
Mastercard · Pune
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.
Also named in the description, not covered below: Observability. 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 22 questions practised
Answer each one out loud, then tick it. Progress is saved in this browser only.
Java
This role asks for Java and Spring Boot. These Java questions cover the ground they share.
How does garbage collection work in the JVM, and how would you tune it for a low-latency service?
What good looks likeHide hint
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 likeHide hint
Visibility versus atomicity, happens-before, and why a volatile counter++ is still not thread-safe (use atomics or locks).
How would you make a Spring Boot service production-ready?
What good looks likeHide hint
Health and readiness endpoints, externalised config and secrets, structured logs, metrics and tracing, connection pool sizing and graceful shutdown.
SQL
This role asks for PostgreSQL. These SQL questions cover the ground it builds on.
Find users who were active on at least three consecutive days.
What good looks likeHide hint
A gaps-and-islands pattern: subtract ROW_NUMBER() from the activity date, group by user and that difference, and count.
A query that used to take 2 seconds now takes 2 minutes. How do you debug it?
What good looks likeHide hint
Read the execution plan, check stale statistics, missing or unused indexes, data growth and skew, parameter-sensitive plans, and locking.
Explain transaction isolation levels and an anomaly each one prevents.
What good looks likeHide hint
Dirty reads, non-repeatable reads and phantoms across read committed, repeatable read and serializable, and how MVCC databases implement them.
Test automation
This role asks for Performance testing. These Test automation questions cover the ground it builds on.
Your UI test suite is flaky. How do you stabilise it?
What good looks likeHide hint
Wait on conditions instead of sleeps, use stable test ids as selectors, isolate test data, quarantine flaky tests, and track flakiness as a metric.
How would you load-test a checkout flow before a big sale?
What good looks likeHide hint
Model realistic traffic and user journeys, define SLAs, ramp and soak tests in a production-like environment, and find the bottleneck rather than just a number.
Selenium, Cypress or Playwright: how would you choose for a new project?
What good looks likeHide hint
Browser coverage, language support, auto-waiting and speed, parallelism, debugging tools and your team's skills. Justify with project needs.
Project management
This role asks for Project management.
A critical vendor tells you they will deliver three weeks late. What do you do?
What good looks likeHide hint
Assess the impact on the critical path, look for mitigations (resequencing, partial delivery, alternatives), inform stakeholders with options, and update the plan.
How do you report project status to senior leaders so they trust it?
What good looks likeHide hint
Honest status with clear criteria, decisions you need from them, top risks with owners, and trends rather than a wall of detail.
Tell me about a project that failed or was cancelled. What did you learn?
What good looks likeHide hint
Be candid about what went wrong and your part in it, what signals you missed, and what you now do differently.
Cybersecurity
This role asks for Cybersecurity.
Walk me through your response to a suspected compromised user account.
What good looks likeHide hint
Contain (revoke sessions and keys), scope using logs, eradicate, recover, communicate to the right people, and run a blameless review.
How would you build a SIEM detection for brute-force or impossible-travel logins?
What good looks likeHide hint
Required log sources, normalisation, thresholds and baselines, tuning to cut false positives, and a runbook for the analyst who receives the alert.
A scanner reports thousands of vulnerabilities. How do you prioritise them?
What good looks likeHide hint
Exploitability and exposure, asset criticality, known-exploited lists, compensating controls, and remediation SLAs by risk rather than raw severity.
System design
Senior engineering roles almost always include a design round. State requirements and rough numbers first, then walk through trade-offs.
Design a URL shortener that handles 100 million redirects a day.
What good looks likeHide hint
Clarify the read/write ratio, design ID generation, storage and caching, then cover hot keys, analytics and expiry. Back-of-envelope numbers earn credit.
Design the home feed for a professional networking app.
What good looks likeHide hint
Discuss fan-out on write versus read, very large accounts, ranking, pagination and cache invalidation, and state your trade-offs explicitly.
How would you break a monolith into microservices? Where would you start?
What good looks likeHide hint
Start from domain boundaries and the parts that change most, use a strangler approach, plan for shared data and distributed transactions, and invest in observability first.
Behavioural
Every interview loop has a behavioural round. For senior roles, expect probing on influence without authority, judgement under pressure and raising the bar for others. Use the STAR structure.
Tell me about a mistake you made at work and what happened next.
What good looks likeHide hint
Own it without blaming others, explain how you contained the impact, and what you changed so it would not happen again.
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.
Give an example of when you went beyond your role to fix a problem for your team or a customer.
What good looks likeHide hint
Pick something with real impact, explain why it mattered, and how you involved the owner rather than quietly working around them.
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".
Company research brief: Mastercard
From the roles we track on LYDJ, refreshed daily from the official careers page.
130
open roles
37
added in 30 days
42
in Engineering
Hiring most for
- Engineering42
- Data & AI29
- Other22
- Operations11
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 Java and Spring Boot 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/8 doneSaved in this browser only.