AWS Certified Developer Associate DVA-C02 Practice Question
An application you are developing is responsible for processing messages from a queue and executing an operation that relies on a third-party service, which is known for its occasional unpredictability. To improve your application's robustness against these intermittent service failures, which pattern should you implement in your operation logic?
Implement a circuit breaker to immediately halt operations upon an error
Increase read and write capacity to the queue during peak times
Attempt immediate recursive retries after a failed operation
In the scenario given, a third-party service that is intermittently unavailable would benefit from implementing retries with exponential backoff and jitter. The exponential backoff method systematically increases the wait time between retries after a failed attempt to call the third-party service. Adding jitter reduces the probability that multiple instances of your application will attempt to retry at the same moment, avoiding simultaneous retries that can lead to the 'thundering herd' problem when the service recovers. This can be particularly useful for distributed systems that rely on external services to ensure they can continue to operate effectively during transient outages. Using a circuit breaker does address an unreliable service, but the question specifically asks for a pattern that involves retry logic. Increasing read and write capacity or immediate recursive retries do not address the underlying issue of the service's unpredictability and may worsen it by potentially overloading the service when it comes back online.
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 and how does it work?
Open an interactive chat with Bash
What is jitter and why is it important in retry logic?
Open an interactive chat with Bash
What is the difference between a circuit breaker and retry logic?
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...
IT & Cybersecurity Package Join Premium for Full Access