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

Developers Comm-Dev-101 Full Course Free

Page: 9 / 12
Total 154 questions

Salesforce Certified B2C Commerce Developer Questions and Answers

Question 33

A developer has a requirement to display a banner in two different category pages.

Which snippet of code should the developer add to a template to allow the merchant to configure each independently?

Options:

A.

< isbanner id= " category-banner " description= " Categories Banner " context= " category " context-object= " ${pdict.ProductSearchResult.category} " / >

B.

< isslot id= " category-banner " description= " Categories Banner " context= " category " context-object= " ${pdict.ProductSearchResult.category} " / >

C.

< iscontent context= " global " description= " Categories Banner " id= " category-banner " context-object= " ${pdict.ProductSearchResult.category} " / >

Question 34

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?

Options:

A.

The category does not contain available products.

B.

The Storefront catalog is offline.

C.

The categories are not sorted.

Question 35

How should a developer achieve the task of not accepting certain asset components in a new Page Designer layout component?

Options:

A.

Addlayout_type_exclusionin the other asset components JSON configuration.

B.

Addcomponent_type_inclusionin the layout JSON configuration.

C.

Addcomponent_type_exclusionsin the layout JSON configuration.

Question 36

A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.

Which snippet of code should be used?

Options:

A.

Logger.warn( ' The current product is {0} with name {1} ' ,myProduct.getID(),myProduct.getName());

B.

Logger.warn( ' The current product is ${myProduct.getID()} with name ${myProduct.getName()} ' );

C.

Logger.warn( ' The current product is {0} with name {1} ' ).context(myProduct.getID(),myProduct.getName());

Page: 9 / 12
Total 154 questions