
[2023] Use Valid B2B-Commerce-Developer Exam - Actual Exam Question & Answer
Test Engine to Practice B2B-Commerce-Developer Test Questions
Salesforce B2B-Commerce-Developer certification demonstrates that the candidate has the technical skills and knowledge to develop and implement B2B commerce solutions using the Salesforce platform. Salesforce Accredited B2B Commerce Developer certification is recognized by the industry and is highly valued by employers as it signifies the candidate's proficiency in the field of B2B commerce development. Salesforce Accredited B2B Commerce Developer certification exam comprises multiple-choice questions and is conducted online.
NEW QUESTION # 52
Which event is invoked by any CCRZ Salesforce B2B CommeceView after the view is rendered?
- A. view:*:rendered
- B. view:*:refresh
- C. view:*:load
- D. view:*:onload
Answer: A
Explanation:
The event that is invoked by any CCRZ Salesforce B2B Commerce View after the view is rendered is view:*:rendered. This event is triggered by the render method of the CCRZ.View class, which is the base class for all views in the framework. The event can be used to perform any actions or logic that depend on the view being rendered, such as initializing widgets, binding events, or updating the user interface. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Events, View Class
NEW QUESTION # 53
Which out of the box Salesforce B2B Commerce page can give instructions to web crawlers from accessing specific Salesforce B2B Commerce pages?
- A. CCPage
- B. CCCat?SiteMap
- C. CCSiteIndex
- D. cc_RobotsTxT
Answer: D
NEW QUESTION # 54
Which event should be triggered when user facing info, warning or error messages need to be displayed on a Visualforce page?
- A. pageMessage
- B. displayPageMessage
- C. showMessage
- D. displayMessage
Answer: A
NEW QUESTION # 55
What two kinds of queries do the methods in Salesforce B2B Commerce services perform by default? (2 answers)
- A. SQL
- B. SOSL
- C. Schema-less queries
- D. SOQL
Answer: B,D
NEW QUESTION # 56
Which two technologies can subscribe to the CommerceDiagnosticEvents event?
- A. Lightning web components
- B. Streaming API
- C. Processes
- D. Aura Components
Answer: A,D
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 # 57
Which event is triggered within Salesforce B2B Commerce whenever a cart's statechanges?
- A. cart
- B. cartState
- C. cartChange
- D. pageMessage
Answer: C
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 # 58
Which out of the box Salesforce B2B Commerce page can give instructions to web crawlers from accessing specific Salesforce B2B Commerce pages?
- A. CCPage
- B. CCCat?SiteMap
- C. CCSiteIndex
- D. cc_RobotsTxT
Answer: D
Explanation:
The out of the box Salesforce B2B Commerce page that can give instructions to web crawlers from accessing specific Salesforce B2B Commerce pages is cc_RobotsTxt. This is a Visualforce page that generates a robots.txt file, which is a text file that tells web crawlers which pages or files they can or can't request from a site. The page uses the configuration settings CO.RobotsTxtAllow and CO.RobotsTxtDisallow to specify which paths are allowed or disallowed for web crawlers. For example, User-agent: * Disallow: /CCCart will instruct web crawlers to not access the CCCart page. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Robots.txt File
NEW QUESTION # 59
Inwhich three different ways can a theme be enabled in
Salesforce B2B Commerce? (3 answers)
- A. A per user setting
- B. A Storefront setting
- C. An Account Group field value
- D. Dynamically through a hook
- E. Account
Answer: B,C,D
Explanation:
A theme can be enabled in Salesforce B2B Commerce in three different ways:
A Storefront setting: The theme can be specified in the Storefront Configuration settings in CCAdmin. This will apply the theme to all users who access the storefront.
An Account Group field value: The theme can be specified in the Theme field of an Account Group record in Salesforce. This will apply the theme to all users who belong to that account group.
Dynamically through a hook: The theme can be specified dynamically by extending the cc_hk_theme hook. This hook allows changing the theme based on various factors, such as the user, cart, product, or storefront. For example, the hook can apply a different theme for a specific product category or for a specific user segment.
NEW QUESTION # 60
How do the REST APIs in Salesforce B2B Commerce support pass-through parameter handling
- A. Parameters are filtered out before the request is processed
- B. An exception is generated for unknown API keys
- C. Parameters are passed through the service handlers
- D. Parameters are separated, but unused
Answer: C
NEW QUESTION # 61
Which Global JavaScript Object should be extended when
writing custom Remote Actions?
- A. CCRZ.
- B. CCRZ.cc
- C. CCRZ.RemoteInvocation
- D. CCRZ.cc_CallContext
Answer: C
NEW QUESTION # 62
How are variables bound when services use the ccSercviceDao classto execute queries?
- A. Apex class variables
- B. String substitution
- C. Apex local variables
- D. Global variables
Answer: B
Explanation:
When services use the ccServiceDao class to execute queries, variables are bound by string substitution. This means that the query string contains placeholders for variables that are replaced by their values at runtime. For example, ccrz.ccServiceDao.getQuery('SELECT Id FROM Account WHERE Name = :name') will replace :name with the value of the name variable.
NEW QUESTION # 63
A developer is trying to troubleshoot why a field is not displaying on the Product Detail Page. What should be typed in the Developer Tools Console in the browser to view the fields available for the Product Detail Page?
- A. CCRZ.productSearchView
- B. CCRZ.cartView
- C. CCRZ.productDetailView
- D. CCRZ.productDetailModel
Answer: D
Explanation:
To view the fields available for the Product Detail Page, the developer should type CCRZ.productDetailModel in the Developer Tools Console in the browser. This will display the product detail model object, which contains the product data and attributes that are rendered on the page. The other options are either not valid or not relevant for the Product Detail Page.
NEW QUESTION # 64
Which three pages should be enabled for the Guest user profile for a storefront to have anonymous checkout?
(3 answers)
- A. OrderConfirmation
- B. OrderView
- C. CCPaymentInfo
- D. Checkout
- E. CheckoutNew
Answer: A,C,E
NEW QUESTION # 65
A developer has been working on the flow of an Inventory Class for checkout. The developer has handled all the error states and now needs to indicate that inventory is available for all items and amounts in the cart.
Which step should happen next?
- A. Return TRUE
- B. Return sfdc.checkout.lnventoryStatus.SUCCESS
- C. Return sfdc_checkout.lntegrationStatus.Status.SUCCESS
- D. Return sfdc.checkout.lnventoryStatus.Status.SUCCESS
Answer: D
Explanation:
To indicate that inventory is available for all items and amounts in the cart, the developer should return sfdc.checkout.InventoryStatus.Status.SUCCESS. The sfdc.checkout.InventoryStatus.Status.SUCCESS is a constant value that represents a successful inventory status. It means that the inventory class has checked the availability of all the products in the cart and confirmed that they are in stock and can be fulfilled. The developer should use this value as the return value of the checkInventory method, which is a method that implements the sfdc.checkout.InventoryCheck interface. The checkInventory method is invoked during the checkout flow to validate the inventory availability of the products in the cart. Returning TRUE is not a valid way to indicate inventory availability, as it is not a valid inventory status value. Returning sfdc_checkout.IntegrationStatus.Status.SUCCESS is not a valid way either, as it is not an inventory status value, but rather an integration status value. Returning sfdc.checkout.InventoryStatus.SUCCESS is not a valid way either, as it is not a valid syntax for accessing the inventory status value. Salesforce Reference: B2B Commerce Developer Guide: Inventory Integration, B2B Commerce Developer Guide: Inventory Status Enum, B2B Commerce Developer Guide: Inventory Check Interface
NEW QUESTION # 66
Which method needs to be implemented when rendering a Salesforce B2B
Commerce view in order to have it called after rendering has finished?
- A. There are no methods called on the view after rendering has finished
- B. afterRender()
- C. onRender()
- D. postRender()
Answer: D
Explanation:
The method that needs to be implemented when rendering a Salesforce B2B Commerce view in order to have it called after rendering has finished is postRender. This method is an optional hook that can be defined by the user to perform any actions or logic that depend on the view being rendered, such as initializing widgets, binding events, or updating the user interface. The method will be called by the render method of the CCRZ.View class, which is the base class for all views in the framework. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, View Class
NEW QUESTION # 67
In which three ways can Salesforce B2B Commerce API sizing blocks support multiple API sizing requests? (3 answers)
- A. The sizing block is removed after the first handler.
- B. The sizing block is not removed.
- C. SZ_ASSC is not used.
- D. When different entities are specified in the method invocation.
- E. SZ_ASSC is used.
Answer: A,C,D
NEW QUESTION # 68
Which two scoped modules should a developer import in Lightning web components to check user permissions?
- A. @salesforce/userPermission
- B. @salesforce/permission
- C. @salesforce/customPermission
- D. @salesforce/hasPermission
Answer: B,C
Explanation:
To check user permissions in Lightning web components, a developer should import two scoped modules: @salesforce/permission and @salesforce/customPermission. The @salesforce/permission module allows the developer to check if the user has access to a standard permission, such as View Setup or Modify All Data. The @salesforce/customPermission module allows the developer to check if the user has access to a custom permission, such as Enable Debug Mode or Manage Orders. The other modules do not exist or are not related to user permissions. Salesforce Reference: Lightning Web Components Developer Guide: Check User Permissions, Lightning Web Components Developer Guide: Import Salesforce Modules
NEW QUESTION # 69
Which category can receive signaling from a Lightning Message Channel?
- A. only ancestors (i.e. parents)
- B. page (anywhere on it)
- C. only descendents (i.e. children)
- D. only direct siblings
Answer: B
Explanation:
A Lightning Message Channel can receive signaling from any component on a page (anywhere on it). A Lightning Message Channel is a service that allows components to communicate with each other across different Salesforce UI technologies, such as Aura, LWC, Visualforce, and Lightning web apps. A component can subscribe to a message channel and receive events that are published by another component on the same or different page. The message channel acts as a mediator that delivers the events to the subscribers. A Lightning Message Channel does not receive signaling only from descendants (i.e., children), only from direct siblings, or only from ancestors (i.e., parents), as these are limitations of event-based communication. Salesforce Reference: [Lightning Web Components Developer Guide: Communicate Across Salesforce UI Technologies], [Lightning Web Components Developer Guide: Communicate with Events]
NEW QUESTION # 70
A developer attempts to export data from an org by launching Data Loader, selecting a standard entity, clicking the "Select All Fields" button and clicking the Finish button. The developer finds that the CustomField_c field they added to the entity has no values under the header in the CSV file output. What is the root cause?
- A. The developer does not have the correct JDK that is recommended by Salesforce and this is known to cause issues with exporting custom attributes
- B. The field is not populated
- C. The user does not have rights to the custom field
- D. The developer does not have access to the object's metadata
Answer: C
Explanation:
The root cause of why the CustomField__c field they added to the entity has no values under the header in the CSV file output is that the user does not have rights to the custom field. A user's access to a field is determined by their profile and permission sets, which define their field-level security settings. Field-level security settings control whether a user can see, edit, or delete the value for a particular field on an object. If a user does not have access to a field, they will not be able to view or modify its value in any interface, including Data Loader. Data Loader is a tool that allows users to import or export data between Salesforce and CSV files. When using Data Loader to export data from an org, Data Loader will only include fields that are accessible to the user based on their field-level security settings. If a user does not have access to a field, Data Loader will not include that field in the CSV file, neither as a column header nor as a value. The developer does not have the correct JDK that is recommended by Salesforce and this is known to cause issues with exporting custom attributes is not the root cause of why CustomField__c has no values under the header in the CSV file output, as it is not related to field access or Data Loader functionality. The developer does not have access to the object's metadata is not the root cause either, as it is not related to field access or Data Loader functionality. The object's metadata defines its structure and properties, such as fields, relationships, and layouts. The field is not populated is not the root cause either, as it contradicts the fact that CustomField__c has no column header in the CSV file output. If the field was not populated but accessible to the user, Data Loader would still include CustomField__c as a column header in the CSV file, but leave its values blank. Salesforce Reference: Data Loader Guide: Export Data from Salesforce, [Data Loader Guide: Field Mapping], [Salesforce Help: Set Field-Level Security]
NEW QUESTION # 71
Northern Trail Outfitters (NTO) has acquired a company and is looking to manage product data across the org seamlessly. The company has a governance policy to not install any tool or use third-party API applications to export or import the data into Salesforce. However, users have access to Salesforce CLI.
Which set of tasks must a developer perform whento export data from Salesforce or import data into Salesforce?
- A. sfdx force:tree:data:export -q "SELECT Id, Name FROM Product2" -u <your username> and sfdx force:tree:data:import -f Product2Json -all
- B. sfdx force:data:tree:export -q "SELECT Id, Name FROM Product2" -u "<your username>" and sfdx force:data:tree:import -f Product2.json -u w<your username>"
- C. sfdx force:data;tree:export -Product2 -all q and
sfdx force:data:tree:lmport -f Product2.json -all - D. sfdx force:data:bulk:export -Product2 -all 0 and
sfdx force:data:bulk:lmport -f Product2.json -all
Answer: B
Explanation:
The correct answer for how to export data from Salesforce or import data into Salesforce using Salesforce CLI commands is running a command like: sfdx force:data:tree:export -q "SELECT Id, Name FROM Product2" -u "<your username>" and sfdx force:data:tree:import -f Product2.json -u "<your username>". The sfdx force:data:tree:export command is a Salesforce CLI command that exports data from an org into JSON files that conform to the SObject Tree API specification. The SObject Tree API specification is a format that defines how records are represented in JSON files for data import or export. The -q flag specifies the SOQL query that selects the records and fields to be exported. The -u flag specifies the username or alias of the org where the data will be exported from. Running this command will generate JSON files that contain the data from the org based on the SOQL query. The sfdx force:data:tree:import command is a Salesforce CLI command that imports data into an org using JSON files that conform to the SObject Tree API specification. The -f flag specifies the path of the JSON file that contains the data to be imported. The -u flag specifies the username or alias of the org where the data will be imported to. Running this command will create records in the org based on the data in the JSON file. Running a command like: sfdx force:data:bulk:export -Product2 -all 0 and sfdx force:data:bulk:import -f Product2.json -all is not a correct answer, as it uses invalid syntax and flags for the sfdx force:data:bulk:export and sfdx force:data:bulk:import commands. The correct syntax and flags for these commands are sfdx force:data:bulk:upsert -s Product2 -f Product2.csv -w 10 -u <your username> and sfdx force:data:bulk:status -i <job ID> -u <your username>. Running a command like: sfdx force:data;tree:export -Product2 -all q and sfdx force:data:tree:import -f Product2.json -all is not a correct answer either, as it uses invalid syntax and flags for the sfdx force:data:tree:export and sfdx force:data:tree:import commands. The correct syntax and flags for these commands are sfdx force:data:tree:export -q "SELECT Id, Name FROM Product2" -u <your username> and sfdx force:data:tree:import -f Product2.json -u <your username>. Running a command like: sfdx force:tree:data:export -q "SELECT Id, Name FROM Product2" -u <your username> and sfdx force:tree:data:import -f Product2Json -all is not a correct answer either, as there is no such command as sfdx force:tree:data:export or sfdx force:tree:data:import. The correct commands are sfdx force:data:tree:export and sfdx force:data:tree:import. Salesforce Reference: [Salesforce CLI Command Reference: force:data:tree:export], [Salesforce CLI Command Reference: force:data:tree:import], [Salesforce CLI Command Reference: force:data:bulk], [Salesforce Developer Tools for Visual Studio Code]
NEW QUESTION # 72
What is a valid way of referencing the global cc_api_CartExtentsion apex class via subscriber code?
- A. ccrz.cc_api_CartExtension
- B. c__cc_api_CartExtension
- C. cloudcraze.cc_api_CartExtension
- D. ccrz__cc_api_CartExtension
Answer: A
NEW QUESTION # 73
When a developer configures a tax integration for a store, what happens to the previously calculated tax entries during the checkout flow?
- A. Deleted from the Cart
- B. Modified with the new tax calculation
- C. Saved prior to recalculation
- D. Ignored during recalculation
Answer: A
Explanation:
When a developer configures a tax integration for a store, the previously calculated tax entries during the checkout flow are deleted from the Cart. A tax integration is an integration that calculates and applies tax rates and amounts to a Cart or an Order based on various factors, such as product type, price, quantity, location, and tax rules. A tax integration can use either an external tax service provider or custom Apex code to perform the tax calculation. When a developer configures a tax integration for a store, any existing tax entries in the Cart are deleted before calling the tax integration service or method. This ensures that the tax calculation is accurate and up-to-date based on the current state of the Cart and avoids any conflicts or inconsistencies with previous tax entries. The previously calculated tax entries are not ignored during recalculation, saved prior to recalculation, or modified with the new tax calculation, as these are not valid actions for handling existing tax entries. Salesforce Reference: B2B Commerce Developer Guide: Tax Integration, B2B Commerce Developer Guide: Tax Calculation Flow
NEW QUESTION # 74
A user wants to have a Contact Us page in the storefront. This page will be a web-tolead form and it should have the header and footer, essentially the same look and feel as all the pages in the application. How can this requirement be fulfilled?
- A. Page Include
- B. Subscriber Page (CC Page)
- C. Body Include Begin
- D. Subscriber Template
Answer: B
NEW QUESTION # 75
......
B2B-Commerce-Developer Actual Questions Answers PDF 100% Cover Real Exam Questions: https://www.passcollection.com/B2B-Commerce-Developer_real-exams.html
B2B-Commerce-Developer Real Exam Questions Test Engine Dumps Training With 142 Questions: https://drive.google.com/open?id=167qqpiKcZYwFiaA9EhR8QIM588ySFqMo

