Winter Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Salesforce B2B-Commerce-Developer Salesforce Accredited B2B Commerce Developer (SU24) Exam Practice Test

Salesforce Accredited B2B Commerce Developer (SU24) Questions and Answers

Question 1

What is a valid way of referencing the CC Cart Object whose API name is E_Cart__c in a SOQL query?

Options:

A.

_Cart__c

B.

c.E_Cart__c

C.

ccrz__E_Cart__c

D.

cloudcraze__E_Cart__c

Question 2

Which three statements are true about Global API versioning? (3 answers)

Options:

A.

Calling in with an API version set to lower than 1 will result in an exceptional case where the exception classccrz.BelowMinAPIVersionException will be returned tocallers.

B.

There is no need to pass API_VERSION to the Global APIs, and based on the Salesforce B2B Commerce Managed Package version, Global APIs are able to figure out what version of the API to use.

C.

The API version is scoped at the Class API level and NOT at the method level.

D.

Minimum API_VERSION is 1 and the Maximum API version follows the releases. E.g. The maximum was 4 as of Salesforce B2B Commerce Release-4.5, 5 as of Salesforce B2B CommerceRelease 4.6, etc.

E.

Calling in with an API version set to more than current maximum will result in exception case where the exception class ccrz.ExceedsMaxAPIVersionException will be returned to callers.

Question 3

What are two ways a developer should ensure that a store verifies changes by using an external service?

Options:

A.

Create a flow using an action to retrieve shipping charges from an external service and update the Cart Delivery Group Methods.

B.

Create an Apex class implementing the sfdc_checkout.CartShippingCharges interface to retrieve shipping charges from an external service and register it as the .. calculation integration in the store administration.

C.

Create an Apex class to retrieve shipping charges from an external service and update the Cart Delivery Group Method.

D.

Create a trigger to retrieve shipping charges from an external service and update the Cart Delivery, Group Methods

Question 4

Which three pages should be enabled for the Guest user profile for a storefront to have anonymous checkout? (3 answers)

Options:

A.

CCPaymentInfo

B.

CheckoutNew

C.

OrderView

D.

Checkout

E.

OrderConfirmation

Question 5

Which three file extensions are allowed in a Lightning Web Component folder?

Options:

A.

.js-meta.xml

B.

.html

C.

.Js

D.

.gif

E.

.jar

Question 6

Which two steps are necessary to enable Salesforce B2B Commerce

logging in the managed package?

Options:

A.

Ensure you save a value in the Logging Token input field in the Global Settings section of CC Admin.

B.

Turn On theCheckbox "Cloudcraze Logging" in CC Admin.

C.

Ensure the value saved in the Logging token field is appended to the ccLog query parameter.

D.

Set a cookie with the Id of the user accessing the storefront in CC Admin

Question 7

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?

Options:

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 developer does not have access to the object's metadata

C.

The field is not populated

D.

The user does not have rights to the custom field

Question 8

Which three considerations should a developer keep in mind when creating a tax provider?

Options:

A.

What events to fire in the Lightning Web Component

B.

Whether to use JSON or XML

C.

Success criteria

D.

Whether an AppExchange package already exists

E.

How to handle errors

Question 9

Which three files are required for a deployable Lightning Web Component called displayMyData that will fetch and display data?

Options:

A.

displayMyData.css

B.

displayMyData.js-meta.xml

C.

displayMyData.js

D.

displayMyDataController.cls

E.

displayMyData.html

Question 10

Which wire adapter can a developer use to retrieve metadata about a specific object?

Options:

A.

getObject

B.

getObjectMetadata

C.

All of the above

D.

getObjectinfo

Question 11

In what way can a developer's code subscribe to platform events?

Options:

A.

Flows and Apex Triggers

B.

Flows

C.

Apex Triggers

D.

Process Builder, Apex Triggers and Flows

Question 12

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?

Options:

A.

Configure a tax engine using third-party software.

B.

Configure tax rates and rules for each state in Salesforce B2B Commerce.

C.

Use a different pricebook for each state.

D.

Use the Salesforce out-of-the-box tax calculator.

Question 13

Which two log levels does a developer need to include to debug platform events?

Options:

A.

Apex Code

B.

Database

C.

Callout

D.

Workflow

Question 14

