ExamGecko
Home Home / Salesforce / Certified B2C Commerce Developer

Salesforce Certified B2C Commerce Developer Practice Test - Questions Answers, Page 15

Question list
Search
Search

List of questions

Search

Related questions











A developer has a B2C site and a merchant requirement to add a new locale to it.

What are the steps to enable the locale in the Storefront?

A.
Update the language under the Organization Profile section.
A.
Update the language under the Organization Profile section.
Answers
B.
Create, configure, and activate the locale under Global Preferences section.
B.
Create, configure, and activate the locale under Global Preferences section.
Answers
C.
Add an alias for the new locale and then create and configure the locale itself under Global Preferences section.
C.
Add an alias for the new locale and then create and configure the locale itself under Global Preferences section.
Answers
D.
Create and configure the locale under Global Preferences section and activate it in Site Preferences.
D.
Create and configure the locale under Global Preferences section and activate it in Site Preferences.
Answers
Suggested answer: B

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Flocalization%2Fb2c_locales.html

Given a job step configured in the steptype.json that calls a script module, a developer needs to add a custom status code "NO_FILES_FOUND" in the script. The status does not represent an error condition.

Which code snippet completes this requirement?

A.
var Status = require ('dw/system/Status');return new Status (Status.OK, 'NO_FILES_FOUND');
A.
var Status = require ('dw/system/Status');return new Status (Status.OK, 'NO_FILES_FOUND');
Answers
B.
this.status = 'NO_FILES_FOUND'; return this;
B.
this.status = 'NO_FILES_FOUND'; return this;
Answers
C.
return 'NO_FILES_FOUND';
C.
return 'NO_FILES_FOUND';
Answers
D.
var status = {success: 'OK', message: 'NO_FILES_FOUND'}; return status;
D.
var status = {success: 'OK', message: 'NO_FILES_FOUND'}; return status;
Answers
Suggested answer: A

A developer is asked to create a new service instance that will call a remote web service.

Which method should the developer use to create the service instance?

A.
dw.svc.webref.getDefaultService()
A.
dw.svc.webref.getDefaultService()
Answers
B.
dw.svc.LocalServiceRegistry.getDefaultService()
B.
dw.svc.LocalServiceRegistry.getDefaultService()
Answers
C.
dw.svc.LocalServiceRegistry.createService()
C.
dw.svc.LocalServiceRegistry.createService()
Answers
D.
dw.svc.LocalServiceInstance.createService()
D.
dw.svc.LocalServiceInstance.createService()
Answers
Suggested answer: C

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

A.
module.exports = render;
A.
module.exports = render;
Answers
B.
module.exports = server.exports();
B.
module.exports = server.exports();
Answers
C.
module.exports.render = render;
C.
module.exports.render = render;
Answers
D.
base.render = render;
D.
base.render = render;
Answers
Suggested answer: D

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 two.)

A.
Check that the search index was recently rebuilt.
A.
Check that the search index was recently rebuilt.
Answers
B.
Check the Business Manager site cartridge path.
B.
Check the Business Manager site cartridge path.
Answers
C.
Check that the correct code version is selected.
C.
Check that the correct code version is selected.
Answers
D.
Check the Storefront site cartridge path.
D.
Check the Storefront site cartridge path.
Answers
Suggested answer: A, D

What is accomplished by the code below?

<isinclude url="${URLUtils.url('Account-Header', 'mobile', true)}" />

A.
Performs a local include from the Account-Header endpoint.
A.
Performs a local include from the Account-Header endpoint.
Answers
B.
Performs a remote include from the Account-Header endpoint.
B.
Performs a remote include from the Account-Header endpoint.
Answers
C.
Creates a link to the Account-Header endpoint that allows mobile navigation.
C.
Creates a link to the Account-Header endpoint that allows mobile navigation.
Answers
D.
Performs a call to the Account-Header endpoint to allow mobile navigation.
D.
Performs a call to the Account-Header endpoint to allow mobile navigation.
Answers
Suggested answer: A

A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below to the setupContentSearch function in the searchHelpers.js file.

apiContentSearchModel.setFilteredByFolder(false);

What does this achieve?

A.
Enables searching to find Page Designer content assets that are not in folders.
A.
Enables searching to find Page Designer content assets that are not in folders.
Answers
B.
Prevents Page Designer pages and components from being searchable.
B.
Prevents Page Designer pages and components from being searchable.
Answers
C.
Extends the ContentSearchModel to allow the folder filter.
C.
Extends the ContentSearchModel to allow the folder filter.
Answers
D.
Filters Page Designer search results into separate page and component folders.
D.
Filters Page Designer search results into separate page and component folders.
Answers
Suggested answer: A

HOTSPOT

Given the following conditions:

A site export file with a copy of the Storefront data for a custom site

A sandbox with the custom site code, but no Storefront data

A requirement for a working copy of SFRA for development reference

A developer is assigned three tasks to perform in Business Manager. In what sequence should the developer perform the tasks, so that the custom site displays the products as intended?

Hot Area:

Answer:

Question 148
Correct answer: Question 148

A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.

How might this issue be resolved to ensure a better customer journey?

A.
In Business Manager, select Show Orderable Products Only at the root level to hide any products that are currently out of stock.
A.
In Business Manager, select Show Orderable Products Only at the root level to hide any products that are currently out of stock.
Answers
B.
In Business Manager, enter a higher boost factor for availability in Searchable Attributes.
B.
In Business Manager, enter a higher boost factor for availability in Searchable Attributes.
Answers
C.
In Business Manager, set an availability low ranking threshold in Search Preferences.
C.
In Business Manager, set an availability low ranking threshold in Search Preferences.
Answers
D.
Create a job that sets all unavailable products to be hidden. Schedule the job to run hourly to clean up the catalog on a regular basis.
D.
Create a job that sets all unavailable products to be hidden. Schedule the job to run hourly to clean up the catalog on a regular basis.
Answers
Suggested answer: D

A merchant has asked their development team to add a new site.

Which two tasks are essential for correct site configuration prior to launch? (Choose 2 answers)

A.
Assign a default payment processor.
A.
Assign a default payment processor.
Answers
B.
Assign a default payment method.
B.
Assign a default payment method.
Answers
C.
Assign a default currency.
C.
Assign a default currency.
Answers
D.
Assign a default payment type.
D.
Assign a default payment type.
Answers
E.
Assign the appropriate taxation type.
E.
Assign the appropriate taxation type.
Answers
Suggested answer: C, E
Total 209 questions
Go to page: of 21