Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

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

Exam B2C-Commerce-Developer All Questions
Exam B2C-Commerce-Developer Premium Access

View all detail and faqs for the B2C-Commerce-Developer exam

Viewing page 2 out of 6 pages
Viewing questions 11-20 out of questions
Questions # 11:

Given the customerbasket described below:

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

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

The developer needs to write custom code to fetch the customer basket andthen 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 modifyGETRespone and endingwith

validatebasket.

Dw.ocapi.shop.basket.modifyGETResponse

-- missing hook –

-- missing hook --

dw.ocapi.shop.basket.validateBasket

What are the two missing hooks in the middle?

Options:

A.

dw.ocapi.shop.basket.shipment.afterDELETE

B.

dw.ocapi.shop.basket.shipment.beforePATCH

C.

dw.ocapi.shop.basket.shipment.beforeDELETE

D.

dw.ocapi.shop.baskep.shopment.beforePOSTEstos indican antes de actualizar y antes de introducir

Expert Solution
Questions # 12:

An instance has custom logging enabled. The log reaches the file size limit.

What happens in this situation?

Options:

A.

The log file is deleted and a new log file is created.

B.

Logging is suspended for the day

C.

The currentlog file is archived and a new log file is created.

D.

The log file Rolls over and the oldest log messages are overwritten

Expert Solution
Questions # 13:

Which two methods are efficientand scalable? (Choose two.)

Options:

A.

ProductMgr.queryAllSiteProducts()

B.

ProductSearchHit.getRepresentedProducts()

C.

ProductSearchModel.getProductSearchHits()

D.

Category.getProducts()

Expert Solution
Questions # 14:

Question # 14

The developer wants to be able to view DEBUG

The developer wants to be able to view DEBUG level messages for myLogCategory in the Request Log tool. Given the custom log configurations in the image above, what does the developer need to do to accomplish this?

Options:

A.

Change the Log Level for myLogCategory to DEBUG.

B.

Check the DEBUG box in the Log Files section.

C.

Change the Log Level for myLogCategory to DEBUG and check the DEBUG box in theLog Files section.

Expert Solution
Questions # 15:

A merchant has asked their development team to add a new site.

Which two tasks are essential for correct site configuration prior to launch?

Choose 2 answers

Options:

A.

Assign a default payment processor.

B.

Assign a default payment method.

C.

Assign a default currency.

D.

Assign a default payment type.

E.

Assign the appropriate taxation type.

Expert Solution
Questions # 16:

Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.

Which two additional steps should the developer take to troubleshoot this problem?

Choose 2 answers

Options:

A.

Check that the search index was recently rebuilt.

B.

Check the Business Manager site cartridge path.

C.

Check the Storefront site cartridge path.

D.

Check that the correct code version is selected.

Expert Solution
Questions # 17:

Given the code snippet aboce, what should be added after this code so it can be used for page

component display?

Options:

A.

Base.render = render;

B.

Module.exports.render = render;

C.

Module.exports = render;

D.

Module.exports = server.exports();

Expert Solution
Questions # 18:

A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new

country, Italy, and the taxi s not being calculated correctly on the Storefront

What is the likely problem?

Options:

A.

Tax Region is configured wrong.

B.

Tax Country is missing

C.

Tax Jurisdiction is missing

D.

Tax Locale is configured wrong

Expert Solution
Questions # 19:

A Storefront is designed so that multiple pages share a common header and footer layout.

Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?

Options:

A.

B.

C.

D.

Expert Solution
Questions # 20:

A Digital Developer needs to add logging to the following code:

Question # 20

Which statement logs the HTTP status code to a debug-level custom log file?

Options:

A.

logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: ", http.statusCode);

B.

logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

C.

Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

D.

Logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

Expert Solution
Viewing page 2 out of 6 pages
Viewing questions 11-20 out of questions