AWS Certified Developer Associate DVA-C02 Practice Question
A company is developing a serverless payment API that triggers an AWS Lambda function to process credit-card charges. Because of intermittent network failures, the frontend may automatically retry failed HTTP requests. Which mechanism should the developer add to each API request so that a customer is never charged more than once if a retry occurs?
Generate a unique identifier for each operation, allowing the service to detect and ignore retries of transactions that have already been executed.
Record the timestamp for each operation and only process requests if subsequent submissions occur after a specific time interval.
Integrate a distributed tracing service to handle de-duplication of transaction requests.
Track the status codes from previous submissions and use them to determine if the operation should be retried.
The correct approach to ensure idempotent operations is to issue a unique transaction identifier (often called an idempotency key) for each financial operation. The service stores the first result associated with that identifier and returns the same response for subsequent requests that present the same key, preventing duplicate charges. Timestamps do not guarantee idempotency because retries can reuse the same timestamp or suffer from clock skew. Checking previous HTTP status codes is unreliable because network issues can obscure responses, and status codes are not part of the retried request. AWS X-Ray provides distributed tracing and observability; it does not implement request de-duplication or idempotency.
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.
How does a unique transaction identifier ensure idempotency in financial operations?
Open an interactive chat with Bash
Why are timestamps not sufficient for preventing duplicate transactions?
Open an interactive chat with Bash
What is idempotency, and why is it important in financial systems?
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 .