B2C-Commerce-Architect Practice Test

Salesforce Spring 25 Release
64 Questions

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)

A. Circuit breaker is enabled.

B. Service timeout is set.

C. Service mock up call is configured.

D. Service logging is disabled.

A.   Circuit breaker is enabled.
B.   Service timeout is set.

Explanation:

✅ Option A: Circuit breaker is enabled.
A circuit breaker is a best practice for preventing excessive load on external services, especially when the service is called frequently, like on every visit to the Product Detail Page (PDP). By enabling a circuit breaker, you can prevent repeated failures from overwhelming the system. If the service call fails multiple times, the circuit breaker will "trip" and stop further attempts until the service becomes healthy again. This improves the overall stability and resilience of the system.

✅ Option B: Service timeout is set.
Setting a service timeout is a critical best practice when calling external services. If the external service takes too long to respond, the PDP could be significantly delayed, leading to a poor user experience. By setting a reasonable timeout, you ensure that the application does not hang indefinitely waiting for the service to respond and instead handles timeouts gracefully.

❌ Option C: Service mock up call is configured.
While mocking service calls can be useful during development or testing to simulate the behavior of external services, it is not a relevant best practice for production service configuration. In production, you need the actual service call to retrieve real-time data. Mock calls should not be used in production environments unless they are part of a specific strategy for load testing or service simulation, which is not indicated here.

❌ Option D: Service logging is disabled.
Disabling service logging is not a best practice. Service logging is essential for monitoring, debugging, and troubleshooting. By keeping service logs enabled, you ensure that you have access to important diagnostic information in case issues arise. Disabling logging would make it harder to detect and resolve any service-related problems, especially in a live production environment.

B2C-Commerce-Architect Practice-Test - Home Previous
Page 8 out of 64 Pages