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 questionsFor 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.
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.
Keep practicing
Take the free ARC-300 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ARC-300 practice questions
- Question 1An ecommerce site has dynamic shipping cost calculation. it allows the customers to see t…
- Question 5During a technical review, the Client raises a need to display product pricing on the Pro…
- Question 6The storefront integrates with a REST based Address verification service (AVS) that uses …
- Question 7An Architect is documenting the technical design for a single B2C Commerce storefront. Th…
- Question 8Which two activities should an Architect encourage the replication team to follow based o…
- Question 9The following promotions are configured with no exclusivity (can be combined with any oth…
