[Sep-2021] Dumps Brief Outline Of The B2C-Commerce-Developer Exam - ExamcollectionPass [Q16-Q35]

Share

[Sep-2021] Dumps Brief Outline Of The B2C-Commerce-Developer Exam - ExamcollectionPass

B2C-Commerce-Developer Training & Certification Get Latest Salesforce Developers 

NEW QUESTION 16
A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.
Which snippet of code should be used?

  • A. Logger.warn('The current producto is {0} with name {1}', myProduct.getID(), myProduct.getName());
  • B. Logger.warn('The current producto is %s with name %s'), context(myProduct.getID(), myProduct.getName());
  • C. Logger.warn('The current producto is ${myProduct.getID()} with name ${myProduct.getName()}');
  • D. Logger.warn('The current producto is {0} with name {1}'), context(myProduct.getID(), myProduct.getName());

Answer: A

 

NEW QUESTION 17
Which line of code creates a content slot that can be included on homepage.ismlto display on the home page?

  • A. <isslot id="my_banner " description="for home page" type="global" context="content" context- object="${pdict.ContentSearchResult.content}"/>
  • B. <isslot id="my_banner " description="for home page" type="global" context="homepage"/>
  • C. <isslot id="my_banner " description="for home page" context="global">
  • D. <isslot id="my_banner " description="for home page" context="global" context- object="${pdict.CurrentHomePage}"/>

Answer: C

Explanation:
Explanation/Reference: https://docplayer.net/62289631-Developing-in-demandware-student-guide.html

 

NEW QUESTION 18
Business Manager has the configuration:
* Active Log category is "root"
* Log level of WARN
The code below is executing:
var log = Logger.getLogger("products");
Using this information, which two logs will be written? (Choose two.)

  • A. log.error("This is an error message");
  • B. log.info("This is an info message");
  • C. log.warn("This is a warn message");
  • D. log.debug("This is a debug message");

Answer: B,C

 

NEW QUESTION 19

Given the above OCAPI definitions, which permission or permissions apply?

  • A. Allows external applications to create coupons
  • B. Allow external applications to create, update, and delete both coupons and coupon codes
  • C. Allows external applications to create, update, and delete coupons
  • D. Allows external applications to update coupons

Answer: D

 

NEW QUESTION 20
A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Which action should the developer take to resolve the problem?

  • A. Sort the attributes in the custom object type
  • B. Change the data type of the attributes
  • C. Set the attributes to site-specific replicable
  • D. Create an Attribute Group with the desired attributes in it

Answer: B

Explanation:
Explanation/Reference:

 

NEW QUESTION 21
A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on the pipeline dictionary with the name myProduct.
Which code sample will achieve this?

  • A. ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });
  • B. ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
  • C. ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });
  • D. ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });

Answer: B

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%
2Fcom.demandware.dochelp%2FSGJC%2FPipelinetoControllerConversion.html

 

NEW QUESTION 22
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.)

  • A. Ensure that the debug log level is enabled to write to file in the Custom Log Settings Business Manager module.
  • B. Ensure that the debug log level has been added to the custom log level types in the Global Preferences business manager module.
  • C. Archive old log files to make room in the log directory.
  • D. Ensure that the "login" category is added to the Custom Log Filters in the Log Settings Business Manager module.

Answer: B,C

 

NEW QUESTION 23
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 Bundles module, create a bundle 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 Sets module, create a product set named "The Basics".

Answer: A

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2FPromotions%2FCreatingProductPromotionRules.html

 

NEW QUESTION 24
Given the requirements:
* To show the washing instructions for a clothing product on a dedicated section the detail page
* Washing instructions come from the product information manager(PIM)
* To have this attribute available to localize in the Storefront.
Which action meets these requirements?

  • A. Set the product system object type as localizable
  • B. Add a resource file for every locale for which the attribute needs to be translated.
  • C. Add a custom attribute for each locale
  • D. Set the custom attribute as localizable

Answer: D

 

NEW QUESTION 25
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. Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX Studio.
  • B. Upload the file to the Static WebDAV directory and import using the Import & Export Business Manager module.
  • C. Upload and import the file using the local option within the Site Import & Export Business Manager module.
  • D. Connect and import the file using the remote option within the Site Import & Export Business Manager module.

Answer: C

 

NEW QUESTION 26
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 27
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. Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX Studio.
  • B. Upload the file to the Static WebDAV directory and import using the Import & Export Business Manager module.
  • C. Upload and import the file using the local option within the Site Import & Export Business Manager module.
  • D. Connect and import the file using the remote option within the Site Import & Export Business Manager module.

Answer: C

 

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

  • A. ISML('content/custom/customLandingPage');
  • B. ISML.render('content/custom/customLandingPage');
  • C. ISML.renderTemplate('content/custom/customLandingPage');
  • D. ISML.renderTamplate('cartridge/templates/default/content/custom/customLandingPage');

Answer: C

 

NEW QUESTION 29
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. An UPDATE request to the Stores Data OCAPI.
    Siempre que sea un objeto standard sera put en vez de post
  • C. A PATCH request to the Stores Data OCAPI.

Answer: C

 

NEW QUESTION 30
A Digital Developer suspects a logical error in a script.
Which action will help locate the error?

  • A. Submit a support ticket to B2C Commerce.
  • B. Check request logs for evidence of the logical error.
  • C. Print all values in the script node called before the current script.
  • D. Put breakpoints in the code, debug, and examine variable values.

Answer: B

 

NEW QUESTION 31
A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on the pipeline dictionary with the name myProduct.
Which code sample will achieve this?

  • A. ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });
  • B. ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
  • C. ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });
  • D. ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });

Answer: B

 

NEW QUESTION 32
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 Site Import & Export module to export the master catalog, filtered by site catalog categories to export specific products.
  • C. Use the Catalog Export module to export the master catalog, with a category-assignment search to export specific products.
  • D. Use the Site Import & Export module to export both the site catalog and the master catalog in a single archive.

Answer: C

 

NEW QUESTION 33
A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items.
* The current customer
* Whether or not the customer is authenticated
* The privacy attributes (such as tracking consent or cookie policy)
Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

  • A. Use the Session class in the B2C Commerce api.
  • B. Use a client-side cookie to store the information for the session duration.
  • C. Use an SFRA controller, because it runs server-side, the state is automatically maintained
  • D. Use a non-replicable Custom Object to store the information temporarily.

Answer: A

 

NEW QUESTION 34
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 35
......

Certification Training for B2C-Commerce-Developer Exam Dumps Test Engine: https://www.examcollectionpass.com/Salesforce/B2C-Commerce-Developer-practice-exam-dumps.html

Salesforce Developers B2C-Commerce-Developer Real Exam Questions and Answers FREE Updated: https://drive.google.com/open?id=10taiLA60q77El2EpGYyQatHAZk9_OENm