A developer needs to deliver a solution for taxation that supports multiple countries and a complex set of jurisdictions. Which three steps should be considered as part of this process?

Options:

A.

Contact the vendor who wrote the third party service for the most recent information

B.

Implement the sfdc_checkout.CartTaxCalculations interface writing code from scratch

C.

Implement the sfdc_checkout.CartTaxCalculations interface calling out to a third party tax service

D.

Implement the sfdc_checkout.TaxCalculations interface calling out to a third party tax service

E.

Look for packages or existing sample code on the AppExchange

Question 15

Which HTML element can be used as a root tag for a Lightning Web Component's HTML file?

Options:

A.

B.

<article>

C.

<html>

D.

<template>

Question 16

Which method needs to be implemented when rendering a Salesforce B2B

Commerce view in order to have it called after rendering has finished?

Options:

A.

There are no methods called on the view after rendering has finished

B.

onRender()

C.

postRender()

D.

afterRender()

Question 17

In which threeways can Salesforce B2B Commerce API sizing blocks support

multiple API sizing requests? (3 answers)

Options:

A.

When different entities are specified in the method invocation.

B.

The sizing block is not removed.

C.

SZ_ASSC is used.

D.

The sizing block is removedafter the first handler.

E.

SZ_ASSC is not used.

Question 18

A developer is writing custom code to compare External Prices and Sales Prices for cart items. What should be returned if the External Prices are the same as Sales Prices for Products in the Cart? ~.

Options:

A.

sfdc_checkout.IntegrationStatus.Status.SUCCESS

B.

sfdc_checkout.IntegrationStatus.Status.SUCCEEDED

C.

sfdc_checkout.IntegrationStatus.Status.ERROR

D.

sfdc_checkout.IntegrationStatus.Success.FAILED

Question 19

What is likely to happen if a developer leaves debug mode turned on in an environment?

Options:

A.

The performance of the org will become slower each day

B.

The user will begin getting JavaScript limit exceptions

C.

The org will turn off debug mode after 72 hours

D.

A banner will be displayed to the user indicating that the org is in debug mode

Question 20

In a B2B Commerce store, which three tasks must a developer complete to implement the use of a third-party service for either tax, shipping, or pricing calculation?

Options:

A.

Register an Apex class as the integration in the store administration

B.

Create a flow to call the external service directly

C.

Create an Apex class implementing the appropriate interface.

D.

Create a named credential for authentication with an external service

E.

Create an Apex class with an invocable method

Question 21

A developer is implementing an Inventory class for checkout. All the error states have been handled and now the developer needs to take the next step to indicate that inventory is available for all of the items and amounts in the cart. What should the next step be?

Options:

A.

Return TRUE

B.

Return sfde_checkout.InventoryStatus. SUCCESS

C.

Return sfdc_checkout.IntegrationStatus. Status. SUCCESS

D.

Return sfdc_checkout.InventoryStatus.Status. SUCCESS

Question 22

Which option is the correct syntax to render a property in a Lightning web component template?

Options:

A.

Surround the property with curly braces: {property}

B.

Surround the property with brackets: [property]

C.

Surround the property with an exclamation point and curly braces: {property}

D.

