Pass Exam Questions Efficiently With B2C-Commerce-Developer Questions (2023) [Q113-Q136]

Share

Pass Exam Questions Efficiently With B2C-Commerce-Developer Questions (2023) 

B2C-Commerce-Developer Questions - Truly Beneficial For Your Salesforce Exam 

NEW QUESTION # 113
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. Ensure that the "login" category is added to the Custom Log Filters in the Log Settings Business Manager module.
  • D. Archive old log files to make room in the log directory.

Answer: B,D


NEW QUESTION # 114
Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?

  • A. server.get('Show', cache.applyDefaultCache, function (req, res, next) {
  • B. server.get('Show', function (req, res, next) {
  • C. // code
    });
    <iscache varyby="price_promotion" type="relative" status="on"/>
  • D. //code
    }).applyDefaultCache();
    <iscache type="relative" hour="24"/>

Answer: A

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2Fsfrajsdoc%2Fjs%2Fserver%
2Fapp_storefront_base_cartridge_controllers_Page.js.html


NEW QUESTION # 115
A Digital Developer has identified that the code segment below is causing performance problems.

What should the Developer do to improve the code?

  • A. Use a system attribute instead of the isOnSaleFlag custom attribute.
  • B. Avoid using an Iterator and use a Collection instead.
  • C. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
  • D. Breaks the process into separate loops.

Answer: D


NEW QUESTION # 116
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.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • C. Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • D. Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);

Answer: C


NEW QUESTION # 117
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. Add a custom attribute for each locale
  • B. Set the product system object type as localizable
  • C. Add a resource file for every locale for which the attribute needs to be translated.
  • D. Set the custom attribute as localizable

Answer: B


NEW QUESTION # 118
There is a business requirement that a custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?
A)

B)

C)

  • A. Option A
  • B. Option C
  • C. Option B

Answer: C


NEW QUESTION # 119
Universal Containers sells physical gift cards for the holidays.
What needs to occur to guarantee the cards will always be available?

  • A. Create an inventory record with Backorder Handlingenabled.
  • B. Create aninventory record with an unlimited Allocation value.
  • C. Create a perpetual inventory record.
  • D. Create an inventory record with an extremely high Allocation value (i.e., 1 billion certificates).

Answer: A


NEW QUESTION # 120
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 the Business Manager Data Replication module to replicate the catalog from the original Developer's sandbox.
  • B. Use the remote upload capability of the Site Import & Export module of Business Manager.
  • C. Use the import capability of the Site Import & Export module of Business Manager.
  • D. Use Business Manager to upload and import a copy of the export file obtained from the original Developer.

Answer: C


NEW QUESTION # 121
A developer is given a task to implement a new Page Designer layout component that doesn't accept certain asset components.
How should the developer achieve the above task?

  • A. Add layout_type_inclusion in the target components json configurations
  • B. Add layout_type_exclusion in the other asset components json configuration
  • C. Add component_type_inclusion in the layout json configuration
  • D. Add component_type_exclusions in the layout json configuration

Answer: C

Explanation:
Explanation/Reference:


NEW QUESTION # 122
Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?

  • A. Products
  • B. Images and other static assets
  • C. Content slots

Answer: B


NEW QUESTION # 123
A developer has a sandbox with code to log a message during execution, and the following code:

After the code executes, the developer does not see any log file with the message in the WebDAV folder.
Which two tasks does the developer need to perform to correct this issue?
Choose 2 answers

  • A. Request that the developer's account be given permission to the Log Center of the current realm.
  • B. Set the root log level to debug.
  • C. Set the logging global preference to true.
  • D. Check the box for Info under Log Files.

Answer: A,D


NEW QUESTION # 124
A merchant is selling a new product line of televisions. In order to deliver a good customer experience, the merchandising team wants the screen size to be incorporated into the search and navigation journey.
Which two things can the developer do to facilitate this for them?
Choose 2 answers

  • A. Define a new searchable attribute for Screen Size.
  • B. Configure Screen Size threshold search refinement bucket definitions.
  • C. Create a new search refinement for a Boolean value true or false and label it "big screen."
  • D. Configure catalog-level search refinement definition for Screen Size.

