Weekend Special Sale 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale75best

Free Salesforce Comm-Dev-101 Practice Exam with Questions & Answers | Set: 3

Questions 21

There are three logging categories: category1, category1.eu, and category1.us. In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.

The code segment below executes.

varlogger=Logger.getLogger( " loggerFile " , " category1.eu " );

logger.warn( " This is a log message " );

What is the result?

Options:
A.

Logs will be written to the log file with a prefix loggerFile.

B.

Logs will be written to the log file with a prefix custom-loggerFile.

C.

Logs will be written to the log file with a prefix customwarn.

Salesforce Comm-Dev-101 Premium Access
Questions 22

A developer is configuring Payment Methods on a storefront. Which of the following considerations should be kept in mind while configuring payment methods?

Options:
A.

You can ' t delete a default payment method. You can only disable it.

B.

You can add only up to 5 payment methods.

C.

You can ' t drag and drop the column headers to change the sort order.

Questions 23

A developer has these requirements for out-of-stock products:

• Save the SKUs of the out-of-stock products that the customer is interested in.

• Save the customer email regardless if the customer is a guest or registered.

• Email the customer when the product is back-in-stock.

Which step should the developer perform as part of the solution to achieve the requirements?

Options:
A.

Create a new set-of-string type custom attribute to the system object type Profile to save all the SKUs and use the existing email field for the email.

B.

Create a new set-of-string type custom attribute to the system object type Product to save all the customer email addresses for back-in-stock notification.

C.

Create a new custom object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.

Questions 24

What step must a developer take in Business Manager to accept American Express credit cards?

Options:
A.

In Payment Processor, create American Express as a payment type.

B.

In Site Preferences, add American Express as a Payment Preference.

C.

In Payment Methods, enable American Express as a credit card type.

Questions 25

What is the action needed for the content slot to work as intended?

Options:
A.

No; The content slot is rendered correctly.

B.

Yes; The content needs to be configured with a recommender to display products.

C.

Yes; The isloop should be removed because no loops are allowed in a content slot rendering template.

Questions 26

Given a site called RefArch with the settings shown in the screenshot (ID: RefArch, Name: RefArch, Time Zone: Etc/UTC, Default Currency: US Dollar, Taxation: Net, Customer List: RefArch), what must be done for RefArch to use the same customer list as RefArchGlobal?

Options:
A.

Import the RefArchGlobal customer list into the RefArch site.

B.

Enable " Customer List Sharing " in Global Preferences.

C.

Select RefArchGlobal in the dropdown for Customer List.

Questions 27

An instance has custom logging enabled. The log reaches the file size limit.

What happens in this situation?

Options:
A.

The current log file is archived and a new log file is created.

B.

The log file is deleted and a new log file is created.

C.

Logging is suspended for the day.

Questions 28

A developer working on a multi-country site is asked to store country-specific data that drives the creation of a country selector. Examples of the data stored are:

• Pricebook to be used

• Image URL for country flag

The data used in staging also applies in production, but only for this site.

Which approach should the developer take to implement these requirements?

Options:
A.

Extend the Locale System Object to contain the custom data for each country.

B.

Create a replicable, site-specific Custom Object with the custom data for each country.

C.

Create site-specific content assets to store the data for each country.

Questions 29

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?

Options:
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;

Questions 30

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

Options:
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.

Exam Code: Comm-Dev-101
Certification Provider: Salesforce
Exam Name: Salesforce Certified B2C Commerce Developer
Last Update: Sep 20, 2026
Questions: 154

Salesforce Free Exams

Salesforce Free Exams
Examstrack provides free Salesforce exam prep materials and practice tests to support your Salesforce certification goals.