ExamGecko
Home Home / Salesforce / Certified B2C Commerce Developer

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

Question list
Search
Search

List of questions

Search

Related questions











A developer needs to check for product inventory in all inventory lists using the Open Commerce API.

An example request URL is:

http://refarch.demandware.net/dw/data/v18_3/inventory_lists/ecom-inventory/product_inventory_records/00883408601

Which property should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?

A.
client_id
A.
client_id
Answers
B.
resource_id
B.
resource_id
Answers
C.
methods
C.
methods
Answers
D.
ecom-inventory
D.
ecom-inventory
Answers
Suggested answer: B

A developer has custom debug statements in a script, but the messages are not showing up in the Storefront Toolkit Request Lo.

Which step needs to be completed to get the messages to appear in the Request Log?

A.
In Custom Log Settings, activate the logging category at DEBUG level
A.
In Custom Log Settings, activate the logging category at DEBUG level
Answers
B.
In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files
B.
In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files
Answers
C.
In Site Preferences, check the box for Enable custom logging in Request Log
C.
In Site Preferences, check the box for Enable custom logging in Request Log
Answers
D.
In Global Preferences, check the box for Enable custom logging in Request Log
D.
In Global Preferences, check the box for Enable custom logging in Request Log
Answers
Suggested answer: B

Explanation:

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

There is an existing job that captures and sends a report of all the SFCC orders captured in a day for North America at 12:00 AM EST. The developer is asked to also send another report for all the orders placed for Europe at 12:00 AM

UTC.

How should a developer achieve both of these requirements?

A.
Use a flow and set up execution of both job steps at the specified time
A.
Use a flow and set up execution of both job steps at the specified time
Answers
B.
Create a new job specific to Europe to run at the specified time
B.
Create a new job specific to Europe to run at the specified time
Answers
C.
Add a new job step to the existing North America job to capture and send a report for all these Europe orders
C.
Add a new job step to the existing North America job to capture and send a report for all these Europe orders
Answers
D.
Modify the existing Job and add site-specific job run-times to the Scheduling tab
D.
Modify the existing Job and add site-specific job run-times to the Scheduling tab
Answers
Suggested answer: D

Given the above OCAPI definitions, which permission or permissions apply?

A.
Allows external applications to update coupons
A.
Allows external applications to update coupons
Answers
B.
Allows external applications to create, update, and delete coupons
B.
Allows external applications to create, update, and delete coupons
Answers
C.
Allows external applications to create coupons
C.
Allows external applications to create coupons
Answers
D.
Allow external applications to create, update, and delete both coupons and coupon codes
D.
Allow external applications to create, update, and delete both coupons and coupon codes
Answers
Suggested answer: A

Given a customer environment configured with only the en_CA locale and the following new requirements:

To add a new locale for fr_CA

To localize the address form with the new locale

To make the localization usable even for new possible French locales, such as fr_FR

And given the portion of form XML definition contained in the form file cartridge/forms/default/address.xml:

What is the right place to add the fr_CA translation for the country field label?

A.
/cartridge/templates/resources/address_fr_CA.properties
A.
/cartridge/templates/resources/address_fr_CA.properties
Answers
B.
/cartridge/templates/resources/forms_fr.properties
B.
/cartridge/templates/resources/forms_fr.properties
Answers
C.
/cartridge/forms/resources/address_fr.properties
C.
/cartridge/forms/resources/address_fr.properties
Answers
D.
/cartridge/templates/resources/fr/forms.properties
D.
/cartridge/templates/resources/fr/forms.properties
Answers
Suggested answer: A

Business Manager has the configuration:

Active Log category is "root" Log level of WARN The code below is executing:

var log = Logger.getLogger("products");

Using this information, which two logs will be written? (Choose two.)

A.
log.warn("This is a warn message");
A.
log.warn("This is a warn message");
Answers
B.
log.error("This is an error message");
B.
log.error("This is an error message");
Answers
C.
log.info("This is an info message");
C.
log.info("This is an info message");
Answers
D.
log.debug("This is a debug message");
D.
log.debug("This is a debug message");
Answers
Suggested answer: A, C

The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the Storefront site, the category is not visible.

What are two possible reasons? (Choose two.)

A.
The category does not contain available products
A.
The category does not contain available products
Answers
B.
The category is not sorted
B.
The category is not sorted
Answers
C.
The category is offline
C.
The category is offline
Answers
D.
The Storefront catalog is offline
D.
The Storefront catalog is offline
Answers
Suggested answer: A, C

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC3/index.jsp?topic=%2Fcom.demandware.dochelp%2FLegacyDevDoc%2FCategoriesdonotshowinstorefront.html

A developer customized the Cart-Show controller route with a LINK cartridge that adds social media data. There is a new requirement to add a dataLayer object to the Cart-Show controller route.

How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?

A.
Replace the existing viewData variable with the dataLayer object in the Cart-Show controller route
A.
Replace the existing viewData variable with the dataLayer object in the Cart-Show controller route
Answers
B.
Replace the Cart-Show controller route in client cartridge and add dataLayer object to the viewData variable
B.
Replace the Cart-Show controller route in client cartridge and add dataLayer object to the viewData variable
Answers
C.
Replace the Cart-Show controller route in client cartridge and add dataLayer object to the viewData variable. Ensure that the client cartridge is on the left of the LINK cartridge in cartridge path
C.
Replace the Cart-Show controller route in client cartridge and add dataLayer object to the viewData variable. Ensure that the client cartridge is on the left of the LINK cartridge in cartridge path
Answers
D.
Append Cart-Show controller route in the client cartridge and add dataLayer object to the viewData variable
D.
Append Cart-Show controller route in the client cartridge and add dataLayer object to the viewData variable
Answers
Suggested answer: C

A developer configures the dw.json file and needs to fill in the necessary parameters to complete the task.

Which three parameters are required when using npm scripts? (Choose three.)

A.
Username/Password
A.
Username/Password
Answers
B.
Code Version
B.
Code Version
Answers
C.
Site ID
C.
Site ID
Answers
D.
CSRF Token
D.
CSRF Token
Answers
E.
Hostname
E.
Hostname
Answers
Suggested answer: B, C, D

A developer has a sandbox with code to log a message during execution, and the following code:

var Logger = require('dw/system/Logger'); Logger.info(message);

After the code executes, the developer does not see any log file with the message in the WebDAV folder.

Which task does the developer need to perform to correct this issue?

A.
Set the logging global preference to true
A.
Set the logging global preference to true
Answers
B.
Set the log retention to a value higher than 0
B.
Set the log retention to a value higher than 0
Answers
C.
Request that the developer's account be given permission to the Log Center of the current realm
C.
Request that the developer's account be given permission to the Log Center of the current realm
Answers
D.
Set the root log level to debug
D.
Set the root log level to debug
Answers
Suggested answer: B
Total 209 questions
Go to page: of 21