
[2024年更新]B2B-Commerce-Developer回答無料デモは最適で最高のリアルな試験合格させます
B2B-Commerce-Developer[2024年06月最新推薦]試験問題はあなたをパスさせる
質問 # 37
What tool can a developer use to investigate errors during development?
- A. Checkout Flow Log
- B. Commerce Diagnostics Event Logging
- C. Support cases
- D. Browser dev tools
正解:D
解説:
Explanation
Browser dev tools are a set of web authoring and debugging tools built into most modern browsers. They allow developers to inspect, edit, and debug the HTML, CSS, JavaScript, and network activity of a web page.
They can also provide useful information about errors, warnings, performance, and accessibility issues.
Browser dev tools are especially helpful for developing and testing Lightning web components, as they can display the component hierarchy, attributes, events, and slots.
The other options are not correct because:
* A. Commerce Diagnostics Event Logging is a feature that enables developers to capture and analyze events that occur during the execution of B2C Commerce code. It can help identify performance bottlenecks, memory leaks, and unexpected behavior. However, it is not a tool that can be used directly by the developer, but rather a service that requires a support request to enable and access.
* B. Checkout Flow Log is a log file that shows the details of the checkout flow execution, such as the input and output parameters, the pipeline steps, and the errors and warnings. It can help troubleshoot issues related to the checkout process, such as payment, shipping, or tax calculation. However, it is not a tool that can be used during development, but rather a log file that can be accessed after the checkout flow has run.
* C. Support cases are requests for assistance from the Salesforce support team. They can help resolve technical issues, provide guidance, or escalate bugs. However, they are not a tool that can be used to investigate errors during development, but rather a communication channel that can be used after the developer has exhausted other resources.
References:
* Browser Dev Tools
* Debug Your Lightning Web Components
* Commerce Diagnostics Event Logging
* [Checkout Flow Log]
質問 # 38
Which format is the custom Salesforce relationship with the API name,
"My_Relationship_Name__r.My_Name__c" queried and transformed into dy default in Salesforce B2B Commerce?
- A. My_Relationship_Name__r.My_Name__c: value
- B. myRelationshipName.myName: value
- C. myrelationshipname.myname: value
- D. myRelationshipNameR=>(myName: value)
正解:D
質問 # 39
Why is the use of a standard Visualforce control such as apex:form discouraged in Salesforce B2B Commerce page includes and subscriber pages?
- A. The CCRZ Javascript object is not accessible within an apex:form control.
- B. Visualforce "scopes" controls that are present on a page and scope of the control will be set to "ccrz"
- C. Apex:form render DOM components slowly
- D. Javascript events are not supported within an apex:form control
正解:B
質問 # 40
A developer needs to make a call to a long running web service which is critical to finalizing their checkout process. Which three items should the developer consider in their implementation?
- A. A new CORS entry may need to be created in Setup
A new Named Credential may need to be created in Setup - B. An Apex method returning a Continuation will need to be created
- C. Requests to the service should be brokered to prevent limit exceptions
- D. A new Remote Site may need to be created in Setup
正解:A、B、C
解説:
Explanation
A developer needs to make a call to a long running web service which is critical to finalizing their checkout process. The developer should consider the following items in their implementation:
* A new CORS entry may need to be created in Setup. CORS stands for Cross-Origin Resource Sharing, which is a mechanism that allows web browsers to make requests to servers on different domains. If the web service is hosted on a different domain than the B2B Commerce site, the developer may need to add a CORS entry in Setup to allow the browser to access the web service. This entry specifies the origin, path, and method of the request, as well as any headers or cookies that are allowed1.
* A new Named Credential may need to be created in Setup. A Named Credential is a type of metadata that stores the URL and authentication settings of a web service. By using a Named Credential, the developer can avoid hardcoding the web service URL and credentials in their code, and instead reference the Named Credential by name. This makes the code more secure and easier to maintain2.
* An Apex method returning a Continuation will need to be created. A Continuation is a special type of Apex object that allows the developer to make asynchronous calls to long running web services.
Byusing a Continuation, the developer can avoid blocking the main thread and improve the user experience. A Continuation method must return a Continuation object, specify the web service URL and parameters, and register a callback method that handles the response3.
Option D and Option E are incorrect because they are not relevant to the scenario. Option D suggests that the developer should broker the requests to the web service, which means to use an intermediary service that manages the requests and responses. This may be useful for some scenarios, but it is not required for making a call to a long running web service. Option E suggests that the developer should create a new Remote Site in Setup, which is a way to whitelist the domains that can be accessed from Apex code. However, this is not necessary if the developer uses a Named Credential, which automatically handles the Remote Site setting2.
References:
* Set Up CORS
* Named Credentials
* Continuation Class
質問 # 41
Which technique can be used with Lightning web components to expose them outside of an org in another web container?
- A. Slot elements
- B. Lightning Canvas
- C. Heroku
- D. Lightning Out
正解:D
解説:
Explanation
According to the Lightning Web Components Developer Guide, Lightning Out is a technique that allows developers to run Lightning web components outside of Salesforce servers, such as in a Node.js app running on Heroku or a department server inside the firewall. Lightning Out uses a script tag to load the Lightning web components framework and the custom components into the web container. Lightning Out also handles authentication, event handling, and data access between the web container and the Salesforce org. Slot elements, Heroku, and Lightning Canvas are not techniques for exposing Lightning web components outside of an org in another web container. References: Lightning Web Components Developer Guide, Use Components Outside Salesforce, B2B Commerce and D2C Commerce Developer Guide
質問 # 42
Which two scoped modules should a developer import in Lightning web components to check user permissions?
- A. @salesforce/hasPermission
- B. @salesforce/permission
- C. @salesforce/customPermission
- D. @salesforce/userPermission
正解: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 References: Lightning Web Components Developer Guide: Check User Permissions, Lightning Web Components Developer Guide: Import Salesforce Modules
質問 # 43
Where is the API-based record creation generally handled in Salesforce B2B Commerce?
- A. The service-layer responsible for the entity
- B. Data creation is not allowed
- C. Logic classes that implement the business logic for create operations
- D. In the methods available in extension hooks
正解:A
質問 # 44
Numerous flags ... have a directimpact on the result set provided by the Global API's. What Global API Data-Sizing convention flag prevents an API request from propagating to further requests when provided as a Boolean parameter with a value of true?
- A. ccrz.ccAPISizing.REL
- B. ccrz.ccAPI.SZ_REL
- C. ccrz.ccAPI.SZ_ASSC
- D. ccrz.ccAPISizing.ASSC
正解:C
解説:
The Global API Data-Sizing convention flag that prevents an API request from propagating to further requests when provided as a Boolean parameter with a value of true is ccrz.ccAPI.SZ_ASSC. This flag indicates that only one API request should be executed with the specified sizing block, and any subsequent requests should use their own default sizing blocks. For example, ccrz.ccServiceCart.getCart(ccrz.ccAPI.SZ_L,true) will use the SZ_L sizing block for retrieving the cart data, but any other requests that are triggered by this method will use their own default sizing blocks. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Data Sizing Conventions
質問 # 45
What isthe difference between Gross Layout Overrides and Subscriber Templates?
- A. 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.
- B. Gross Layout Overrides allow for the modification of the footer, while Subscriber Templates allow for modification of everything inside the header and footer.
- C. Gross Layout Overrides allow modification to CSS of a page, while Subscriber Templates allows for modification of the entire page including header and footer.
- D. 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
解説:
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
質問 # 46
Which three considerations should a developer keep in mind when creating a tax provider?
- A. What events to fire in the Lightning Web Component
- B. Success criteria
- C. Whether an AppExchange package already exists
- D. Whether to use JSON or XML
- E. How to handle errors
正解:B、D、E
解説:
When creating a tax provider in Salesforce B2B Commerce, developers should consider the data format (JSON or XML) for interoperability with the tax service, define clear success criteria to ensure accurate tax calculations, and implement robust error handling to manage exceptions and failures gracefully. Salesforce B2B Commerce documentation emphasizes the importance of these considerations for integrating external services, ensuring reliability and consistency in tax calculations across different jurisdictions and scenarios.
質問 # 47
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. ProductMap
- B. CCSizeIndex
- C. SizeMap
- D. CCCatSiteMap
正解:B、D
解説:
Explanation
Two Salesforce B2B Commerce Visualforce pages that must be enabled at a Salesforce Community level to make the out of the box SEO functionality available are:
* CCSizeIndex: This page generates a sitemap.xml file, which is a file that lists all the pages and resources on a site that can be crawled by web crawlers. The page uses the configuration settings CO.SiteMapIncludeProducts and CO.SiteMapIncludeCategories to specify which products and categories should be included in the sitemap.
* CCCatSiteMap: This page generates a category sitemap file, which is a file that lists all the categories on a site that can be crawled by web crawlers. The page uses the configuration setting
* CO.SiteMapCategoryDepth to specify how many levels of subcategories should be included in the category sitemap. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Sitemap Files
質問 # 48
A developer exports data from an org on a standard entity which has a custom attribute. When they launch Data Loader, select the entity, click the Select All Fields button and click Finish, the custom field they added called MyCustomField_c has no values and no column header in the CSV file. What is the root cause?
- A. The user does not have access to the field
- B. The user needs to install a specific Zulu JDK that is recommended by Salesforce.
- C. The user has rights to the field but there are no values in it
- D. A mapping file was not used when the data was loaded in
正解:A
解説:
The root cause of why the custom field MyCustomField__c has no values and no column header in the CSV file is that the user does not have access to the field. A user's access to a field is determined by theirprofile 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 user needs to install a specific Zulu JDK that is recommended by Salesforce is not the root cause of why MyCustomField__c has no values and no column header in the CSV file, as it is not related to field access or Data Loader functionality. A mapping file was not used when the data was loaded in is not the root cause either, as it is not related to field access or Data Loader functionality. A mapping file is an optional file that maps fields between Salesforce objects and CSV files when using Data Loader to import or export data. The user has rights to the field but there are no values in it is not the root cause either, as it contradicts the fact that MyCustomField__c has no column header in the CSV file. If the user had rights to the field but there were no values in it, Data Loader would still include MyCustomField__c as a column header in the CSV file, but leave its values blank. Salesforce References:
[Data Loader Guide: Export Data from Salesforce], [Data Loader Guide: Field Mapping], [Salesforce Help:
Set Field-Level Security]
質問 # 49
Which handlebars helper expression is used in Salesforce B2B Commerce pages and components to toggle the display of a block of markup?
- A. {{#ifStoreSetting 'Field__c'}} ... {{/ifStoreSetting}}
- B. {{#ifConfig 'Field__c'}} ... {{/ifConfig}}
- C. {{#ifDisplay 'Page.cfg'}} ... {{/ifDisplay}}
- D. {{#ifSetting 'Page.cfg}} ... {{/ifSetting}}
正解:B
解説:
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 Reference: B2B Commerce and D2C Commerce Developer Guide, Handlebars Helpers
質問 # 50
A developer is working on a storefront that needs to use a sophisticated pricing engine hosted as a service outside the org. Assuming security and trusts have been established, which two actions must the developer take?
- A. Implement the sfdc_checkout.PriceCalculations
- B. Use External Ohjects
- C. Make a call to the service
- D. Implement the sfdc_checkout.CartPriceCalculations
正解:A、C
解説:
* The correct answer is A and C. To use a sophisticated pricing engine hosted as a service outside the org, the developer must make a call to the service and implement the sfdc_checkout.PriceCalculations interface12. The sfdc_checkout.PriceCalculations interface is a standard interface that defines the methods for calculating prices for a cart or an order1. The developer can use this interface to override the default pricing logic and integrate with an external pricing service12. The developer must also make a call to the external service using Apex REST or SOAP callouts3 and handle the response data accordingly.
* Use External Objects and Implement the sfdc_checkout.CartPriceCalculations are not the correct answers. External objects are a way to access data from external data sources in real time, but they are not suitable for integrating with a pricing service that requires dynamic calculations . The sfdc_checkout.CartPriceCalculations interface is a deprecated interface that was used for calculating prices for a cart only1. It has been replaced by the sfdc_checkout.PriceCalculations interface, which supports both carts and orders1. References:
* B2B Commerce on Lightning Experience Developer Guide
* B2B Commerce and D2C Commerce Developer Guide
* Salesforce Accredited B2B Commerce Developer
* sfdc_checkout.PriceCalculations Interface
* Integrate with Lightning B2B Commerce
* Apex REST Callouts
* [Apex Web Services and Callouts]
* [Work with External Data Sources]
* [Access External Data With Salesforce Connect]
質問 # 51
A developer is creating a component to implement a custom Terms and Conditions checkbox at checkout in the Aura Commerce template.
Which method should the developer implement on the Lightning web component to ensure the user accepts the terms and conditions?
- A. SaveCheckout
- B. CheckValidity
- C. Validate
- D. ComponentValidity
正解:C
解説:
To implement a custom Terms and Conditions checkbox at checkout in the Aura Commerce template, a developer should add a Desired Delivery Date input field during the checkout flow. The Desired Delivery Date input field allows the customer to enter a date when they want their order to be delivered. The developer can use the @api decorator to expose this field as a public property of the Lightning web component and bind it to the ccCheckoutOrder object. The developer can also use the @wire decorator to get the current cart object and use its properties, such as shipping address and shipping method, to calculate and display an estimated delivery date based on the desired delivery date. The developer can also add validation logic to ensure that the desired delivery date is valid and acceptable. Adding the Expected Delivery Date field to the order confirmation email is not a good solution, as it does not allow the customer to choose or see their delivery date before placing their order. Displaying the Expected Delivery Date on the order page with a Lightning web component is not a good solution either, as it does not allow the customer to enter or change their delivery date after placing their order. Configuring an email alert to the customer when the Expected Delivery Date changes is not a good solution either, as it does not provide a consistent or reliable way of informing the customer about their delivery date. Salesforce References: B2B CommerceDeveloper Guide: Checkout Flow, B2B Commerce Developer Guide: Checkout Order Object, Lightning Web Components Developer Guide:
Communicate with Properties
質問 # 52
What are three ways to implement custom post Order processing? (3 answers)
- A. Use a Salesforce workflow rule that executes when an Order record is created.
- B. Use cc_hk_Order.placeTarget to define a new Order Confirmation page which executes additional business logic.
- C. Extend cc_hk_invoice tohandle custom business logic post Order processing
- D. Modify or add custom Cart formula fields to handle logic.
- E. Use Process builder to implement business processes that execute when an Order record is created.
正解:B、C、E
解説:
Explanation
Three ways to implement custom post Order processing are:
* Extend cc_hk_invoice to handle custom business logic post Order processing. This hook allows modifying the invoice data or performing additional actions after an Order is placed. For example, the hook can send an email notification or update a custom field on the invoice record.
* Use cc_hk_Order.placeTarget to define a new Order Confirmation page which executes additional business logic. This hook allows specifying a custom Visualforce page that will be displayed after an Order is placed. The custom page can include additional business logic or user interface elements.
* Use Process Builder to implement business processes that execute when an Order record is created.
Process Builder is a tool that allows creating workflows and actions based on criteria and conditions. For example, Process Builder can create a task, send an email, or update a record whenan Order record is created. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Hooks, Process Builder
質問 # 53
......
2024年最新のリアル無料Salesforce B2B-Commerce-Developer試験問題集問題アンサー:https://www.passtest.jp/Salesforce/B2B-Commerce-Developer-shiken.html
Salesforce B2B-Commerce-Developer試験良質な問題で回答:https://drive.google.com/open?id=139GlDZ6aEXb0XpS0WjMPkL1c3Dvj4S0v