Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Salesforce Developers B2C-Commerce-Developer Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam B2C-Commerce-Developer Premium Access

View all detail and faqs for the B2C-Commerce-Developer exam


709 Students Passed

85% Average Score

93% Same Questions
Viewing page 2 out of 6 pages
Viewing questions 11-20 out of questions
Questions # 11:

Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)

Options:

A.

Use one style sheet for each ISML decorator template.

B.

Place CSS outside of templates.

C.

Compress CSS.

D.

Use inline Javascript.

E.

Combine several images into a single image.

Questions # 12:

A developer is asked to create a controller endpoint that will be used in a client-side AJAX request. Its purposes is to displayupdated information to the user when the request is completed, without otherwise modifying the appearance of the current page.

According to SFRA practices, which method best supports this objective?

Options:

A.

res.json()

B.

res.render()

C.

res.print()

Questions # 13:

A developer has a requirement to display a banner in two different category pages.

Which snippet of code should the developeradd to a template to allow the merchant to configure each independently?

A)

Question # 13

B)

Question # 13

C)

Question # 13

Options:

A.

Option A

B.

Option B

C.

Option C

Questions # 14:

Given a job step configured in the steptype.json, a developer needs to add a custom status code

“No_FILES_FOUND”.

Which code snippet will complete the requirement?

Options:

A.

var status = {success: ‘OK’. Message: ‘NO_FILES_FOUND’};return status;

B.

var status = require(‘dw/system/status’);return new Status(Status.OK, ‘NO_FILES_FOUND’);

C.

this.status = ‘NO_FILES_FOUND’return this;

D.

return ‘NO_FILES_FOUND

Questions # 15:

A Digital Developer needs to add logging to the following code:

Question # 15

Which statement logs the HTTP status code to a debug-level custom log file?

Options:

A.

logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: ", http.statusCode);

B.

logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

C.

Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

D.

Logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

Questions # 16:

A developer wants to add a link to the My Account Page.

Whatis the correct code to accomplish this?

Options:

A.

${Resource.msg(‘myaccount’,’account’,request.locale())}

B.

${Resource.message(‘myaccount’)}

C.

${Resource.msg(‘myaccount’,’account’,null)}

D.

${ResourceMgr.getPropierties(‘myaccount’,’account’,null)}

Questions # 17:

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

What should a developer implement to achieve this requirement?

Options:

A.

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

B.

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

C.

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

D.

Add specific custom messages in Page Designer for a customer that is a registered, versus unregistered, user.

Questions # 18:

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

Question # 18

However, the NewsletterSubscription custom object is not persisted.

What is a possible reason?

Options:

A.

The code shownneed 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:

Questions # 19:

A developer is asked to create a new service instance that will call a remote web service.

Which method should the developer use to create the service instance?

A)

Question # 19

B)

Question # 19

C)

Question # 19

Options:

A.

Option A

B.

Option B

C.

Option C

Questions # 20:

A client wants to differentiate their monobrand stores with a special icon when shown in the store

locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.

How should the developer follow SFRA best practices to expose this data for rendering?

Options:

A.

Extend the existing Stores_Find controller with a new middleware function that performs the query

B.

Pass theStore system object to the template, so that custom propierties are available

C.

Ad dan to the template, and call StoreMgr.searchStoresByCoordinates();

D.

Use the module.superModule functionality and the call method to add a new property to theStore Model.

Viewing page 2 out of 6 pages
Viewing questions 11-20 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.