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.
Given a service configuration, recognize how they are applicable to the development process.
~7 min read · 9 practice questions ·
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
mockCallcallback to build against a service that isn't ready. - Move service setup between instances, knowing what must be recreated by hand.
- Read a
Resultstatus 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
- Detail
- Each connection and socket read, not the total run time
- Detail
- Enabled; recommended with calls zero or blank
- Detail
- HTTP 4xx responses
- Detail
ServiceUnavailableException; ResultSERVICE_UNAVAILABLE
- Detail
- Unavailable reason
DISABLED; no call made
- Detail
- Not enabled by default
- Detail
- Credentials, private keys, certificates
- Detail
- INFO; disabled by default
- Detail
- Inherits its parent's levels
- Detail
- Up to 10 days
getClient() before the call- Detail
- Returns null
- 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?
The questions are free to read. Answers with their sources and self-grading are included with the pack.
Keep reading with the B2C Commerce Developer pack
- Core concepts
- Exam traps
- Worked scenario
The pack includes:
- All 28 lessons of the B2C Commerce Developer guide, with reading progress
- Interactive decision walks and step-by-step sequence steppers
- Practice exams purchase adds inline bank questions and topic practice (9 questions for this lesson)
- An official source cited for every claim
- An AI tutor that answers from the guide
- Choose guide-only, practice-only, or save $4 with both