Interview practice plan
Principal, Software Engineering
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: SRE, Docker, Cassandra, Elasticsearch, Git, Jenkins, CI/CD, Cybersecurity. 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 25 questions practised
Answer each one out loud, then tick it. Progress is saved in this browser only.
Audit
This role asks for Compliance. These Audit questions cover the ground it builds on.
How would you plan an internal audit of the procure-to-pay process?
What good looks likeHide hint
Risk assessment, key controls (segregation of duties, approvals, three-way match, vendor master changes), sampling and testing of design and operation.
A process owner strongly disagrees with your audit finding. How do you handle it?
What good looks likeHide hint
Re-check your evidence, listen for facts you may have missed, focus on risk rather than blame, and agree the rating and actions or escalate respectfully.
How would you use data analytics to increase audit coverage?
What good looks likeHide hint
Test full populations instead of samples, look for duplicate payments, outliers and segregation conflicts, and build continuous monitoring.
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 likeHide hint
Generational heap, G1 versus ZGC trade-offs, reading GC logs, and reducing allocation rate before reaching for JVM flags.
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.
Your Java service throws OutOfMemoryError in production about once a week. How do you investigate?
What good looks likeHide hint
Heap dump on OOM, analyse retained sizes and dominators, check caches and unbounded collections, and correlate with traffic or batch jobs.
Kafka
This role asks for Kafka.
Explain at-most-once, at-least-once and exactly-once delivery. How would you get effectively-once processing?
What good looks likeHide hint
Idempotent producers and transactions, committing offsets after processing, and idempotent consumers keyed on a business id.
A consumer group is lagging badly. How do you diagnose and fix it?
What good looks likeHide hint
Check lag per partition, slow processing versus too few partitions or consumers, rebalancing storms, and batching or scaling out.
How do you evolve message schemas without breaking consumers?
What good looks likeHide hint
A schema registry with compatibility rules, optional fields with defaults, never changing a field's meaning, and versioned topics for breaking changes.
Kubernetes
This role asks for Kubernetes.
How do liveness, readiness and startup probes differ, and how can a bad probe cause an outage?
What good looks likeHide hint
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 likeHide hint
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 likeHide hint
RBAC with least privilege, namespaces and network policies, pod security standards, image scanning and signing, secrets management and audit logs.
SQL
This role asks for SQL and PostgreSQL. These SQL questions cover the ground they share.
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.
System design
This role asks for REST APIs and Microservices, so expect an architecture round. State requirements and numbers first, then trade-offs.
Design a payment service that must never charge a customer twice.
What good looks likeHide hint
Idempotency keys, a payment state machine, reconciliation with the provider, and at-least-once delivery with de-duplication rather than hoping for exactly-once.
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.
Design a real-time chat system with one-to-one and group messages.
What good looks likeHide hint
Connection handling (WebSockets), ordering and delivery receipts, offline storage and sync, fan-out for groups, and presence.
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.
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 you influenced an important decision without having formal authority.
What good looks likeHide hint
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 likeHide hint
Explain why it was hard, the options you considered, how you de-risked the chosen approach, and what you would do differently now.
Why do you want this role, and why now?
What good looks likeHide hint
Connect two or three specific requirements of the role to your experience and to a direction you are deliberately moving in. Generic praise of the company scores poorly.
Leadership
The title marks this as a lead or manager role. Expect questions on hiring, developing people and setting priorities.
How do you handle a team member who is consistently underperforming?
What good looks likeHide hint
Diagnose first (skills, motivation or context), set clear written expectations, support with a time-boxed plan, and be ready to make a fair hard call.
How have you hired for your team? What do you look for and how do you assess it?
What good looks likeHide hint
Talk about defining the bar up front, structured interviews and scorecards, reducing bias, and one hire you got right and one you got wrong.
How do you give difficult feedback to a very experienced peer or senior colleague?
What good looks likeHide hint
Keep it private, specific and about behaviour and impact. Show that you also invited their side and agreed on a next step.
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
Hiring most for
- Engineering66
- Data & AI17
- Other17
- Finance & Legal9
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 SRE and Compliance 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.