ExamGecko
Home Home / Salesforce / Certified B2C Commerce Developer

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

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
checkout_de.properties in resources folder
A.
checkout_de.properties in resources folder
Answers
B.
checkout.properties in the de locale folder
B.
checkout.properties in the de locale folder
Answers
C.
checkout.properties in the default locale folder
C.
checkout.properties in the default locale folder
Answers
D.
de_checkout.properties in resources folder
D.
de_checkout.properties in resources folder
Answers
Suggested answer: D

A Digital Developer has a new requirement to disable the "Discover" credit card type for all checkouts.

What does the Developer need to change in Business Manager to fulfill this requirement?

A.
Checkout exclusion rules in the Merchant Tools > Site Preferences > Checkout Preferences module.
A.
Checkout exclusion rules in the Merchant Tools > Site Preferences > Checkout Preferences module.
Answers
B.
Credit card exclusion rules in the Merchant Tools > Site Preferences > Payment Preferences module.
B.
Credit card exclusion rules in the Merchant Tools > Site Preferences > Payment Preferences module.
Answers
C.
Credit cards in the Merchant Tools > Ordering > Payment Methods module.
C.
Credit cards in the Merchant Tools > Ordering > Payment Methods module.
Answers
D.
Credit card exclusion rules in the CreditCardType.json configuration file.
D.
Credit card exclusion rules in the CreditCardType.json configuration file.
Answers
Suggested answer: C

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp

A Digital Developer needs to store information temporarily and decides to create a custom object.

Which code creates a custom object?

A.
CustomObject.createCustomObject(CustomObjectType,primaryKey);
A.
CustomObject.createCustomObject(CustomObjectType,primaryKey);
Answers
B.
CustomObject.createCustomObject(primaryKey,CustomObjectType);
B.
CustomObject.createCustomObject(primaryKey,CustomObjectType);
Answers
C.
CustomObjectMgr.createCustomObject(primaryKey);
C.
CustomObjectMgr.createCustomObject(primaryKey);
Answers
D.
CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)
D.
CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)
Answers
Suggested answer: A

The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?

A.
Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
A.
Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answers
B.
Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
B.
Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answers
C.
Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
C.
Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answers
D.
Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
D.
Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answers
Suggested answer: A

Universal Containers wants to give customers the ability to refine product search results by a product custom attribute, weightCapacity.

Which series of steps should a Digital Developer take to show this refinement on the storefront?

A.
Define a sorting rule for weightCapacity, then rebuild the product search index.
A.
Define a sorting rule for weightCapacity, then rebuild the product search index.
Answers
B.
Define a search refinement for weightCapacity, then rebuild the product search index.
B.
Define a search refinement for weightCapacity, then rebuild the product search index.
Answers
C.
Define search-suggestion buckets for weightCapacity, then rebuild the product search index.
C.
Define search-suggestion buckets for weightCapacity, then rebuild the product search index.
Answers
D.
Define a search refinement for weightCapacity, then clear the page cache segment for Search-Show.
D.
Define a search refinement for weightCapacity, then clear the page cache segment for Search-Show.
Answers
Suggested answer: B

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2FSearchandNavigation%2FConfiguringCataloglevelSearchRefinementDefinitions.html

A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API. An example request URL is:

Which resource_id value enables the appropriate resource?

A.
/inventory_lists/*
A.
/inventory_lists/*
Answers
B.
/inventory_lists/**
B.
/inventory_lists/**
Answers
C.
/inventory_list_search
C.
/inventory_list_search
Answers
D.
/products/*
D.
/products/*
Answers
Suggested answer: D

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2F15.6%2Fusage%2FOCAPISettings.html

Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)

A.
Use one style sheet for each ISML decorator template.
A.
Use one style sheet for each ISML decorator template.
Answers
B.
Place CSS outside of templates.
B.
Place CSS outside of templates.
Answers
C.
Compress CSS.
C.
Compress CSS.
Answers
D.
Use inline Javascript.
D.
Use inline Javascript.
Answers
E.
Combine several images into a single image.
E.
Combine several images into a single image.
Answers
Suggested answer: A, C, D

A Digital Developer needs to add logging to the following code:

Which statement logs the HTTP status code to a debug-level custom log file?

A.
logger.getLogger('profile').debug("Error retrieving profile email, Status Code: ", http.statusCode);
A.
logger.getLogger('profile').debug("Error retrieving profile email, Status Code: ", http.statusCode);
Answers
B.
logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
B.
logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
Answers
C.
Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
C.
Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
Answers
D.
Logger.getLogger('profile').debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
D.
Logger.getLogger('profile').debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
Answers
Suggested answer: B

Which three object types can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager? (Choose three.)

A.
Content slots
A.
Content slots
Answers
B.
Images and other static assets
B.
Images and other static assets
Answers
C.
Products
C.
Products
Answers
D.
Folders
D.
Folders
Answers
E.
Content assets
E.
Content assets
Answers
Suggested answer: A, C, D

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FImportExport%2FImportExportObjectCheatsheet.html

Universal Containers recently completed updates to their storefront shopping cart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated users who try to add a coupon are logged out.

The following processing code is found in the Cart.js controller file:

What should the Developer verify to identify the issue?

A.
The CSRF cartridge is included in the site's cartridge path.
A.
The CSRF cartridge is included in the site's cartridge path.
Answers
B.
The form group has the secure attribute set to true.
B.
The form group has the secure attribute set to true.
Answers
C.
The CSRF token is present in the form and is being submitted in the request.
C.
The CSRF token is present in the form and is being submitted in the request.
Answers
D.
The CSRF settings in Business Manager are properly configured.
D.
The CSRF settings in Business Manager are properly configured.
Answers
Suggested answer: C
Total 209 questions
Go to page: of 21