Month End Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: newyear

Salesforce Comm-Dev-101 - Salesforce Certified B2C Commerce Developer

Page: 4 / 5
Total 154 questions

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?

A.

In Site Preferences, check the box for Enable custom logging in Request Log.

B.

In Custom Log Settings, activate the logging category at DEBUG level.

C.

In Global Preferences, check the box for Enable custom logging in Request Log.

A developer is asked to improve a page ' s maintainability by reducing its code repetition.

Which technique should the developer implement to achieve this?

A.

Implement template decorators paired with replace tags.

B.

Require and render templates with < isscript > tags.

C.

Embed partial files using ISML expressions.

What should a developer do to ensure that the gift vouchers are always available?

A.

Manually set the inventory to a high number.

B.

Set StockLevel = maxAllocation for the product.

C.

Check the perpetual flag in the product inventory record.

Which object type can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager?

A.

Content assets

B.

Content slots

C.

Products

To build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?

A.

npm run compile:js, npm run compile:html, npm run clean

B.

npm run compile:js, npm run compile:scss, npm run compile:html

C.

npm run compile:js, npm run compile:scss, npm run compile:fonts

A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?

A.

The cartridge containing the script is not in the site ' s cartridge path.

B.

The script debugging session is not active.

C.

The script is from a third-party cartridge and hence does not allow setting breakpoints.

Business Manager has the configuration:

• Active Log category is " root "

• Log level of INFO

The code below executes.

varlog=Logger.getLogger( " products " , " export " );

log.info( " This is important information " );

Using this information, what is the beginning of the filename in which the log will be written?

A.

products

B.

custom-products

C.

custom-export

What step should a developer take to troubleshoot code changes not appearing on the Storefront?

A.

Check the Business Manager site cartridge path.

B.

Check that the correct code version is selected.

C.

Check that the search index was recently rebuilt.

A merchant uploads an image using the Content Image Upload module of Business Manager.

Which module can the merchant use to display the image on the Storefront?

A.

Content slots

B.

Product images

C.

Payment methods

Given a job step configured in the job that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status doesn ' t represent an error condition. Which code snippet completes this requirement?

A.

this.status= ' NO_FILES_FOUND ' ;returnthis;

B.

varStatus=require( ' dw/system/Status ' );returnnewStatus(Status.OK, ' NO_FILES_FOUND ' );

C.

varstatus={success: ' OK ' ,message: ' NO_FILES_FOUND ' };returnstatus;