B2C-Commerce-Developer Exam Questions

Total 149 Questions

Last Updated Exam : 22-Nov-2024

A developer wants to use an external application to manage their stores information (such as opening
hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are saved. What is the appropriate technique the developer should perform to allow the merchant to create a new store in this scenario?


A.

A POST request to the Stores Data OCAPI.B. A PUT request to the Stores Data OCAPI.


B.

A PATCH request to the Stores Data OCAPI.


C.

An UPDATE request to the Stores Data OCAPI.


D.

Siempre que sea un objeto standard será put en vez de post





B.
  

A PATCH request to the Stores Data OCAPI.



A Digital Developer has a new requirement to disable the "Discover" credit card type for all checkouts.
What does the Developer need to change in Business Manager to fulfill this requirement?


A.

Checkout exclusion rules in the Merchant Tools > Site Preferences > Checkout Preferences module.


B.

Credit card exclusion rules in the Merchant Tools > Site Preferences > Payment Preferences module.


C.

Credit cards in the Merchant Tools > Ordering > Payment Methods module.


D.

Credit card exclusion rules in the CreditCardType.json configuration file.





C.
  

Credit cards in the Merchant Tools > Ordering > Payment Methods module.



A Digital Developer has detected storefront pages being rendered with an error message. After inspecting the log files, the Developer discovered that an enforced quota is being exceeded.
What action should the Developer take to stop the quota violation?


A.

Rewrite the code that is causing the overage.


B.

Change the Business Manager configuration for the quota settings.


C.

Take no action, the overage will be resolved when concurrent visitors are reduced.


D.

Ask support to remove the quota limit.





B.
  

Change the Business Manager configuration for the quota settings.



Given the file structure below, which ISML method call renders the customLandingPage template? 


A.

ISML.renderTamplate(‘cartridge/templates/default/content/custom/customLandingPage’);


B.

ISML(‘content/custom/customLandingPage’);


C.

ISML.render(‘content/custom/customLandingPage’);


D.

ISML.renderTemplate(‘content/custom/customLandingPage’);





D.
  

ISML.renderTemplate(‘content/custom/customLandingPage’);



A Digital Developer has a site export file on their computer that needs to be imported into their sandbox. How should the developer update their sandbox with the data in this file?


A.

Connect and import the file using the remote option within the Site Import & Export Business Manager module.


B.

Upload and import the file using the local option within the Site Import & Export Business Manager
module.


C.

Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX
Studio.


D.

Upload the file to the Static WebDAV directory and import using the Import & Export Business
Manager module.





B.
  

Upload and import the file using the local option within the Site Import & Export Business Manager
module.



A Digital Developer must give users the ability to choose an occasion (holiday, birthday, anniversary, etc.) for which gifts are currently being selected. The data needs to be persistent throughout the current shopping experience. Which data store variable is appropriate, assuming there is no need to store the selection in any system or custom objects?


A.

Request scope variable


B.

Page scope variable


C.

Session scope variable


D.

Content slot variable





C.
  

Session scope variable



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.

next();


B.

return res;C. res.next();


C.

req.next();





A.
  

next();



A developer needs to update the package.json file so that it points to the hock file for a cartridge, using
the hooks keyword. Which snippets work correctly when added to the file?:


A.

{ “hooks”: “./cartridge/scripts/hooks.json” }


B.

{ “hooks”: “./scripts/hooks.json” }


C.

{ hooks: “./cartridge/scripts/hooks.json” }


D.

{ hooks: ./scripts/hooks.json }





A.
  

{ “hooks”: “./cartridge/scripts/hooks.json” }



What happens if the log file size limit is reached in custom logging?


A.

Logging is suspended for the day.


B.

Logging is suspended for two hours.


C.

The log file is deleted and recreated from scratch.


D.

The log file rolls over and the last used log is overwritten.





C.
  

The log file is deleted and recreated from scratch.



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’)





D.
  

Logger.warn(‘Unexpected service response’)




Page 1 out of 15 Pages