Pre-Summer Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

B2B-Commerce-Developer Questions and Answers

Question # 6

What is the purpose of connectedCallback in a Lightning web component?

A.

It performs actions when a network request is made.

B.

It perform actions when a component makes a call to a Connect APL.

C.

It performs actions when a component is removed from the DOM.

D.

It performs actions when a component is added to the DOM.

Full Access
Question # 7

What are two purposes of the Shadow DOM in a Lightning web component?

A.

It encapsulates the internal document object model (DOM) structure of a web component

B.

It allow components to be shared while protecting them from being manipulated by arbitrary code

C.

It allows direct access to the document object model of the component

D.

It allows older JavaScript libraries to manipulate the tagging structure

Full Access
Question # 8

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

A.

SOSL

B.

SQL

C.

SOQL

D.

Schema-less queries

Full Access
Question # 9

Which two technologies can subscribe to the CommerceDiagnosticEvents event?

A.

Aura Components

B.

Processes

C.

Streaming API

D.

Lightning web components

Full Access
Question # 10

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?

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

Full Access
Question # 11

Which two statement are true for Mass Order (2 answers)

A.

Mass Order pricing is done via a batch job.

B.

Mass order works with thedefault wishlists

C.

The variation product is leveraged for SKUs.

D.

Mass Order is mobile ready with the ccrz templates.

Full Access
Question # 12

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

A.

getObject

B.

getObjectMetadata

C.

All of the above

D.

getObjectinfo

Full Access
Question # 13

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

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

Full Access
Question # 14

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?

A.

Big objects

B.

Lightning Canvas

C.

External objects

D.

Lightning Out

Full Access
Question # 15

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

A.

My Lists

B.

Product List

C.

Order List

D.

Address List

Full Access
Question # 16

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

Commerce Community Page? (3 answers)

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

Full Access
Question # 17

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

component?

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

Full Access
Question # 18

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?

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.

Full Access
Question # 19

Which code statement should a developer use to import the ID of the current Lightning Experience

A.

import id from '@salesforce/network/ld'

B.

import id from '@salesforce/experience/ld'

C.

import id from '@salesforce/site/ld'

D.

import id from '@salesforce/community/ld'

Full Access
Question # 20

A new payment type for the Checkout flow has been implemented. Which three

descriptors follow best practice for possible configuration metadata are needed to enable

a flow? (3 answers)

A.

*.pay

B.

Cart

C.

Checkout

D.

*.Edit

E.

*.New

Full Access
Question # 21

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

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

Full Access
Question # 22

What isthe difference between Gross Layout Overrides and Subscriber Templates?

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.

Full Access
Question # 23

Which two statements are true about Global API's in Salesforce B2B Commerce? (2 answers)

A.

Each globalAPI method takes in a Map as a single parameter and returns a Map

B.

Global APIs are versioned.

C.

Global APIs will catch any Exceptions that are thrown as part of missing parameters.

D.

Global APIs will handle Transaction scope, and the Subscriber calling it does not need to handle scope.

Full Access
Question # 24

A developer needs to bulk export all of the Product data from an org and does not have access to Data Loader or Workbench. However, the Command Line Interface (CLI) is available. Which command allows the developer to accomplish this task?

A.

sfdx force:data:treeiexport -q -x export-demo -d /tmp/sfdx-out -p

B.

sfdx force:data:tree:export -Product2 -all

C.

sfdx force:data:tree:export -o Product?

D.

sfdxforce:data:tree:export -h

Full Access
Question # 25

A developer needs to import some new product data contained in a JSON file one time. What are two viable ways to do this? .

A.

Convert the JSON to an xlsx file and use Workbench to import it

B.

Run a command like: sfdx force:data:tree:import -f NewProducts.json -u

C.

Convert the JSON to a CSV file and use Data Loader to import it

D.

Run a command like: sfdx force:data;import:bulk -f NewProducts.json -u

Full Access
Question # 26

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?

A.

<template>

B.

<article>

C.

<body>

D.

<html>

Full Access
Question # 27

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

A.

Aura requests

B.

Wire adapters

C.

Proxy adapters

D.

XHR requests

Full Access
Question # 28

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

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.

Full Access
Question # 29

A developer has made some changes to the products of an existing storefront, but they are unable to see the changes in the products from the store.

Which action did the developer forget to take?

A.

Activate the product list.

B.

Publish the storefront.

C.

Rebuild the search index.

D.

Publish the catalog

Full Access
Question # 30

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

Question # 30

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

