B2C-Commerce-Developer Practice Exam Tests Latest Updated on Oct-2021 [Q22-Q46]

Share

B2C-Commerce-Developer Practice Exam Tests Latest Updated on Oct-2021

Pass B2C-Commerce-Developer Exam in First Attempt Guaranteed Dumps!

NEW QUESTION 22
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.warn('Unexpected service response')
  • B. Logger.debug('Unexpected service response')
  • C. Logger.error('Unexpected service response')
  • D. Logger.info('Unexpected service response')

Answer: A

 

NEW QUESTION 23
A job executes a pipeline that makes calls to an external system.
Which two actions prevent performance issues in this situation? (Choose two.)

  • A. Use synchronous import or export jobs
  • B. Configure a timeout for the script pipelet.
  • C. Disable multi-threading.
  • D. Use asynchronous import or export jobs.

Answer: B,C

 

NEW QUESTION 24
Below is a form definition snippet from the newsletter.xmlfile.

Which line of code creates a JSON object to contain the form data?

  • A. server.forms.getForm('newsletter')
  • B. server.form.getForm('dwfrm_newsletter')
  • C. server.forms.getForm('dwfrm_newsletter')
  • D. server.form.getForm('newsletter')

Answer: D

 

NEW QUESTION 25
A developer wants to add a link to the My Account Page.
What is the correct code to accomplish this?

  • A. <a
    href="${URLUtils.get('Account-Show')}>${Resource.msg('myaccount','account',request.locale())}</a>
  • B. <a href="${URLUtils
    ('Account-Show')}>${ResourceMgr.getPropierties('myaccount','account',null)}</a>
  • C. <a href="${url.get('Account-Show')}>${Resource.message('myaccount')}</a>
  • D. <a href="${URLUtils.url('Account-Show')}>${Resource.msg('myaccount','account',null)}</a>

Answer: D

 

NEW QUESTION 26
A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.
Which statement should the Developer use to lazy load scripts?

  • A. importPackage () method
  • B. local include
  • C. $.ajax () jQuery method
  • D. require () method

Answer: D

 

NEW QUESTION 27
A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading a scripts at the start of the code execution.
Which statement should the Developer use to lazy load scripts?

  • A. import Package ( ) method
  • B. local include
  • C. $.ajax ( ) jQuery method
  • D. require ( ) method

Answer: D

 

NEW QUESTION 28
Which method is efficient and scalable because it uses the product search index rather than searching the database?

  • A. ProductVariationModel.getVariants()
  • B. ProductAvailabilityModel.isOrderable()
  • C. ProductIndexModel.getOrderableProductsOnly()
  • D. ProductSearchModel().getProductSearchHits()

Answer: D

Explanation:
Explanation/Reference:
Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/topic/com.demandware.dochelp/ DWAPI/scriptapi/html/api/class_dw_catalog_ProductSearchModel.html

 

NEW QUESTION 29
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 30
A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.
In which folder should the developer place resource bundles?

  • A. templates/resources
  • B. templates/de
  • C. templates/default/resources
  • D. templates/default

Answer: A

 

