ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 81 - Certified B2C Commerce Developer discussion

Report
Export

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?

A.
Create a service and a Sitepreference that induce the service to respond with a mock response using a conditional.
Answers
A.
Create a service and a Sitepreference that induce the service to respond with a mock response using a conditional.
B.
Create a service and implement the mockFull callback and set the service mode to mock.
Answers
B.
Create a service and implement the mockFull callback and set the service mode to mock.
C.
Create a service and implement the mockFull callback and a sitepreference to enable or disable the mock response.
Answers
C.
Create a service and implement the mockFull callback and a sitepreference to enable or disable the mock response.
D.
Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one.
Answers
D.
Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one.
Suggested answer: C
asked 23/09/2024
Stephen McMahon
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first