[Q81-Q100] View B2B-Commerce-Developer Exam Question Dumps With Latest Demo [Jan 09, 2024]

Share

View B2B-Commerce-Developer Exam Question Dumps With Latest Demo [Jan 09, 2024]

Free B2B-Commerce-Developer Test Questions Real Practice Test Questions


Salesforce B2B-Commerce-Developer Certification Exam is designed for individuals who want to demonstrate their expertise in developing and implementing B2B eCommerce solutions using the Salesforce platform. Salesforce Accredited B2B Commerce Developer certification is ideal for developers, architects, and consultants who work with B2B commerce customers and want to validate their skills and knowledge in this area. B2B-Commerce-Developer exam covers a range of topics such as data modeling, site design and development, integration, and security.

 

NEW QUESTION # 81
Which three actions are applicable when extendinga default Salesforce B2B Commerce page via a page include? (3 answers)

  • A. Prepend "c." to the name ofthe page referenced in the configuration setting.
  • B. Create a Service Class override to query the new page include.
  • C. Create a configuration setting for enabling the page include and assigning the new page include via CC admin.
  • D. Create the VisualForce page you wish to include to the Salesforce b2B Commerce page.
  • E. Build and activate a new configuration cache setting via CC admin.

Answer: C,D,E

Explanation:
Three actions that are applicable when extending a default Salesforce B2B Commerce page via a page include are:
Create the VisualForce page you wish to include to the Salesforce B2B Commerce page. This page will contain the custom content or logic that you want to add to the existing page. For example, you can create a VisualForce page named MyPageInclude that displays some additional information or functionality on the product detail page.
Create a configuration setting for enabling the page include and assigning the new page include via CC Admin. This setting will specify which page include you want to use for which page and section. For example, you can create a configuration setting named CO.MyPageInclude with the value PDV.BodyIncludeBegin.MyPageInclude, which means you want to use MyPageInclude as the body include begin for the product detail view (PDV) page.
Build and activate a new configuration cache setting via CC Admin. This action will refresh the cache and apply the changes to the storefront. You need to do this whenever you make any changes to the configuration settings or VisualForce pages. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Page Includes


NEW QUESTION # 82
How do the REST APIs in Salesforce B2B Commerce support pass-through parameter handling

  • A. Parameters are separated, but unused
  • B. Parameters are filtered out before the request is processed
  • C. An exception is generated for unknown API keys
  • D. Parameters are passed through the service handlers

Answer: D

Explanation:
Explanation
The REST APIs in Salesforce B2B Commerce support pass-through parameter handling by passing parameters through the service handlers. This means that any parameters that are not recognized by the REST API framework will be passed to the service handler class that implements the API logic. The service handler class can then use these parameters for custom logic or validation.


NEW QUESTION # 83
A developer is working on a storefront and is seeing unexpected Ul behavior in one of the custom Lightning web components (LWCs) their team has built.
How should the developer investigate the issue?

  • A. Enable Debug Mode for a storefront user, load the LWC in Visual Studio (VS) Code, attach to session, and view debug logs in VS Code.
  • B. Enable Debug Mode for a storefront user, log in to the storefront, and use Browser Inspection tools and debugger points.
  • C. Identify the user, inputs, and failure, then ask Salesforce support to investigate the issue with the custom LWC.
  • D. Enable debug logs for a storefront user, log in to storefront and perform action, and view debug logs in Setup.

Answer: B

