Best Preparations of B2C-Commerce-Developer Exam 2021 Salesforce Developers Unlimited 115 Questions
Focus on B2C-Commerce-Developer All-in-One Exam Guide For Quick Preparation.
NEW QUESTION 37
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 38
Consider the following information:
* A merchant has this three-tier category structure setup in the Storefront catalog:
New Arrivals > Women > Clothing
* The category named Clothing has all the clothing items for Women and is merchandised.
* A Search Refinement named Newness is correctly configured for the Clothing category.
When a merchandiser views the Clothing category, the Search Refinement appears and Works as expected. However, the merchandiser does not see the Search Refinement when searching for Clothing via the Storefront search.
What is the Reason?
- A. The Search Refinement definition is not set up for the Women category
- B. The Search Refinement definition is not set up for the New Arrivals Category.
- C. The Search Refinement definitions is not set up for the Root Category
- D. There are conflicting Search Refinement definitions for Clothing and one of its parent categories
Answer: D
NEW QUESTION 39
Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow. This new attribute needs to be included as part of the standard order export.
Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?
- A. * Modify the "COPIaceOrder" controller to update a CSV file in the IMPEX WebDAV directory with the order ID and comments.
* Modify the order export process to read information in the CSV file and include it as part of the export. - B. * Create a new custom object type for order comments that contains the attributes: order ID and comments.
* Modify the "COPIaceOrder" controller to create a new order comments custom object upon order completion. - C. * Add the new attribute to the "Customer" system object.
* Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Customer" object. - D. * Add the new attribute to the "Order" system object.
* Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Order" object.
Answer: A
NEW QUESTION 40
Once the Cache Information tool of the storefront toolkit is enabled, how can a Digital Developer view caching information for a particular component of the page?
- A. Hover over the caching icons now present on the storefront.
- B. Start a pipeline debugging session and view the caching information provided.
- C. Open the Request Logs to view the caching information.
- D. Right-click on the component in UX Studio and view the caching properties of the file.
Answer: C
NEW QUESTION 41
A retailer notices that the Account Addresses page is showing the wrong shopper's address.
Which tool should the developer start with to identify the issue?
- A. Pipeline profiler
- B. Reports and Dashboards Module
- C. Code Profiler
- D. Storefront Toolkit
Answer: D
NEW QUESTION 42
A developer has custom debug statements in a script, but the messages are not showing up in the Storefront Toolkit Request Log.
Which step needs to be completed to get the messages to appear in the Request Log?
- A. In Global preferences, check the box for Enable custom logging in Request Log.
- B. In custom Log Settings, activate the loggin category at DEBUG level.
- C. In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files.
- D. In Site Preferences, check the box for Enable custom Logging in Request Log
Answer: C
NEW QUESTION 43
A developer is asked to improve the maintainability of a page by reducing its code repetition.
What are two techniques the developer should implement to achieve this?
Choose 2 answers.
- A. Require and render templates with <isscript> tags
- B. Implement template decorators paired with replace tags
- C. Embed partial files using ISML expressions
- D. Use local template includes
Answer: B,D
NEW QUESTION 44
Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow.
This new attribute needs to be included as part of the standard order export.
Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?
- A. * Create a new custom object type for order comments that contains the attributes: order ID and comments.
* Modify the "COPlaceOrder" controller to create a new order comments custom object upon order completion. - B. * Add the new attribute to the "Order" system object.
* Modify the "COPlaceOrder" controller to add this new attribute to the current session's "Order" object. - C. * Modify the "COPlaceOrder" controller to update a CSV file in the IMPEX WebDAV directory with the order ID and comments.
* Modify the order export process to read information in the CSV file and include it as part of the export. - D. * Add the new attribute to the "Customer" system object.
* Modify the "COPlaceOrder" controller to add this new attribute to the current session's "Customer" object.
Answer: B
NEW QUESTION 45
A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cart forms.
In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.
The code below is the submit button for the ISML markup.
What additional steps must occur before the Digital Developer can begin writing the processing code for this request?
- A. Option D
- B. Option C
- C. Option A
- D. Option B
Answer: B
NEW QUESTION 46
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_exclusion in the other asset components json configuration
- B. Add component_type_inclusion in the layout json configuration
- C. Add component_type_exclusions in the layout json configuration
- D. Add layout_type_inclusion in the target components json configurations
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION 47
A Digital Developer needs to store information temporarily and decides to create a custom object. Which code creates a custom object?
- A. CustomObjectMgr.createCustomObject(primaryKey);
- B. CustomObject.createCustomObject(CustomObjectType,primaryKey);
- C. CustomObiectMqr.createCustomOb1ect(CustomOb1ectType,primaryKey);
- D. CustomObject.createCustomObject(primaryKey,CustomObjectType);
Answer: C
NEW QUESTION 48
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 49
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address 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 displays the form
- B. In the middleware chain of the controller post route
- C. In the view function that handles the submitted form
- D. In the model function that persists the form data
Answer: B
NEW QUESTION 50
Which three operations should be done in a controller?
Choose 3 answers
- A. Use the Script API to generate data for the view.
- B. Generate the response as JSON or HTML
- C. Create a plain JavaScript object representing a system object
- D. Use middleware functions when applicable
- E. Use the model needed for the view.
Answer: B,D,E
NEW QUESTION 51
Which line of code creates a content slot that can be included on homepage.isml to display on the home page?
- A. <isslot id="my_banner " description="for home page" type="global" context="homepage"/>
- B. <isslot id="my_banner " description="for home page" context="global">
- C. <isslot id="my_banner " description="for home page" type="global" context="content" context-object="${pdict.ContentSearchResult.content}"/>
- D. <isslot id="my_banner " description="for home page" context="global" context-object="${pdict.CurrentHomePage}"/>
Answer: B
NEW QUESTION 52
A Digital Developer needs to store information temporarily and decides to create a custom object.
Which code creates a custom object?
- A. CustomObjectMgr.createCustomObject(primaryKey);
- B. CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)
- C. CustomObject.createCustomObject(CustomObjectType,primaryKey);
- D. CustomObject.createCustomObject(primaryKey,CustomObjectType);
Answer: C
NEW QUESTION 53
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 54
Which technical reports datapoint measures the performance of a controller's script execution if network factors and Web Adaptor processing is ignored?
- A. Response time
- B. Call count
- C. Processing time
- D. Cache hit ratio
Answer: C
NEW QUESTION 55
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 CreditCardType.json configuration file.
- C. Credit card exclusion rules in the Merchant Tools > Site Preferences > Payment Preferences module.
- D. Credit cards in the Merchant Tools > Ordering > Payment Methods module.
Answer: D
NEW QUESTION 56
A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them.
Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?
- A. Adjust the relevant Site Preference in the Stores group
- B. Configure the existing Store custom object type definition
- C. Add a Boolean custom attribute to the Store system object
- D. Create a new SingleBrandStore custom object configuration.
Answer: C
NEW QUESTION 57
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 an unlimited Allocation value.
- B. Create an inventory record with Backorder Handling enabled.
- C. Create a perpetual inventory record.
- D. Create an inventory record with an extremely high Allocation value (i.e., 1 billion certificates).
Answer: B
NEW QUESTION 58
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: D
NEW QUESTION 59
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 import capability of the Site Import & Export module of Business Manager.
- D. Use the Business Manager Data Replication module to replicate the catalog from the original Developer's sandbox.
Answer: C
NEW QUESTION 60
A developer needs to show only car accessories when shoppers use the search term car accessories and exclude technology accessories and household accessories.
Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?
- A. Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology.
Use search mode Exact Match. - B. Create a Common Phrase Dictionary entry: car accessories.
Use search mode Exact Match. - C. Create a Synonym Dictionary entry: car accessories, household, technology.
Use search mode First Word. - D. Create a Synonym Dictionary entry: car accessories, household, technology.
Use search mode Exact Match
Answer: B
NEW QUESTION 61
......
Guaranteed Success with B2C-Commerce-Developer Dumps: https://www.prepawaypdf.com/Salesforce/B2C-Commerce-Developer-practice-exam-dumps.html
Pass Salesforce B2C-Commerce-Developer Exam – Experts Are Here To Help You: https://drive.google.com/open?id=17mUVBv6OHZejCzuuBbio2q8tSdoBdbon