
B2B-Commerce-Developer問題集で2026年最新のSalesforce B2B-Commerce-Developer試験問題
無料で使えるB2B-Commerce-Developerブレーン問題集でダウンロード(B2B-Commerce-Developerテスト問題集無料更新された)
質問 # 30
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
正解:D
質問 # 31
When a user buys 10 units of product B, the user wants 1 unit of Product A to be automatically added to the cart. How can this requirement be fulfilled?
- A. Override the preprocess method in ccrz.cc_api_CartExtension
- B. Override the prepareToAdd method in ccrz.cc_api_CartExtension
- C. Override the prepareForSave method in ccrz.cc_api_CartExtension
- D. Override the AllowCheckout method in ccrz.cc_api_CartExtension
正解:B
解説:
Explanation
To automatically add 1 unit of Product A to the cart when a user buys 10 units of Product B, the requirement can be fulfilled by overriding the prepareToAdd method in ccrz.cc_api_CartExtension. This method is responsible for preparing the cart line items before they are added to the cart. By overriding this method, the user can check the quantity and product ID of the cart line items and add an additional cart line item for Product A if the condition is met. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, API Classes, cc_api_CartExtension Class
質問 # 32
Which orders can a user view on Order List Component (Aura) for B2B stores?
- A. Orders placed in the current storefront and related to the current user's account
- B. Orders placed in the current storefront and related to the current effective account
- C. Orders placed in any storefront and related to the current effective account
- D. Orders placed in any storefront and related to the current user's account
正解:B
解説:
Explanation
According to the B2B Commerce Developer Guide, the Order List Component (Aura) for B2B stores displays a list of orders that the user can view and reorder. The component filters the orders based on the current storefront and the current effective account. The current effective account is the account that the user is currently acting on behalf of, which can be different from the user's own account. The component does not show orders placed in other storefronts or related to other accounts, even if the user has access to them.
Therefore, the correct answer is A. Orders placed in the current storefront and related to the current effective account. The other options are incorrect because they do not match the criteria of the component. References: B2B Commerce Developer Guide, Show the Order List Widget
質問 # 33
Which event should be triggered when user facing info, warning or error messages need to be displayed on a Visualforce page?
- A. showMessage
- B. pageMessage
- C. displayMessage
- D. displayPageMessage
正解:B
解説:
The event that should be triggered when user facing info, warning or error messages need to be displayed on a Visualforce page is pageMessage. This event is triggered by the displayPageMessage method of the CCRZ.util class, which is a utility class that provides various helper methods for common tasks. The event can be used to display a message on the page with a specified type, title, and text. For example, CCRZ.util.displayPageMessage('error', 'Oops!', 'Something went wrong.') will trigger the pageMessage event and display an error message on the page. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Events, Util Class
質問 # 34
Which category can receive signaling from a Lightning Message Channel?
- A. only direct siblings
- B. only descendents (i.e. children)
- C. page (anywhere on it)
- D. only ancestors (i.e. parents)
正解:C
解説:
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 References: [Lightning Web Components Developer Guide: Communicate Across Salesforce UI Technologies], [Lightning Web Components Developer Guide: Communicate with Events]
質問 # 35
Which cart item type is created with the Cart Delivery Group Method after the shipping integration?
- A. Delivery
- B. Charge
- C. Shipping
- D. Surcharge
正解:B
解説:
A cart item with a type of Charge is created with the Cart Delivery Group Method after the shipping integration. A shipping integration is an integration that calculates and applies shipping costs and options to a cart or an order based on various factors, such as product weight, dimensions, quantity, location, and carrier service level. A shipping integration can use either an external shipping service provider or custom Apex code to perform the shipping calculation. The Cart Delivery Group Method is a method that determines how products are grouped into delivery groups based on their shipping methods and addresses. A delivery group is a logical grouping of products that are shipped together using the same shipping method and address. After performing the shipping calculation for each delivery group, the shipping integration creates a cart item with a type of Charge and a charge type of Shipping for each delivery group. These cart items represent the shipping costs and options that are applied to each delivery group. A cart item with a type of Surcharge, Shipping, or Delivery does not exist or is not related to the shipping integration. Salesforce Reference: [B2B Commerce Developer Guide: Shipping Integration], [B2B Commerce Developer Guide: Cart Delivery Group Method]
質問 # 36
What isthe difference between Gross Layout Overrides and Subscriber Templates?
- A. Gross Layout Overrides allow modification to CSS of a page, while Subscriber Templates allows for modification of the entire page including header and footer.
- B. Subscriber Templates allows for modification of the header, the footer and the content in between them. Gross Layout Overrides only allow for modification of the header and footer.
- C. Subscriber Templates allow for modification of the header and the footer, while Gross Layout Overrides allow for modification everything inside the header and footer.
- D. Gross Layout Overrides allow for the modification of the footer, while Subscriber Templates allow for modification of everything inside the header and footer.
正解:C
解説:
The difference between Gross Layout Overrides and Subscriber Templates is that Subscriber Templates allow for modification of the header and the footer, while Gross Layout Overrides allow for modification everything inside the header and footer. Subscriber Templates are custom Visualforce pages that can replace the standard header and footer components on a page. Gross Layout Overrides are custom Visualforce pages that can replace the default layout of a page, such as the number of columns, the position of widgets, or the content of sections. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Subscriber Templates, Gross Layout Overrides
質問 # 37
What are three advantages of using ccLog over the Salesforce
standard System.debug class? (3 answers)
- A. Append #ccLog=<Logging Token Name> to the end of the storefront URL in order to get logs in the inspector console.
- B. There is no need to use string concatenation to easily tag log statements with a subject.
- C. There is no need to create a User Trace Flag.
- D. There is no need to manually set a cookie to debug with the Site Guest User.
- E. ccLog can debug syntax errors found in the JavaScript.
正解:A、B、D
解説:
Three advantages of using ccLog over the Salesforce standard System.debug class are:
There is no need to use string concatenation to easily tag log statements with a subject. ccLog allows passing a subject parameter to the log method, which will prepend the subject to the log message. For example, ccLog.log('This is a message', 'Subject') will log [Subject] This is a message.
There is no need to create a User Trace Flag. ccLog can be enabled by setting the value of CO.logToken to true in CCAdmin, which will activate logging for all users who access the storefront.
There is no need to manually set a cookie to debug with the Site Guest User. ccLog can be enabled for the Site Guest User by appending #ccLog=<Logging Token Name> to the end of the storefront URL in order to get logs in the inspector console. For example, https://my-storefront.com/#ccLog=debug will enable logging for the Site Guest User with the debug level. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Logging
質問 # 38
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_L
- B. CCRZ.ccPAI.SZ_XL
- C. CCRZ.ccPAI.SZ_M
- D. CCRZ.ccPAI.SZ_S
正解:C
解説:
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
質問 # 39
Which format is the custom Salesforce field with the API name
"My_Fiels_Name__c" transformed onto by default in Salesforce B2B Commerce?
- A. My_Field_Name__c
- B. myFieldName
- C. MyFieldName
- D. myfieldname
正解:B
解説:
The format that the custom Salesforce field with the API name My_Field_Name__c is transformed onto by default in Salesforce B2B Commerce is myFieldName. This is done to follow the JavaScript naming convention and to avoid conflicts with the standard Salesforce fields and relationships. The transformation rules are as follows:
* Remove any namespace prefix from the field name, such as ccrz__ or cloudcraze__.
* Remove any underscores from the field name and capitalize the first letter of each word after an underscore, such as MyFieldName.
* Lowercase the first letter of the field name, such as myFieldName. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Query Transformation
質問 # 40
How does a project implement the process to persist payment information datain the Checkout flow for Salesforce B2B Commerce version 4.2 and beyond?
- A. Trigger a remote action to store the payment information in the URL query parameters.
- B. Trigger a remote action when the process payment button is selected to capture the payment.
- C. Trigger the externalprocessedPayment and pass in the payment information object as an argument.
- D. Trigger the processPayment event and pass in the payment information object as an argument.
正解:D
解説:
To persist payment information data in the Checkout flow for Salesforce B2B Commerce version 4.2 and beyond, the project needs to trigger the processPayment event and pass in the payment information object as an argument. This event will invoke the processPayment method of the ccServicePayment class, which will validate and process the payment information and return a payment result object. The payment result object will contain the status and details of the payment transaction.
質問 # 41
Where is the API-based record creation generally handled in Salesforce B2B Commerce?
- A. Logic classes that implement the businesslogic for create operations
- B. In the methods available in extension hooks
- C. Data creation is not allowed
- D. The service-layer responsible for the entity
正解:D
解説:
The API-based record creation is generally handled in the service-layer responsible for the entity in Salesforce B2B Commerce. The service-layer is a set of classes that provide methods for interacting with the data layer and performing business logic. Each entity, such as product, cart, or order, has a corresponding service class that handles the create, read, update, and delete operations for that entity. For example, ccrz.ccServiceProduct provides methods for creating and retrieving products. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Service Classes
質問 # 42
What interface must a developer implement to override Tax in Checkout?
- A. sfdc.commerce.CheckoutTaxCalculations
- B. sfdc.checkout.CartTaxCalculations
- C. sfdc_checkout.TaxCalculations
- D. sfdc.commerce.TaxCalculations
- E. sfdc_commerce.CartTaxCalculations
正解:C
解説:
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 References: B2B Commerce Developer Guide: Tax Integration, B2B Commerce Developer Guide: Tax Calculations Interface
質問 # 43
Which three steps are necessary to have subscriberpage added to Salesforce B2B Commerce after creating a custom Visualforce page? (3 answers)
- A. Create a new CC Subscriber Page record that points to your custom Visualforce page.
- B. Create a new Visualforce page, and manually import the Salesforce B2BCommerce JavaScript libraries. Run in Anonymous Apex ccrz.cc_util_Reflection.upsertPageUIKey([arg1],[arg2],[arg3]);
- C. Enable the Subscriber Page in CC Admin.
- D. Refresh the Page Keys Index in CC Admin.
正解:A、C、D
解説:
Three steps that are necessary to have a subscriber page added to Salesforce B2B Commerce after creating a custom Visualforce page are:
Create a new CC Subscriber Page record that points to your custom Visualforce page. This record will store information about the subscriber page, such as the name, description, URL, and Visualforce page. For example, you can create a new record named MySubscriberPage that points to your custom Visualforce page named MyPage.
Refresh the Page Keys Index in CC Admin. This action will update the page keys index, which is a cache that stores the mapping between the page keys and the subscriber pages. You need to do this whenever you create or modify a subscriber page record.
Enable the Subscriber Page in CC Admin. This action will allow you to select the subscriber page from the CC Page Settings configuration and assign it to a CC Page. For example, you can enable MySubscriberPage and assign it to the Home page. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Subscriber Pages
質問 # 44
What are two purposes of the Shadow DOM in a Lightning web component?
- A. It allows direct access to the document object model of the component
- B. It allow components to be shared while protecting them from being manipulated by arbitrary code
- C. It allows older JavaScript libraries to manipulate the tagging structure
- D. It encapsulates the internal document object model (DOM) structure of a web component
正解:B、D
解説:
According to the Lightning Web Components Developer Guide, Shadow DOM is a standard that encapsulates the internal document object model (DOM) structure of a web component. Encapsulating the DOM gives developers the ability to share a component and protect the component from being manipulated by arbitrary HTML, CSS, and JavaScript. Shadow DOM also provides style and behavior isolation for a web component, which means that the styles and scripts defined inside a component do not affect the rest of the page, and vice versa. Therefore, the purposes of the Shadow DOM in a Lightning web component are to encapsulate the internal DOM structure of a web component (A) and to allow components to be shared while protecting them from being manipulated by arbitrary code (B). The other options are incorrect because Shadow DOM does not allow direct access to the document object model of the component , nor does it allow older JavaScript libraries to manipulate the tagging structure (D). References: Lightning Web Components Developer Guide, Understand the Shadow DOM Unit
質問 # 45
......
検証済みのB2B-Commerce-Developer問題集と解答で合格保証で試験問題集テストエンジン:https://www.passtest.jp/Salesforce/B2B-Commerce-Developer-shiken.html
B2B-Commerce-Developer問題集は合格保証付き!合格させるB2B-Commerce-Developer試験:https://drive.google.com/open?id=1E64OsH_93PHbnOtz3kK5dpNmc46nwLFi