Autocoder

Walmart Global Tech Interview Questions and Answers

Last updated 2026-11-19

Walmart Global Tech India hires software engineers for retail, supply chain, payments and e-commerce platforms. Its interviews lean on data structures, object-oriented design, SQL and a clear walkthrough of what you have built. This page gives practice questions in that style with worked answers, plus the behavioural questions that usually close the loop.

These are practice questions based on the topics the process is commonly reported to cover. They are not copies of any real paper. For the step-by-step process see how to crack the Walmart interview, and for coding drills see Walmart coding round questions.

Campus programmesSparkplug (internship) and CodeHers, run on Unstop
Reported roundsMCQ, 90-minute coding, verification, interviews
TopicsDSA, OOP, OS and networking, SQL, design

Rounds as commonly reported

Walmart Global Tech campus programmes such as Sparkplug and CodeHers run on Unstop: an MCQ eliminator, then a timed coding challenge, then verification and interviews. For lateral and off-campus roles, candidate reports describe an online or phone screen, one or two technical rounds with live coding, a design round for experienced hires, and a hiring-manager conversation.

The technical rounds are usually described as mixing DSA problems with object-oriented design, so prepare to explain trade-offs aloud and not only produce a working answer.

Topics to prepare

Based on the sourced MCQ topics and common reports, prepare the following.

Hiring status

Walmart has a Walmart hiring page on this site that tracks sourced news. Facts we can source: the Sparkplug 2026 internship cycle ran from October to November 2025 (registration closed 9 November 2025, internship May to June 2026 in Bengaluru and Chennai). CodeHers 2025, for female engineering students, closed registration on 2 March 2025. Sparkplug tests have run in October and November in earlier years, but the next cycle is not confirmed here. Check the Walmart Global Tech careers site for current openings.

