Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce CCM-101 Exam - Topic 9 Question 71 Discussion

Posted by Janella on Nov 21, 2025 at 04:43 AM

Given the requirements:

To integrate with an external web service using HTTP requests

To create a service for this purpose with the Service framework using the LocalServiceRegistry

class.

To test the service before the external service provider makes the API available

Which solution allows the developer to satisfy the requirements?

Suggested Answer: B

Get Premium CCM-101 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
RO
Rosio 7 months ago
True, A keeps it clean. Less complexity is always better.
WA
Wayne 7 months ago
A and D are good, but I lean towards A for simplicity.
NO
Noel 7 months ago
I like option C. Conditional responses can be flexible.
SA
Sarina 7 months ago
Option D seems practical. Having both services is safer for testing.
YV
Yvonne 7 months ago
I prefer option B. MockFill is straightforward and easy to manage.
RO
Rosio 8 months ago
I think option A is the best. Mockfull callback sounds solid.
BE
Benedict 8 months ago
Wait, can we really switch between mock and real like that?
RO
Rosamond 8 months ago
D seems excessive, just one service should be enough.
MI
Milly 9 months ago
I think B is better, mockFill is more straightforward.
MA
Marlon 9 months ago
Option A sounds solid, using mockfull is a good way to test.
MA
Margart 9 months ago
C) Create a service and a Sitepreference that induce the service to respond witch a mock response using a conditional. Witch, huh? I'm sensing some magic in the air.
CA
Caprice 9 months ago
B) Create a service and implement the mockFill callback and set the service mode to mock. Simple and straightforward, I like it.
DE
Della 9 months ago
D) Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one. Gotta have a backup plan, am I right?
JE
Jerry 9 months ago
Option D seems like overkill to me. I remember we talked about keeping things simple, but having two services might complicate testing.
CY
Cyndy 10 months ago
I feel like option C could work, but I'm not clear on how the conditional would be set up. Did we cover that in class?
RO
Rodney 10 months ago
I remember discussing the mockFill callback in relation to option B, but I can't recall how it differs from the mockfull one.
TY
Ty 10 months ago
Option A seems the most robust to me. Having the ability to enable or disable the mock response through a Sitepreference gives me the most flexibility to test the service in different scenarios.
BU
Buffy 10 months ago
I like the idea of using a Sitepreference to enable or disable the mock response, as suggested in option C. That way I can easily switch between the mock and the real service without having to change the code.
JA
Jaime 10 months ago
Option D seems like it could work, but creating two separate services seems a bit overkill. I'd prefer to try to find a single solution if possible, to keep things simpler.
RO
Rose 10 months ago
I think option A sounds familiar, but I'm not entirely sure about the mockfull callback. Was it mentioned in our practice sessions?
KI
Kizzy 11 months ago
B) Create a service and implement the mockFill callback and set the service mode to mock.
GE
Gerald 11 months ago
A) Create a service and implement the mockfull callback and a sitepreference to enable or disable the mock response. Seems like the most flexible solution.
DE
Denise 11 months ago
I’m surprised there’s no option for just using a single mock response.
KE
Kendra 11 months ago
I'm a bit confused by the difference between the mockfull and mockFill callbacks. Do they have different functionality? I'm not sure which one would be the best approach here.
BU
Burma 12 months ago
I think option B looks the most straightforward. Implementing the mockFill callback and setting the service mode to mock seems like the simplest way to test the service before the external API is available.
SY
Sylvie 6 months ago
↳ replying to Burma
True, but B just feels more direct for quick testing.
BR
Brock 6 months ago
↳ replying to Burma
Option C seems a bit complicated. Conditional responses can be tricky.
TH
Theron 6 months ago
↳ replying to Burma
I think option D is better for flexibility. Having both services could help.
TI
Tina 7 months ago
↳ replying to Burma
But what about option A? The mockfull callback could be useful too.
SY
Sylvie 11 months ago
↳ replying to Burma
I agree, option B is pretty clear. Mocking makes testing easier.
0/2000 characters

Save Cancel