Skip to interview prep
Apexed

60. A checkout applies individually valid promotions but produces an impossible final price. How would you review the security issue?

MediumApplication & data security

Case
Show model answer

Identify the business invariants and allowed combination rules, including order of application, eligibility and minimum payable amounts. Individual field validation does not establish that the complete transaction is valid.

Enforce the authoritative calculation and checks on the server, then test permitted combinations and boundary conditions using fictional orders. Work with product and finance owners on ambiguous rules, and verify the final state rather than relying on the interface's preview.

What interviewers listen for

  • Define transaction-wide invariants
  • Enforce authoritative server calculations
  • Test combinations and final state
A checkout applies individually valid promotions but produces an impossible final price. How would you review the security issue — Cybersecurity interview quest