
Get 100% Passing Success With True B2B-Commerce-Developer Exam! [Dec-2023]
Salesforce B2B-Commerce-Developer PDF Questions - Exceptional Practice To Salesforce Accredited B2B Commerce Developer
Salesforce B2B-Commerce-Developer exam is designed for individuals who specialize in the development of B2B e-commerce solutions using the Salesforce platform. B2B-Commerce-Developer exam is part of the Salesforce Accredited B2B Commerce Developer certification and is intended for professionals who have experience in building and customizing e-commerce solutions for businesses.
NEW QUESTION # 70
Ursa Major is planning to implement Salesforce B2B Commerce, and a developer needs to configure taxes for their storefront. The company operates in multiple states, each with different tax rates and tax rules.
What are two ways the developer should configure taxes in B2B Commerce?
- A. Use the Salesforce out-of-the-box tax calculator.
- B. Configure tax rates and rules for each state in Salesforce B2B Commerce.
- C. Configure a tax engine using third-party software.
- D. Use a different pricebook for each state.
Answer: B,C
Explanation:
Two ways that a developer should configure taxes in B2B Commerce for Ursa Major are: configure a tax engine using third-party software and configure tax rates and rules for each state in Salesforce B2B Commerce. Configuring a tax engine using third-party software allows the developer to integrate with an external tax service provider that can calculate and apply accurate and up-to-date tax rates and rules for different states and jurisdictions. The developer can use the sfdc_checkout.TaxCalculations interface or the RegisteredExternalService object to connect to the third-party tax service provider's API or service. Configuring tax rates and rules for each state in Salesforce B2B Commerce allows the developer to implement their own custom tax calculation logic using Apex code. The developer can use custom objects, such as TaxRate__c and TaxRule__c, to store and manage tax rates and rules for different states and products. The developer can also use the sfdc_checkout.TaxCalculations interface to define how to retrieve and apply tax rates and rules for a cart or an order. Using a different pricebook for each state is not a good way to configure taxes in B2B Commerce, as it can create complexity and inconsistency in pricing and discounting logic. Using the Salesforce out-of-the-box tax calculator is not a good way either, as it does not support complex or dynamic tax scenarios that may vary by state or jurisdiction. Salesforce Reference: [B2B Commerce Developer Guide: Tax Integration], [B2B Commerce Developer Guide: Tax Calculations Interface], [B2B Commerce Developer Guide: TaxRate Object], [B2B Commerce Developer Guide: TaxRule Object]
NEW QUESTION # 71
Which two methods from the platformResourceLoader module are relevant for including third party JavaScript and CSS in a Lightning web component?
- A. loadScript
- B. loadClientScript
- C. loadCss
- D. loadStyle
Answer: A,D
Explanation:
Two methods from the platformResourceLoader module that are relevant for including third party JavaScript and CSS in a Lightning web component are loadScript and loadStyle. The platformResourceLoader module is a module that provides methods for loading JavaScript or CSS files from static resources or external URLs into a Lightning web component. The loadScript method is used to load a JavaScript file and execute it in the component. The loadStyle method is used to load a CSS file and apply it to the component. The loadClientScript method does not exist or is not relevant for including third party JavaScript in a Lightning web component. The loadCss method does not exist or is not relevant for including third party CSS in a Lightning web component. Salesforce Reference: Lightning Web Components Developer Guide: Load Scripts and Style Sheets, [Lightning Web Components Developer Guide: platformResourceLoader Module]
NEW QUESTION # 72
Numerous flags, when set, have a direct impact on the result set provided by the Global API's. What is the default Global API DataSizing convention flag that is used by theAPI's unless otherwise specified?
- A. CCRZ.ccPAI.SZ_M
- B. CCRZ.ccPAI.SZ_L
- C. CCRZ.ccPAI.SZ_XL
- D. CCRZ.ccPAI.SZ_S
Answer: A
Explanation:
The default Global API Data-Sizing convention flag that is used by the API's unless otherwise specified is CCRZ.ccAPI.SZ_M. This flag indicates that the medium sizing block should be used for retrieving data, which includes the most commonly used fields and related entities. For example, ccrz.ccServiceProduct.getProducts() will use the SZ_M sizing block by default, unless another sizing block is specified as a parameter. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Data Sizing Conventions
NEW QUESTION # 73
What is a best practice when passing query parameters from user interface to an apex controller?
- A. Query parameters should be stored on a backbone model prior to passing them to the server
- B. Query parameters should be properly sanitized by using JSINHTMLENCODE within the VisualForce Page or Component.
- C. String parameters should be trimmed using String.trim().
- D. Query parameters should be passed only to Salesforce B2B Commerce classes that you are extending.
Answer: B
NEW QUESTION # 74
How do the REST APIs in Salesforce B2B Commerce support pass-through parameter handling
- A. Parameters are separated, but unused
- B. An exception is generated for unknown API keys
- C. Parameters are filtered out before the request is processed
- D. Parameters are passed through the service handlers
Answer: D
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 # 75
What interface must a developer implement to override Tax in Checkout?
- A. sfdc.commerce.CheckoutTaxCalculations
- B. sfdc_checkout.TaxCalculations
- C. sfdc_commerce.CartTaxCalculations
- D. sfdc.checkout.CartTaxCalculations
- E. sfdc.commerce.TaxCalculations
Answer: B
Explanation:
To override tax in checkout, a developer must implement the sfdc_checkout.TaxCalculations interface. The sfdc_checkout.TaxCalculations interface is an Apex interface that provides methods for customizing the tax calculation logic for a cart or an order. The interface allows the developer to define how to retrieve tax rates and rules, how to apply tax amounts and adjustments, and how to handle tax errors and exceptions. The developer can use the sfdc_checkout.TaxCalculations interface to integrate with a third-party tax service provider or to implement their own tax calculation logic. The other interfaces do not exist or are not related to tax calculation. Salesforce Reference: B2B Commerce Developer Guide: Tax Integration, B2B Commerce Developer Guide: Tax Calculations Interface
NEW QUESTION # 76
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.defVal (Map<String.Object> mp, String key, Object ob)
- B. ccrz.ccUtil.defv (Map<String.Object> mp, String key , Object ob)
- C. ccrz.ccUtil.defaultValue(Map<String.Object> mp, String key , Object ob)
- D. ccrz.ccUtil.... (Map<String.Object> mp, String key, Object ob)
Answer: B
NEW QUESTION # 77
What are two guidelines for logging that are used within the core Salesforce B2B Commerce product? (2 answers)
- A. The close method of ccrz.ccLog must be called at the end of the remote action.
- B. Items or data within computational intensive loops shouldbe logged.
- C. No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed.
- D. It is okay to log any data on the server that is already logged on the client side.
Answer: A,C
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 # 78
Where are handlebar Templates defined in the Cloudcraze managed package?
- A. Page Settings configuration
- B. cc_hk_UserInterface extension
- C. Configuration Setting configuration
- D. uiProperties file
Answer: D
NEW QUESTION # 79
Which Salesforce B2B Commerce object needs to have a record added when defining a new Subscriber Pages to be rendered in a CC Page?
- A. CC Storefront Assosiation
- B. CC Admin
- C. CC Subscriber Pages
- D. CC Page Sections
Answer: C
NEW QUESTION # 80
Which handlebars helper function is used on Salesforce B2B Commerce pages and components for formatting price values?
- A. price
- B. priceAbs
- C. formatPrice
- D. showprice
Answer: C
Explanation:
The handlebars helper function that is used on Salesforce B2B Commerce pages and components for formatting price values is formatPrice. This function will format a numeric value as a price according to the currency settings and locale of the storefront. For example, {{formatPrice price}} will format the price value as $1,234.56 for US dollars or €1.234,56 for euros. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Handlebars Helpers
NEW QUESTION # 81
Which two steps are necessary to enable Salesforce B2B Commerce
logging in the managed package?
- A. Ensure the value saved in the Logging token field is appended to the ccLog query parameter.
- B. Turn On theCheckbox "Cloudcraze Logging" in CC Admin.
- C. Set a cookie with the Id of the user accessing the storefront in CC Admin
- D. Ensure you save a value in the Logging Token input field in the Global Settings section of CC Admin.
Answer: A,D
Explanation:
To enable Salesforce B2B Commerce logging in the managed package, you need to do two steps. First, you need to save a value in the Logging Token input field in the Global Settings section of CC Admin. This value can be any string that you choose, such as "debug". Second, you need to ensure that the value saved in the Logging token field is appended to the ccLog query parameter in the URL of the storefront page that you want to debug. For example, if your logging token is "debug", then your URL should look like this: https://my-storefront.com/?ccLog=debug. This will enable logging for that page only. You do not need to turn on the checkbox "Cloudcraze Logging" in CC Admin, as this is an old setting that is no longer used. You also do not need to set a cookie with the Id of the user accessing the storefront in CC Admin, as this is not required for logging. Salesforce Reference: [B2B Commerce Developer Guide: Logging]
NEW QUESTION # 82
What is a valid way of referencing the CC Cart Object whose API name is E_Cart__c in a SOQL query?
- A. c.E_Cart__c
- B. cloudcraze__E_Cart__c
- C. _Cart__c
- D. ccrz__E_Cart__c
Answer: D
NEW QUESTION # 83
What are three ways to test the value of Page Label on any Salesforce B2B Commerce Community Page? (3 answers)
- A. Execute (('PAGE_LABEL_NAME')) in the JavaScript console
- B. Execute CCRZ.pagevars.pageLabels['PAGE_LABEL_NAME') in the JavaScript console.
- C. Access the source HTML for the page via the browser developer tools.
- D. Enable the 'display page label names' in cc admin.
- E. Execute CCRZ.processPageLabelMap('PAGE_LABEL_NAME') in the JavaScript console.
Answer: B,D,E
NEW QUESTION # 84
What is a method to resolve if the current storefront customer is a Salesforce B2B Commerce guest user in an apex class?
- A. ccrz.cc_CallContext.currUser.isGuest
- B. UserInfo.getUserType()
- C. ... UserType
- D. ccrz.cc_CallContext.isGuest
Answer: D
Explanation:
A method to resolve if the current storefront customer is a Salesforce B2B Commerce guest user in an apex class is to use ccrz.cc_CallContext.isGuest. This property will return true if the current user is a guest user, or false otherwise. For example, if(ccrz.cc_CallContext.isGuest){ // do something for guest user } will execute some logic only for guest users. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Call Context
NEW QUESTION # 85
Which service method should be overridden in order to allow "without sharing" queries?
- A. ccrz.ccService.queryWithoutSharing()
- B. ccrz.ccAPI.queryService()
- C. ccrz.ccService.initSVCDAO()
- D. ccrz.ccService.query()
Answer: C
Explanation:
The service method that should be overridden in order to allow "without sharing" queries is ccrz.ccService.initSVCDAO. This method is responsible for initializing the service data access object (SVCDAO) that is used by the service class to perform queries. By overriding this method, the user can specify the sharing mode of the SVCDAO, which will determine whether the queries respect or ignore the sharing rules of the current user. For example, ccrz.ccService.initSVCDAO(ccrz.ccAPI.SZ_WITHOUTSHARING) will initialize the SVCDAO with the without sharing mode. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Service Classes, ccService Class
NEW QUESTION # 86
What is a valid way of referencing the CC Cart Object whose API name is E_Cart__c in a SOQL query?
- A. c.E_Cart__c
- B. cloudcraze__E_Cart__c
- C. _Cart__c
- D. ccrz__E_Cart__c
Answer: D
Explanation:
A valid way of referencing the CC Cart Object whose API name is E_Cart__c in a SOQL query is to use ccrz__E_Cart__c. This is the transformed name of the object that is used by the Salesforce B2B Commerce framework. All custom objects and fields that are part of the cloudcraze managed package have the prefix ccrz__ in their API names. For example, SELECT Id, Name FROM ccrz__E_Cart__c will query the CC Cart Object records. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Query Transformation
NEW QUESTION # 87
In which three ways can Salesforce B2B Commerce API sizing blocks support multiple API sizing requests? (3 answers)
- A. SZ_ASSC is used.
- B. When different entities are specified in the method invocation.
- C. The sizing block is removed after the first handler.
- D. The sizing block is not removed.
- E. SZ_ASSC is not used.
Answer: B,C,E
NEW QUESTION # 88
Which three actions are applicable when extending a default Salesforce B2B Commerce page via a page include? (3 answers)
- A. Create the VisualForce page you wish to include to the Salesforce b2B Commerce page.
- B. Build and activate a new configuration cache setting via CC admin.
- C. Create a configuration setting for enabling the page include and assigning the new page include via CC admin.
- D. Create a Service Class override to query the new page include.
- E. Prepend "c." to the name of the page referenced in the configuration setting.
Answer: A,B,C
NEW QUESTION # 89
Which code statement should a developer use to import the ID of the current Lightning Experience
- A. import id from '@salesforce/network/ld'
- B. import id from '@salesforce/experience/ld'
- C. import id from '@salesforce/community/ld'
- D. import id from '@salesforce/site/ld'
Answer: C
Explanation:
To import the ID of the current Lightning Experience community, a developer should use the following code statement:
import id from '@salesforce/community/Id';
The @salesforce/community module allows the developer to access information about the current community, such as its ID, name, URL, and base path. The other modules do not exist or are not related to the community ID. The @salesforce/network module is used to access information about the current network, such as its ID and name. The @salesforce/experience module is used to access information about the current user experience, such as whether it is standard or custom. The @salesforce/site module is used to access information about the current site, such as its name and prefix. Salesforce Reference: [Lightning Web Components Developer Guide: Import Community Information], [Lightning Web Components Developer Guide: Import Salesforce Modules]
NEW QUESTION # 90
Which three actions are applicable when extendinga default Salesforce B2B Commerce page via a page include? (3 answers)
- A. Create the VisualForce page you wish to include to the Salesforce b2B Commerce page.
- B. Build and activate a new configuration cache setting via CC admin.
- C. Prepend "c." to the name ofthe page referenced in the configuration setting.
- D. Create a configuration setting for enabling the page include and assigning the new page include via CC admin.
- E. Create a Service Class override to query the new page include.
Answer: A,B,D
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 # 91
A developer is building a custom component in Lightning web components (LWC) that needs to fetch data from an API.
Which lifecycle hook should the developer use to make the API call?
- A. renderedCallback
- B. errorCallback
- C. disconnectedCallback
- D. connectedCallback
Answer: D
Explanation:
To make an API call in a Lightning web component (LWC), a developer should use the connectedCallback lifecycle hook. The connectedCallback lifecycle hook is invoked when the component is inserted into the DOM. This is the ideal time to make an API call, as the component is ready to receive and display data. The developer can use the fetch API or a third-party library, such as axios, to make the API call and handle the response. The renderedCallback lifecycle hook is not a good choice for making an API call, as it is invoked every time the component is rendered or rerendered. This can cause unnecessary or repeated API calls and affect performance. The errorCallback lifecycle hook is not a good choice either, as it is invoked when an error occurs in the component or in one of its children. This is not related to making an API call, but rather to handling errors. The disconnectedCallback lifecycle hook is not a good choice either, as it is invoked when the component is removed from the DOM. This is not a suitable time to make an API call, as the component is no longer visible or active. Salesforce Reference: Lightning Web Components Developer Guide: Lifecycle Hooks, Lightning Web Components Developer Guide: Call an Apex Method Imperatively
NEW QUESTION # 92
......
Salesforce is a renowned global technology company that provides cloud-based software-as-a-service (SaaS) and customer relationship management (CRM) solutions to businesses worldwide. Salesforce has been a leader in the cloud computing industry, providing innovative solutions to help businesses automate processes and streamline operations. One of the solutions provided by Salesforce is B2B Commerce, which allows businesses to provide an online e-commerce platform for their customers.
B2B-Commerce-Developer dumps - TestValid - 100% Passing Guarantee: https://www.testvalid.com/B2B-Commerce-Developer-exam-collection.html
Fast, Hands-On B2B-Commerce-Developer exam: https://drive.google.com/open?id=1EcUUV5Be4Ak8v-lo52cvRa3lMWSyBcQm