MuleSoft Certified Platform Architect – Level 1 — Question 46

An API implementation is being designed that must invoke an Order API, which is known to repeatedly experience downtime.
For this reason, a fallback API is to be called when the Order API is unavailable.
What approach to designing the invocation of the fallback API provides the best resilience?

Answer options

Correct answer: D

Explanation

Option D is correct because it directly handles failures from the Order API by switching to the fallback API based on the specific error responses, enhancing resilience. Options A and B do not provide an automatic response to downtime, while Option C involves redirection, which may not be as effective in handling the specific error codes during API invocation.