ExamGecko
Ask Question

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

List of questions

Question 71

Report
Export
Collapse

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?

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

Explanation:

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

asked 23/09/2024
Abbas Jabbari
42 questions

Question 72

Report
Export
Collapse

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?

Add layout_type_exclusion in the other asset components json configuration
Add layout_type_exclusion in the other asset components json configuration
Add component_type_inclusion in the layout json configuration
Add component_type_inclusion in the layout json configuration
Add layout_type_inclusion in the target components json configurations
Add layout_type_inclusion in the target components json configurations
Add component_type_exclusions in the layout json configuration
Add component_type_exclusions in the layout json configuration
Suggested answer: B
asked 23/09/2024
Lakshmana Mittadoddi
39 questions

Question 73

Report
Export
Collapse

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

Salesforce Certified B2C Commerce Developer image Question 73 59883 09232024001900000000

What does this code extend?

A middleware script
A middleware script
A controller
A controller
A decorator
A decorator
A model
A model
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

asked 23/09/2024
Cyrom Meryll Santos
36 questions

Question 74

Report
Export
Collapse

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.

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

Explanation:

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

asked 23/09/2024
Venkat Burri
43 questions

Question 75

Report
Export
Collapse

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?

Open the request logs to inspect the caching information
Open the request logs to inspect the caching information
Utilize the debugger to inspect the caching information
Utilize the debugger to inspect the caching information
Use the Storefront Toolkit cache info tool to inspect page components
Use the Storefront Toolkit cache info tool to inspect page components
Inspect the caching properties of the page component in an IDE
Inspect the caching properties of the page component in an IDE
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

asked 23/09/2024
james campbell
38 questions

Question 76

Report
Export
Collapse

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?

Add a Boolean custom attribute to the Store system object
Add a Boolean custom attribute to the Store system object
Configure the existing Store custom object type definition
Configure the existing Store custom object type definition
Adjust the relevant Site Preference in the Stores group
Adjust the relevant Site Preference in the Stores group
Create a new SingleBrandStore custom object configuration
Create a new SingleBrandStore custom object configuration
Suggested answer: D
asked 23/09/2024
Frau Abir Bouassida
34 questions

Question 77

Report
Export
Collapse

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

The remote include portion is not cached, but the rest of the page is cached
The remote include portion is not cached, but the rest of the page is cached
Both the remote include portion and the rest of the page are cached
Both the remote include portion and the rest of the page are cached
The page is cached only for returning customers because of the remote include
The page is cached only for returning customers because of the remote include
The page is not cached because the remote include introduces an uncached portion
The page is not cached because the remote include introduces an uncached portion
Suggested answer: A
asked 23/09/2024
Paul Walker
41 questions

Question 78

Report
Export
Collapse

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?

Locale Payments
Locale Payments
Apple Pay
Apple Pay
Payment Processors
Payment Processors
Payment Methods
Payment Methods
Suggested answer: A
asked 23/09/2024
Kareem Dadoul
43 questions

Question 79

Report
Export
Collapse

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?

initServiceClient
initServiceClient
parseResponse
parseResponse
mockCall
mockCall
createRequest
createRequest
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

asked 23/09/2024
Calin-Alin Stoenescu
41 questions

Question 80

Report
Export
Collapse

The following code performs poorly in the storefront.

Salesforce Certified B2C Commerce Developer image Question 80 59890 09232024001900000000

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

The code performs post-query processing in an inefficient manner. The nested for-loops should be changed to more efficient code.
The code performs post-query processing in an inefficient manner. The nested for-loops should be changed to more efficient code.
The code uses ProductSearchModel, which performs a database search.
The code uses ProductSearchModel, which performs a database search.
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);
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);
The code performs post-query processing, which is inefficient and should be avoided
The code performs post-query processing, which is inefficient and should be avoided
Suggested answer: C
asked 23/09/2024
Ismaiel Al-Mufleh
47 questions
Total 209 questions
Go to page: of 21
Search

Related questions