At Marks & Spencer, a Software Engineer is more than just a coder; you are a key driver of one of the most significant digital transformations in British retail. As we pivot toward a "digital-first" strategy, our engineering teams are responsible for building the high-scale systems that power everything from our global e-commerce platform and mobile applications to complex supply chain logistics and personalized customer experiences. The impact of your work is immediate and visible. Whether you are optimizing the checkout flow for millions of weekly users or architecting microservices that manage real-time inventory across hundreds of stores, your contributions directly affect the M&S brand's ability to compete in a modern market. You will work in a fast-paced environment where we balance the reliability of a legacy institution with the agility of a modern tech firm, focusing on cloud-native solutions, data-driven decision-making, and seamless user journeys. ##### Tip Marks & Spencer is increasingly becoming a "Java house" at its core, but we value engineers who can apply modern software patterns across various stacks, including React for frontend and Azure for cloud infrastructure.
Talent Acquisition Screening
reportedInitial screening to assess candidate qualifications and fit for the role.
What to demonstrate
- Initial screening to assess candidate qualifications and fit for the role
- Depth in Coding Interviews
How to prepare
- Answer aloud and timed: "Explain the difference between an interface and an abstract class, and when you would use each."
- Answer aloud and timed: "How do you ensure your code follows SOLID principles during a rapid development cycle?"
Technical Evaluation
reportedCoding challenge where candidates solve problems while being observed by an engineer.
What to demonstrate
- Coding challenge where candidates solve problems while being observed by an engineer
- Depth in Coding Interviews
How to prepare
- Answer aloud and timed: "Walk me through how you would implement a thread-safe singleton in your language of choice."
- Answer aloud and timed: "What are the trade-offs between using a recursive solution versus an iterative one for this specific algorithm?"
Pair Programming
reportedCandidates demonstrate their coding skills and developer ergonomics in a collaborative setting.
What to demonstrate
- Candidates demonstrate their coding skills and developer ergonomics in a collaborative setting
- Depth in Coding Interviews
How to prepare
- Answer aloud and timed: "How would you design a rate-limiting service for our public-facing APIs?"
- Answer aloud and timed: "Describe how you would handle data synchronization between an on-premise store system and our cloud-based e-commerce platform."
System Design Interview
reportedCandidates propose scalable solutions to high-level problems related to retail or e-commerce.
What to demonstrate
- Candidates propose scalable solutions to high-level problems related to retail or e-commerce
- Depth in Coding Interviews
How to prepare
- Answer aloud and timed: "What database technology would you choose for a high-write, low-latency logging system, and why?"
- Answer aloud and timed: "Tell me about a time you had to deliver a project under a very tight deadline. How did you manage your priorities?"
Behavioral Interview
reportedDiscussion focused on professional history and alignment with company values.
What to demonstrate
- Discussion focused on professional history and alignment with company values
- Depth in Coding Interviews
How to prepare
- Prepare three examples from your own work, each with a decision you made and an outcome you can quantify.
- Re-read the description of the behavioral interview above and write down what you would ask to confirm before it.
PracHub editorial advice for the preparation topics above.
Master Your Tools
During the pair programming session, avoid using the mouse for everything. Familiarity with keyboard shortcuts and IDE refactoring tools (like IntelliJ's "Extract Method") signals that you are a seasoned professional.
Think Out Loud
Your interviewer is more interested in your thought process than the final line of code. Explain why you are choosing a specific data structure or why you are refactoring a certain block.
Prepare for Java-centricity
Even if the job description is language-agnostic, be aware that many interviewers come from a Java/Spring background. Familiarizing yourself with how Spring handles dependency injection can give you a common language with your interviewers.
Avoid "over-engineering" your solutions
During coding tests, focus on the simplest, cleanest solution that meets the requirements before trying to implement complex patterns that may not be necessary.
Choose a category, try a prompt, then open its approach, worked solution or follow-up when you need it.
"Explain the difference between an interface and an abstract class, and when you would use each."
"Explain the difference between an interface and an abstract class, and when you would use each."
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
"How do you ensure your code follows SOLID principles during a rapid development cycle?"
"How do you ensure your code follows SOLID principles during a rapid development cycle?"
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
"Walk me through how you would implement a thread-safe singleton in your language of choice."
"Walk me through how you would implement a thread-safe singleton in your language of choice."
Approach
- Say what the runtime actually does before reasoning about the code.
- Name what is shared across threads and what owns each piece of state.
- Identify the window where an invariant is briefly untrue.
- Distinguish a value from a reference to it, and say which one you handed out.
Follow-up
- What happens if two callers reach this at the same time?
- Where could this allocate more than you expect?
"What are the trade-offs between using a recursive solution versus an iterative one for this specific algorith
"What are the trade-offs between using a recursive solution versus an iterative one for this specific algorithm?"
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Replace offset paging on the resource feed with keyset
resource holds resource_id, tenant_id, owner_user_id, title, body_ref, version, status ('draft','active','archived','deleted'), created_at, updated_at, deleted_at, with an index on (tenant_id, status, updated_at DESC, resource_id DESC). The listing endpoint returns active resources for one tenant, newest update first, 50 per page, today with LIMIT 50 OFFSET n. Tenants reach page 400 and rows are created while they read. Write the keyset query, define what the cursor carries and how it is encoded, and say which part of the index each predicate uses. Assume PostgreSQL 16.
Approach
- Name the two failures separately. OFFSET 20000 makes the server produce and discard 20,000 rows, so page cost grows with depth rather than with page size. Independently, any write that changes how many rows sort above the offset moves the window between two fetches, and the direction decides which anomaly you get: an insert lands at the head of updated_at DESC and pushes already-returned rows down past the boundary, so they are returned a second time; a delete above the offset, or a row whose updated_at is bumped above the cursor, pulls rows up and one is never returned at all. Nothing in the response reveals either.
- Write the seek: WHERE tenant_id = $1 AND status = 'active' AND (updated_at, resource_id) < ($2, $3) ORDER BY updated_at DESC, resource_id DESC LIMIT 50. The row-value comparison is one index range rather than a disjunction, and both columns are NOT NULL, which is what makes that comparison well defined.
- Map each predicate onto the index: tenant_id and status are equality on the leading columns, (updated_at, resource_id) is the range, and the ORDER BY matches the index order so no Sort node appears and the scan stops after 50 rows. The DESC in the definition only matters for mixed directions — a plain ascending btree on the same columns is read backwards for this query.
- Put both sort columns in the cursor and nothing the client can tamper with into another tenant: base64 of (updated_at, resource_id), validated server-side, with tenant_id taken from the principal.
Follow-up
- The client asks for 'jump to page 400'. What do you offer instead, and what does the honest version cost?
- Sort order becomes user-selectable across four columns. How many indexes is that, and which would you refuse to add?
Hold a per-tenant active cap against concurrent creates
A tenant on the standard plan may hold at most 50 resources with status='active'. The create handler runs SELECT count(*) FROM resource WHERE tenant_id = $1 AND status = 'active', compares to 50, then inserts. Two creates arrive 3 ms apart on different instances and the tenant lands at 51. Name the anomaly, say whether PostgreSQL 16 READ COMMITTED or REPEATABLE READ prevents it and why, then give an implementation that holds the cap at READ COMMITTED with the exact statements. Finally, say what changes when the cap is 'at most one running export per tenant' on job_run.
Approach
- Name it: write skew. The two transactions read an overlapping set and write disjoint rows, so there is no row-level conflict for the engine to detect and each commit is individually legal.
- Rule out the levels precisely. READ COMMITTED takes a fresh snapshot per statement and takes no lock on the counted rows, so both see 49. PostgreSQL's REPEATABLE READ is snapshot isolation: it removes non-repeatable reads and phantoms within the snapshot but still admits write skew, because the anomaly is not a re-read of a changed row, it is a read of a set that a concurrent transaction invalidates. Only SERIALIZABLE closes it, by tracking the read dependency and aborting one transaction with SQLSTATE 40001 — a guarantee that exists only if the application re-runs the whole transaction from the read.
- Convert the set predicate into a single-row conflict: keep tenant.active_resource_count and run UPDATE tenant SET active_resource_count = active_resource_count + 1 WHERE tenant_id = $1 AND active_resource_count < 50 in the same transaction as the INSERT. Zero affected rows is the cap, returned as 409. The row lock serialises the decision at any isolation level, and contention is bounded to one tenant's row — which is also the fair-scheduling unit, unlike a global counter that would convoy every tenant behind one row.
- State the cost you just took on: a counter is a second source of truth that can drift, so every path that changes status must adjust it inside the same transaction, and a periodic reconciliation has to exist, with resource_revision as the authority for what the count should have been.
Follow-up
- A resource moves from archived back to active. Which statements change, and what breaks if the counter update and the status change land in different transactions?
- The cap becomes plan-dependent and a plan can change mid-month. Where does the number 50 live, and who reads it?
"How would you design a rate-limiting service for our public-facing APIs?"
"How would you design a rate-limiting service for our public-facing APIs?"
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
"Describe how you would handle data synchronization between an on-premise store system and our cloud-based e-c
"Describe how you would handle data synchronization between an on-premise store system and our cloud-based e-commerce platform."
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
"What database technology would you choose for a high-write, low-latency logging system, and why?"
"What database technology would you choose for a high-write, low-latency logging system, and why?"
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
One log partition stops advancing while the others drain
Search results for a subset of tenants are hours stale; the rest are current. The projection consumer reports lag of zero on 15 of 16 partitions and 400,000 on one. Its error rate is flat and its CPU is idle. outbox_event has no pending rows older than a second, so the relay has published everything it holds. Identify the mechanism, give the ordered checks, and state what you do in the first ten minutes versus what you change permanently.
Approach
- Read the lag distribution first. A slow consumer lags everywhere; zero on fifteen partitions and 400,000 on one is not throughput. Idle CPU on the stuck partition means the consumer is not advancing its offset at all, which points at one message it cannot get past rather than at a rate problem.
- Exonerate the producer before touching the consumer. No pending outbox rows older than a second means the relay published, so the event exists in the log. This separates never sent from sent and never applied, which are different code paths and usually different owners.
- Read the message at the stuck offset and the handler's log lines for its event_id. A flat error rate with no progress has two explanations and you must distinguish them: the handler is throwing and the retry loop is swallowing it, or the handler is blocking on something and never returning. Idle CPU with no error lines favours the second.
- Mitigate before diagnosing further. Move the offending event to a dead-letter store and commit the offset past it. Adding consumers does nothing here, because a partition is consumed by exactly one member of the group, and the blast radius is every aggregate hashed to that partition, not only the aggregate that produced the bad event.
Follow-up
- The dead-lettered event carried aggregate_version 7 and the projection had applied 6. What must the replay do differently if 8 and 9 landed in the meantime?
- How do you show staleness to the user while the partition is behind, given the API already returns the projection's watermark?
Built from the rounds and topics Marks & Spencer candidates report.
Prepare, practise & reflect
One practical outcome each day. Spend longer where you need it.
0 / 7 done01Map the Marks & Spencer loop
- Write out the reported sequence: Talent Acquisition Screening, Technical Evaluation, Pair Programming, System Design Interview, Behavioral Interview.
- For each round, write one sentence on what it is judging, from the description above, and mark the one you are least ready for.
Deliverable: A one-page map of the 5 reported rounds, with the weakest marked.
02Work Coding Interviews
- Spend the session on Coding Interviews, which Marks & Spencer candidates report being tested on.
- Write one worked example in Coding Interviews and time yourself on it.
Deliverable: One timed worked example in Coding Interviews.
03Work Data Structures & Algorithms
- Spend the session on Data Structures & Algorithms, which Marks & Spencer candidates report being tested on.
- Write one worked example in Data Structures & Algorithms and time yourself on it.
Deliverable: One timed worked example in Data Structures & Algorithms.
04Work Java
- Spend the session on Java, which Marks & Spencer candidates report being tested on.
- Write one worked example in Java and time yourself on it.
Deliverable: One timed worked example in Java.
05Answer out loud: Technical & Coding Questions
- Answer aloud, timed: "Explain the difference between an interface and an abstract class, and when you would use each."
- Answer aloud, timed: "How do you ensure your code follows SOLID principles during a rapid development cycle?"
Deliverable: Spoken answers to 2 reported Technical & Coding Questions question(s), under time.
06Answer out loud: System Design Questions
- Answer aloud, timed: "How would you design a rate-limiting service for our public-facing APIs?"
- Answer aloud, timed: "Describe how you would handle data synchronization between an on-premise store system and our cloud-based e-commerce platform."
Deliverable: Spoken answers to 2 reported System Design Questions question(s), under time.
07Answer out loud: Behavioral & Leadership Questions
- Answer aloud, timed: "Tell me about a time you had to deliver a project under a very tight deadline. How did you manage your priorities?"
- Answer aloud, timed: "Describe a situation where you had a technical disagreement with a senior engineer. How was it resolved?"
Deliverable: Spoken answers to 2 reported Behavioral & Leadership Questions question(s), under time.
Expand any day for tasks and deliverables. Your progress is saved on this device.
Behavioural rounds judge the decision you made and what it cost.
"Tell me about a time you had to deliver a project under a very tight deadline. How did you manage your priori
"Tell me about a time you had to deliver a project under a very tight deadline. How did you manage your priorities?"
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
"Describe a situation where you had a technical disagreement with a senior engineer. How was it resolved?"
"Describe a situation where you had a technical disagreement with a senior engineer. How was it resolved?"
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
"Give an example of a time you took the initiative to improve a process or codebase without being asked."
"Give an example of a time you took the initiative to improve a process or codebase without being asked."
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
- 01
"Tell me about a time you had to deliver a project under a very tight deadline. How did you manage your priorities?"
- 02
"Describe a situation where you had a technical disagreement with a senior engineer. How was it resolved?"
- 03
"Give an example of a time you took the initiative to improve a process or codebase without being asked."
How technical is the interview process for managerial roles?
Very technical. Even for engineering management positions, Marks & Spencer looks for "technical managers" who can dive deep into the code and architecture when necessary. Expect a rigorous technical evaluation regardless of the seniority of the role.
Marks & Spencer Software Engineer candidate reports ↗What is the culture like within the engineering teams?
The culture is a blend of traditional retail values—like integrity and customer service—and modern tech values like agility and continuous improvement. It is a supportive environment where non-traditional backgrounds are welcomed and valued.
Marks & Spencer Software Engineer candidate reports ↗How much emphasis is placed on speed during the coding challenge?
While we value efficiency, we prioritize correctness and code quality. It is better to complete 70% of a task with high-quality, well-structured code than 100% with messy, unorganized logic. However, being comfortable with your IDE shortcuts can significantly help your perceived speed.
Marks & Spencer Software Engineer candidate reports ↗Does M&S support remote or hybrid work for engineers?
Most engineering roles in London follow a hybrid model, allowing for a balance between remote work and in-person collaboration at our support centers.
Marks & Spencer Software Engineer candidate reports ↗What topics does Marks & Spencer test in interviews?
Marks & Spencer interviews most often cover Problem Solving, Stakeholder Management, Analytical Reasoning, Communication Skills, and Data Interpretation. The exact emphasis depends on the specific role you apply for.
Marks & Spencer Software Engineer candidate reports ↗Sources & methodology 3 sources ↗
No official company page is cited. Rounds and questions come from candidate reports and PracHub editorial material; each source shows the date it was read.
- 01Marks & Spencer Software Engineer candidate reports ↗
Company-reported rounds, questions and FAQ.
Candidate reports · Accessed 2026-09-22 - 02PracHub Software Engineer practice ↗
PracHub practice material, not company-reported.
PracHub page · Accessed 2026-09-22 - 03PracHub preparation framework ↗
PracHub preparation guidance.
PracHub page · Accessed 2026-09-22