
Downstream Resiliency
Authored by B Sinha
Other

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the purpose of setting timeouts for network calls?
To reduce resource leaks
To propagate faults to other components
To increase the response time
To improve network connectivity
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which network API does not have a default timeout?
JavaScript's XMLHttpRequest
Python's requests library
Go's HTTP package
.NET Core HttpClient
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we determine a good timeout duration?
Based on the desired false timeout rate
By setting it to infinity
By measuring the response time of the caller
By using the default timeout provided by the API
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should be measured at the integration points of systems?
The duration of the network call
The status code received
Whether a timeout was triggered
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the ideal way to handle network calls?
Wrap them within a library function that sets a timeout and monitors the request
Set a timeout for each call individually
Ignore setting timeouts and rely on default values
Avoid making network calls altogether
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two options a client has when a network request fails or times out?
Fail fast or retry the request
Increase the timeout or ignore the failure
Switch to a different network protocol or cancel the request
Delegate the request to a reverse proxy or use a sidecar pattern
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the formula for calculating the delay between retries using exponential backoff?
delay = min(cap, initial-backoff. 2attempt)
delay = initial-backoff + attempt
delay = cap / (initial-backoff * attempt)
delay = initial-backoff - attempt
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?