[Aug-2021] Get 100% Real B2C-Commerce-Developer Exam Questions, Accurate & Verified ITCertMagic Dumps in the Real Exam!
Pass Your Salesforce Developers Exams Fast. All Top B2C-Commerce-Developer Exam Questions Are Covered.
NEW QUESTION 14
The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer's address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the form field.
How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?
- A. addressForm.addresssid.invalidateFormElement = true;
- B. addressForm.invalidateFormElement("addressid");
- C. addressForm.invalidateFormElement(addressForm.addressid);
- D. addressForm.addresssid.invalidateFormElement();
Answer: C
NEW QUESTION 15
A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing cart.js controller that handles processing of the other cart forms.
In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.
The code below is the submit button for the ISML markup.
What additional steps must occur before the Digital Developer can begin writing the processing code for this request?
- A. * Add the attribute addtl-fonn-action^'addRewardPaas"1 to the ISML form
* Add the key addRewardPass, with a processing function as a value, to the object passed to the Form.handleActionO method in the cart.3s controller - B. * Add a <submit /> node to the form definition XML with the attribute formid=''addRewardPas3"
* Add the key addRewardPasa, with a processing function as a value, to the object passed to the Form.handleActionO method in the Cart.ja controller - C. * Add an action /> node to the form definition XML with the attribute formid="addRewardFa3s"
* No change to cart.3a controller required - D. * Add an <action /> node to the form definition XML with the attribute formid=''addRewardFaas"
* Add the key addRewardPass, with a processing function as a value, to the object passed to the Form.handleActionO method in the Cart .j* controller
Answer: D
NEW QUESTION 16
Server.get('Show', consentTracking.consent, cache.applyDefaultCache, function (req,res,next){ Var Site = require('dw/system/Syte"); Var pageMetaHelpter = require('*/cartridge/scripts/helpers/pageMetaHelper'); pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current); res.render('/home/homePage'); Missing code here
}, pageMetadata.computedPageMetadata);
The controller endpoint code snippet above does not work.
Which line of code should the developer use to replace line 6 and correct the problem?
- A. return res;C. res.next();
- B. next();
- C. req.next();
Answer: B
NEW QUESTION 17
A Digital Developer has Identified that the code segment below is causing performance problems.
What should the Developer do to improve the code?
- A. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
- B. Use a system attribute instead of the isOnSaleFlag custom attribute.
- C. Break the process into separate loops.
- D. Avoid using an Iterator and use a Collection instead.
Answer: A
NEW QUESTION 18
Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.
To which file should the developer add German string values?
- A. de_checkout.properties in resources folder
- B. checkout_de.properties in resources folder
- C. checkout.properties in the de locale folder
- D. checkout.properties in the default locale folder
Answer: A
NEW QUESTION 19
Given a file in a plug-in cartridge with the following code:
'use strict':
Var base = module.superModule;
Function applyCustomCache (req,res,next){
res.CachePeriod = 6; //eslint-disable-line no-param-reassign
res.cachePeriodUnit = 'hours') //eslint-disable-line no-param-reassign
next();
}
Module.exports = base;
Module.exports.applyCustomCache = applyCustomCache;
What does this code extend?
- A. A middleware script
- B. A controller
- C. A decorator
- D. A model
Answer: B
NEW QUESTION 20
A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.
Which cartridge path meets the project requirements?
- A. app_project:storefront_controllers:storefront_core
- B. client_project:app_project:storefront_controllers:storefront_core
- C. app_project:client_project:storefront_controllers:storefront_core
- D. storefront_core:storefront_controllers:client_project:app_project
Answer: C
NEW QUESTION 21
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?
- A. dw.ocapi.shop.baskep.shopment.beforePOST
Estos indican antes de actualizar y antes de introducir - B. dw.ocapi.shop.basket.shipment.beforePATCH
- C. dw.ocapi.shop.basket.shipment.beforeDELETE
- D. dw.ocapi.shop.basket.shipment.afterDELETE
Answer: A,B
NEW QUESTION 22
A developer must configure permissions for an Open Commerce API resource on a sandbox instance that currently does not have any permissions configured.
Which two configuration properties are required to enable Access to the resource?
Choose 2 answers
- A. Read_attributes
- B. Version_range
- C. Resource_id
- D. Client_id
Answer: C,D
NEW QUESTION 23
The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer's address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the form field.
How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?
- A. addressForm.addresssid.invalidateFormElement = true;
- B. addressForm.invalidateFormElement("addressid");
- C. addressForm.invalidateFormElement(addressForm.addressid);
- D. addressForm.addresssid.invalidateFormElement();
Answer: C
NEW QUESTION 24
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
- A. <isinclude url="${URLUtils.url("CustomTag-Start")}>
- B. <isscript>
dw.util.CustomTagMgr.createCustomTag("mytag"); <isscript> - C. <isinclude template="util/modules">
- D. <isinclude template="util/customtags">
Answer: C
NEW QUESTION 25
A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:
Which modification allows the requests to successfully execute?
- A. Change the "read_attributes" value to: "(items)".
- B. Change the "write_attributes" value to: "(+items)".
- C. Change the "methods" value to: ["get", "post"].
- D. Change the "resource_id" value to: "/baskets/*/items".
Answer: D
NEW QUESTION 26
Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.
To which file should the developer add German string values?
- A. de_checkout.propertiesin resourcesfolder
- B. checkout_de.propertiesin resourcesfolder
- C. checkout.propertiesin the delocale folder
- D. checkout.propertiesin the defaultlocale folder
Answer: A
NEW QUESTION 27
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_inclusion in the target components json configurations.
- B. Add component_type_Exclusions in the layout json configuration
- C. Add component_type_inclusion in the layout json configuration
- D. Add layout_type_exclusion in the other asset components json configuration.
Answer: B
NEW QUESTION 28
A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.
An example request URL is:
Which resource_id value enables the appropriate resource?
- A. /inventory_lists/*
- B. /inventory_list_search
- C. /products/*
- D. /inventory_lists/**
Answer: C
NEW QUESTION 29
A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.
Which three things should the Digital Developer verify to ensure the cartridges are uploaded? Choose 3 answers
- A. The Auto-Upload setting is enabled for the server connection.
- B. The Active Server setting is enabled for the server connection.
- C. The server is configured to accept incoming connections.
- D. The cartridge is for the current version of B2C Commerce.
- E. The credentials for the server connection are correctly entered.
Answer: A,B,E
NEW QUESTION 30
A Digital Developer has created a new PaymentForm controller that requires communication with the server and must be made using the HTTPS protocol.
Which code sample should the Developer use to make sure that HTTPS is used?
- A. exports.PaymentForm = guard.ensure(['http\ 'post', 'loggedln'], handlePaymentForm);
- B. exports.PaymentForm = guard.expose(['post', 'loggedln'], handlePaymentForm);
- C. exports.PaymentForm = guard.ensure(['https', 'post', 'loggedln'], handlePaymentForm);
- D. exports.PaymentForm = guard.httpsPost(handlePaymentForm);
Answer: C
NEW QUESTION 31
A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.
Which three items are required to accomplish this task? Choose 3 answers
- A. Business Manager Username
- B. Business Manager Password
- C. Instance Hostname
- D. Instance Version
- E. Keystore Password
Answer: A,B,C
NEW QUESTION 32
Given the requirements:
* To integrate with an external web service using HTTP requests.
* To create a service for this purpose with the Service framework using the LocalServiceRegistry class.
* To test the service before the external service provider makes the API available.
Which solution allows the developer to satisfy the requirements?
- A. Create a service and implement the mockFull callback and a sitepreference to enable or disable the mock response.
- B. Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one.
- C. Create a service and a Sitepreference that induce the service to respond with a mock response using a conditional.
- D. Create a service and implement the mockFull callback and set the service mode to mock.
Answer: A
NEW QUESTION 33
Once the Cache Information tool of the storefront toolkit is enabled, how can a Digital Developer view caching information for a particular component of the page?
- A. Open the Request Logs to view the caching information.
- B. Start a pipeline debugging session and view the caching information provided.
- C. Hover over the caching icons now present on the storefront.
- D. Right-click on the component in UX Studio and view the caching properties of the file.
Answer: C
NEW QUESTION 34
......
Penetration testers simulate B2C-Commerce-Developer exam: https://www.itcertmagic.com/Salesforce/real-B2C-Commerce-Developer-exam-prep-dumps.html
Free Test Engine For Salesforce Certified B2C Commerce Developer Certification Exams: https://drive.google.com/open?id=1TNknE2Pm6BGPTgenMS8kKqhx0rUnTzkF