A)

Question # 30

B)

Question # 30

C)

Question # 30

D)

Question # 30

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 31

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

Full Access
Question # 32

In which three ways should useful debugging information in Salesforce B2B

Commerce implementation be garnered? (3 answers) A) Enabling the logging token via

A.

Admin andsubsequently inspecting the logs via the browser console.

B.

Logging a case with Salesforce support to enable advanced debugging options.

C.

Enabling debugging options for the current user and visually inspecting the Salesforce debug logs.

D.

Placing a System.debug() statement anywhere in the class being debugged.

E.

Logging into the community as a system administrator to identify any potential permissions or Visualforce exceptions.

Full Access
Question # 33

An administrator has just provided a developer with a new org and username. Which two sets of steps can the developer use to authorize the org and begin deploying Lightning web components?

What should a developer do to expose a public property in a Lightning web component?

A.

Decorate the field with @property

B.

Decorate the field with @track

C.

Decorate the field with @public

D.

Decorate the field with @api

Full Access
Question # 34

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

A.

getObjectMetadata

B.

getObjectlnfo

C.

getObject

D.

getObjectDescribe

Full Access
Question # 35

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

A.

ccrz.cc_CallContext.currUser.isGuest

B.

ccrz.cc_CallContext.isGuest

C.

UserInfo.getUserType()

D.

... UserType

Full Access
Question # 36

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

A.

import { getPicklistvValues } from 'lightning/uiObjectinfoApi';

B.

import { LightningElement, wire } from ‘lwc’;

C.

import { wire } from ‘lwc’;

D.

import { picklistValues } from 'lightning/uiObjectinfoApi’;

Full Access
Question # 37

Which technique can be used with Lightning web components to expose them outside of an org in another web container?

A.

Slot elements

B.

Heroku

C.

Lightning Out

D.

Lightning Canvas

Full Access
Question # 38

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

A.

Apex Code

B.

Database

C.

Callout

D.

Workflow

Full Access
Question # 39

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

A.

sfdc_commerce.ValidationCartinventory

B.

sfdc_commerce.CartinventoryValidation

C.

sfdc_checkout.InventoryCartVvalidation

D.

sfdc_checkout.CartinventoryValidation

Full Access
Question # 40

How can a developer make an integration available for selection?

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

Full Access
Question # 41

Which technique is used by Lightning Web Components to provide areas of swappable, customizable content?

A.

elements

B.

JQuery templates

C.

MutationObservers

D.

CSS classes

Full Access
Question # 42

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

A.

getPicklistMetadataValues

B.

getPicklistMetadata

C.

getPicklistValues

D.

getPicklist

Full Access
Question # 43

Numerous flags ... have a directimpact on the result set provided by the Global

API's. What Global API Data-Sizing convention flag prevents an API request from

propagating to further requests when provided as a Boolean parameter with a value of

true?

A.

ccrz.ccAPI.SZ_REL

B.

ccrz.ccAPI.SZ_ASSC

C.

ccrz.ccAPISizing.ASSC

D.

ccrz.ccAPISizing.REL

Full Access
Question # 44

Which orders can a user view on Order List Component (Aura) for B2B stores?

A.

Orders placed in the current storefront and related to the current effective account

B.

Orders placed in any storefront and related to the current effective account

C.

Orders placed in the current storefront and related to the current user's account

D.

Orders placed in any storefront and related to the current user's account

Full Access
Question # 45

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

A.

displayMyData.css

B.

displayMyData.js-meta.xml

C.

displayMyData.js

D.

displayMyDataController.cls

E.

displayMyData.html

Full Access
Question # 46

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

A.

getPicklistMetadata

B.

getPicklist

C.

getPicklistValues

D.

getPicklistMetadataValues

Full Access
Question # 47

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.SKIPTRZ

B.

ccrz.ccAPISizing.SOBJECT

C.

ccrz.ccAPI.SZ_SKIPTRZ

D.

ccrz.ccAPI.SZ_SOBJECT

Full Access
Question # 48

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

A.

Global variables

B.

Apex local variables

C.

String substitution

D.

Apex class variables

Full Access
Question # 49

A developer needs to make a call to a long running web service which is critical to finalizing their checkout process. Which three items should the developer consider in their implementation?

A.

A new CORS entry may need to be created in Setup

A new Named Credential may need to be created in Setup

B.

An Apex method returning a Continuation will need to be created

C.

Requests to the service should be brokered to prevent limit exceptions

D.

A new Remote Site may need to be created in Setup

