ARC-300 practice question 4 of 15

During code review, the Architect found that there is a service call on every visit of the product detail woe (PDP). What best practices should the Architect ensure are followed for the service configuration? Choose 2 answers

Full set: 65 questions
Answer options
A: Circuit breaker is enabled. Correct answer
B: Service timeout is set. Correct answer
C: Service mock up call is configured.
D: Service logging is disabled.
Correct Answer:
A. Circuit breaker is enabled.; B. Service timeout is set.
Explanation

For a high-traffic component like a Product Detail Page (PDP), service calls must be configured for resilience to prevent site-wide performance degradation or outages. A circuit breaker (A) is a critical fault-tolerance pattern that stops repeated calls to a failing service, preventing cascading failures and allowing the service time to recover. Similarly, setting a service timeout (B) is a fundamental best practice that prevents the calling application from waiting indefinitely for a response, which would otherwise tie up server resources and degrade the user experience. Together, these configurations ensure the system remains stable and responsive even when the dependent service is slow or unavailable.

References

1. Salesforce B2C Commerce Cloud Documentation

Service Framework: The official documentation details the configuration of services

emphasizing fault tolerance. It states

"The Service Framework has a built-in circuit breaker capability to handle remote service failures gracefully... When a service call fails

the circuit breaker records the failure. If the number of failures exceeds a configured threshold

the circuit breaker trips." This directly supports option A.

2. Salesforce B2C Commerce Cloud Documentation

Service Configurations: The documentation for creating service configurations (dw.svc.ServiceRegistry) specifies setting a timeout value as a core parameter. "You must specify a timeout for every service you define... A timeout prevents a call from waiting indefinitely for a response." This directly supports option B.

3. Fowler

M. (2014). CircuitBreaker. MartinFowler.com: This foundational article on software architecture patterns describes the circuit breaker as a crucial pattern for building resilient distributed systems. It explains how the pattern prevents an application from repeatedly trying to execute an operation that's likely to fail. This provides the theoretical underpinnings for option A.

4. Salesforce Architects

Architect's Guide to Custom Code Resiliency on B2C Commerce: This guide explicitly recommends

"Configure timeouts for all outbound connections... Configure circuit breakers for all service calls." It reinforces that both timeouts and circuit breakers are essential best practices for resilient integrations on the platform.

Scroll to Top