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

Given the requirements:To integrate with an external web service using HTTP requestsTo create a service for this purpose with the Service framework using the LocalServiceRegistryclass.To test the service before the external service provider makes the API availableWhich solution allows the developer to satisfy the requirements?
B) Create a service and implement the mockFill callback and set the service mode to mock.
A) Create a service and implement the mockfull callback and a sitepreference to enable or disable the mock response.
C) Create a service and a Sitepreference that induce the service to respond witch a mock response using a conditional.
D) Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one

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
Rosio
2 months ago
True, A keeps it clean. Less complexity is always better.
upvoted 0 times
...
Wayne
2 months ago
A and D are good, but I lean towards A for simplicity.
upvoted 0 times
...
Noel
2 months ago
I like option C. Conditional responses can be flexible.
upvoted 0 times
...
Sarina
2 months ago
Option D seems practical. Having both services is safer for testing.
upvoted 0 times
...
Yvonne
2 months ago
I prefer option B. MockFill is straightforward and easy to manage.
upvoted 0 times
...
Rosio
3 months ago
I think option A is the best. Mockfull callback sounds solid.
upvoted 0 times
...
Benedict
3 months ago
Wait, can we really switch between mock and real like that?
upvoted 0 times
...
Rosamond
3 months ago
D seems excessive, just one service should be enough.
upvoted 0 times
...
Milly
4 months ago
I think B is better, mockFill is more straightforward.
upvoted 0 times
...
Marlon
4 months ago
Option A sounds solid, using mockfull is a good way to test.
upvoted 0 times
...
Margart
4 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.
upvoted 0 times
...
Caprice
4 months 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
4 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?
upvoted 0 times
...
Jerry
4 months 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
5 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?
upvoted 0 times
...
Rodney
5 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.
upvoted 0 times
...
Ty
5 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
5 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
5 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
5 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
6 months ago
B) Create a service and implement the mockFill callback and set the service mode to mock.
upvoted 0 times
...
Gerald
6 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
6 months ago
I’m surprised there’s no option for just using a single mock response.
upvoted 0 times
...
Kendra
6 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
7 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
29 days ago
True, but B just feels more direct for quick testing.
upvoted 0 times
...
Brock
1 month ago
Option C seems a bit complicated. Conditional responses can be tricky.
upvoted 0 times
...
Theron
1 month ago
I think option D is better for flexibility. Having both services could help.
upvoted 0 times
...
Tina
2 months ago
But what about option A? The mockfull callback could be useful too.
upvoted 0 times
...
Sylvie
6 months ago
I agree, option B is pretty clear. Mocking makes testing easier.
upvoted 0 times
...
...

Save Cancel