Cloud Client Library uploads occasionally fail with HTTP 504 Gateway Timeout. How should you make the application more resilient?
Choose an answer
Tap an option to check your answer.
Correct answer: Write an exponential backoff process around the client library call..
Why this is the answer
An exponential backoff process is the most effective solution for intermittent network errors like HTTP 504 Gateway Timeout. This strategy involves retrying failed requests with progressively longer delays between retries, reducing the load on the server and increasing the likelihood of success as the underlying issue resolves. A fixed one-second wait time is less effective because it doesn't adapt to the server's recovery time and could still overwhelm it. Designing a retry button shifts the responsibility to the user and doesn't automate resilience. Creating a queue with a 10-minute delay introduces significant latency and a poor user experience for what might be a transient issue.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed