Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 337
A developer is developing a microservices code to manage REST API errors. Which two approaches must the developer take to manage the HTTP 429 "Too Many Requests" status code in the microservices code? (Choose two.)
Answer options
- A. Implement subsequent retry with the same interval window.
- B. Resend the request immediately without implementing a wait time.
- C. Consecutive retries should truncate exponential backup.
- D. Throw an exception in the application code.
- E. Return errors in the response code.
Correct answer: A, C
Explanation
The correct answers are A and C because implementing a retry with the same interval allows for controlled handling of the rate limit, while truncating exponential backoff for consecutive retries helps to manage the load more effectively. Options B and D are not appropriate as they either bypass necessary wait times or throw exceptions instead of managing the error gracefully. Option E is incorrect because simply returning errors does not address how to handle them.