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

Modify the code to wrap requests in a try/catch block.

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

Implement circuit breaker patterns in the code.

Increase the web service timeout.

Update the external service to have a faster response time.

Want more questions?

All options are one-time payments.

$25.99

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99 $171.99 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $171.99 usd value for $59.99! You save $106!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy