ExamGecko
Home Home / Salesforce / Certified B2C Commerce Developer

Salesforce Certified B2C Commerce Developer Practice Test - Questions Answers, Page 8

Question list
Search
Search

List of questions

Search

Related questions











A developer needs to share their sandbox data with a colleague working on the same realm. What is the best practice to share data between two environments?

A.
Perform a site export and a local site import
A.
Perform a site export and a local site import
Answers
B.
Perform a data replication from one sandbox to the other
B.
Perform a data replication from one sandbox to the other
Answers
C.
Perform a site export using the global export directory
C.
Perform a site export using the global export directory
Answers
D.
Perform a site export using the remote archive
D.
Perform a site export using the remote archive
Answers
Suggested answer: A

Explanation:

Reference: https://trailhead.salesforce.com/en/content/learn/modules/architecture-of-commerce-cloud-digital/cc-digital-configuration

A developer is given a task to implement a new Page Designer layout component that doesn't accept certain asset components.

How should the developer achieve the above task?

A.
Add layout_type_exclusion in the other asset components json configuration
A.
Add layout_type_exclusion in the other asset components json configuration
Answers
B.
Add component_type_inclusion in the layout json configuration
B.
Add component_type_inclusion in the layout json configuration
Answers
C.
Add layout_type_inclusion in the target components json configurations
C.
Add layout_type_inclusion in the target components json configurations
Answers
D.
Add component_type_exclusions in the layout json configuration
D.
Add component_type_exclusions in the layout json configuration
Answers
Suggested answer: B

Given a file in a plug-in cartridge with the following code:

What does this code extend?

A.
A middleware script
A.
A middleware script
Answers
B.
A controller
B.
A controller
Answers
C.
A decorator
C.
A decorator
Answers
D.
A model
D.
A model
Answers
Suggested answer: B

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC3/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fsfra%2Fb2c_sfra_modules.html

Given the customer basket described below:

A customer has an existing basket that consists of multiple items.

One of the items is identified as a gift item by an attribute at the product line item.

The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.

Four hooks are required to make the modification, beginning with modifyGETResponse and ending with validateBasket.

A.
dw.ocapi.shop.basket.modifyGETResponse
A.
dw.ocapi.shop.basket.modifyGETResponse
Answers
B.
-- missing hook --
B.
-- missing hook --
Answers
C.
-- missing hook --
C.
-- missing hook --
Answers
D.
dw.ocapi.shop.basket.validateBasketWhat are the two missing hooks on the middle? (Choose two.)
D.
dw.ocapi.shop.basket.validateBasketWhat are the two missing hooks on the middle? (Choose two.)
Answers
E.
dw.ocapi.shop.basket.shipment.afterDELETE
E.
dw.ocapi.shop.basket.shipment.afterDELETE
Answers
F.
dw.ocapi.shop.basket.shipment.beforePOST
F.
dw.ocapi.shop.basket.shipment.beforePOST
Answers
G.
dw.ocapi.shop.basket.shipment.beforePATCH
G.
dw.ocapi.shop.basket.shipment.beforePATCH
Answers
H.
dw.ocapi.shop.basket.shipment.beforeDELETE
H.
dw.ocapi.shop.basket.shipment.beforeDELETE
Answers
Suggested answer: B, D

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC4/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2Fcurrent%2Fusage%2FHooks.html

A merchant reports that a particular landing page loads slowly. As a result, there is a significantly higher visitor departure rate in the analytics that appears to correlate with this. They anticipate this will impact revenues and want to resolve as soon as possible.

In order to diagnose and remedy this, the merchant asks their developer to investigate caching settings on the page in an attempt to determine the root cause.

How can the developer quickly inspect the page components to understand the caching?

A.
Open the request logs to inspect the caching information
A.
Open the request logs to inspect the caching information
Answers
B.
Utilize the debugger to inspect the caching information
B.
Utilize the debugger to inspect the caching information
Answers
C.
Use the Storefront Toolkit cache info tool to inspect page components
C.
Use the Storefront Toolkit cache info tool to inspect page components
Answers
D.
Inspect the caching properties of the page component in an IDE
D.
Inspect the caching properties of the page component in an IDE
Answers
Suggested answer: C

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC3/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fstorefront_toolkit%2Fb2c_storefront_toolkit_tools.html

A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them.

Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?

A.
Add a Boolean custom attribute to the Store system object
A.
Add a Boolean custom attribute to the Store system object
Answers
B.
Configure the existing Store custom object type definition
B.
Configure the existing Store custom object type definition
Answers
C.
Adjust the relevant Site Preference in the Stores group
C.
Adjust the relevant Site Preference in the Stores group
Answers
D.
Create a new SingleBrandStore custom object configuration
D.
Create a new SingleBrandStore custom object configuration
Answers
Suggested answer: D

Given a template rendered by a controller with caching and a remote include without caching, which situation applies?

A.
The remote include portion is not cached, but the rest of the page is cached
A.
The remote include portion is not cached, but the rest of the page is cached
Answers
B.
Both the remote include portion and the rest of the page are cached
B.
Both the remote include portion and the rest of the page are cached
Answers
C.
The page is cached only for returning customers because of the remote include
C.
The page is cached only for returning customers because of the remote include
Answers
D.
The page is not cached because the remote include introduces an uncached portion
D.
The page is not cached because the remote include introduces an uncached portion
Answers
Suggested answer: A

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?

A.
Locale Payments
A.
Locale Payments
Answers
B.
Apple Pay
B.
Apple Pay
Answers
C.
Payment Processors
C.
Payment Processors
Answers
D.
Payment Methods
D.
Payment Methods
Answers
Suggested answer: A

A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by the dw.svc.ServiceCallback class.

Which callback method is required only when invoking a SOAP service?

A.
initServiceClient
A.
initServiceClient
Answers
B.
parseResponse
B.
parseResponse
Answers
C.
mockCall
C.
mockCall
Answers
D.
createRequest
D.
createRequest
Answers
Suggested answer: A

Explanation:

https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fweb_services%2Fb2c_create_service_callbacks.html

The following code performs poorly in the storefront.

Considering best practices, what is the main problem with this code?

A.
The code performs post-query processing in an inefficient manner. The nested for-loops should be changed to more efficient code.
A.
The code performs post-query processing in an inefficient manner. The nested for-loops should be changed to more efficient code.
Answers
B.
The code uses ProductSearchModel, which performs a database search.
B.
The code uses ProductSearchModel, which performs a database search.
Answers
C.
The code invokes dw.catalog.ProductSearchModel directly. It is more efficient to use the following code and then invoke the method. var ProductSearchModel = require (dw.catalog.ProductSearchModel);
C.
The code invokes dw.catalog.ProductSearchModel directly. It is more efficient to use the following code and then invoke the method. var ProductSearchModel = require (dw.catalog.ProductSearchModel);
Answers
D.
The code performs post-query processing, which is inefficient and should be avoided
D.
The code performs post-query processing, which is inefficient and should be avoided
Answers
Suggested answer: C
Total 209 questions
Go to page: of 21