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: 4

Questions 31

A developer is inspecting the weekly service status report for a critical internally-hosted web service and notices there are too many instances of unavailability.

Which solution can reduce service unavailability?

Options:
A.

Increase the web service time out.

B.

Change the code that sets the throwOnError attribute of the service to be true.

C.

Modify the code that makes the request to the external service to be wrapped in a try/catch block.

Salesforce Comm-Dev-101 Premium Access
Questions 32

Given the requirements:

• To integrate with an external web service using HTTP requests.

• To create a service for this purpose with the Service framework using the LocalServiceRegistry class.

• To test the service before the external service provider makes the API available.

Which solution allows the developer to satisfy the requirements?

Options:
A.

Create a service and a Sitepreference that induce the service to respond with a mock response using a conditional.

B.

Create a service and implement the mockFull callback and a sitepreference to enable or disable the mock response.

C.

Create a service and implement the mockFull callback and set the service mode to mock.

Questions 33

Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object?

Options:
A.

varCustomObject=dw.object.CustomObjectMgr.createCustomObject( ' NewsletterSubscription ' ,newsletterForm.email.value);

B.

varCustomObject=dw.object.CustomObjectMgr.createCustomObject(newsletterForm.email.value, ' NewsletterSubscription ' );

C.

varCustomObject=dw.object.CustomObjectMgr.createCustomObject( ' NewsletterSubscription ' , ' email ' ,newsletterForm.email.value);

Questions 34

A developer needs to update the package.json file so that it points to the hook file for a cartridge, using the hooks keyword.

Which snippet works correctly when added to the file?

Options:
A.

{ " hooks " : " ./cartridge/scripts/hooks.json " }

B.

{ hooks: ./cartridge/scripts/hooks.json }

C.

{ " hooks " : " ./scripts/hooks.json " }

Questions 35

A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page cache is cleaned.

Given the above requirement, where should the developer create that partition in Business Manager?

Options:
A.

Administration > Sites > Manage Sites > Site > Cache

B.

Operations > Site > Manage Sites > Cache

C.

Site > Site Preferences > Cache

Questions 36

A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.

Which B2C feature should the developer use to achieve the request?

Options:
A.

Use the service credential URL field.

B.

Use a Globalpreference dedicated for the service URL.

C.

Use the service status area, set the override URL checkbox, and then populate the URL field with the required one.

Questions 37

Which line of code should a developer add for custom category debug logging?

Options:
A.

Logger.customLogger( ' contact ' ).debug( " Contact service responded with OK. " );

B.

Logger.debug( ' Contact service responded with OK. ' );

C.

Logger.getLogger( " contact " ).debug( " Contact service responded with OK. " );

Questions 38

Given the sandbox with:

• Service configured and assigned to its profile and credential

• A code version that uses that service

And given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second. Which configuration should the developer perform?

Options:
A.

Set the service as limited and change the services profile site preferences with the required values.

B.

Set the rate limiter in the service profile and configure its values with the ones required.

C.

Set a new quota limit for the service profile and assign the service to it.

Questions 39

A client that sells to multiple countries in Europe needs to disable Apple Pay for Denmark.

Which Business Manager module is used to achieve this requirement?

Options:
A.

Payment Methods

B.

Payment Processors

C.

Locale Payments

Questions 40

A developer needs to ensure that a specific product is displayed only to customers in a certain region. What is the best approach to achieve this?

Options:
A.

Use a custom attribute on the product to specify the region and filter products based on this attribute.

B.

Create a separate catalog for each region and assign products accordingly.

C.

Implement a script that checks the customer ' s location and displays products based on that.

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.