Winter Special Sale Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 713PS592

B2B-Commerce-Developer Salesforce Accredited B2B Commerce Developer (SU24) Questions and Answers

Questions 4

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

Buy Now
Questions 5

Northern Tail Outfitters (NTO) is converting an existing aura component into a Lightning Web Component. The aura component has the following source code:

B2B-Commerce-Developer Question 5

What is the equivalent of this code in a Lightning Web Component?

A)

B2B-Commerce-Developer Question 5

B)

B2B-Commerce-Developer Question 5

C)

B2B-Commerce-Developer Question 5

D)

B2B-Commerce-Developer Question 5

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 6

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

Buy Now
Questions 7

Which cart item type is created with the Cart Delivery Group Method after the shipping integration?

Options:

A.

Surcharge

B.

Charge

C.

Shipping

D.

Delivery

Buy Now
Questions 8

Which handlebars helper function is used on Salesforce B2B Commerce pages and

components for formatting price values?

Options:

A.

formatPrice

B.

priceAbs

C.

showprice

D.

price

Buy Now
Questions 9

How can a developer make an integration available for selection?

Options:

A.

Modify the StoreIntegrated Service to map to an Apex class id usingworkbench

B.

Enter the integration class name and version in Store Administration

C.

Create a RegisteredExternalService record using Workbench

D.

The integration is available once it is uploaded

Buy Now
Questions 10

Which template will correctly display the details message only when areDetailsVisible becomes true given the following code in a Lightning Web Component?

B2B-Commerce-Developer Question 10

A)

B2B-Commerce-Developer Question 10

B)

B2B-Commerce-Developer Question 10

C)

B2B-Commerce-Developer Question 10

D)

B2B-Commerce-Developer Question 10

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 11

Which two methods from the platformResourceLoader module are relevant for including third party JavaScript and CSS in a Lightning web component?

Options:

A.

loadClientScript

B.

loadScript

C.

loadCss

D.

loadStyle

Buy Now
Questions 12

A user wants to have a customized experience for adding items to the cart. The user

also wants the mini cart module to reflect changes to the state of the cart afterwords. How

should this requirement be fulfilled?

Options:

A.

Leverage the Addto Cart Global API which add items to the cart and also refreshes the page with the new data.

B.

Trigger the global „cartChange" event and then trigger „changeMiniCart" event after the Add to Cart Action on the custom button.

C.

Write a custom Remote Action to refresh the Mini Cart and refresh the Cart Line item count on the Cart Link in the header.

D.

Trigger the global „cartChange" event after the Add to Cart Action on the custom button.

Buy Now
Questions 13

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)

Options:

A.

Executing dynamic SOQL inside a without sharing class with a bind variable fromPageReference.getParameters().

B.

Executing dynamic SOQL inside a without sharing class with a bind variable from theUserInfo class.

C.

Executing dynamic SOQL inside a without sharing class with a bind variable fromPageReference.getCookies().

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 fromccAPI.CURRENT_VERSION.

Buy Now
Questions 14

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.

Buy Now
Questions 15

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

Buy Now
Questions 16

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

Options:

A.

doLogic

B.

process

C.

doAction

D.

fetch

Buy Now
Questions 17

Which two methods should a developer implement in a Lightning web component to successfully handle the subscription lifecycle of a Message Channel?

Options:

A.

Subscribe()

B.

stopListener()

C.

startListener()

D.

unsubscribe()

Buy Now
Questions 18

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

Buy Now
Questions 19

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

Buy Now
Questions 20

Inwhich three different ways can a theme be enabled in

Salesforce B2B Commerce? (3 answers)

Options:

A.

A Storefront setting

B.

An Account Group field value

C.

A per user setting

D.

Account

E.

Dynamically through a hook

Buy Now
Questions 21

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

Buy Now
Questions 22

A developer needs to implement a business rule around shipping: Anything over a certain amount must be sent through freight at a fixed cost and cannot be

sent through standard shipping channels. Which two considerations should the developer consider?

Options:

A.

A class will need to implement the sfdc_commerce.CartShippingCharges interface

B.

The implementing class cannot call out to another service

C.

A class will need to implement the sfdc_checkout.CartShippingCharges interface

D.

The implementing class may need to contain logical branching

Buy Now
Questions 23

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>

Buy Now
Questions 24

A developer is working on an existing checkout implementation built against the Lightning Web Runtime (LWR) and wants to implement a custom child checkout component to modify out-of-the-box functionality.

Which interface must the developer implement for the child component?

Options:

A.

CheckoutSavable

B.

Checkoutoutinterface

C.

CustomCheckout

D.

CheckoutStep

Buy Now
Questions 25

An administrator has just provided a developer with a completely new org and a username. Assuming the username is me@my-new-org.org, what is the correct set of steps to authorize the org for Command Line Interface (CLI) access so the developer can deploy Lightning web components?

Options:

A.

Run the command: 'sfdx force:login -r "https://login.salesforce.com'' and supply the credentials in the browser when it opens.

B.

Run the command 'sfdx force:auth:web:login -a "https://login.salesforce.com'"' and then supply the credentials in the browser when it opens.

C.

Run the command: 'sfdx force:auth:web:login -r "https://login.salesforce.com" and then supply the credentials in the ^ browser when it opens ^

D.

Run the command 'sfdx force:auth:web:login -r "https://login.salesforce.com" -username^'mefaJmy-new-org.org"'

Buy Now
Questions 26

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

Buy Now
Questions 27

Northern Trail Outfitters (NTO) has a requirement to schedule a reusable data import across multiple orgs for customer demo purposes. NTO also has a requirement to seed data of related objects—ProductCatalog, ProductCategory, Product2, and ProductCategoryProduct— while preserving its relationships and without purchasing additional licenses or using thirdparty tools.

What is the recommended tool a developer should select to address the requirement?

Options:

A.

Dataloader.io

B.

Bulk Import Using Command Line Interface

C.

Commerce Product Data Import

D.

Data Import Wizard

Buy Now
Questions 28

Based on error emails flowing in, a developer suspects that recent edits made to a checkout flow have created a defect. The developer has data points available to use as inputs in reproducing the scenario.

What should the developer do next?

Options:

A.

Open the flow, select Debug, provide the session ID for replay, and select Run.

B.

Open the flow, select Attach to Live Session, provide the session ID, and select Attach.

C.

Open the flow, select Debug, provide the Input values, and select Run.

D.

Open the flow, select Debug with Inputs, provide the Input values, and select Run.

Buy Now
Questions 29

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

Options:

A.

Composition

B.

Inventory

C.

Juggling

D.

Normalization

Buy Now
Questions 30

Which two technologies can subscribe to the CommerceDiagnosticEvents event?

Options:

A.

Aura Components

B.

Processes

C.

Streaming API

D.

Lightning web components

Buy Now
Questions 31

A user wants the pricing to reflect the price values stored in an external ERP during

the checkoutflow. In what way can this requirement be satisfied?

Options:

A.

Override the computePricingCart method in ccrz.cc_api_PriceAdjustoment and make the callout in this method.

B.

None of the above

C.

Override the computePricingReview method in ccrz.cc_CartExtension and make the callout in this method.

D.

Override the computePricingCart methos in ccrz.cc_api_CartExtension and make the callout in this method.

Buy Now
Questions 32

A developer has just deployed a new Lightning Web Component to an authorized org. What should the developer do next to use the new component on apage?

Options:

A.

Go to "Deploy LWC" in Setup.

B.

Navigate 3 to the Page, Click on the "Custom Component Editor,’ Click "Publish" on the new component in the list and adjust the positioning.

C.

Create a Metadata API (MDAPI) conversion file with the Command Line interface (CLI) then go to the page and adjust the positioning.

D.

Go to the page, edit it, and drag the new component onto the page.

Buy Now
Questions 33

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

Buy Now
Questions 34

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.

Buy Now
Questions 35

How can a developer establish communication between components that are not in the same DOM (Document Object Model) tree?

Options:

A.

Use publish-subscribe pattern.

B.

Configure targets property.

C.

Use dispatch events.

D.

Use @api decorators.

Buy Now
Questions 36

What class must a developer implement to override Pricing during the checkout?

Options:

A.

sfdc_commerce.CartPriceCalculations

B.

sfdc_commerce.PriceCalculations

C.

sfdc_checkout.PriceCalculations

