Salesforce Manage and Merchandise a B2C Commerce Cloud Store - Extended - CCM-101 Exam Practice Test

Question 1
A Newsletter controller contains the following route:
Server.post('Subscribe', function (req,res,next){
var newsletterForm = server.forms.getForm('newsletter');var CustomObjectMgr = require('dw/object/CustomObjectMgr'); if(newsletterForm.valid){ try{ var CustomObject = CustomObjectMgr.createCustomObejct('NewsletterSubscription', newsletterform.email.value); CustomObject.custom.firstName = newsletterForm.fname.value; CustomObject.custom.lastName = newsletterForm.lname.value;-
} catch(e){
//Catch error here
}
}
next();
});
Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template when the subscription form is correctly submitted?

Correct Answer: D
Question 2
A developer has custom debug statements in a script, but the messages are not showing up in the Storefront Toolkit Request Log.
Which step needs to be completed to get the messages to appear in the Request Log?

Correct Answer: B
Question 3
Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).
To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?

Correct Answer: D
Question 4
A retailer notices that the Account Addresses page is showing the wrong shopper's address.
Which tool should the developer start with to identify the issue?

Correct Answer: C
Question 5
Below is a form definition snippet from the newsletter.xml file:
<?xml version="1.0"?>
<form xmlns=http://www.demandware.com/xml/form/2008-04-15>
<field formid="email" lavel="Email" type="String" mandatory="True" max-length="50" />
</form>
Which line of code creates a JSON object to contain the form data?

Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 6
Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.
To which file should the developer add German string values?

Correct Answer: A
Question 7
A client has two B2C Commerce sites in the same instance: one for the U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in the U.S., but only three products can be wrapped in the European region.
How should a developer allow the merchant to independently adjust this number?

Correct Answer: B
Question 8
Given the following conditions:
Site export file with a copy of the Storefront data for a custom site
Sandbox with the custom site code, but no Storefront data
Requirement for a working copy of SFRA for development reference
A developer is assigned the following Business manager tasks:
A) Import the custom Site using Site Import/Export
B) Import the SFRA Demo Sites using Site Import/Export
C) Rebuild the custom Site search indexes
In what sequence should the developer perform the tasks, so that the custom Site displays the products as intended?

Correct Answer: B
Question 9
Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.
Which two additional steps should the developer take to troubleshoot this problem?
Choose 2 answers

Correct Answer: B,C
Question 10
A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.
Which three things should the Digital Developer verify to ensure the cartridges are uploaded? (Choose three.)

Correct Answer: B,D,E
Question 11
A merchant requires that an existing section of the Site become editable from the Business Manager, so that they can modify it independently of the developer.
Which of these is an important factor for a developer to consider when choosing the appropriate solution between a content slot and a Page Designer component?

Correct Answer: D
Question 12
The Home-Show route uses this middleware chain:

The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:

Assuming the code is correct on both functions, what is the expected result?

Correct Answer: B