NEW QUESTION 31
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.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • B. Logger.exception('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: B

 

NEW QUESTION 32
A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new country, Italy, and the taxi s not being calculated correctly on the Storefront What is the likely problem?

  • A. Tax Locale is configured wrong
  • B. Tax Region is configured wrong.
  • C. Tax Country is missing
  • D. Tax Jurisdiction is missing

Answer: D

 

NEW QUESTION 33
Universal Containers created a site export file from staging in the global export directory. How should the Digital Developer update their sandbox using this staging site export file?

  • A. Use the Site Development > Site Import & Export Business Manager module.
  • B. Use the Site Development > Import & Export Business Manager module.
  • C. Perform a data replication from staging.
  • D. Download the site export file and use UX Studio to transfer the data to the sandbox.

Answer: A

 

NEW QUESTION 34
A developer is working on a new site for the U.S based on an existing Canadian site. One of the requirements is a change to the address form. The current Canadian form has an <options> list with the correct two-letter abbreviation for the provinces.
The U.S. requirements are to:
* Have an <options> list with the correct two-letter abbreviation for the states in place of the province field.
* Set the U.S site locale.
* Add the options list field definition to the XML file.
How should the developer set up the files before making the required edits?

  • A. Create a new sub-folder in the forms folder. Name it US. Copy existing address.xml file in the new folder.
  • B. Create a copy of existing address.xml file in the default folder. Rename that file to adres_US.xml
  • C. Create a new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file in the new folder.
  • D. Create a copy of existing address.xml file in the default folder. Rename that file to address_en_US.xml

Answer: C

 

NEW QUESTION 35
A merchant requires that an existing section of the Site become editable from the Business Manager, so that they can modify it independently of the developer.
Which of these is an important factor for a developer to consider when choosing the appropriate solution between a content slot and a Page Designer component?

  • A. Only content slot configurations can ve localized for different languages.
  • B. Only content slot configurations can be tied to campaigns.
  • C. Only Page Designer Components can be localized for different languages.
  • D. Only page Designer components can ve tied to campaigns.

Answer: C

 

NEW QUESTION 36
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.renderTemplate( "helloworld.isml", { "myProduct": "product" });
  • B. ISML.renderTemplate( "helloworld.isml", { product: myProduct });
  • C. ISML.renderTemplate{ "helloworld.isml", { myProduct: product });
  • D. ISML.renderTemplate{ "helloworld.isml", { "product": myPrcduct });

Answer: C

 

NEW QUESTION 37
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

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

 

NEW QUESTION 38
A developer has a specification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.
Which service type should the developer register?

  • A. HTML Form
  • B. HTTP Form
  • C. SOAP Form
  • D. POST Form

Answer: B

 

NEW QUESTION 39
A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page is cleaned.
Given the above requirement, where should the developer create that partition in Business Manager?

  • A. Operations > Site > Manage Sites > Cache
  • B. Operations > Cache > Site
  • C. Administration > Sites > Manage Sites > Site > Cache
  • D. Site > Site Preferences > Cache

Answer: C

 

NEW QUESTION 40
An instance has custom logging enabled. The log reaches the file size limit.
What happens in this situation?

  • A. The log file is deleted and a new log file is created.
  • B. Logging is suspended for the day
  • C. The log file Rolls over and the oldest log messages are overwritten
  • D. The current log file is archived and a new log file is created.

Answer: B

 

NEW QUESTION 41
Universal Containers specifies a new category hierarchy for navigating the digital commerce storefront. A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.
How can other Developers with sandboxes on the same realm create the same catalog in their own sandboxes?

  • A. Use Business Manager to upload and import a copy of the export file obtained from the original Developer.
  • B. Use the remote upload capability of the Site Import & Export module of Business Manager.
  • C. Use the Business Manager Data Replication module to replicate the catalog from the original Developer's sandbox.
  • D. Use the import capability of the Site Import & Export module of Business Manager.

Answer: A

 

NEW QUESTION 42
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.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • B. Logger.exception('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: B

 

NEW QUESTION 43
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 template to the appropriate rendering template.
  • C. Change the slot's configuration content type to "products."
  • D. Change the slot's configuration content type to "recommendations."

Answer: B,D

 

NEW QUESTION 44
A developer wants to embed a link to a content page from within the body of another content asset.
The target content asset ID is: about-us
Which option represents the correct format to use?

  • A. $url('Page-Show', 'about-us')$
  • B. $url('Content-Show', 'about-us')$
  • C. $url('Page-Show', 'cid', 'about-us')$
  • D. $url('Content-Page', 'cid', 'about-us')$

Answer: D

 

NEW QUESTION 45
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 template to the appropriate rendering template.
  • C. Change the slot's configuration content type to "products."
  • D. Change the slot's configuration content type to "recommendations."

Answer: B,D

 

NEW QUESTION 46
......

Salesforce Developers  Free Certification Exam Material from DumpStillValid with 115 Questions: https://www.dumpstillvalid.com/B2C-Commerce-Developer-prep4sure-review.html

B2C-Commerce-Developer Dumps Full Questions - Exam Study Guide: https://drive.google.com/open?id=19cxS4dtZEw05wlQ3V61mJFdFFkK-uQdW