Which two solutions could reduce the unavailability of a critical web service?

Prepare for the Salesforce B2C Commerce Developer Test with interactive flashcards and multiple-choice questions. Dive into comprehensive study materials, hints, and explanations. Ace your Salesforce exam with ease!

The correct answer is that implementing circuit breaker patterns in the code can effectively reduce the unavailability of a critical web service.

When a critical web service is experiencing high failure rates or is unresponsive, using a circuit breaker pattern helps to prevent your application from continually trying to call the service and thereby wasting resources. The circuit breaker acts as a temporary barrier that stops attempts to make calls to the failing service after a specified threshold is reached. This allows the system to either gracefully handle the situation or to fall back to a more stable service while monitoring the problematic service for recovery. By reducing the number of calls to an unavailable service, it can also provide time for the service to recover, thus enhancing overall system resilience.

In contrast, modifying the code to wrap requests in a try/catch block can help in handling errors gracefully when a failure occurs, but it does not directly address the unavailability issue. It may catch exceptions but will not prevent repeated calls to a failing service, potentially leading to resource exhaustion.

Increasing the web service timeout might give the service more time to respond, but if the service is fundamentally down or malfunctioning, this will not solve the underlying problem of availability.

Updating the external service to have a faster response time is a potential long-term

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy