
究極のガイド準備B2B-Commerce-Developer認証試験Salesforce Developerは2023年更新
リアルB2B-Commerce-Developer問題集でSalesforce正確なアンサーは最新問題は2023年更新
Salesforceは、クラウドベースのソフトウェア・アズ・ア・サービス(SaaS)および顧客関係管理(CRM)ソリューションを世界中の企業に提供する、有名なグローバルテクノロジー企業です。Salesforceは、業務プロセスを自動化し、オペレーションを効率化する革新的なソリューションを提供するクラウドコンピューティング業界のリーダーです。Salesforceが提供するソリューションの1つにB2B Commerceがあり、これにより、企業は顧客向けのオンラインeコマースプラットフォームを提供することができます。
質問 # 22
What are two guidelines for logging that are used within the core Salesforce B2B Commerce product? (2 answers)
- A. No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed.
- B. Items or data within computational intensive loops shouldbe logged.
- C. The close method of ccrz.ccLog must be called at the end of the remote action.
- D. It is okay to log any data on the server that is already logged on the client side.
正解:A、C
解説:
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
質問 # 23
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 AllowCheckout method in ccrz.cc_api_CartExtension
- B. Override the prepareForSave method in ccrz.cc_api_CartExtension
- C. Override the preprocess method in ccrz.cc_api_CartExtension
- D. Override the prepareToAdd method in ccrz.cc_api_CartExtension
正解:C
質問 # 24
Which three pages should be enabled for the Guest user profile for a storefront to have anonymous checkout?
(3 answers)
- A. CCPaymentInfo
- B. CheckoutNew
- C. OrderConfirmation
- D. Checkout
- E. OrderView
正解:A、B、C
質問 # 25
Which method signature is used in the Global API's?
- A. List<List<Object>>
- B. ccrz.cc_Output (ccrz:cc_Input input)
- C. Map<String, Object>
- D. Changes based on API and Method name
正解:C
質問 # 26
What is a best practice when passing query parameters from user interface to an apex controller?
- A. Query parameters should be properly sanitized by using JSINHTMLENCODE within the VisualForce Page or Component.
- B. Query parameters should be stored on a backbone model prior to passing them to the server
- C. Query parameters should be passed only to Salesforce B2B Commerce classes that you are extending.
- D. String parameters should be trimmed using String.trim().
正解:A
解説:
A best practice when passing query parameters from user interface to an apex controller is to query parameters should be properly sanitized by using JSINHTMLENCODE within the VisualForce Page or Component. This function will encode any special characters in the query parameters to prevent cross-site scripting (XSS) attacks or SOQL injection attacks. For example, ccrz.ccRemoteActions.getProducts('{!JSINHTMLENCODE(searchTerm)}') will encode the searchTerm parameter before passing it to the apex controller. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Security
質問 # 27
The sizing keys used in the Salesforce B2B Commerce Global APIs five distinct operations. What are three of these operations? (3 answers)
- A. Related Query to call (sub queries or direct queries)
- B. Refetch data (used on some Logic classes)
- C. Return formats as Map<String, Object> or SObjects lists
- D. Object type casting
- E. Override static DAO classes and methods
正解:A、B、C
質問 # 28
Where is the API-based record creation generally handled in Salesforce B2B Commerce?
- A. In the methods available in extension hooks
- B. The service-layer responsible for the entity
- C. Data creation is not allowed
- D. Logic classes that implement the business logic for create operations
正解:B
質問 # 29
Which category can receive signaling from a Lightning Message Channel?
- A. only descendents (i.e. children)
- B. page (anywhere on it)
- C. only direct siblings
- D. only ancestors (i.e. parents)
正解:B
解説:
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]
質問 # 30
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. Use a different pricebook for each state.
- C. Configure a tax engine using third-party software.
- D. Configure tax rates and rules for each state in Salesforce B2B Commerce.
正解:C、D
解説:
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]
質問 # 31
Which three actions are applicable when modifying the number of steps required in the Salesforce Commerce Checkout flow? (3 answers)
- A. Add a page include to the checkout page.
- B. Build and activate a new configuration cache setting via CC admin.
- C. Perform a template override on the Checkout page.
- D. Set the value of the configuration setting defined as CO.useDef to TRUE
- E. Set the value of the configuration setting defined as CO.overrideFlow to TRUE.
正解:A、B、E
質問 # 32
Which cookie stores the effective account ID when effective account is enabled?
- A. apex__effacc
- B. apex__cclgtkn
- C. apex__currCartId
- D. apex__cc_anonymous_Country
正解:A
解説:
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 Reference: B2B Commerce and D2C Commerce Developer Guide, Effective Account
質問 # 33
Which two statements are true regarding the cc_CallContext class in Salesforce B2B Commerce? (2 answers)
- A. The class can be used internally within Salesforce B2B Commerce and in subscriber code to access context level parameters
- B. The current storefront is accessible via this class
- C. The Salesforce session is accessible via the getSession method
- D. The userLocale variable returns the current Locale for storefront.
正解:A、B
質問 # 34
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
正解:A
質問 # 35
Which two Salesforce B2B Commerce visualforce pages must be enabled at a Salesforce Community level to make the out of the box SEO functionality available? (2 answers)
- A. CCSizeIndex
- B. ProductMap
- C. SizeMap
- D. CCCatSiteMap
正解:A、D
質問 # 36
In which three ways should useful debugging information in Salesforce B2B Commerce implementation be garnered? (3 answers) A) Enabling the logging token via
- A. Admin andsubsequently inspecting the logs via the browser console.
- B. Logging a case with Salesforce support to enable advanced debugging options.
- C. Placing a System.debug() statement anywhere in the class being debugged.
- D. Enabling debugging options for the current user and visually inspecting the Salesforce debug logs.
- E. Logging into the community as a system administrator to identify any potential permissions or Visualforce exceptions.
正解:A、D、E
解説:
Useful debugging information in Salesforce B2B Commerce implementation can be garnered in three ways:
Enabling the logging token via Admin and subsequently inspecting the logs via the browser console. This will enable logging messages and errors to the browser console, which can be viewed by opening the Developer Tools in the browser. The logging token can be enabled by setting the value of CO.logToken to true in CCAdmin.
Enabling debugging options for the current user and visually inspecting the Salesforce debug logs. This will enable logging messages and errors to the Salesforce debug logs, which can be viewed by opening the Debug Logs page in Salesforce Setup. The debugging options can be enabled by creating a Debug Level and a Trace Flag for the current user in Salesforce Setup.
Logging into the community as a system administrator to identify any potential permissions or Visualforce exceptions. This will allow viewing any errors or warnings that may occur on the community pages due to insufficient permissions or Visualforce issues. The system administrator can also access CCAdmin and other tools from within the community. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Logging, Debug Your Code
質問 # 37
How is a price group dynamically set?
- A. By extending the ccApiPriceList API
- B. By using contract pricing
- C. By extending the cc_hk_priceing hook
- D. By overriding the ccLogicProductPrice class
正解:D
質問 # 38
Which two scoped modules should a developer import in Lightning web components to check user permissions?
- A. @salesforce/hasPermission
- B. @salesforce/customPermission
- C. @salesforce/permission
- D. @salesforce/userPermission
正解:B、C
解説:
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
質問 # 39
A new payment type for the Checkout flow has been implemented. Which three descriptors follow best practice for possible configuration metadata are needed to enable a flow? (3 answers)
- A. Cart
- B. *.pay
- C. Checkout
- D. *.Edit
- E. *.New
正解:B、D、E
解説:
To enable a new payment type for the Checkout flow, three possible configuration metadata descriptors are needed:
*.pay: This descriptor defines the payment type name, label, description, icon, and handler class. For example, CO.pmts.CreditCard.pay defines the payment type for credit card payments.
*.Edit: This descriptor defines the Visualforce page that is used to edit or update an existing payment of this type. For example, CO.pmts.CreditCard.Edit defines the page that allows editing a credit card payment.
*.New: This descriptor defines the Visualforce page that is used to create a new payment of this type. For example, CO.pmts.CreditCard.New defines the page that allows creating a new credit card payment. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Payment Configuration Settings
質問 # 40
Which format is the custom Salesforce field with the API name
"My_Fiels_Name__c" transformed onto by default in Salesforce B2B Commerce?
- A. myfieldname
- B. myFieldName
- C. My_Field_Name__c
- 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 Reference: B2B Commerce and D2C Commerce Developer Guide, Query Transformation
質問 # 41
......
Salesforce Developer B2B-Commerce-Developer試験練習問題集:https://www.passtest.jp/Salesforce/B2B-Commerce-Developer-shiken.html
B2B-Commerce-Developerプレミアム資料テストPDFで無料問題集お試しセット:https://drive.google.com/open?id=1jfeQAWgCIazKMrMH6aF7vPo4-QCZ28b5