Interview practice plan

M

Sr Data Engineer

Mastercard · Pune

Data & AISenior25 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.

DatabricksSparkETLPythonSQLAWSGCPAgileData analysisCI/CDObservabilityCybersecurity

Also named in the description, not covered below: Agile, Data analysis, CI/CD, Observability, 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.

01Required skill0/3

ETL & data pipelines

This role asks for Databricks and ETL. These ETL & data pipelines questions cover the ground they share.

  • How do you design a pipeline that can be safely re-run for a past date?

    What good looks like

    Idempotent writes via partition overwrite or merge on keys, deterministic inputs, no side effects outside the target, and a backfill procedure.

  • How do you detect and handle bad data arriving from an upstream source?

    What good looks like

    Schema and data-quality checks (nulls, ranges, row counts, freshness), quarantining bad rows, alerting, and a data contract with the producer.

  • Batch or streaming: how do you decide for a new use case?

    What good looks like

    How fresh the data must be, cost and operational complexity, late data handling, and whether micro-batches are good enough.

02Required skill0/3

Spark

This role asks for Spark.

  • What causes a shuffle, and how do you reduce its cost?

    What good looks like

    Wide operations like joins and groupBy; reduce with broadcast joins for small tables, partitioning on join keys, filtering early and adaptive query execution.

  • One task in a Spark stage runs far longer than the rest. What is happening and how do you fix it?

    What good looks like

    Data skew on a key. Salt the hot keys, enable adaptive skew-join handling, or process the hot keys separately.

  • Executors keep failing with out-of-memory errors. How do you investigate?

    What good looks like

    Check the Spark UI for skew and spill, large collects or broadcasts, partition sizes, memory overhead settings, and UDFs holding data.

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

  • A Python data-processing script takes hours. How do you speed it up?

    What good looks like

    Profile first, replace row-by-row loops with vectorised NumPy or pandas operations, process in chunks, then consider multiprocessing or a distributed engine.

04Required skill0/3

SQL

This role asks for SQL.

  • Find users who were active on at least three consecutive days.

    What good looks like

    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 like

    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 like

    Dirty reads, non-repeatable reads and phantoms across read committed, repeatable read and serializable, and how MVCC databases implement them.

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

06Required skill0/3

GCP

This role asks for GCP.

  • When would you choose Cloud Run, GKE or Compute Engine?

    What good looks like

    Cloud Run for stateless containers with minimal ops, GKE for complex orchestration needs, VMs for special runtimes or licensing; compare cost and control.

  • How does BigQuery pricing work, and how do you keep query costs under control?

    What good looks like

    On-demand bytes scanned versus capacity pricing, partitioning and clustering, avoiding SELECT *, dry runs, and per-user quotas.

  • Design an event-driven pipeline on Pub/Sub. How do you handle duplicate and out-of-order messages?

    What good looks like

    At-least-once delivery means idempotent consumers, ordering keys where order matters, dead-letter topics, and replay strategy.

07Design round0/3

System design

Senior engineering roles almost always include a design round. State requirements and rough numbers first, then walk through trade-offs.

  • Design a rate limiter for a public API.

    What good looks like

    Compare token bucket, fixed and sliding windows; decide where it lives (gateway or service), how counters are shared across nodes, and how clients learn they are limited.

  • Design a distributed cache. How do you handle node failures and hot keys?

    What good looks like

    Consistent hashing, replication, eviction policy, protection against cache stampedes, and the consistency guarantees callers can actually live with.

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

08Every loop0/4

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 time you disagreed with a teammate or your manager. How did it resolve?

    What good looks like

    Show that you disagreed on substance with evidence, listened properly, and committed once a decision was made, even if it went the other way.

  • Describe a time you had several urgent priorities at once. How did you decide what to do first?

    What good looks like

    Explain your criteria (impact, deadlines, dependencies), how you communicated the trade-offs, and what you deliberately dropped or delayed.

  • Tell me about a time you worked with unclear or changing requirements.

    What good looks like

    Show how you reduced ambiguity: clarifying questions, writing down assumptions, small experiments and getting explicit sign-off.

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

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

17

in Data & AI

Banking & Financial ServicesGCCGreat Place to Work

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 Data & AI 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 Databricks and Spark 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: Sr Data Engineer at Mastercard | LYDJ