Salesforce B2C Commerce Developer with SFRA (CCD-102) Free Practice Test
Question 1
A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them.
Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?
Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?
Correct Answer: C
Question 2
Which method is efficient and scalable because it uses the product search index rather than searching the database?
Correct Answer: B
Question 3
A developer is importing edits for two different sites into the same sandbox, and is provided with four different files.
Which two XML files should the developer import using the site-specific Merchant Tools import modules, instead of the Administration section import modules?
Choose 2 answers.
Which two XML files should the developer import using the site-specific Merchant Tools import modules, instead of the Administration section import modules?
Choose 2 answers.
Correct Answer: C,D
Question 4
Universal Containers calls the following combination of products "The Basics" and sells the combination as a unique product ID:
One Model 103 container
Five Model 611 container
Tree Model 201 container
The Developer created these three products in the catalog.
What is the next step in Business Manager to create "The Basics" as a combination?
One Model 103 container
Five Model 611 container
Tree Model 201 container
The Developer created these three products in the catalog.
What is the next step in Business Manager to create "The Basics" as a combination?
Correct Answer: C
Question 5
Given the above OCAPI definitions, which permission or permissions apply?


Correct Answer: D
Question 6
A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cart forms. In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.
The code below is the submit button for the ISML markup.

What additional steps must occur before the Digital Developer can begin writing the processing code for this request?

The code below is the submit button for the ISML markup.

What additional steps must occur before the Digital Developer can begin writing the processing code for this request?

Correct Answer: B
Question 7
A digital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.
Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?
Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?
Correct Answer: B
Question 8
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form:
<form ... action = "submit">
<input name ="${dw.web.CSRFProtection.getTokenName()}"
value = "${dw.web.CSRFProtection.generateToken()">
...
<the rest of the Form fields>
...
</form>
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable:
validateRequest
validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
<form ... action = "submit">
<input name ="${dw.web.CSRFProtection.getTokenName()}"
value = "${dw.web.CSRFProtection.generateToken()">
...
<the rest of the Form fields>
...
</form>
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable:
validateRequest
validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
Correct Answer: A
Question 9
Universal Containers wants to change a content slot that is currently configured to display a content asset. Now they want the slot to display the top five selling boxes for the week.
Which two changes need to be made for this to occur? (Choose two.)
Which two changes need to be made for this to occur? (Choose two.)
Correct Answer: A,C
Question 10
Multiple shoppers report slow performance on the Product Details Page.
Which tool can a developer use to view average response times for the Product-Detail controller route?
Which tool can a developer use to view average response times for the Product-Detail controller route?
Correct Answer: A
Question 11
A developer is asked to improve the maintainability of a page by reducing its code repetition.
What are two techniques the developer should implement to achieve this?
Choose 2 answers.
What are two techniques the developer should implement to achieve this?
Choose 2 answers.
Correct Answer: A,D
Question 12
A developer set up a new site with Taxation: Net. However, the business requirements changed and the site now needs to be Taxation:Gross. The Business Manager interface does not give this option.
Which sequence of steps is necessary to change the site to gross taxation?
Which sequence of steps is necessary to change the site to gross taxation?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 13
A developer is given the requirement to add a step to the existing business logic of the registration process. How should the developer modify the route that handles the customer registration?
Correct Answer: B
Question 14
A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.
In which folder should the developer place resource bundles?
In which folder should the developer place resource bundles?
Correct Answer: A