Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: merry71

Free Salesforce Certified B2C Commerce Developer Practice Questions

Exams4sure Dumps

Exam style questions across every Comm-Dev-101 domain

Last Update 2 days ago
Total Questions : 154

Start with our free Comm-Dev-101 practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real Developers exam. Each Comm-Dev-101 exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your Salesforce weak domains, see where you're losing marks, and build a focused study plan in minutes.

Comm-Dev-101 PDF

Comm-Dev-101 PDF (Printable)
$46.5
$154.99

Comm-Dev-101 Testing Engine

Comm-Dev-101 PDF (Printable)
$51
$169.99

Comm-Dev-101 PDF + Testing Engine

Comm-Dev-101 PDF (Printable)
$63.9
$212.99
Question # 1

A developer needs to check for product inventory in all inventory lists using the Open Commerce API.

An example request URL is:

http://refarch.demandware.net/dw/data/v18_3/inventory_lists/ecom-inventory/product_inventory_records/00883408601

Which property should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?

Options:

A.  

client_id

B.  

ecom-inventory

C.  

inventory_lists

Discussion 0
Question # 2

A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.

varCustomObject=

dw.object.CustomObjectMgr.createCustomObject(

' NewsletterSubscription ' ,

newsletterForm.email.value

);

However, the NewsletterSubscription custom object is not persisted. What is a possible reason?

Options:

A.  

The code shown needs to be wrapped in a transaction.

B.  

The code shown needs to be wrapped in a try/catch block.

C.  

The code shown is the wrong syntax. The correct syntax is:varCustomObject=dw.object.CustomObjectMgr.createCustomObject( ' NewsletterSubscription ' , ' email ' ,newsletterForm.email.value);

Discussion 0
Question # 3

A client has a requirement to render different content on the homepage based on if the customer is logged in or a guest user.

What should a developer implement to achieve this requirement?

Options:

A.  

Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered.

B.  

Set the Content Asset configuration for a customer that is a registered, versus unregistered, user.

C.  

Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user.

Discussion 0
Question # 4

Which line of code should a developer add for custom category debug logging?

Options:

A.  

Logger.customLogger( ' contact ' ).debug( " Contact service responded with OK. " );

B.  

Logger.debug( ' Contact service responded with OK. ' );

C.  

Logger.getLogger( " contact " ).debug( " Contact service responded with OK. " );

Discussion 0
Question # 5

A developer implements the necessary code for a new Page Designer component.

What is the purpose of the JSON metadata definition file the developer creates?

Options:

A.  

Defines regions within the component type.

B.  

Defines the responsive layout of the rendered template.

C.  

Defines the business and rendering logic of the component required by the merchant.

Discussion 0
Question # 6

A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.

Which B2C feature should the developer use to achieve the request?

Options:

A.  

Use the service credential URL field.

B.  

Use a Globalpreference dedicated for the service URL.

C.  

Use the service status area, set the override URL checkbox, and then populate the URL field with the required one.

Discussion 0
Question # 7

Given the SFRA Controller below:

01varserver=require( ' server ' );

02varcache=require( ' */cartridge/scripts/middleware/cache ' );

03

04server.get( ' Show ' ,cache.applyDefaultCache,function(req,res,next) {

05viewData={name: ' my string ' };

06res.render( ' /pages/mypage ' ,viewData);

07next();

08});

09

10module.exports=server.exports();

Why would a JavaScript debugger, that is stopped at line 06, fail to show the viewData variable in the inspection tool?

Options:

A.  

viewData is assigned but not declared.

B.  

cache.applyDefaultCache is not a valid middleware.

C.  

viewData is a B2C Script reserved name.

Discussion 0
Question # 8

A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by the dw.svc.ServiceCallback class.

Which callback method is required only when invoking a SOAP service?

Options:

A.  

createRequest

B.  

mockCall

C.  

initServiceClient

Discussion 0
Question # 9

A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items:

• The current customer

• Whether or not the customer is authenticated

• The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

Options:

A.  

Use a client-side cookie to store the information for the session duration.

B.  

Use the Session class, and its additional class references and attributes, in the B2C Commerce API.

C.  

Use an SFRA controller. Because it runs server-side, the state is automatically maintained.

Discussion 0
Question # 10

When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.

Where should the developer add this attribute to the Custom Object so it is visible for the merchant to see in Business Manager?

Options:

A.  

Add the creation date to an attribute group for the Custom Object.

B.  

Add the creation date to the attributes of the Custom Object.

C.  

Mark the existing creation date attribute as visible.

Discussion 0

Free Exams Sample Questions