Full Access
Question # 50

Which three steps are necessary to have subscriberpage added to Salesforce B2B Commerce after creating a custom Visualforce page? (3 answers)

A.

Create a new CC Subscriber Page record that points to your custom Visualforce page.

B.

Create a new Visualforce page, and manually import the Salesforce B2BCommerce JavaScript libraries. Run in Anonymous Apex ccrz.cc_util_Reflection.upsertPageUIKey([arg1],[arg2],[arg3]);

C.

Refresh the Page Keys Index in CC Admin.

D.

Enable the Subscriber Page in CC Admin.

Full Access
Question # 51

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?

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

Full Access
Question # 52

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

A.

Use publish-subscribe pattern.

B.

Configure targets property.

C.

Use dispatch events.

D.

Use @api decorators.

Full Access
Question # 53

Universal Containers (UC) is ready to build a tax provider class using the interfaces available in the Buyer Experience SDK. When creating a tax provider, what are three things that a developer should consider first?

A.

Steps to complete in the Tax Service

B.

How to handle results

C.

WhethertouseJSONorXML

D.

What to implement

E.

What events to fire in the Lightning web component

Full Access
Question # 54

A developer has just deployed a new Lightning web component called myNewLwcComp to an

authorized org. The developer tries to find the component in the Lighting Page Builder, but it

does not come up in searches. Which two steps should the developer take next?

A.

Ensure that the metadata isExposed property is set properly in source code

B.

Redeploy the component

C.

Close the browser and reopen the page

D.

Ensure it has a target of lightning__FlowScreen

Full Access
Question # 55

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

components for formatting price values?

A.

formatPrice

B.

priceAbs

C.

showprice

D.

price

Full Access
Question # 56

A developer has the task to create custom Lightning web components (LWCs). Which two steps must a developer take when creating custom LWCs?

A.

Create an Apex class.

B.

Authorize an org for an SFDX project.

C.

CloneaLWC.

D.

Deploy a custom component.

Full Access
Question # 57

Which event is triggered within Salesforce B2B Commerce whenever a cart's statechanges?

A.

cartChange

B.

cart

C.

pageMessage

D.

cartState

Full Access
Question # 58

For which two reasons is it preferable to extend the Salesforce B2B Commerce remote invocation object instead of using the standard Salesforce remote action invocation manager (2 answers)

A.

A standard remote action will not have access to Salesforce B2B Commerce objects.

B.

The APEX method called by the remote action will be passed as a Salesforce B2B Commerce context object.

C.

Salesforce B2B Commerce includes do not support standard SalesForce remote actions.

D.

The Salesforce B2B Commerce logger cannot be utilized in standard remote actions

Full Access
Question # 59

What is the recommended method for increasing the number of required autocomplete characters that are typed before autocomplete works?

A.

Override and extend the autoComplete method in cc_hk_Catalog.

B.

Override theautoComplete.search_input.minLength value in the CCRZ.uiProperties file

C.

Override the autocomplete template and create and register a new handlebars helper.

D.

Update the...minLength property in CC Admin, then build and activate a new cache.

Full Access
Question # 60

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

A.

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

B.

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.

Full Access
Question # 61

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?

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

Full Access
Question # 62

What target does a developer need to set in the js-meta.xml file when creating a custom LWC component for use in the Checkout Flow?

A.

lightning_FlowScreen

B.

lightning__CheckoutFlow

C.

Iwe__FlowComponent

D.

lwe__flow

Full Access
Question # 63

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

A.

_Cart__c

B.

c.E_Cart__c

C.

ccrz__E_Cart__c

D.

cloudcraze__E_Cart__c

Full Access
Question # 64

Which two steps are necessary to enable Salesforce B2B Commerce

logging in the managed package?

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

Full Access
Question # 65

Which three statements are true regarding event handling in the Salesforce B2B Commerce managed package? (3 answers)

A.

Salesforce B2B Commerce relies on a series of Javascript click listener events.

B.

Writing directly to your own custom Backbone JS Views and Models automatically integrates that data into the Salesforce B2B Commerce Backbone Views and Models.

C.

Salesforce B2B Commerce relies on a central event channel for communication across various Salesforce B2B Commerce Backbone Views and Models called CCRZ.pubSub.

D.

CCRZ.pubSub defines the following three functions which can be used for event handling: trigger, on, and once.

E.

CCRZ.pubSub extends the Backbone.Events JavaScript object.

Full Access
Question # 66

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?

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.

Full Access