D.

sfdc_checkout.CartPriceCalculations

Buy Now
Questions 37

A developer suspects recent edits to a checkout flow have created a bug based on flow errors being emailed. Given the emails and some inputs known to trigger the issue, which two activities should the developer consider in their investigation?

Options:

A.

Use the Org Browser tool in the IDE to download the flow XML and run a diff report

B.

Look at the previous flow versions and compare them with the current one

C.

Open the Flow, Select Debug, Provide the Inputs, Select Run

D.

Open the Flow and select Attach to Live Session, Provide the Session Id, Select Attach

Buy Now
Questions 38

Which two are considered discrete units of work (code units) within a transaction in the debug logs?

Options:

A.

Validation rule

B.

Lightning component load

C.

Web service invocation

D.

Apex class

Buy Now
Questions 39

When a developer configures a tax integration for a store, what happens to the previously calculated tax entries during the checkout flow?

Options:

A.

Ignored during recalculation

B.

Saved prior to recalculation

C.

Deleted from the Cart

D.

Modified with the new tax calculation

Buy Now
Questions 40

Which three are considered code units, or discrete units of work within a transaction in the debug logs?

Options:

A.

Validation rule

B.

Apex class

C.

Web service invocation

D.

Lightning component load

E.

Workflow invocations

Buy Now
Questions 41

A product is assigned to the entitlement policy but is missing from the Price Book related to the Buyer Group. The entitlement policy has View products and View prices in catalog checked.

How will the product behave on the B2B Portal?

Options:

A.

The product will not appear on the Portal but can be searched since it is part of the entitlement policy.

B.

The product will appear on the Portal with Price Unavailable status and can also be added to the cart.

C.

The product will not appear on the Portal and therefore cannot be added to the cart.

D.

The product will appear on the Portal with Price Unavailable status but cannot be added to the cart.

Buy Now
Questions 42

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.

Buy Now
Questions 43

Which two statements are accurate?

Options:

A.

A Lightning Web Component cannot contain an Aura component

B.

A Lightning Web Component can contain an Aura component

C.

An Aura component can contain a Lightning Web Component which contains an Aura component

D.

An Aura component can contain a Lightning Web Component

Buy Now
Questions 44

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.

Buy Now
Questions 45

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?

Options:

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.

Override the Logic Class that the page uses and update the Service Management inCCAdmin for the given storefront to use this new Service Class

C.

Create a new Service Classthat the page uses and update the Service Managementin CCAdmin 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

Buy Now
Questions 46

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

Buy Now
Questions 47

Which two statements are accurate about the Cart Item with a Type of Charge?

Options:

A.

It is created with the Cart Delivery Group Method after the shipping integration

B.

It is created with the Cart Delivery Group Method after the freight integration

C.

It is linked directly to a Cart Id

D.

It is linked directly to a Catalog Id

Buy Now
Questions 48

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?

Options:

A.

myrelationshipname.myname: value

B.

myRelationshipName.myName: value

C.

myRelationshipNameR=>(myName: value)

D.

My_Relationship_Name__r.My_Name__c: value

Buy Now
Questions 49

In checkout, what event should the developer's code listen for in order to help troubleshoot and respond to actions?

Options:

A.

CommerceBubbleEvents

B.

CommerceErrorEvents

C.

CommerceActionEvents

D.

CommerceDiagnosticEvents

Buy Now
Questions 50

How do the REST APIs in Salesforce B2B Commerce support pass-through parameter handling

Options:

A.

An exception is generated for unknown API keys

B.

Parameters are passed through the service handlers

C.

Parameters are filtered out before the request is processed

D.

Parameters are separated, but unused

Buy Now
Questions 51

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

Options:

A.

ccrz.ccLog.log(System.LoggingLevel.ERROR, 'D:something', myCallToGetMessage(pl) ), where myCallToGetMessage(pl) is a method invocation

B.

crz.ccLog.log(System.LoggingLevel.WARN, 'D:something', 'Something unexpected occurred: The data we were expecting for pl was not there,')

C.

crz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrderList', myOrderList), where myOrderList is a list of orders

D.

crz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrder', myOrder), where myOrder is an order object

Buy Now
Questions 52