Answer: A,D


NEW QUESTION # 125
A developer wants to create in Business Manager extension with the cartridge named plugin_vm_extension.
Which two steps should the developer take for the extension option to show up in Business Manager?Choose 2 answers:

  • A. Activate a new code version for the Business Manager Site.
  • B. Add plugin_bm_extension to the cartridge path under Storefront cartridge site path.
  • C. Add plugin_bm_extension to the cartridge path under business manager cartridge site
  • D. Add the appropiate roles and permission to the user to view the business manager extension.

Answer: A,C

Explanation:


NEW QUESTION # 126
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: {0} was returned.", http.statusCode);
  • C. logger.getLogger('profile').debug("Error retrieving profile email, Status Code: ", http.statusCode);
  • D. Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

Answer: A


NEW QUESTION # 127
Below is a form definition snippet from the newsletter.xml file:
<?xml version="1.0"?>
<form
xmlns=http://www.demandware.com/xml/form/2008-04-15
>
<field formid="email" lavel="Email" type="String" mandatory="True" max-length="50" />
</form>
Which line of code creates a JSON object to contain the form data?

  • A. Server.forms.getForm('newsletter');
  • B. Server.form.getForm('newsletter');
  • C. Server.form.getForm('dwfrm_newsletter')
  • D. Server.forms.getForm('dwfrm_newsletter')
    En el controller:

    En el Formulario:

Answer: A


NEW QUESTION # 128
A Storefront is designed so that multiple pages share a common header and footer layout.
Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?

  • A. <isdecorate> ... </isdecorate>
  • B. <isinclude> ... </isinclude>
  • C. <isreplace> ... </isreplace>
  • D. <iscontent> ... </iscontent>

Answer: A


NEW QUESTION # 129
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 ServiceUnavailableException exception handler to execute fallback code.
  • B. Use the setTimeout method to execute fallback code if the request has NOT completed.
  • C. Implement a condition that checks to see if the response was empty and execute fallback code if true.
  • D. Create a site preference to store timeout settings and implement an IOException handler to execute fallback code.

Answer: A


NEW QUESTION # 130
Given the SFRA Controller below:

Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the inspection tool?

  • A. viewdata is declared but not assigned.
  • B. cache. applyDefauItCache is not a valid middleware.
  • C. viewdata is a B2C Script reserved name.
  • D. viewdata is assigned but not declared.

Answer: D


NEW QUESTION # 131
The developer needs to add custom category debug logging into the "contact'' script, to ensure that a third-party service call responds as expected.
Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?

A)

B)

C)

  • A. Option A
  • B. Option C
  • C. Option B

Answer: A


NEW QUESTION # 132
Given the code snippet aboce, what should be added after this code so it can be used for page component display?

  • A. Module.exports = render;
  • B. Module.exports = server.exports();
  • C. Module.exports.render = render;
  • D. Base.render = render;

Answer: B


NEW QUESTION # 133
A Digital Developer has identified that the code segment below is causing performance problems.

What should the Developer do to improve the code?

  • A. Use a system attribute instead of the isOnSaleFlag custom attribute.
  • B. Avoid using an Iterator and use a Collection instead.
  • C. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
  • D. Breaks the process into separate loops.

Answer: D


NEW QUESTION # 134
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. /inventory_lists/**
  • D. /products/*

Answer: D


NEW QUESTION # 135
There are three logging categories: category1, category1.eu, and category1.us.
In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.
The code segment below executes.

What is the result'

  • A. Logs will be written to the log file with a prefix customwarn.
  • B. Logs will be written to the log file with a prefix custom-loggerFile.
  • C. Logs will not be written.
  • D. Logs will be written to the log file with a prefix loggerFile.

Answer: B


NEW QUESTION # 136
......

Truly Beneficial For Your Salesforce Exam: https://passleader.briandumpsprep.com/B2C-Commerce-Developer-prep-exam-braindumps.html