Rate this post

[Dec-2022] Pass Salesforce B2C-Commerce-Developer Exam in First Attempt Guaranteed!

Full B2C-Commerce-Developer Practice Test and 207 unique questions with explanations waiting just for you, get it now!

Q30. A merchant has complained to the developers that some products are not appearing in the storefront and has asked them to diagnose and solve the issue.
Which two factors might be causing a product to be hidden?
Choose 2 answers

 
 
 
 
 

Q31. 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 modifyGETRespone and ending with validatebasket.
* Dw.ocapi.shop.basket.modifyGETResponse
* — missing hook –
* — missing hook —
* dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?

 
 
 
 

Q32. Which is an appropriate use of the <isif> ISML tag that follows B2C Commerce and SFRA best practices?

 
 
 

Q33. A developer has a sandbox configured with a service and its profile and credential.. Now there is a requirement to allow changes to the service URL manually from the sandbox.
Which B2C feature should the developer use to achieve the request?

 
 
 
 

Q34. A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.

However, the NewsletterSubscription custom object is not persisted.
What is a possible reason?

 
 
 

Q35. A developer needs to render a Page Designer page in JSON format. What is the correct syntax?

 
 
 

Q36. A client that sells sport shows wants to allow its customers to filer products based on the intended activity (such as tennis, jogging, basketball, etc.) but this particular information is not present in the current catalog.
Which two actions does a developer need to perform in a B2C Commerce instance to allow this two happen?

 
 
 

Q37. Universal Containers needs to have Apple Pay disabled for the country of Spain.
Which Business Manager module should the Developer use to meet this requirement?

 
 
 
 

Q38. The developer has been given the following business requirement:
* The shipping method, Free Standard Ground Shipping’ has an exclusion for products *lth category equals or is child of electronics-televisions.’
* The marketing department has scheduled a sale offering a “Free Standard Ground Shipping” method for brand XyzTv televisions for the next 3 months.
What method accomplishes this while following best practices?

 
 
 

Q39. A Digital Developer noticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection’s target version directory.
Which action potentially solves this problem?

 
 
 
 

Q40. A merchant wants to obtain an export file that contains all the products .assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help Generate this. The merchant s Instance setup is as follows:
* They have one Master catalog and one storefront catalog.
* Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.
Which method allows the developer to generate the export for the merchant?

 
 
 

Q41. A merchant uploads an image using the Content Image Upload module of Business Manager.
Which three modules can the merchant or developer use to display the image on the Storefront7 Choose 3 answers

 
 
 
 
 

Q42. A client has a requirement to allow users on the Storefront to filter by a newly created attribute.
After creating the search refinement, what else is necessary to achieve this?

 
 
 

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

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

 
 
 
 

Q44. A developer is implementing new Page Designer content on a merchant’s Storefront and adds the line below to the setupContentSearchfunction in the searchHelpers.jsfile.
apiContentSearchModel.setFilteredByFolder(false);
What does this achieve?

 
 
 
 

Q45. Universal Containers wants to give customers the ability to refine product search results by a product custom attribute, weightCapacity.
Which series of steps should a Digital Developer take to show this refinement on the storefront?

 
 
 
 

Q46. A Digital Developer adds the following line of code to a script.

The code executes without error; however, the log file on disk does NOT contain the log message.
Which two actions should be completed to write the log message to disk? (Choose two.)

 
 
 
 

Q47. A client has custom object definition and requirement that occasional data changes in staging also need to exist in production, Which task should the developer perform to meet these requirements when setting up the custom object?

 
 
 
 

Q48. The developer is asked to enhance the functionality of an existing controller route by adding information to the response’s viewData.
How should the developer approach this task while following SFRA best practices?

 
 
 
 

Q49. A Digital Developer has identified that the code segment below is causing performance problems.

What should the Developer do to improve the code?

 
 
 
 

Q50. Universal Containers sells physical gift cards for the holidays.
What needs to occur to guarantee the cards will always be available?

 
 
 
 

Q51. The Home-Show route uses this middleware chain:
server.get(‘Show’, consentTracking.consent, cache.applyDefaultCache, function (req, res, next) {
// based code here
});
The developer added Home.jsin another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:
server.append(‘Show’, function (req, res, next) {
// custom code here
});
Assuming the code is correct on both functions, what is the expected result?

 
 
 
 

Q52. The developer needs to add custom category debug logging into the “contact” script, to ensure that a third-party service call responds as expected.
Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?

A)

B)

C)

 
 
 

Q53. The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?

 
 
 
 

Q54. The Home-Show route uses this middleware chain:

The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:

Assuming the code is correct on both functions, what is the expected result?

 
 
 
 

Get Latest B2C-Commerce-Developer Dumps Exam Questions in here: https://www.2pass4sure.com/Salesforce-Developers/B2C-Commerce-Developer-actual-exam-braindumps.html

         

Related Links: www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw learn.csisafety.com.au