Walmart Global Tech Interview Questions and Answers: questions with worked answers

  1. 1

    Tell me about yourself and a project you are proud of.

    easy

    Keep it to two minutes: current role or degree, the main stack, then one project. For the project, state the problem, your own contribution, one technical decision with its trade-off, and a measurable result such as reduced latency or fewer failures. Interviewers at product companies follow up on the decision, so only claim what you can defend.

  2. 2

    Explain the four OOP principles with a retail example.

    easy

    Encapsulation: an Order hides its line items and exposes addItem and total, so the total cannot be corrupted from outside. Abstraction: a PaymentMethod interface hides whether the payment is a card, UPI or gift card. Inheritance: GiftCard and CreditCard extend a base PaymentMethod to reuse validation. Polymorphism: checkout calls pay() on any PaymentMethod and each type behaves correctly. Mention that composition is often preferred over inheritance because it avoids deep class hierarchies.

  3. 3

    Design a parking lot (low-level design).

    medium

    Identify entities: ParkingLot, Level, Spot (with a type such as compact, large or EV), Vehicle, Ticket and a PricingStrategy. ParkingLot.park(vehicle) asks each level for the first free spot that fits and returns a Ticket with entry time. unpark(ticket) computes the fee through PricingStrategy and frees the spot. Use the strategy pattern for pricing and keep spot-finding behind an interface so you can swap in nearest-to-entrance allocation. Discuss concurrency: guard allocation with a lock per level or an atomic compare-and-set on the spot state so two cars never get the same spot.

  4. 4

    Write SQL to find the top 3 products by revenue in each category.

    medium

    Aggregate revenue per product, then rank within the category with a window function. Use DENSE_RANK if ties should share a rank, or ROW_NUMBER if exactly three rows are wanted. The window function runs after GROUP BY, so wrap the aggregate in a subquery or CTE and filter on the rank outside it.

    sql
    WITH rev AS (
      SELECT p.category, p.product_id, SUM(oi.qty * oi.unit_price) AS revenue
      FROM order_items oi JOIN products p ON p.product_id = oi.product_id
      GROUP BY p.category, p.product_id
    ), ranked AS (
      SELECT *, DENSE_RANK() OVER (PARTITION BY category ORDER BY revenue DESC) AS rnk
      FROM rev
    )
    SELECT category, product_id, revenue FROM ranked WHERE rnk <= 3;
  5. 5

    Detect a cycle in a linked list and return the node where it starts.

    medium

    Use Floyd: move slow by one and fast by two. If they meet there is a cycle. Reset one pointer to the head and move both one step at a time; they meet at the cycle start. This is O(n) time and O(1) space. A hash set also works at O(n) space, which is a fine first answer if you then improve it.

    python
    class Node:
        def __init__(self, v):
            self.val = v
            self.next = None
    
    def cycle_start(head):
        slow = fast = head
        while fast and fast.next:
            slow = slow.next
            fast = fast.next.next
            if slow is fast:
                p = head
                while p is not slow:
                    p = p.next
                    slow = slow.next
                return p
        return None
  6. 6

    How would you design a shopping cart service?

    hard

    Start with requirements: add, remove and update items, survive page reloads, work for guests and logged-in users, and show correct prices. Store the cart as a document keyed by user or session id in a fast store such as Redis with a database as the durable copy. Do not trust prices stored in the cart: re-price from the catalogue at checkout. Handle inventory by soft-reserving at checkout rather than at add-to-cart. Merge the guest cart into the user cart on login. For scale, shard by cart id and keep reads cache-first. See system design interview questions for the general approach.

  7. 7

    What is the difference between a process and a thread, and what can go wrong with shared data?

    medium

    A process has its own address space; threads in a process share heap memory but have their own stack. Shared mutable data causes race conditions, where the result depends on interleaving, and deadlocks when threads hold locks in conflicting order. Fix races with mutual exclusion or atomic operations, and avoid deadlock by always acquiring locks in one global order or using timeouts.

  8. 8

    Explain HashMap internals in Java.

    medium

    A HashMap stores entries in an array of buckets. The key hashCode is spread and masked to pick a bucket. Collisions are chained in a linked list, which becomes a balanced tree when a bucket grows past a threshold (8) and the table is large enough. When size exceeds load factor times capacity (0.75 by default) the table doubles and entries are redistributed. Average get and put are O(1); keys must have consistent equals and hashCode, and mutable keys break lookups.

  9. 9

    How do you find the k most frequent items in a large stream of product views?

    medium

    For a bounded dataset, count with a hash map and keep a min-heap of size k: O(n log k). For an unbounded stream, exact counting may not fit in memory, so use an approximate structure such as a count-min sketch plus a heap, and say that the answer is approximate. Mention the bucket-sort alternative when counts are bounded by n, which gives O(n).

  10. 10

    A service has a sudden increase in p99 latency. How do you investigate?

    hard

    Work from the outside in. Check whether the change correlates with a deploy, traffic spike or dependency. Look at the golden signals: latency, traffic, errors and saturation. Break latency down per endpoint and per downstream call using tracing. Check CPU, garbage collection pauses, thread pool and connection pool exhaustion, and database slow queries. Roll back if a deploy is the suspect, and only then fix the root cause. Interviewers want to see a method, not a guess.

  11. 11

    Tell me about a time you disagreed with a teammate.

    easy

    Use the STAR structure. Situation: two of you wanted different approaches, say a quick patch versus a refactor. Task: ship without breaking the release. Action: you wrote down the options with costs, ran a small experiment or checked data, and agreed on a decision owner. Result: a concrete outcome, plus what you learned. Avoid blaming the other person and show you could commit to the final decision.

  12. 12

    Why Walmart Global Tech?

    easy

    Tie the answer to the work: engineering problems at retail scale such as inventory accuracy across stores, supply chain optimisation, and payments. Mention one product area you read about on the company engineering pages and what skill you want to build. Generic answers about brand size are weak.

  13. 13

    Design a rate limiter for an API.

    hard

    Choose an algorithm. A token bucket allows bursts: each client has a bucket refilled at a steady rate and each request takes a token. A sliding window counter is smoother. Keep the counters in Redis keyed by client id and use an atomic script so check and decrement happen together. Return HTTP 429 with a Retry-After header. For multiple gateways, share state in Redis, accepting a little extra latency; for lower latency, allow a small local allowance and sync periodically.

Frequently asked questions

Does Walmart ask system design to freshers?

Commonly reported rounds for freshers focus on DSA and OOP, with low-level design questions such as a parking lot. Full system design is more typical for experienced hires. Check the role description.

Which language should I use?

Use the language you know best. Java and Python are both common choices; what matters is clean, correct code and clear explanation.

How long does the Walmart process take?

It is not published. Timelines vary by role and by whether it is a campus programme or an off-campus application, so follow the updates on the Walmart Global Tech careers site.

Where can I see current Walmart openings?

Use the Walmart Global Tech careers site, and see the Walmart hiring page on this site for sourced news.

Sources

Related guides

More in Company Interview Questions

See all in this section