Free CCM-101 Exam Braindumps
Manage and Merchandise a B2C Commerce Cloud Store - Extended Questions 66–70 (page: 15)

Updated On: 10-Feb-2026

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?

  1. Create a service and implement the mockfull callback and a sitepreference to enable or disable the mock response.
  2. Create a service and implement the mockFill callback and set the service mode to mock.
  3. Create a service and a Sitepreference that induce the service to respond witch a mock response using a conditional.
  4. Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one

Answer(s): B



A developer needs to update the package.json file so that it points to the hock file for a cartridge, using the hooks keyword.
Which snippets work correctly when added to the file?:

  1. { "hooks": "./cartridge/scripts/hooks.json" }
  2. { "hooks": "./scripts/hooks.json" }
  3. { hooks: "./cartridge/scripts/hooks.json" }
  4. { hooks: ./scripts/hooks.json }

Answer(s): A



Given the following snippet:
Server.append( `Show' , function (req, res, next) )
According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the response using a controller?
Choose 2 answers

  1. res.viewData = {
    data: myDataObject
    };
    res.render(`/content/myPage');
    next();
    });
  2. res.setViewData ({
    data: myDataObject
    });
    res.render(`/content/myPage');
    next();
    });
  3. res.render(`/content/myPage',{
    data: myDataObject
    });
    next();
    });
  4. res.render(`/content/myPage');
    next();
    }).append{(
    Data:myDataObject
    });

Answer(s): C



Given the code snippet aboce, what should be added after this code so it can be used for page component display?

  1. Base.render = render;
  2. Module.exports.render = render;
  3. Module.exports = render;
  4. Module.exports = server.exports();

Answer(s): D



A developer has a specification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.
Which service type should the developer register?

  1. HTML Form
  2. SOAP Form
  3. POST Form
  4. HTTP Form

Answer(s): A



Viewing page 15 of 43
Viewing questions 71 - 75 out of 207 questions


Post your Comments and Discuss Salesforce CCM-101 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!