[Jan-2022] B2C-Commerce-Developer Exam Dumps Pass with Updated 2022 Salesforce Certified B2C Commerce Developer
Free B2C-Commerce-Developer Exam Dumps to Pass Exam Easily
NEW QUESTION 15
A retailer notices that the Account Addresses page is showing the wrong shopper's address.
Which tool should the developer start with to identify the issue?
- A. Pipeline Profiler
- B. Reports and Dashboards module
- C. Storefront Toolkit
- D. Code Profiler
Answer: D
NEW QUESTION 16
A Digital Developer has identified that the code segment below is causing performance problems.
What should the Developer do to improve the code?
- A. Breaks the process into separate loops.
- B. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
- C. Use a system attribute instead of the isOnSaleFlag custom attribute.
- D. Avoid using an Iterator and use a Collection instead.
Answer: A
NEW QUESTION 17
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 "write_attributes" value to: "(+items)".
- B. Change the "resource_id" value to: "/baskets/*/items".
- C. Change the "methods" value to: ["get", "post"].
- D. Change the "read_attributes" value to: "(items)".
Answer: B
NEW QUESTION 18
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?
- A. Add a Boolean custom attribute to the Store system object
- B. Configure the existing Store custom object type definition
- C. Adjust the relevant Site Preference in the Stores group
- D. Create a new SingleBrandStore custom object configuration.
Answer: A
NEW QUESTION 19
What happens if the log file size limit is reached in custom logging?
- A. The log file rolls over and the last used log is overwritten.
- B. Logging is suspended for two hours.
- C. Logging is suspended for the day.
- D. The log file is deleted and recreated from scratch.
Answer: D
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FSiteDevelopment%2FUnderstandingLogFiles.html
NEW QUESTION 20
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.expose(['post', 'loggedIn'], handlePaymentForm);
- B. exports.PaymentForm = guard.ensure(['https', 'post', 'loggedIn'], handlePaymentForm);
- C. exports.PaymentForm = guard.httpsPost(handlePaymentForm);
- D. exports.PaymentForm = guard.ensure(['http', 'post', 'loggedIn'], handlePaymentForm);
Answer: B
NEW QUESTION 21
A developer working on a simple web service integration is asked to add appropriate logging to allow future troubleshooting.
According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?
- A. Logger.info('Unexpected service response')
- B. Logger.debug('Unexpected service response')
- C. Logger.error('Unexpected service response')
- D. Logger.warn('Unexpected service response')
Answer: D
NEW QUESTION 22
Which technical reports datapoint measures the performance of a controller's script execution if network factors and Web Adaptor processing is ignored?
- A. Processing time
- B. Cache hit ratio
- C. Response time
- D. Call count
Answer: A
Explanation:
Explanation/Reference:
NEW QUESTION 23
Universal Containers wants to add a model field to each product. Products will have locale-specific model values.
How should the Digital Developer implement the requirement?
- A. Set the model field as a localizable attribute.
- B. Store translated model values in different fields; one field for each locale.
- C. Utilize resource bundles for translatable values.
- D. Add model to a new custom object with localizable attributes.
Answer: B
NEW QUESTION 24
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. checkout_de.properties in resources folder
- B. checkout.properties in the default locale folder
- C. checkout.properties in the de locale folder
- D. de_checkout.properties in resources folder
Answer: D
NEW QUESTION 25
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. req.next();
- B. return res;C. res.next();
- C. next();
Answer: C
NEW QUESTION 26
Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).
To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?
- A. dw.ocapi.shop.basket.calculate
- B. dw.ocapi.shop.basket.afterPostShipment
- C. dw.ocapi.shop.order.afterPOST
- D. dw.ocapi.shop.order.validateOrder
Answer: A
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp
NEW QUESTION 27
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 three.)
- A. The server is configured to accept incoming connections.
- B. The Active Server setting is enabled for the server connection.
- C. The cartridge is for the current version of B2C Commerce.
- D. The Auto-Upload setting is enabled for the server connection.
- E. The credentials for the server connection are correctly entered.
Answer: A,C,D
NEW QUESTION 28
A digital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.
Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?
- A. Use the Catalog Export module to export the site catalog.
- B. Use the Catalog Export module to export the master catalog, with a category-assignment search to export specific products.
- C. Use the Site Import & Export module to export both the site catalog and the master catalog in a single archive.
- D. Use the Site Import & Export module to export the master catalog, filtered by site catalog categories to export specific products.
Answer: B
NEW QUESTION 29
Universal Containers calls the following combination of products "The Basics" and sells the combination as a unique product ID:
* One Model 103 container
* Five Model 611 container
* Tree Model 201 container
The Developer created these three products in the catalog.
What is the next step in Business Manager to create "The Basics" as a combination?
- A. In the Products module, create a product named "The Basics" and add the products to the Product Bundles tab.
- B. In the Product Sets module, create a product set named "The Basics".
- C. In the Products module, create a product named "The Basics" and add the products to the Product Sets tab.
- D. In the Product Bundles module, create a bundle named "The Basics".
Answer: A
NEW QUESTION 30
Given the following conditions:
* Site export file with a copy of the Storefront data for a custom site
* Sandbox with the custom site code, but no Storefront data
* Requirement for a working copy of SFRA for development reference
A developer is assigned the following Business manager tasks:
* A. Import the custom Site using Site Import/Export
* B. Import the SFRA Demo Sites using Site Import/Export
* C. Rebuild the custom Site search indexes
In what sequence should the developer perform the tasks, so that the custom Site displays the products as intended?
- A. Task B, then C, then A
- B. Task A, then B, then C
- C. Task B, then A, then C
- D. Task A, then C, then B
Answer: C
NEW QUESTION 31
In order to build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?
- A. npm run compile:scss, npm run compile:html, npm run clean
- B. npm run compile:js, npm run compile:scss, npm run compile:fonts
- C. npm run compile:js, npm run compile:html, npm run clean
- D. npm run compile:js, npm run compile: scss, npm run compile:html
Answer: B
NEW QUESTION 32
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?
- A. logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
- B. logger.getLogger('profile').debug("Error retrieving profile email, Status Code: ", http.statusCode);
- C. Logger.getLogger('profile').debug("Error retrieving profile email, Status Code: {0} was returned.",
http.statusCode); - D. Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
Answer: A
NEW QUESTION 33
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
- A. Option B
- B. Option D
- C. Option C
- D. Option A
Answer: A
NEW QUESTION 34
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?
- A. Apple Pay
- B. Locale Payments
- C. Payment Processors
- D. Payment Methods
Answer: A
Explanation:
Explanation
NEW QUESTION 35
When inspecting the weekly service status report for a critical internally hosted web service used in the application, a developer notices that there are too many instances of unavailability.
Which two solutions can reduce the unavailability of the service?
Choose 2 answers.
- A. Update the service to have a faster response time.
- B. Increase the web service time out
- C. Modify the code that makes the request to the external service to be wrapped in a try/catch block.
- D. Change the code that sets the throwOnError attribute of the service to be true.
Answer: B,C
Explanation:
NEW QUESTION 36
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();
- B. addressForm.addresssid.invalidateFormElement = true;
- C. addressForm.invalidateFormElement("addressid");
- D. addressForm.invalidateFormElement(addressForm.addressid);
Answer: D
NEW QUESTION 37
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?
- A. Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
- B. Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
- C. Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
- D. Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answer: A
NEW QUESTION 38
A Digital Developer extends a system object, Product, and adds a Boolean attribute, "sellable," to it. Assuming
"prod" is the variable name handling the product, what code can the Developer use to access it?
- A. prod.persistable.sellable
- B. prod.custom.sellable
- C. prod.sellable
- D. prod.extended.sellable
Answer: C
NEW QUESTION 39
......
Salesforce B2C-Commerce-Developer Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
| Topic 7 |
|
| Topic 8 |
|
| Topic 9 |
|
| Topic 10 |
|
| Topic 11 |
|
| Topic 12 |
|
| Topic 13 |
|
| Topic 14 |
|
B2C-Commerce-Developer Exam Dumps, B2C-Commerce-Developer Practice Test Questions: https://simplilearn.actual4labs.com/Salesforce/B2C-Commerce-Developer-actual-exam-dumps.html