Explanation:
To investigate the issue of seeing unexpected UI behavior in one of the custom Lightning web components (LWCs) their team has built, the developer should enable Debug Mode for a storefront user, log in to the storefront, and use Browser Inspection tools and debugger points. Debug Mode is a feature that allows developers to debug and troubleshoot custom LWCs in the storefront by disabling performance optimizations and enabling source maps. Source maps are files that map the minified or obfuscated code to the original source code, making it easier to read and debug. To enable Debug Mode for a storefront user, the developer can go to Setup, enter Users in the Quick Find box, select Users, click Edit next to the user name, and select Debug Mode. After enabling Debug Mode, the developer can log in to the storefront as the user and use Browser Inspection tools and debugger points to inspect and debug the custom LWC. Browser Inspection tools are tools that are built into web browsers that allow developers to examine and modify the HTML, CSS, JavaScript, and other aspects of a web page. Debugger points are statements that are added to the JavaScript code of a LWC that pause the execution of the code at a certain point and allow the developer to inspect the values of variables, expressions, and other elements. Enable Debug Mode for a storefront user, load the LWC in Visual Studio (VS) Code, attach to session, and view debug logs in VS Code is not a valid way to investigate the issue of seeing unexpected UI behavior in one of the custom LWCs their team has built, as it is not possible to attach to a session or view debug logs for LWCs in VS Code. Enable debug logs for a storefront user, log in to storefront and perform action, and view debug logs in Setup is not a valid way either, as debug logs do not capture information about LWCs or UI behavior. Debug logs are records of database operations, system processes, and errors that occur when executing a transaction or running unit tests. Identify the user, inputs, and failure, then ask Salesforce support to investigate the issue with the custom LWC is not a valid way either, as it is not a recommended or efficient way of debugging or troubleshooting custom LWCs. Salesforce support may not be able to provide assistance or guidance for custom LWCs that are developed by third-party developers. Salesforce Reference: B2B Commerce Developer Guide: Debug Lightning Web Components, Lightning Web Components Developer Guide: Debug Your Code, Salesforce Help: Debug Logs


NEW QUESTION # 84
Which two components in a B2B store template should a developer use to customize a storefront page?

  • A. Address List
  • B. Product List
  • C. Order List
  • D. My Lists

Answer: B,D

Explanation:
Two components in a B2B store template that a developer can use to customize a storefront page are My Lists and Product List. My Lists is a standard component that displays and manages lists of products that customers can create, save, or share in the storefront. A developer can use this component to enable customers to organize their favorite or frequently purchased products into lists and access them easily. Product List is a standard component that displays and filters products from one or more product lists in the storefront. A developer can use this component to showcase products from different categories or collections and allow customers to browse or search for products based on various criteria. Order List is not a component in a B2B store template, but rather an object that stores information about orders placed by customers in the storefront. Address List is not a component either, but rather an object that stores information about addresses associated with customers in the storefront. Salesforce Reference: [B2B Commerce Developer Guide: My Lists Component], [B2B Commerce Developer Guide: Product List Component], [B2B Commerce Developer Guide: Order List Object], [B2B Commerce Developer Guide: Address List Object]


NEW QUESTION # 85
Which two usages of ccLog should be avoided in Salesforce B2B Commerce? (2 answers)

  • A. ccrz.ccLog.log(System.LoggingLevel.ERROR, 'D:something', myCallToGetMessage(pl) ), where myCallToGetMessage(pl) is a method invocation
  • B. crz.ccLog.log(System.LoggingLevel.WARN, 'D:something', 'Something unexpected occurred: The data we were expecting for pl was not there,')
  • C. crz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrder', myOrder), where myOrder is an order object
  • D. crz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrderList', myOrderList), where myOrderList is a list of orders

Answer: A,B


NEW QUESTION # 86
What is the fastest route to setting up a B2B Commerce Store as a developer?

  • A. Use sfdx setup scripts
  • B. Import a previously exported store archive
  • C. Set up B2B Commerce on Lightning Experience manually
  • D. Create a new store in the Commerce app

Answer: A

Explanation:
Explanation
The fastest route to setting up a B2B Commerce store as a developer is to use sfdx setup scripts. Sfdx setup scripts are scripts that use Salesforce CLI commands to automate the creation and configuration of a B2B Commerce store. The scripts can perform tasks such as creating scratch orgs, installing packages, importing data, assigning permissions, and deploying code. The scripts can save time and effort for developers who need to set up a B2B Commerce store quickly and easily. Setting up B2B Commerce on Lightning Experience manually is not the fastest route to setting up a B2B Commerce store, as it involves many steps and actions that can be tedious and error-prone. Creating a new store in the Commerce app is not the fastest route either, as it also requires manual configuration and customization of various settings and features. Importing a previously exported store archive is not the fastest route either, as it depends on the availability and quality of the store archive and may not reflect the latest changes or updates. Salesforce References: [B2B Commerce Developer Guide: Set Up Your Development Environment], [B2B Commerce Developer Guide: Create Your Store]


NEW QUESTION # 87
The ccUtil apex class in Salesforce B2B Commerce provides numerous utility functions that can be leveraged in subscriber classes. Which command will return the value in the given Map if found or a default value in the event that the Map is null, empty, or an object is not found for that key?

  • A. ccrz.ccUtil.... (Map<String.Object> mp, String key, Object ob)
  • B. ccrz.ccUtil.defVal (Map<String.Object> mp, String key, Object ob)
  • C. ccrz.ccUtil.defv (Map<String.Object> mp, String key , Object ob)
  • D. ccrz.ccUtil.defaultValue(Map<String.Object> mp, String key , Object ob)

Answer: B

Explanation:
Explanation
The ccrz.ccUtil.defVal (Map<String.Object> mp, String key, Object ob) method will return the value in the given Map if found or a default value in the event that the Map is null, empty, or an object is not found for that key. This method is useful for providing fallback values for configuration settings or input parameters that may be missing or invalid. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, ccUtil Class


NEW QUESTION # 88
Which two technologies can subscribe to the CommerceDiagnosticEvents event?

  • A. Lightning web components
  • B. Aura Components
  • C. Streaming API
  • D. Processes

Answer: A,B

Explanation:
Two technologies that can subscribe to the CommerceDiagnosticEvents event are Aura Components and Lightning web components. CommerceDiagnosticEvents is an event that is fired by Salesforce B2B Commerce when an error occurs in the storefront. CommerceDiagnosticEvents contains information about the error, such as error code, error message, error type, and error details. CommerceDiagnosticEvents can be subscribed by other components or services that want to handle or display the error information in different ways. Aura Components are a type of component that can be used to create custom user interfaces for Salesforce apps. Aura Components can subscribe to CommerceDiagnosticEvents using an aura:handler tag in their markup file. The aura:handler tag specifies an event name, an action attribute that defines a controller function to handle the event, and other optional attributes. Lightning web components are another type of component that can be used to create custom user interfaces for Salesforce apps. Lightning web components can subscribe to CommerceDiagnosticEvents using an @wire decorator in their JavaScript file. The @wire decorator specifies an event name, a function name that defines a handler for the event, and other optional parameters. Processes are not a technology that can subscribe to CommerceDiagnosticEvents, as they are not related to user interface development or event handling. Processes are automated workflows that execute actions based on certain criteria or conditions in Salesforce. Streaming API is not a technology that can subscribe to CommerceDiagnosticEvents either, as it is not related to user interface development or event handling. Streaming API is an API that allows applications to receive notifications of data changes in Salesforce in near real-time. Salesforce Reference: [B2B Commerce Developer Guide: Handle Errors], [Aura Components Developer Guide: Handle Component Events], [Lightning Web Components Developer Guide: Communicate with Events], [Salesforce Help: Process Automation], [Salesforce Developer Guide: Streaming API]


NEW QUESTION # 89
Salesforce B2B Commerce natively provides a robots.txt file, however, a customer can also create its own version.Which three scenarios are valid reasons for customer to create their own robots.txt file? (3 answers)

  • A. robot.txt only works if there is one storefront in the org
  • B. The customer's store is not located at the rootof their domain.
  • C. The customer wants to have multiple robot.txt files in a single Salesforce Community.
  • D. The customer wants to reference multiple storefront sitemap indexes in a single robots.txt file
  • E. The customer wants to reference a custom sitemap index.

Answer: B,D,E

Explanation:
A customer can create its own robots.txt file for three valid reasons:
The customer wants to reference multiple storefront sitemap indexes in a single robots.txt file. This can be useful if the customer has multiple storefronts under the same domain and wants to provide a single entry point for search engines to crawl their sitemaps.
The customer wants to reference a custom sitemap index. This can be useful if the customer has created their own sitemap index that contains custom sitemaps or sitemaps from other sources.
The customer's store is not located at the root of their domain. This can be useful if the customer has their store under a subdirectory or a subdomain and wants to specify a different robots.txt file for their store than for their main domain. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Robots.txt File


NEW QUESTION # 90
A query containing a subquery is executed. What is appended to the subquery name as part of its transformation by default in Salesforce B2B Commerce?

  • A. The letter "S"
  • B. The "*" symbol
  • C. "__ccrz"
  • D. A subscriber-supplied token

Answer: C

Explanation:
Explanation
A query containing a subquery is executed. By default, in Salesforce B2B Commerce, "__ccrz" is appended to the subquery name as part of its transformation. This is done to avoid conflicts with the standard Salesforce fields and relationships. For example, SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account will be transformed to SELECT Id, Name, (SELECT Id, Name FROM Contacts__ccrz) FROM Account__ccrz. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Query Transformation


NEW QUESTION # 91
Which cookie stores the effective account ID when effective account is enabled?

  • A. apex__effacc
  • B. apex__cclgtkn
  • C. apex__cc_anonymous_Country
  • D. apex__currCartId

Answer: A

Explanation:
Explanation
The cookie that stores the effective account ID when effective account is enabled is apex__effacc. This cookie is set by the cc_hk_EffectiveAccount hook when a user switches to another account that they have access to.
The cookie value is the ID of the effective account, which is used to determine the pricing, availability, and visibility of products and categories for that account. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Effective Account


NEW QUESTION # 92
Which two statements are accurate about the Cart Item with a Type of Charge?

  • A. It is linked directly to a Cart Id
  • B. It is created with the Cart Delivery Group Method after the freight integration
  • C. It is created with the Cart Delivery Group Method after the shipping integration
  • D. It is linked directly to a Catalog Id

Answer: A,D

Explanation:
Two statements that are accurate about the Cart Item with a Type of Charge are that it is linked directly to a Cart Id and that it is linked directly to a Catalog Id. A Cart Item with a Type of Charge is a special type of Cart Item that represents an additional charge or fee that is applied to a Cart, such as shipping, handling, or tax. A Cart Item with a Type of Charge is linked directly to a Cart Id, which means that it belongs to a specific Cart and can be retrieved or updated along with other Cart Items. A Cart Item with a Type of Charge is also linked directly to a Catalog Id, which means that it references a specific Catalog that contains the products and prices for the store. A Cart Item with a Type of Charge is not created with the Cart Delivery Group Method after the shipping integration or after the freight integration, as these are not related to the creation of Cart Items. The Cart Delivery Group Method is a method that determines how products are grouped into delivery groups based on their shipping methods and addresses. The shipping integration and the freight integration are integrations that calculate and apply shipping costs and freight charges to a Cart or an Order. Salesforce Reference: B2B Commerce Developer Guide: Cart Item Object, B2B Commerce Developer Guide: Shipping Integration, B2B Commerce Developer Guide: Freight Integration


