New Year Sale 2026! 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

Actual exam question for Salesforce's CCM-101 exam
Question #: 71
Topic #: 9
[All CCM-101 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Rosamond
3 days ago
D seems excessive, just one service should be enough.
upvoted 0 times
...
Milly
8 days ago
I think B is better, mockFill is more straightforward.
upvoted 0 times
...
Marlon
13 days ago
Option A sounds solid, using mockfull is a good way to test.
upvoted 0 times
...
Margart
18 days 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.
upvoted 0 times
...
Caprice
24 days ago
B) Create a service and implement the mockFill callback and set the service mode to mock. Simple and straightforward, I like it.
upvoted 0 times
...
Della
29 days 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?
upvoted 0 times
...
Jerry
1 month ago
Option D seems like overkill to me. I remember we talked about keeping things simple, but having two services might complicate testing.
upvoted 0 times
...
Cyndy
1 month 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?
upvoted 0 times
...
Rodney
1 month ago
I remember discussing the mockFill callback in relation to option B, but I can't recall how it differs from the mockfull one.
upvoted 0 times
...
Ty
2 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.
upvoted 0 times
...
Buffy
2 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.
upvoted 0 times
...
Jaime
2 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.
upvoted 0 times
...
Rose
2 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?
upvoted 0 times
...
Kizzy
2 months ago
B) Create a service and implement the mockFill callback and set the service mode to mock.
upvoted 0 times
...
Gerald
3 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.
upvoted 0 times
...
Denise
3 months ago
I’m surprised there’s no option for just using a single mock response.
upvoted 0 times
...
Kendra
3 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.
upvoted 0 times
...
Burma
3 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.
upvoted 0 times
Sylvie
3 months ago
I agree, option B is pretty clear. Mocking makes testing easier.
upvoted 0 times
...
...

Save Cancel