What are two guidelines for logging that are used within the core Salesforce

B2B Commerce product? (2 answers)

Options:

A.

Items or data within computational intensive loops shouldbe logged.

B.

The close method of ccrz.ccLog must be called at the end of the remote action.

C.

No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed.

D.

It is okay to log any data on the server that is already logged on the client side.

Buy Now
Questions 53

Which three actions must a developer take, in a B2B Commerce store, to accept credit card payments using a client's chosen payment provider?

Options:

A.

Create a named credential for authentication with the payment provider.

B.

Create a RegisteredExternalService record for the custom payment provider class.

C.

Create an Apex class that implements the sfdc_checkout.PaymentGatewayAdapter

D.

Create a PaymentProviderGateway record for the custom payment provider class.

E.

Create an Apex class that implements the commercepayments.PaymentGatewayAdapter.

Buy Now
Questions 54

How should data for Lightning web components be provided?

Options:

A.

A few properties that contain sets (objects) of data

B.

One property that contains all data in one set (object)

C.

A single property object that contains sets (objects) of data

D.

Independent properties that take simpler, primitive values (e.g. String, Number, Boolean, Array)

Buy Now
Questions 55

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

Buy Now
Questions 56

What isthe difference between Gross Layout Overrides and Subscriber Templates?

Options:

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.

Buy Now
Questions 57

A developer is attempting to write a Lightning Web component from scratch by first creating the HTML markup and receives an error. Which three tags when used as the first element in the file would produce an error?

Options:

A.

<template>

B.

<article>

C.

D.

<html>

Buy Now
Questions 58

Which three decorators can be used in Lightning Web Components?

Options:

A.

@api

B.

@track

C.

@wire

D.

@class

E.

@import

Buy Now
Questions 59

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

Options:

A.

getObjectMetadata

B.

getObjectlnfo

C.

getObject

D.

getObjectDescribe

Buy Now
Questions 60

A developer needs to implement a custom Lightning web component (LWC) for the storefront.

The LWC contains language-specific text values.

How should the developer translate the text values?

Options:

A.

Import static resources for the text values and add them into the LWC.

B.

Use a CustomLabel xml file in the LWC to add the text values there.

C.

Create custom labels for the text values and import them in the LWC.

D.

Create a custom Metadata object for the text values and query it in the LWC.

Buy Now
Questions 61

Which two items are required for a developer to bring picklist values into a Lightning Web Component?

Options:

A.

import { getPicklistvValues } from 'lightning/uiObjectinfoApi';

B.

import { LightningElement, wire } from ‘lwc’;

C.

import { wire } from ‘lwc’;

D.

import { picklistValues } from 'lightning/uiObjectinfoApi’;

Buy Now
Questions 62

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?

Options:

A.

ccrz.ccAPISizing.SKIPTRZ

B.

ccrz.ccAPISizing.SOBJECT

C.

ccrz.ccAPI.SZ_SKIPTRZ

D.

ccrz.ccAPI.SZ_SOBJECT

Buy Now
Questions 63

What is a valid way of referencing the global cc_api_CartExtentsion apex class via

subscriber code?

Options:

A.

ccrz__cc_api_CartExtension

B.

c__cc_api_CartExtension

C.

cloudcraze.cc_api_CartExtension

D.

ccrz.cc_api_CartExtension

Buy Now
Questions 64

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}}

Buy Now
Questions 65

A developer is building a custom component in Lightning web components (LWC) that needs to fetch data from an API.

Which lifecycle hook should the developer use to make the API call?

Options:

A.

connectedCallback

B.

renderedCallback

C.

errorCallback

D.

disconnectedCallback

Buy Now
Questions 66

What two kinds of queries do the methods in Salesforce B2B Commerce services perform by default? (2 answers)

Options:

A.

SOSL

B.

SQL

C.

SOQL

D.

Schema-less queries

Buy Now
Exam Name: Salesforce Accredited B2B Commerce Developer (SU24)
Last Update: Feb 1, 2025
Questions: 220

PDF + Testing Engine

$66  $164.99

Testing Engine

$50  $124.99
buy now B2B-Commerce-Developer testing engine

PDF (Q&A)

$42  $104.99
buy now B2B-Commerce-Developer pdf