NEW QUESTION # 93
Which handlebars helper expression is used in Salesforce B2B Commerce pages and components to toggle the display of a block of markup?

  • A. {{#ifDisplay 'Page.cfg'}} ... {{/ifDisplay}}
  • B. {{#ifConfig 'Field__c'}} ... {{/ifConfig}}
  • C. {{#ifStoreSetting 'Field__c'}} ... {{/ifStoreSetting}}
  • D. {{#ifSetting 'Page.cfg}} ... {{/ifSetting}}

Answer: B

Explanation:
Explanation
The handlebars helper expression that is used in Salesforce B2B Commerce pages and components to toggle the display of a block of markup is {{#ifConfig 'Field__c'}} ... {{/ifConfig}}. This expression will evaluate the value of the configuration setting with the API name Field__c and render the block of markup if the value is true, or skip it if the value is false. For example, {{#ifConfig 'CO.showMiniCart'}} <div id="mini-cart"> ...
</div> {{/ifConfig}} will render the mini-cart div only if the configuration setting CO.showMiniCart is true.
Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Handlebars Helpers


NEW QUESTION # 94
How are version related upgrades passed on to subscriber API extensions/overrides?

  • A. Copy and paste of specific code is "built-in"
  • B. APIs callback with specific versions specified; the user must know which version number to use.
  • C. Extensions and overridden APIs don't support-related upgrades.
  • D. The "delegate" allows inherited method calls access to the most recently specified service version

Answer: D


NEW QUESTION # 95
Which event is triggered within Salesforce B2B Commerce whenever a cart's statechanges?

  • A. cart
  • B. cartState
  • C. pageMessage
  • D. cartChange

Answer: D

Explanation:
The event that is triggered within Salesforce B2B Commerce whenever a cart's state changes is cartChange. This event is triggered by the updateCart method of the CCRZ.Cart class, which is responsible for updating the cart data and performing any actions that depend on the cart state, such as applying discounts, taxes, or shipping charges. The event can be used to notify all the components that are listening to it that the cart has changed and they should refresh their data accordingly. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Events, Cart Class


NEW QUESTION # 96
Universal Containers (UC) is ready to build a tax provider class using the interfaces available in the Buyer Experience SDK. When creating a tax provider, what are three things that a developer should consider first?

  • A. WhethertouseJSONorXML
  • B. Steps to complete in the Tax Service
  • C. What events to fire in the Lightning web component
  • D. How to handle results
  • E. What to implement

Answer: B,D,E

Explanation:
Explanation
When creating a tax provider, three things that a developer should consider first are: steps to complete in the tax service, how to handle results, and what to implement. Steps to complete in the tax service are the actions that the developer needs to perform to connect to and use the third-party tax service provider's API or service.
These steps may include authentication, authorization, request formatting, response parsing, error handling, and logging. How to handle results are the actions that the developer needs to perform to process and apply the tax calculation results from the tax service to the cart or order. These actions may include creating or updating cart items with type of Charge and charge type of Tax, applying tax adjustments or exemptions, and displaying tax amounts and details on the storefront. What to implement are the methods that the developer needs to define in their custom Apex class that implements the sfdc_checkout.TaxCalculations interface. The interface provides methods for customizing the tax calculation logic for a cart or an order, such as getTaxRatesAndRules, applyTaxAmountsAndAdjustments, and handleTaxErrorsAndExceptions. Whether to use JSON or XML is not something that the developer should consider first, as it is not a critical or relevant factor for creating a tax provider. It may depend on the format that the tax service provider supports or prefers, but it does not affect the overall functionality or performance of the tax integration. What events to fire in the Lightning web component is not something that the developer should consider first either, as it is not related to creating a tax provider. It may be an optional feature that the developer can add to enhance the user interface or user experience of their storefront, but it does not affect the core logic or functionality of the tax integration.
Salesforce References: B2B Commerce Developer Guide: Tax Integration, [B2B Commerce Developer Guide:
Tax Calculations Interface]


NEW QUESTION # 97
What are two guidelines for logging that are used within the core Salesforce B2B Commerce product? (2 answers)

  • A. Items or data within computational intensive loops shouldbe logged.
  • B. It is okay to log any data on the server that is already logged on the client side.
  • C. The close method of ccrz.ccLog must be called at the end of the remote action.
  • D. No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed.

Answer: C,D

Explanation:
Two guidelines for logging that are used within the core Salesforce B2B Commerce product are:
The close method of ccrz.ccLog must be called at the end of the remote action. This method will flush the log messages to the browser console or to a custom object, depending on the logging mode. If this method is not called, the log messages may not be displayed or saved properly.
No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed. This method will initialize the call context object, which contains information such as the current user, cart, storefront, and configuration settings. These information are required for logging, so calling ccrz.ccLog before initializing the call context will result in an error. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Logging


NEW QUESTION # 98
A developer is trying to integrate a new shipping provider to use during checkout in a storefront Which two steps must the developer take to make an integration available for selection?

  • A. Enter the integration class name and version in the store administration.
  • B. Create an Apex class that uses the integration framework.
  • C. Modify the StorelntegratedService to map to an Apex class ID using Workbench.
  • D. Create a RegisteredExternalService record using Workbench.

Answer: B,D

Explanation:
To make an integration available for selection, a developer must create a RegisteredExternalService record using Workbench and create an Apex class that uses the integration framework. Creating a RegisteredExternalService record using Workbench allows the developer to register their custom integration class as an external service in Salesforce B2B Commerce. The RegisteredExternalService record contains information such as the class name, version, display name, description, and category of the integration class. The category determines where and how the integration class can be used in B2B Commerce, such as ShippingService or TaxService. Creating an Apex class that uses the integration framework allows the developer to define custom logic for integrating with an external service provider's API or service. The integration framework provides interfaces and classes for various types of integrations, such as shipping, tax, payment, inventory, and freight. The developer can implement these interfaces and classes in their custom Apex class and override their methods with their own logic. Modifying the StoreIntegratedService to map to an Apex class ID using Workbench is not a required step for making an integration available for selection, as it is only used for registering internal services that are provided by Salesforce B2B Commerce out-of-the-box. Entering the integration class name and version in store administration is not a required step either, as it is only used for selecting an existing integration class that has already been registered as an external service. Salesforce Reference: [B2B Commerce Developer Guide: Integration Framework], [B2B Commerce Developer Guide: RegisteredExternalService Object]


NEW QUESTION # 99
Salesforce B2B leverages global API's for encapsulating business logic into blocks that can be extended and modified by subscribers. Which three statements are true regarding extending ccServiceProduct and exposing custom fields on the Product Detail Page? (3 answers)

  • A. Ensure that any helper methods are defined as private andstatic only.
  • B. Override the getFieldsMap method and add subscriber specific code.
  • C. Create a global with sharing class that extends ccrz.ccServiceProduct.
  • D. Create a public with sharing class that extends ccrz.ccServiceProduct.
  • E. Override the fetch method and add your subscriber specific code here.

Answer: B,C,E

Explanation:
To extend ccServiceProduct and expose custom fields on the Product Detail Page, three statements are true:
Override the getFieldsMap method and add subscriber specific code. This method returns a map of field names and field types for the product entity and its related entities. By overriding this method, the subscriber can add their custom fields to the map and make them available for the API.
Create a global with sharing class that extends ccrz.ccServiceProduct. This class will inherit all the methods and properties of the ccServiceProduct class and allow overriding or extending them. The class should be global and with sharing to ensure that it can be accessed by the API framework and respect the sharing rules.
Override the fetch method and add your subscriber specific code here. This method executes the query to fetch the product data and returns a result object. By overriding this method, the subscriber can modify the query or the result object to include their custom fields or logic. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Service Classes, ccServiceProduct Class


NEW QUESTION # 100
......

View All B2B-Commerce-Developer Actual Free Exam Questions Updated: https://passking.actualtorrent.com/B2B-Commerce-Developer-exam-guide-torrent.html