An API fails to respond, triggering a timeout exception. The best practice in this scenario would be to ________.
- Crash the application and alert the user
- Ignore the exception and continue processing
- Log the exception for future analysis
- Retry the API call
In the case of a timeout exception, a best practice is to retry the API call, as the failure might be temporary. Ignoring the exception may lead to incomplete processing, while logging it allows for future analysis. Crashing the application is not a recommended approach.
Loading...
Related Quiz
- Which type of form validation occurs on the server-side after the data is submitted?
- Enabling ________ in CodeIgniter can reduce the server load and improve response time.
- In CodeIgniter, how can you enable full query string support in URLs?
- What is the primary purpose of integrating social media into a web application?
- For advanced error handling, CodeIgniter's ________ library can be extended.