Pass the Salesforce Developers B2C-Commerce-Developer Questions and answers with CertsForce

Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions
Questions # 1:

Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow. This new attribute needs to be included as part of the standard order export.

Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?

Options:

A.

• Add the new attribute to the "Order" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Order" object.


B.

• Modify the "COPIaceOrder" controller to update a CSV file in the IMPEX WebDAV directory with the order ID and comments.• Modify the order export process to read information in the CSV file and include it as part of the export.


C.

• Add the new attribute to the "Customer" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Customer" object.


D.

• Create a new custom object type for order comments that contains the attributes: order ID and comments.• Modify the "COPIaceOrder" controller to create a new order comments custom object upon order completion.


Expert Solution
Questions # 2:

A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in orderto decide whether to render a template or redirect the user to a different page.

According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?

Options:

A.

Define a new middleware function and use it in the existing routes.


B.

Append a new function to all the existing routes with the server module.


C.

Replace the existing routes by creating a controller in separate new cartridge.


D.

Use the superModule property in the existing routes to extend their functionality.


Expert Solution
Questions # 3:

A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.

In which folder should the developer place resource bundles?

Options:

A.

templates/de


B.

templates/default


C.

templates/resources


D.

templates/default/resources


Expert Solution
Questions # 4:

A developer is writing a server side script that needs to maintain state across calls. The persistent

information needed includes these items.

• The current customer

• Whether or not the customer is authenticated

• The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that

follows best practice?

Options:

A.

Use a non-replicable Custom Object to store the information temporarily.


B.

Use the Session class in the B2C Commerce api.


C.

Use an SFRAcontroller, because it runs server-side, the state is automatically maintained


D.

Use a client-side cookie to store the information for the session duration.


Expert Solution
Questions # 5:

A Digital Developer has a site export file on their computer that needs to be imported into their sandbox.

How should the developer update their sandbox with the data in this file?

Options:

A.

Connect and import the file using the remote option within the Site Import & Export Business Manager module.


B.

Upload and import the file using the local option within the Site Import & Export Business Manager module.


C.

Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX Studio.


D.

Upload the file to the Static WebDAV directory and import using the Import & Export Business Manager module.


Expert Solution
Questions # 6:

A Digital Developer is working in a sandbox on a site named test-site using thedomain test.demandware.net. The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.

By default, which URL format is a proper Open Commerce API for Sandbox?

Options:

A.

https://test.demandware.com/dw/shop/products/M1355?client_id=aaa...


B.

https://www.test.com/s/test-site/sfc/shop/products/M1355?client_id=aaa...


C.

https://test.demandware.net/s/test-site/dw/shop/v18_3/products/M1355?client_id=aaa...


D.

https://www.test.com/dw/shop/v18_3/products/M1355?client_id=aaa...


Expert Solution
Questions # 7:

A merchant has a requirement to sell a combination of four existing products with a unique product ID.

This collection will be known as ‘Our Top Combo’, and isbase don the merchant’s trading information that

shows this combination to be in high demand.

What does the developer need to do next to fulfill this requirement?

Options:

A.

Create a unique produce to called ‘Our Top Combo’ and add the four products into the Product Bundlestab.


B.

Create a Content Slot with Content Type = Product and add the four component products into that slot.


C.

Create a Product Set called ‘Our Top Combo’ and add the products into the set.


D.

Create a recommendation rule associating the fourproducts as a recommendation group.


Expert Solution
Questions # 8:

A developer has configured the following log levels for categories & sub categories as

WARN logging is enabled for 'product’ and DEBUG for "product.import"

What will be the log level used for various categories and sub-categories?

Options:

A.

WARN and ERROR are lugged for product" and all its subcategories. For thesubcategory 'product.import' DEBUG and INFO are also logoed


B.

WARN and ERROR are logged fix product' and all its subcategories. For the subcategory’’ product.import* DEBUG and INFO are not logged.


C.

WARN and FRROR ate lugged for product" and all its subcategories.


Expert Solution
Questions # 9:

A merchant has a content slot on a page that currently displays products based on thetop sellers for the current week. The merchant wants to change this functionality. They want to have the slot render a specific content asset so that the content experience is more personalized to the visitors.

Which two actions are necessary to make thischange?

Options:

A.

Change the content type AND the rendering template in the slot configuration.


B.

Change the default setting AND the rendering template in the slot configuration.


C.

Change the rendering template in the slot configuration AND delete the existingcontent slot to create a new one.


Expert Solution
Questions # 10:

A developer wants to embed a link to a content page from within the body of another content asset. the target content asset ID is: about-us

Which option represents the correct format to use?

Options:

A.

$url(''page-Show,''cid'', about-us')$


B.

$url('Content_Show', 'about-us')$


C.

$url('Content-Page', cid 'about-us;)$


Expert Solution
Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions