2023年最新の保証された成功できるB2B-Commerce-Developer問題集でSalesforceのPDF問題 [Q21-Q38]

Share

2023年最新の保証された成功できるB2B-Commerce-Developer問題集でSalesforceのPDF問題

格別な練習Salesforce Accredited B2B Commerce Developer問題集で最速合格させます


Salesforce B2B-Commerce-Developer試験は、B2B Commerceドメインに特化した開発者にとって必須の認定資格です。この認定試験は、Salesforce B2B Commerceプラットフォーム上でソリューションを開発する候補者の専門知識を証明し、B2B Commerce戦略を推進する有資格者を求める雇用主やクライアントから高く評価されています。この認定資格は、開発者がスキルや知識を向上させ、キャリアの機会を拡大し、Salesforceプラットフォーム上で革新的なソリューションを構築することに情熱を持つ専門家のコミュニティに参加する機会を提供します。


認定試験は、B2Bコマースの機能、アーキテクチャ、データモデル、および統合機能の候補者の知識をテストするように設計された60の多肢選択問題および複数選択問題から構成されています。この試験は、カスタムコードの開発やサードパーティソリューションの統合によってプラットフォームの機能を拡張する専門知識も評価します。この試験に合格することで、開発者がクライアントのニーズを満たす堅牢でスケーラブルなB2Bコマースソリューションを設計・実装する能力が認められます。


試験は60の複数選択の質問で構成されており、105分以内に完了する必要があります。試験の合格スコアは68%で、英語で利用できます。候補者は、オンラインまたはテストセンターで試験を受けることができ、試験の費用は200ドルです。試験を受ける前に、候補者はB2B Commerce Developer Trainingを完了し、B2B Commerce Solutionsの実装において少なくとも6か月の経験が必要です。

 

質問 # 21
Which code statement should a developer use to import the ID of the current Lightning Experience

  • A. import id from '@salesforce/experience/ld'
  • B. import id from '@salesforce/site/ld'
  • C. import id from '@salesforce/community/ld'
  • D. import id from '@salesforce/network/ld'

正解:C

解説:
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]


質問 # 22
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 prepareForSave method in ccrz.cc_api_CartExtension
  • B. Override the AllowCheckout method in ccrz.cc_api_CartExtension
  • C. Override the prepareToAdd method in ccrz.cc_api_CartExtension
  • D. Override the preprocess method in ccrz.cc_api_CartExtension

正解:C

解説:
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 Reference: B2B Commerce and D2C Commerce Developer Guide, API Classes, cc_api_CartExtension Class


質問 # 23
Witch static method invocation is used to initialize ccrz.cc_CallContext with information from ccrz.cc_RemoteActionContext and return an instance of ccrz.cc_RemoteActionResult in an apex
@RemoteAction methos?

  • A. ccrz.cc_CallContext.init(ccrz.cc_RemoteActionContext)
  • B. ccrz.cc_CallContext.initRemoteActionContext(ccrz.cc_RemoteActionContext)
  • C. ccrz.cc_CallContext.initCallContext(ccrz.cc_RemoteActionContext)
  • D. ccrz.cc_CallContext.initializeCallContext(ccrz.cc_RemoteActionContext)

正解:A


質問 # 24
A Developer created a custom field that a project wants to expose on a given page.
How does the Developer ensure that the field is available to display on a given page?

  • A. Override the Service Class that the page uses and update the ServiceManagementin CCAdmin for the given storefront to use this new Service Class.
  • B. Create a new Service Classthat the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class
  • C. Override the Logic Class that the page uses and update the Service Management inCCAdmin for the given storefront to use this new Service Class
  • D. Create a new Logic Class that the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class

正解:A

解説:
To ensure that a custom field is available to display on a given page, the Developer needs to override the Service Class that the page uses and update the Service Management in CCAdmin for the given storefront to use this new Service Class. The Service Class is responsible for retrieving and setting data for a given page. The Logic Class is responsible for implementing business logic and validation rules for a given page. Creating a new Service Class or Logic Class is not necessary, as overriding an existing one can achieve the same result. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Service Classes, Logic Classes


質問 # 25
Which two usages of ccLog should be avoided in Salesforce B2B Commerce? (2 answers)

  • A. ccrz.ccLog.log(System.LoggingLevel.ERROR, 'D:something', myCallToGetMessage(pl) ), where myCallToGetMessage(pl) is a method invocation
  • B. crz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrderList', myOrderList), where myOrderList is a list of orders
  • C. crz.ccLog.log(System.LoggingLevel.WARN, 'D:something', 'Something unexpected occurred: The data we were expecting for pl was not there,')
  • D. crz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrder', myOrder), where myOrder is an order object

正解:A、B

解説:
You should avoid using ccLog in two scenarios. First, you should avoid using ccLog with System.LoggingLevel.ERROR when passing in a method invocation as the third parameter, such as ccrz.ccLog.log(System.LoggingLevel.ERROR, 'D:something', myCallToGetMessage(pl) ). This is because if an exception occurs within the method invocation, it will not be caught by ccLog and will cause an unhandled exception on the page. Instead, you should use a try-catch block around the method invocation and log the exception separately. Second, you should avoid using ccLog with System.LoggingLevel.DEBUG when passing in a large collection or object as the third parameter, such as ccrz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrderList', myOrderList), where myOrderList is a list of orders. This is because logging large objects can cause performance issues and consume a lot of heap space. Instead, you should use a loop to log only the relevant fields or properties of the object or collection. You can use ccLog with System.LoggingLevel.WARN when passing in a string as the third parameter, such as ccrz.ccLog.log(System.LoggingLevel.WARN, 'D:something', 'Something unexpected occurred: The data we were expecting for pl was not there,'). This is a valid use case for logging a warning message. You can also use ccLog with System.LoggingLevel.DEBUG when passing in a small object as the third parameter, such as ccrz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrder', myOrder), where myOrder is an order object. This is acceptable as long as the object is not too large or complex. Salesforce Reference: [B2B Commerce Developer Guide: Logging]


質問 # 26
A query containing a subquery is executed. What is appended to the subquery name as part of its transformation by default in Salesforce B2B Commerce?

  • A. The letter "S"
  • B. A subscriber-supplied token
  • C. The "*" symbol
  • D. "__ccrz"

正解:D

解説:
A query containing a subquery is executed. By default, in Salesforce B2B Commerce, "__ccrz" is appended to the subquery name as part of its transformation. This is done to avoid conflicts with the standard Salesforce fields and relationships. For example, SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account will be transformed to SELECT Id, Name, (SELECT Id, Name FROM Contacts__ccrz) FROM Account__ccrz. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Query Transformation


質問 # 27
How are version related upgrades passed on to subscriber API extensions/overrides?

  • A. APIs callback with specific versions specified; the user must know which version number to use.
  • B. The "delegate" allows inherited method calls access to the most recently specified service version
  • C. Extensions and overridden APIs don't support-related upgrades.
  • D. Copy and paste of specific code is "built-in"

正解:B


質問 # 28
What is default behavior for how theSalesforce B2B Commerce Global APIs transform Salesforce data?

  • A. Fields names are returned with a lowercase first letter,camelcase convention
  • B. Fields names are returned with ;c." prepended in their name.
  • C. Fields names can be mapped to any naming convention desired
  • D. Fields names are returned using the Salesforce naming convention.

正解:A

解説:
The default behavior for how the Salesforce B2B Commerce Global APIs transform Salesforce data is to return field names with a lowercase first letter, camelcase convention. For example, the field name ccrz__E_Product__c in Salesforce will be transformed to eProduct in the API. This is done to follow the JavaScript naming convention and to avoid conflicts with the standard Salesforce fields and relationships. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Query Transformation


質問 # 29
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

解説:
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 Reference: B2B Commerce and D2C Commerce Developer Guide, Sitemap Files


質問 # 30
Which service method should be overridden in order to allow "without sharing" queries?

  • A. ccrz.ccAPI.queryService()
  • B. ccrz.ccService.query()
  • C. ccrz.ccService.initSVCDAO()
  • D. ccrz.ccService.queryWithoutSharing()

正解:C

解説:
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


質問 # 31
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. Ensure you save a value in the Logging Token input field in the Global Settings section of CC Admin.
  • C. Set a cookie with the Id of the user accessing the storefront in CC Admin
  • D. Turn On theCheckbox "Cloudcraze Logging" in CC Admin.

正解:A、B

解説:
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]


質問 # 32
Numerous flags when set, have a direct impact on the result set provided by the Global API's. Which conversion flag allows for sObjects to be returned from the Global API's when provided as a Boolean parameter with a value of true?

  • A. ccrz.ccAPISizing.SOBJECT
  • B. ccrz.ccAPI.SZ_SKIPTRZ
  • C. ccrz.ccAPISizing.SKIPTRZ
  • D. ccrz.ccAPI.SZ_SOBJECT

正解:D

解説:
The conversion flag that allows for sObjects to be returned from the Global API's when provided as a Boolean parameter with a value of true is ccrz.ccAPI.SZ_SOBJECT. This flag indicates that the API should return the raw sObjects instead of the transformed objects that are usually returned by the API. For example, ccrz.ccServiceProduct.getProducts(ccrz.ccAPI.SZ_SOBJECT,true) will return the Product2 sObjects instead of the ccrz__E_Product__c objects. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Data Sizing Conventions


質問 # 33
How are variables bound when services use the ccSercviceDao classto execute queries?

  • A. String substitution
  • B. Apex class variables
  • C. Apex local variables
  • D. Global variables

正解:A

解説:
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.


質問 # 34
Although Salesforce B2B Commerce and Salesforce recommend against using
"without sharing classes" whenever possible, sometimes it is unavoidable. Which three items will open up a major security hole? (3 answers)

  • A. Executing dynamic SOQL inside a without sharing class with a bind variable fromPageReference.getCookies().
  • B. Executing dynamic SOQL inside a without sharing class with a bind variable fromccAPI.CURRENT_VERSION.
  • C. Executing dynamic SOQL inside a without sharing class with a bind variable from theUserInfo class.
  • D. Executing dynamic SOQL inside a without sharing class with a bind variable fromcc_RemoteActionContentex class.
  • E. Executing dynamic SOQL inside a without sharing class with a bind variable fromPageReference.getParameters().

正解:A、D、E

解説:
Executing dynamic SOQL inside a without sharing class with a bind variable from PageReference.getParameters(), PageReference.getCookies(), or cc_RemoteActionContext class will open up a major security hole because these sources of input are not sanitized and can be manipulated by malicious users to inject SOQL queries that bypass the sharing rules and access data that they are not supposed to see. For example, a user can modify the URL parameters or cookies to include a SOQL query that returns sensitive data from the database. To prevent this, it is recommended to use static SOQL or escape the bind variables before executing dynamic SOQL.


質問 # 35
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: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>"
  • B. sfdx force:data;tree:export -Product2 -all q and
    sfdx force:data:tree:lmport -f Product2.json -all
  • C. sfdx force:data:bulk:export -Product2 -all 0 and
    sfdx force:data:bulk:lmport -f Product2.json -all
  • D. sfdx force:tree:data:export -q "SELECT Id, Name FROM Product2" -u <your username> and sfdx force:tree:data:import -f Product2Json -all

正解:A

解説:
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]


質問 # 36
A query containing a subquery is executed. What is appended to the subquery name as part of its transformation by default in Salesforce B2B Commerce?

  • A. The letter "S"
  • B. A subscriber-supplied token
  • C. "__ccrz"
  • D. The "*" symbol

正解:A


質問 # 37
Which two aspects are applicable to Page Includes? (2 answers)

  • A. Page Includes must be assigned to an OOTB Page, i.e. Home, Product Detail, etc., and enabled
  • B. If a controller is used for an included page, then a merge variable must be present on the page.
  • C. Standard Visualforce controls such as apex:form should not be used within a page include
  • D. Page Includes can be configured as Body Includes Begin.

正解:C、D

解説:
Two aspects that are applicable to Page Includes are:
Standard Visualforce controls such as apex:form should not be used within a page include. This is because the page include is rendered inside an existing Visualforce page that already has a form element. Using another form element inside the page include will cause conflicts and errors. Instead, the page include should use HTML elements or custom components that do not require a form element.
Page Includes can be configured as Body Includes Begin. This means that the page include will be rendered at the beginning of the body section of the page, before any other content or widgets. This can be useful for adding some custom content or functionality that applies to the whole page, such as a banner, a modal, or a script. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Page Includes


質問 # 38
......

B2B-Commerce-Developer試験問題集と保証された成功率:https://www.jpntest.com/shiken/B2B-Commerce-Developer-mondaishu

最高品質のSalesforce B2B-Commerce-Developer試験問題:https://drive.google.com/open?id=1vTe1c8X4fJTp4_o_Y825vpfMjH67AzN1

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