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: 3 / 5
Total 154 questions

A developer is working on a feature that requires the use of a third-party API. What is the best practice for handling API responses in Salesforce B2C Commerce?

A.

Ignore error responses and proceed with the default behavior.

B.

Log all responses for debugging purposes and handle errors gracefully.

C.

Always return a success response to the user, regardless of the API response.

A developer needs to render a Page Designer page in JSON format. What is the correct syntax?

A.

PageMgr.serializePage(pageID, {parameter1:value1});

B.

JSON.stringify(PageMgr.renderPage(pageID, {parameter1:value1}));

C.

PageMgr.renderPage(pageID, {parameter1:value1})

A developer is asked to create a controller endpoint that will be used in a client-side AJAX request. Its purpose is to display updated information to the user when the request is completed, without otherwise modifying the appearance of the current page.

According to SFRA practices, which method best supports this objective?

A.

res.json()

B.

res.render()

C.

res.print()

A client that sells sport shoes wants to allow its customers to filter products based on the intended activity (such as tennis, jogging, basketball, etc.), but this particular information is not present in the current catalog.

Which two actions does a developer need to perform in a B2C Commerce instance to allow this to happen?

A.

Create a new Product custom attribute AND add a new Search Refinement Definition for the desired categories.

B.

Create a new ProductRefinement custom attribute AND add a new Search Refinement Definition for the desired categories.

C.

Create a new Product custom attribute AND add a new viewtype in the storefront catalog settings.

A developer is is configuring Shipping Methods on a storefront. Which of the following considerations must be kept in mind while configuring shipping methods.

A.

You can exclude products that can ' t be shipped with a particular shipping method

B.

You can ' t exclude addresses that aren ' t used by a particular shipping method

C.

You can ' t define surcharge shipping costs for specific product groups.

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

Why might the categories not be visible?

A.

The category does not contain available products.

B.

The Storefront catalog is offline.

C.

The categories are not sorted.

Given the following snippet:

server.append( ' Show ' ,function(req,res,next) {

According to SFRA, which option can a Developer use to complete the code above and provide data to the response using a controller?

A.

res.setViewData({data:myDataObject});res.render( ' /content/myPage ' );next();});

B.

res.viewData={data:myDataObject};res.render( ' /content/myPage ' );next();});

C.

res.render( ' /content/myPage ' );next();}).append({data:myDataObject});

A developer needs to ensure that a specific product is always available for purchase, regardless of inventory levels. What should the developer do in Business Manager?

A.

Set the product to " Always Available. "

B.

Set the product ' s inventory to a high number.

C.

Enable the " Perpetual " flag for the product.

A developer implements the necessary code for a new Page Designer component.

What is the purpose of the JSON metadata definition file the developer creates?

A.

Defines regions within the component type.

B.

Defines the responsive layout of the rendered template.

C.

Defines the business and rendering logic of the component required by the merchant.

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

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.