New Year Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70special

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

Salesforce Accredited B2B Commerce Developer (SU24) Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$37.5  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$33  $109.99
Question 1

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 2

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.

Question 3

Which format is the custom Salesforce field with the API name

"My_Fiels_Name__c" transformed onto by default in Salesforce B2B Commerce?

Options:

A.

MyFieldName

B.

myFieldName

C.

myfieldname

D.

My_Field_Name__c

Question 4

What are three standard page reference types?

Options:

A.

standard__app

B.

standard__component

C.

standard__pageNamed

D.

comm_loginPage

E.

standard__recordDetailPage

Question 5

Which tool is used to retrieve and manipulate Salesforce data in a Lightning Web Component?

Options:

A.

Aura requests

B.

Wire adapters

C.

Proxy adapters

D.

XHR requests

Question 6

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 7

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 8

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

Question 9

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 10

What are three ways to implement custom post Order processing? (3 answers)

Options:

A.

Use a Salesforce workflow rule that executes when an Order record is created.

B.

Extend cc_hk_invoice tohandle custom business logic post Order processing

C.

Use cc_hk_Order.placeTarget to define a new Order Confirmation page which executes additional business logic.

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.

Question 11

A developer needs to create a scheduled job in another system to move data into the B2B Commerce org. How can the developer do this without additional third party tools?

Options:

A.

Install a minimal set of dev tools on a machine such as the Command Line Interface (CLI) and create appropriate scripts to import files containing the data

B.

Set up an SFTP server as a waystation, drop the files there using the off-platform job and schedule a job in-platform to process the file

C.

Set up WebDAV with SFTP as a waystation, drop the files there using the off-platform job and schedule a job in-platform to process the file

D.

Create a job in the org (on-platform) to drop a file of existing data, Use the off-platform machine to generate a file and identify the details between the two, Push the changes to the org's "Import"

directory

Question 12

What are three advantages of using ccLog over the Salesforce

standard System.debug class? (3 answers)

Options:

A.

There is no need to use string concatenation to easily tag log statements with a subject.

B.

ccLog can debug syntax errors found in the JavaScript.

C.

There is no need to create a User Trace Flag.

D.

Append #ccLog= to the end of the storefront URL in order to get logs in the inspector console.

E.

There is no need to manually set a cookie to debug with the Site Guest User.

Question 13

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 14

What is a method to resolve if the current storefront customer is a Salesforce B2B Commerce guest user in an apex class?

Options:

A.

ccrz.cc_CallContext.currUser.isGuest

B.

ccrz.cc_CallContext.isGuest

C.

UserInfo.getUserType()

D.

... UserType

Question 15

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 16

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.

Question 17

Which cookie stores the effective account ID when effective account is enabled?

Options:

A.

apex__cclgtkn

B.

apex__effacc

C.

apex__currCartId

D.

apex__cc_anonymous_Country

Question 18

Northern Trail Outfitters (NTO) has a B2B Commerce store for its resellers. It has received many customer service calls involving questions about the delivery date of customer orders.

How should a developer expose delivery time estimates to NTO's customers in the storefront to reduce call volume?

Options:

A.

Add the Expected Delivery Date field to the order confirmation email.

B.

Add a Desired Delivery Date input field during the checkout flow.

C.

Display the Expected Delivery Date on the order page with a Lightning web component.

D.

Configure an email alert to the customer when the Expected Delivery Date changes.

Question 19

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 20

What does a developer need to do to modify the out-of-the-box checkout flow template?

Options:

A.

Clone, modify, activate and refer in Experience Builder

B.

Modify directly and save to activate

C.

Create each flow from scratch

D.

Clone, modify and rename to Checkout Flow

Question 21

Salesforce B2B leverages global API's for encapsulating business logic into blocks

that can be extended and modified by subscribers. Which three statements are true

regarding extending ccServiceProduct and exposing custom fields on the Product Detail

Page? (3 answers)

Options:

A.

Override the getFieldsMap method and add subscriber specific code.

B.

Ensure that any helper methods are defined as private andstatic only.

C.

Create a global with sharing class that extends ccrz.ccServiceProduct.

D.

Create a public with sharing class that extends ccrz.ccServiceProduct.

E.

Override the fetch method and add your subscriber specific code here.

Question 22

A developer needs to create an event listener on a parent component programmaticallv. With the script below, what should replace the text ?

Options:

A.

this.template.addEventListener(handleNotification);

B.

this.template.addEventListener(this.handleNotification);

C.

this.template.addEventListenerCnotification1, this.handleNotification);

D.

