AWS Certified Developer Associate DVA-C02 Practice Question
Your team is building a distributed image processing application in AWS that receives high volumes of image transformation requests. Due to the workload's unpredictable nature and the potential for transient failures in downstream services, you need to ensure that the image processing tasks are robust and can recover smoothly after an occasional failure. Which design pattern would be most appropriate to implement for the retry mechanism of this application?
You selected this option
Retries with a constant delay between each attempt to mitigate the impact of failures.
You selected this option
Implementation of a Circuit Breaker pattern to immediately cut off requests to the affected service.
You selected this option
Retries with exponential backoff and jitter to handle intermittent service disruptions more effectively.
You selected this option
Use of a message queue to collect all requests, without specific error handling strategies for individual tasks.
Implementing retries with exponential backoff and jitter is the most appropriate design pattern for handling transient failures in a distributed system. Exponential backoff increases the delay between retries, reducing the pressure on the system, and jitter adds randomness to the delay, preventing synchronous retries from overwhelming the service at predictable intervals. Circuit Breaker differs because it stops the application from performing an operation that's likely to fail, rather than retrying the call. Retries without delay could overwhelm the downstream services, leading to cascading failures. Lastly, implementing a message queue without a retry strategy does not address transient errors in the processing of individual tasks.
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 is exponential backoff in the context of retries?
Open an interactive chat with Bash
What is jitter and why is it used in conjunction with exponential backoff?
Open an interactive chat with Bash
How does the Circuit Breaker pattern differ from retries in a distributed system?
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
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access