# Service profiles, credentials, mock mode and circuit breakers

*B2C Commerce Developer Study Guide · Data Management Using Business Manager Usage · Last updated November 3, 2026 · https://www.certifyforce.com/study-guide/b2c-commerce-developer/data-management-using-business-manager-usage/service-profiles-credentials-mock-mode-and-circuit-breakers*

What the service, profile and credential configurations each hold, how timeouts, the rate limiter and the circuit breaker behave, how Mocked mode supports development, how configurations move between instances, and how service log categories, the communication log and Result statuses help troubleshoot.

- Certification: Salesforce B2C Commerce Developer
- Exam section: Data Management Using Business Manager Usage
- Study guide: https://www.certifyforce.com/study-guide/b2c-commerce-developer

**Official exam objective:**

> Given a service configuration, recognize how they are applicable to the development process.

## What the exam expects

- Say which of the service, profile and credential configurations holds a given setting.
- Predict timeout, rate limiter and circuit breaker behaviour, including which failures count.
- Use Mocked mode and a `mockCall` callback to build against a service that isn't ready.
- Move service setup between instances, knowing what must be recreated by hand.
- Read a `Result` status and unavailable reason, and configure service log categories and the communication log.

Key terms: **service configuration** (name, type, Enabled, mode, log prefix, profile and credential); **service profile** (timeout, circuit breaker and rate limit, shareable); **service credential** (URL and basic authentication user and password); **circuit breaker** (suspends calls after too many failures in an interval); **communication log** (request and response data, the `comm` log type).

## Key facts

| Fact | Detail | Source |
|---|---|---|
| Timeout scope | Each connection and socket read, not the total run time | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| Circuit breaker default | Enabled; recommended with calls zero or blank | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| Not counted by the breaker | HTTP 4xx responses | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| Limit reached | `ServiceUnavailableException`; Result `SERVICE_UNAVAILABLE` | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| Disabled service | Unavailable reason `DISABLED`; no call made | [Class Result](https://developer.salesforce.com/docs/commerce/b2c-commerce/references/b2c-script-api/dw.svc.Result.html) |
| Enabled on new service | Not enabled by default | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| Not exportable | Credentials, private keys, certificates | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| Communication log level | INFO; disabled by default | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| Category without a level | Inherits its parent's levels | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| Service Status retention | Up to 10 days | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |
| `getClient()` before the call | Returns null | [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html) |

## Check yourself

- Why does Salesforce recommend leaving Max Circuit Breaker Calls blank while keeping the circuit breaker enabled?
- When must the Circuit Breaker Interval field be filled in?
- How can a script force a mock response even when the service is configured as Live?
- Why should a credential's password be stored somewhere outside Business Manager?

## Sources

- [Web Services](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-webservices.html)
- [Class Result](https://developer.salesforce.com/docs/commerce/b2c-commerce/references/b2c-script-api/dw.svc.Result.html)
- [Class LocalServiceRegistry](https://developer.salesforce.com/docs/commerce/b2c-commerce/references/b2c-script-api/dw.svc.LocalServiceRegistry.html)
- [Class HTTPService](https://developer.salesforce.com/docs/commerce/b2c-commerce/references/b2c-script-api/dw.svc.HTTPService.html)

## About the full unit

The "Core concepts", "Exam traps" and "Worked scenario" sections of this unit, its 9 linked practice questions, and unlimited timed mock exams are included with the B2C Commerce Developer pack (USD $19): https://www.certifyforce.com/practice-exams