addEventListener('notifJcatiorV, this.handleNotification);

Question 23

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.

Question 24

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

Question 25

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’;

Question 26

Why is the use of a standard Visualforce control such as apex:form discouraged in

Salesforce B2B Commerce page includes and subscriber pages?

Options:

A.

Visualforce "scopes" controls that are present on a page and scope of the control will be set to "ccrz"

B.

Apex:form render DOM components slowly

C.

The CCRZ Javascript object is not accessible within an apex:form control.

D.

Javascript events are not supported within an apex:form control

Question 27

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

Question 28

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?

Options:

A.

Override the AllowCheckout method in ccrz.cc_api_CartExtension

B.

Override the prepareForSave method in ccrz.cc_api_CartExtension

C.

Override the preprocess method in ccrz.cc_api_CartExtension

D.

Override the prepareToAdd method in ccrz.cc_api_CartExtension

Question 29

What happens to all previous tax entries during tax implementation?

Options:

A.

Modified with the new Tax calculation

B.

They are deleted from the Cart

C.

Saved prior to recalculation

D.

Ignored with the recalculation

Question 30

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

Question 31

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 32

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.

Question 33

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

Question 34

Which practice is allowed when it comes to naming a Lightning web component's folder and associated files?

Options:

A.

Including whitespace

B.

Using a single underscore

C.

Using consecutive underscores

D.

Using a single hyphen (dash)

Question 35

Universal Containers (UC) needs to display data from standard objects (entities) in a different format than what

comes with B2B Commerce out of the box. In doing this, what is one advantage of using the Lightning Data

Service vs using a custom Controller class?

Options:

A.

Lightning Data Service translates the developer's component implementation to a VisualForce page for backward compatibility.

B.

JavaScript proxies for transport objects are created in the developer's IDE automatically.

C.

The developer can read, create, or modify single records or metadata without writing Apex code.

D.

There is a Visual Studio add-in that accelerates the layout process

Question 36

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 37

Which two scoped modules should a developer import in Lightning web components to check user permissions?

Options:

A.

@salesforce/permission

B.

@salesforce/customPermission

C.

@salesforce/hasPermission

D.

@salesforce/userPermission

Question 38

Which method signature is used in the Global API's?

Options:

A.

Changes based on API and Method name

B.

ccrz.cc_Output (ccrz:cc_Input input)

C.

Map

D.

List>

Question 39

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.

The export job did not fully complete

B.

Order Life Cycle Type was Managed

C.

The user does not have rights to some of the records

D.

The Status was still set to Draft

Question 40

Universal Containers (UC) needs to wrap a Lightning Web Component they have created called "lwcContainerComponent” inside an Aura component. Which set of tags is the correct approach?

A)

B)

C)

D)

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Question 41

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 42

The ccUtil apex class in Salesforce B2B Commerce provides numerous utility

functions that can be leveraged in subscriber classes. Which command will return the

value in the given Map if found or a default value in the event that the Map is null,

empty, or an object is not found for that key?

Options:

A.

ccrz.ccUtil.defv (Map mp, String key , Object ob)

B.

ccrz.ccUtil.defVal (Map mp, String key, Object ob)

C.

ccrz.ccUtil.... (Map mp, String key, Object ob)

D.

ccrz.ccUtil.defaultValue(Map mp, String key , Object ob)

Question 43

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

Question 44

Which event should be triggered when user facing info, warning or error messages

need to be displayed on a Visualforce page?

Options:

A.

showMessage

B.

displayPageMessage

C.

displayMessage

D.

pageMessage

Question 45

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

Question 46

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 47

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 48

What are two maintainable ways that Lightning Web Components can be made mobile ready? 33m 215

Options:

A.

Create a Lightning app page and add the component to the mobile navigation

B.

Import a third party JavaScript library

C.

Install the mobile extensions plug-in for VS Code

D.

Decorate templates with mobile-ready

Question 49

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 50

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 51

What is the fastest route to setting up a B2B Commerce Store as a developer?

Options:

A.

Set up B2B Commerce on Lightning Experience manually

B.

Create a new store in the Commerce app

C.

Import a previously exported store archive

D.

Use sfdx setup scripts

Question 52

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

Question 53

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 54

A developer needs to debug a flow tracing a single input in complete detail, watching all variable changes as the checkout process is executed. Which feature should the developer enable? ~.

Options:

A.

Show the details of what's executed and render flow in Lightning Experience

B.

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

C.

Add watch to variables

D.

Show execution details inline

Question 55

How are variables bound when services use the ccSercviceDao classto execute queries?

Options:

A.

Global variables

B.

Apex local variables

C.

String substitution

D.

Apex class variables

Question 56

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

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 are two advantages of using Lightning Data Service?

Options:

A.

Communicates with other components

B.

Converts between different data formats

C.

Combines and de-duplicates server calls

D.

Loads record data progressively

Question 59

Which interface does a developer have to implement to override Inventory in Checkout?

Options:

A.

sfdc_commerce.ValidationCartinventory

B.

sfdc_commerce.CartinventoryValidation

C.

sfdc_checkout.InventoryCartVvalidation

D.

sfdc_checkout.CartinventoryValidation

Question 60

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

Question 61

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 62

How is a price group dynamically set?

Options:

A.

By overriding the ccLogicProductPrice class

B.

By using contract pricing

C.

By extending the ccApiPriceList API

D.

By extending the cc_hk_priceing hook

Question 63

Which two user permissions in addition to View Setup and Configuration are required to bulk create Product data translations via Data Loader?

Options:

A.

Import Custom Objects

B.

B2B Commerce Super User

C.

Create and set up Experiences

D.

Manage Translations

Question 64

Which three files comprise the essential pieces of a Lightning Web Component that is named myComponent?

Options:

A.

myComponent.html

B.

myNewComponent.css

C.

myComponent.js-meta.xml

D.

myComponent.aura

E.

myComponent.js

Question 65

A developer is trying to troubleshoot why a field is not displaying on the Product Detail Page. What should be typed in the Developer Tools Console in the browser to view the fields available for the Product Detail Page?

Options:

A.

CCRZ.productSearchView

B.

CCRZ.cartView

C.

CCRZ.productDetailModel

D.

CCRZ.productDetailView

Question 66

What is the fastest route to establishing the data needed for checkout development when setting up a new Store?

Options:

A.

Import a previously exported store archive

B.

Use sfdx setup scripts

C.

Select Add Sample Data when setting up the store

D.

Import the data with data loader