Surround the property with curly braces and exclamation point: {{property}

Question 23

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?

Options:

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

Question 24

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?

Options:

A.

sfdx force:data:bulk:export -Product2 -all 0 and

sfdx force:data:bulk:lmport -f Product2.json -all

B.

sfdx force:data;tree:export -Product2 -all q and

sfdx force:data:tree:lmport -f Product2.json -all

C.

sfdx force:tree:data:export -q "SELECT Id, Name FROM Product2" -u ® and

sfdx force:tree:data:import -f Product2Json -all

D.

sfdx force:data:tree:export -q "SELECT Id, Name FROM Product2" -u "" and sfdx force:data:tree:import -f Product2.json -u w"

Question 25

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?

Options:

A.

Make a call to the service

B.

Use External Ohjects

C.

Implement the sfdc_checkout.PriceCalculations

D.

Implement the sfdc_checkout.CartPriceCalculations

Question 26

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?

Options:

A.

Return TRUE

B.

Return sfdc_checkout.lntegrationStatus.Status.SUCCESS

C.

Return sfdc.checkout.lnventoryStatus.Status.SUCCESS

D.

Return sfdc.checkout.lnventoryStatus.SUCCESS

Question 27

A developer suspects that a defect exists in 30 lines of Apex code. How can the developer add debug statements, run the block of apex code in isolation and observe the immediate results?

Options:

A.

Click the Check Out button in the storefront

B.

Use the Execute Anonymous window

C.

Activate Chrome dev tools and click the Check Out button in the Storefront

D.

Use the Execute Immediate window

Question 28

Which category can receive signaling from a Lightning Message Channel?

Options:

A.

only descendents (i.e. children)

B.

only direct siblings

C.

page (anywhere on it)

D.

only ancestors (i.e. parents)

Question 29

How should a developer get the grand total amount, including shipping and tax, for items in the

cart and in the currency of the cart, when developing a new Lightning web component for an

Aura storefront cart page?

Options:

A.

{!Cart.Details.grandTotal}

B.

{ICart.Totals.grand Total}

C.

{ICart.Details.Fields.grandTotal}

D.

{!Cart.Fields.grandTotal}

Question 30

How does a project implement the process to persist payment information datain the

Checkout flow for Salesforce B2B Commerce version 4.2 and beyond?

Options:

A.

Trigger a remote action when the process payment button is selected to capture the payment.

B.

Trigger a remote action to store the payment information in the URL query parameters.

C.

Trigger the processPayment event and pass in the payment information object as an argument.

D.

Trigger the externalprocessedPayment and pass in the payment information object as an argument.

Question 31

Which three actions are applicable when modifying the number of steps required in the Salesforce Commerce Checkout flow? (3 answers)

Options:

A.

Perform a template override on the Checkout page.

B.

Add a page include to the checkout page.

C.

Build and activate a new configuration cache setting via CC admin.

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.

Question 32

A developer is trying to integrate a new shipping provider to use during checkout in a storefront Which two steps must the developer take to make an integration available for selection?

Options:

A.

Create a RegisteredExternalService record using Workbench.

B.

Create an Apex class that uses the integration framework.

C.

Modify the StorelntegratedService to map to an Apex class ID using Workbench.

D.

Enter the integration class name and version in the store administration.

Question 33

Which event is invoked by any CCRZ Salesforce B2B CommeceView after the view is rendered?

Options:

A.

view:*:load

B.

view:*:refresh

C.

view:*:onload

D.

view:*:rendered

Question 34

What is a best practice when passing query parameters from user interface to an apex controller?

Options:

A.

Query parameters should be properly sanitized by using JSINHTMLENCODE within the VisualForce Page or Component.

B.

String parameters should be trimmed using String.trim().

C.

Query parameters should be passed only to Salesforce B2B Commerce classes that you are extending.

D.

Query parameters should be stored on a backbone model prior to passing them to the server

Question 35

Which method is used to override when extending the Salesforce B2B Commerce logic providers?

Options:

A.

doLogic

B.

process

C.

doAction

D.

fetch

Question 36

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?

Options:

A.

ccrz.ccAPI.SZ_REL

B.

ccrz.ccAPI.SZ_ASSC

C.

ccrz.ccAPISizing.ASSC

D.

ccrz.ccAPISizing.REL

Question 37

What is true regarding adding more Configuration Settings

to Salesforce B2B Commerce?

Options:

A.

Metadata can be added to existing modules, but you cannot add new modules.

B.

Configuration settings can only be extended through API's

C.

Select "New"in your storefront's Configuration Settings and create a custom setting.

D.

More modules and metadata can be added to Salesforce B2B Commerce.

Question 38

Which out of the box Salesforce B2B Commerce page can give instructions to web

crawlers from accessing specific Salesforce B2B Commerce pages?

Options:

A.

CCCat?SiteMap

B.

cc_RobotsTxT

C.

CCSiteIndex

D.

CCPage

Question 39

Which two aspects are applicable to Page Includes? (2 answers)

Options:

A.

Standard Visualforce controls such as apex:form should not be used within a page include

B.

Page Includes must be assigned to an OOTB Page, i.e. Home, Product Detail, etc., and enabled

C.

Page Includes can be configured as Body Includes Begin.

D.

If a controller is used for an included page, then a merge variable must be present on the page.

Question 40

What does the developer need to implement to override Shipping in Checkout? 38m 04s

Options:

A.

sfdc_commerce.CartShippingCharges

B.

sfdc_commerce ShippingCharges

C.

sfdc_checkout.ShippingCharges

D.

sfdc_checkout.CartShippingCharges

Question 41

How are version related upgrades passed on to subscriber API extensions/overrides?

Options:

A.

APIs callback with specific versions specified; the user must know which version number to use.

B.

Copy and paste of specific code is "built-in"

C.

Extensions and overridden APIs don't support-related upgrades.

D.

The "delegate" allows inherited method calls access to the most recentlyspecified service version

Question 42

Which two behaviors does a target value of lightning__FlowScreen in metadata allow for a Lightning web

component?

Options:

A.

It allows the Lightning web component to replace standard functionality in flows and subflows

B.

It allows the Lightning Web component to be dragged onto a page in Lightning AppBuilder

C.

It allows the Lightning web component to be used in guided user experiences to gather input

D.

It automatically generates configuration properties for the Lightning web component

Question 43

A configuration value, CO.NewOrder, is set to TRUE. What is one way of

preventing anexisting payment page from being shown on the checkout payment page?

Options:

A.

Delete the Visualforce page from the code base.

B.

Remove the value matching the page name from the pmt.whitelist configurationsetting, then rebuild and activate a new Configuration cache

C.

Remove the payment type associated with the payment page from CO.pmts, thenrebuild and activate a new cache.

D.

Override the front end template and modify the way the embedded payment page getsloaded from the payment list configuration.

Question 44

Northern Trail Outfitters (NTO) exports Order Summary data from its org. A developer launches Data Loader, selects Order Summary, clicks the Select All Fields button, and clicks Finish. Custom fields are defined in the Cart and Order Summary objects and successfully mapped from Cart to Order Summary during checkout. However, all three custom fields in the Order Summary are empty in the export file.

What is the most likely cause?

Options:

A.

There was a misspelling in one of the custom fields.

B.

The Cart to Order action does not support the mapping of custom fields.

C.

The developer does not have access to the fields.

D.

The developer can export Order Summary records only by using Data Export Service

Question 45

Which wire adapter should a developer use to retrieve metadata about a specific picklist?

Options:

A.

getPicklistMetadataValues

B.

getPicklistMetadata

C.

getPicklistValues

D.

getPicklist

Question 46

Which Salesforce B2BCommerce object needs to have a record added when defining

a new Subscriber Pages to be rendered in a CC Page?

Options:

A.

CC Storefront Assosiation

B.

CC Admin

C.

CC Page Sections

D.

CC Subscriber Pages

Question 47

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?

Options:

A.

ComponentValidity

B.

Validate

C.

SaveCheckout

D.

CheckValidity

Question 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?

Options:

A.

The user needs to install a specific Zulu JDK that is recommended by Salesforce.

B.

A mapping file was not used when the data was loaded in

C.

The user does not have access to the field

D.

The user has rights to the field but there are no values in it

Question 49

Which three decorators can be used in Lightning Web Components?

Options:

A.

@api

B.

@track

C.

@wire

D.

@class

E.

@import

Question 50

Which two blocks of code are needed to implement a custom getter in a Lightning web component?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 51

Which two practices are allowed when it comes to naming a Lightning Web Components folder and associated files?

Options:

A.

Beginning with a lowercase letter

B.

Including whitespace

C.

Using a single hyphen (dash)

D.

Using a single underscore

Question 52

A developer is debugging a flow and needs to watch all the variables changing as the checkout process is executed, but nothing is displaying. Which two features did the developer forget to enable?

Options:

A.

Set up a debug tog to show the details of what is executed

B.

Show the details of what is executed and render flow in Lightning Runtime

C.

Run the latest version of each flow called by subtle w elements

D.

Show the details of what is executed and render flow in Lightning Experience.

Question 53

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?

Options:

A.

ccrz.cc_CallContext.init(ccrz.cc_RemoteActionContext)

B.

ccrz.cc_CallContext.initCallContext(ccrz.cc_RemoteActionContext)

C.

ccrz.cc_CallContext.initRemoteActionContext(ccrz.cc_RemoteActionContext)

D.

ccrz.cc_CallContext.initializeCallContext(ccrz.cc_RemoteActionContext)

Question 54

What are three ways to test the value of Page Label on any Salesforce B2B

Commerce Community Page? (3 answers)

Options:

A.

Access the source HTML for the page viathe browser developer tools.

B.

Execute CCRZ.pagevars.pageLabels['PAGE_LABEL_NAME') in the JavaScript console.

C.

Execute CCRZ.processPageLabelMap('PAGE_LABEL_NAME') in the JavaScript console.

D.

Enable the 'display page label names' in cc admin.

E.

Execute (('PAGE_LABEL_NAME')) in the JavaScript console

Question 55

Which handlebars helper expression is used in Salesforce B2B Commerce pages and

components to toggle the display of a block of markup?

Options:

A.

{{#ifStoreSetting 'Field__c'}} ... {{/ifStoreSetting}}

B.

{{#ifSetting 'Page.cfg}} ... {{/ifSetting}}

C.

{{#ifConfig 'Field__c'}} ... {{/ifConfig}}

D.

{{#ifDisplay 'Page.cfg'}} ... {{/ifDisplay}}

Question 56

Which of these is a key pattern leveraged when building Lightning Web Components? 39m 36s

Options:

A.

Composition

B.

Inventory

C.

Juggling

D.

Normalization

Question 57

Which two event settings are required for a custom event called CustomEvent to fire from the Lightning web component and propagate up to the DOM?

Options:

A.

bubbles: true

B.

composed: true

C.

cancelable: true

D.

composed: false

Question 58

What is one requirement to keep in mind when including additional JavaScript 1h files in a Lightning Web Component?

Options:

A.

The files must be ES6 modules and must have names that are unique within the component's folder.

B.

Only five of the files can be used with an import statement

C.

All the files must be imported to a singleton.js file and the singleton.js file can be used with an import statement

D.

Only one of the files can be used with an import statement

Question 59

A dev at Northern Trail Outfitters (NTO) exported Order Summary records via Data Loader, but noticed that some orders were missing. What is the most likely cause?

Options:

A.

Status was not in Created

B.

Billing Contact was missing

C.

Original Order information was missing

D.

Order Life Cycle Type was Managed

E.

Currency mapping was not done correctly

Question 60

A developer has created a custom Lightning web component to display on the Product Detail page in the store. When the developer goes to add the component to the page in Experience Builder, it is missing from the list of custom components.

Which XML fragment should the developer include in the component's configuration XML file to ensure the custom component is available to add to the page?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 61

Which three actions are applicable when extendinga default Salesforce B2B Commerce page via a page include? (3 answers)

Options:

A.

Create a Service Class override to query the new page include.

B.

Create the VisualForce page you wish to include to the Salesforce b2B Commerce page.

C.

Prepend "c." to the name ofthe page referenced in the configuration setting.

D.

Create a configuration setting for enabling the page include and assigning the new page include via CC admin.

E.

Build and activate a new configuration cache setting via CC admin.

Question 62

Which two components in a B2B store template should a developer use to customize a storefront page?

Options:

A.

My Lists

B.

Product List

C.

Order List

D.

Address List

Question 63

A developer has the task to bring some historical data into an org. The data must reside in the org, but cannot be populated in standard or custom objects. The customer is fine with developers building Ul components to surface this data on a case-by-case basis.

Which option allows a developer to meet all of these requirements?

Options:

A.

Big objects

B.

Lightning Canvas

C.

External objects

D.

Lightning Out

Question 64

Which two different types of services do Salesforce B2B

Options:

A.

Commerce APIs leverage? (2 answers) A) Logic services which are responsible for implementing business logic associated with entities.

B.

Global services which are responsible for querying and transforming data from entities

C.

Data services which are responsible for querying and transforming data from entities

D.

Hook services which are extension points for subscribers to tie into.

Question 65

How can a developer introduce new screen behavior in a checkout flow step?

Options:

A.

Modify the property mappings in checkoutSteps.xml

B.

Edit the default subflow directly

C.

Clone the appropriate subflow and replace the Lightning web components in it

D.

Adjust next-state in previous subflow configuration

Question 66

The sizing keys used in the Salesforce B2B Commerce Global APIs five distinct operations. What are three of these operations? (3 answers)

Options:

A.

Refetch data (used on some Logic classes)

B.

Return formats as Map or SObjects lists

C.

Override static DAO classes and methods

D.

Related Query to call (sub queries or direct queries)

E.

Object type casting