AWS Certified Developer Associate DVA-C02 Practice Question
Given a situation where a developer must design an API that processes payment transactions, which of the following approaches BEST ensures that the API handles repeated submissions of the same transaction in an idempotent manner?
Store the state of each transaction in a database with enforced write locks to prevent concurrent writes.
Implement idempotent receipt tokens that must be submitted with each transaction.
Generate random transaction IDs for each submission and use these IDs to detect duplicates.
Use a stateless protocol that does not require server-side tracking of transaction states.
The correct answer is to implement idempotent receipt tokens. By providing a unique token for each transaction, the system can recognize and ignore duplicate submissions. This prevents the same transaction from being processed more than once, which is the core principle of idempotency. Storing transaction states and enforcing write locks might be part of the solution but do not offer idempotency for the client's API calls. Generating random transaction IDs does not ensure idempotency because it does not prevent duplicates from being processed.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does idempotent mean in API design?
Open an interactive chat with Bash
How do idempotent receipt tokens ensure idempotency?
Open an interactive chat with Bash
Why are random transaction IDs insufficient for ensuring idempotency?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .