B2C-Commerce-Developer Braindumps PDF, Salesforce B2C-Commerce-Developer Exam Cram
New 2022 B2C-Commerce-Developer Sample Questions Reliable B2C-Commerce-Developer Test Engine
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 |
|
| Topic 15 |
|
| Topic 16 |
|
| Topic 17 |
|
| Topic 18 |
|
| Topic 19 |
|
| Topic 20 |
|
NEW QUESTION 33
A Digital Developer has Identified that the code segment below is causing performance problems.
What should the Developer do to improve the code?
- A. Break the process into separate loops.
- B. Use a system attribute instead of the isOnSaleFlag custom attribute.
- C. Avoid using an Iterator and use a Collection instead.
- D. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
Answer: D
NEW QUESTION 34
A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:
How should the Developer change the request?
- A. Include an authentication token in the request.
- B. Change the HTTP method to PUT.
- C. Change the URI to /dw/shop/v18_3/products/creative-zen-v.
- D. Change the HTTP method to GET.
Answer: D
Explanation:
Explanation
NEW QUESTION 35
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 36
A Digital Developer has been given a requirement to add fault tolerance to an existing web service integration that uses Service Framework. Administrators at Universal Containers need to be able to configure the timeout and rate limiting.
Which approach should the Developer use to implement the requirement?
- A. Implement a condition that checks to see if the response was empty and execute fallback code if true.
- B. Use the setTimeout method to execute fallback code if the request has NOT completed.
- C. Implement a serviceUnavaiiableException exception handler to execute fallback code.
- D. Create a site preference to store timeout settings and implement an IOException handler to execute fallback code.
Answer: C
NEW QUESTION 37
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(['https', 'post', 'loggedln'], handlePaymentForm);
- B. exports.PaymentForm = guard.ensure(['http\ 'post', 'loggedln'], handlePaymentForm);
- C. exports.PaymentForm = guard.expose(['post', 'loggedln'], handlePaymentForm);
- D. exports.PaymentForm = guard.httpsPost(handlePaymentForm);
Answer: A
NEW QUESTION 38
A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:
How should the Developer change the request?
- A. Include an authentication token in the request.
- B. Change the HTTP method to PUT.
- C. Change the URI to /dw/shop/v18_3/products/creative-zen-v.
- D. Change the HTTP method to GET.
Answer: D
NEW QUESTION 39
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_list_search
- B. /inventory_lists/**
- C. /inventory_lists/*
- D. /products/*
Answer: D
NEW QUESTION 40
A developer is importing edits for two different sites into the same sandbox, and is provided with four different files.
Which two XML files should the developer import using the site-specific Merchant Tools import modules, instead of the Administration section import modules?
Choose 2 answers.
- A. Site Jobs (sites)
- B. System type extensions (solo en Sites)
- C. Promotions ( en sites y en online marketing)
- D. Search Settings En (search y en Sites)
Answer: C,D
NEW QUESTION 41
Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)
- A. Compress CSS.
- B. Place CSS outside of templates.
- C. Use one style sheet for each ISML decorator template.
- D. Use inline Javascript.
- E. Combine several images into a single image.
Answer: A,C,D
NEW QUESTION 42
A developer working on a multi-country site is asked to store country-specific data that drives the creation of a country selector. Examples of the data stored are:
* Pricebook to be used
* Image URL for country flag
The data used in staging also applies in production, but only for this site.
Which approach should the developer take to implement these requirements?
- A. Create a replicable, organization scope Custom Object with the custom data for each country
- B. Create a replicable, site-specific Custom Object with the custom data for each country
- C. Extend the Locale System Object to contain the custom data for each country
- D. Create site-specific content assets to store the data for each country
Answer: C
NEW QUESTION 43
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?
- A. Merchant Tools > Ordering > Payment Methods
- B. Merchant Tools > Site Preferences > Payment Types
- C. Merchant Tools > Site Preferences > Apple Pay
- D. Merchant Tools > Ordering > Payment Processors
Answer: A
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2FApplePay%2FEnableAPWUsingALinkCartridge.html
NEW QUESTION 44
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 45
A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.
Which two methods can the Developer use to verify the cache settings for the product tiles? Choose 2 answers
- A. View the product list page cache settings provided in the Administration > Manage Sites Business Manager module.
- B. Enable cache information in the storefront toolkit and view the cache information for the product tile.
- C. Enable the template debugger to verify the cache times for the producttile.isml template.
- D. View the cache information provided by the Merchant Tools > Technical Reports Business Manager module.
Answer: B,D
NEW QUESTION 46
Universal Containers recently completed updates to their storefront shopping cart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated users who try to add a coupon are logged out.
The following processing code Is found In the carets controller file:
What should the Developer verify to Identify the Issue?
- A. The CSRF cartridge Is included in the site's cartridge path.
- B. The form group has the secure attribute set to true.
- C. The CSRF token Is present In the form and Is being submitted in the request.
- D. The CSRF settings In Business Manager are properly configured.
Answer: C
NEW QUESTION 47
Given the file structure below, which ISML method call renders the customLandingPage template?
- A. ISML.renderTemplate('content/custom/customLandingPage');
- B. ISML.renderTernplate('cartridge/ternplates/default/content/custom/customLandingPage');
- C. ISML('content/custom/customLandingPage');
- D. ISML.render('content/custom/customLandingPage');
Answer: A
NEW QUESTION 48
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 49
Given a job step configured in the steptype.json, a developer needs to add a custom status code "No_FILES_FOUND".
Which code snippet will complete the requirement?
- A. var status = require('dw/system/status');
return new Status(Status.OK, 'NO_FILES_FOUND'); - B. this.status = 'NO_FILES_FOUND'
return this; - C. return 'NO_FILES_FOUND
- D. var status = {success: 'OK'. Message: 'NO_FILES_FOUND'};
return status;
Answer: A
Explanation:
NEW QUESTION 50
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_list_search
- B. /inventory_lists/**
- C. /inventory_lists/*
- D. /products/*
Answer: D
NEW QUESTION 51
A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and data model remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront.
The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.
Which modification should be made to the new cartridge path?
- A. Set the cartridge path so that app_storefront is before int_cybersource.
- B. Set the cartridge path so that app_newsite is after app_storefront.
- C. Set the cartridge path so that app_newsite is before app_storefront.
- D. Set the cartridge path to include only app_newsite.
Answer: A
NEW QUESTION 52
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form:
<form ... action = "submit">
<input name ="${dw.web.CSRFProtection.getTokenName()}"
value = "${dw.web.CSRFProtection.generateToken()">
...
<the rest of the Form fields>
...
</form>
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable:
* validateRequest
* validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
- A. In the controller function that handles the submitted form
- B. In the controller function that displays the form
- C. In the middleware chain of the controller post route
- D. In the model function that persists the form data
Answer: C
NEW QUESTION 53
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 model
- B. A middleware script
- C. A controller
- D. A decorator
Answer: C
NEW QUESTION 54
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. client_project:app_project:storefront_controllers:storefront_core
- B. storefront_core:storefront_controllers:client_project:app_project
- C. app_project:client_project:storefront_controllers:storefront_core
- D. app_project:storefront_controllers:storefront_core
Answer: C
NEW QUESTION 55
Universal Containers wants to change a content slot that is currently configured to display a content asset.
Now they want the slot to display the top five selling boxes for the week.
Which two changes need to be made for this to occur? (Choose two.)
- A. Delete the existing content asset.
- B. Change the slot's configuration content type to "products."
- C. Change the slot's configuration template to the appropriate rendering template.
- D. Change the slot's configuration content type to "recommendations."
Answer: C,D
NEW QUESTION 56
A Digital Developer is working on a project to convert a pipeline to a JavaScript controller. UX Studio has a functioning pipeline debugger configured for the site. Assume the Developer will add a breakpoint to the controller when it is written.
What must be done in order to use the debugger with the new controller when it is written?
- A. Modify the debugger configuration and use the existing pipeline debugger.
- B. Create and use a new script debug configuration.
- C. Create and use a new controller debug configuration.
- D. Use the existing pipeline debugger.
Answer: B
NEW QUESTION 57
......
Feel Salesforce B2C-Commerce-Developer Dumps PDF Will likely be The best Option: https://www.actualtestsquiz.com/B2C-Commerce-Developer-test-torrent.html
B2C-Commerce-Developer exam torrent Salesforce study guide: https://drive.google.com/open?id=1HG9BiTbxq12sIlMdEjNpJc9pxAffrVh8

