Interview practice plan

M

Lead Software Engineer (Java Developer)

Mastercard · Pune

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

JavaPerformance testingAuditCybersecurity

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.

01Required skill0/3

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 like

    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 like

    Visibility versus atomicity, happens-before, and why a volatile counter++ is still not thread-safe (use atomics or locks).

  • Your Java service throws OutOfMemoryError in production about once a week. How do you investigate?

    What good looks like

    Heap dump on OOM, analyse retained sizes and dominators, check caches and unbounded collections, and correlate with traffic or batch jobs.

02Required skill0/3

Test automation

This role asks for Performance testing. These Test automation questions cover the ground it builds on.

  • Design a test automation framework from scratch for a new product.

    What good looks like

    Clear layers (page objects or similar), environment config, test data management, reporting, CI integration and parallel execution.

  • How would you load-test a checkout flow before a big sale?

    What good looks like

    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 like

    Browser coverage, language support, auto-waiting and speed, parallelism, debugging tools and your team's skills. Justify with project needs.

03Required skill0/3

Audit

This role asks for Audit.

  • How would you plan an internal audit of the procure-to-pay process?

    What good looks like

    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 like

    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 like

    Test full populations instead of samples, look for duplicate payments, outliers and segregation conflicts, and build continuous monitoring.

04Required skill0/3

Cybersecurity

This role asks for Cybersecurity.

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

05Design 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.

  • How would you break a monolith into microservices? Where would you start?

    What good looks like

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

06Every 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.

  • Describe a piece of feedback that changed how you work.

    What good looks like

    State the feedback, your honest first reaction and the concrete behaviour you changed. Close with evidence that the change stuck.

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

  • Give an example of when you went beyond your role to fix a problem for your team or a customer.

    What good looks like

    Pick something with real impact, explain why it mattered, and how you involved the owner rather than quietly working around them.

  • Describe a time you had to deliver bad news to a stakeholder.

    What good looks like

    Show that you told them early, came with options and a recommendation rather than just the problem, and kept their trust.

07Leadership0/3

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 like

    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 do you keep a hybrid or distributed team aligned and engaged?

    What good looks like

    Name concrete rituals (written plans, demos, regular 1:1s), how you spot disengagement early, and one thing you changed based on team feedback.

  • How do you give difficult feedback to a very experienced peer or senior colleague?

    What good looks like

    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

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 Java and Performance testing 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 done

Saved in this browser only.

Interview prep: Lead Software Engineer (Java Developer) at Mastercard | LYDJ