Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free Salesforce B2C-Commerce-Developer Practice Exam with Questions & Answers | Set: 3

Questions 21

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.

Salesforce B2C-Commerce-Developer Premium Access
Questions 22

Universal Containers wants to add a model field to eachproduct. Products will have locale-specific model values.

How should the Digital Developer implement the requirement?

Options:
A.

Utilize resource bundles for translatable values.

B.

Set the model field as a localizable attribute.

C.

Store translated model valuesin different fields; one field for each locale.

D.

Add model to a new custom object with localizable attributes.

Questions 23

A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.

Which snippet of code should be used?

Options:
Questions 24

Which technical reports datapoint measures the performance of a controller’s script execution if network factors and Web Adaptor processing is ignored?

Options:
A.

Processing time

B.

Cache hit ratio

C.

Callcount

D.

Response time

Questions 25

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 26

An instance has custom logging enabled. The log reaches the file size limit.

What happens in this situation?

Options:
A.

The log file is deleted and a new log file is created.

B.

Logging is suspended for the day

C.

The currentlog file is archived and a new log file is created.

D.

The log file Rolls over and the oldest log messages are overwritten

Questions 27

A Digital Developer has detected storefront pages being rendered with an error message. After inspecting the log files, the Developer discovered that an enforced quota is being exceeded.

What action should the Developer take to stop the quota violation?

Options:
A.

Rewrite the code that is causing the overage.

B.

Change the Business Managerconfiguration for the quota settings.

C.

Take no action, the overage will be resolved when concurrent visitors are reduced.

D.

Ask support to remove the quota limit.

Questions 28

A developer wants to use an external application to manage their stores information (such as opening

hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are

saved.

What is the appropriatetechnique the developer should perform to allow the merchant to create a new

store in this scenario?

Options:
A.

A POST request to the Stores Data OCAPI.

B.

A PUT request to the Stores Data OCAPI.

C.

A PATCH request to the Stores Data OCAPI.

D.

An UPDATE request tothe Stores Data OCAPI.Siempre que sea un objeto standard será put en vez de post

Questions 29

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)

B2C-Commerce-Developer Question 29

B)

B2C-Commerce-Developer Question 29

C)

B2C-Commerce-Developer Question 29

Options:
A.

Option A

B.

Option B

C.

Option C

Questions 30

Given the requirement to add caching toan existing page while adhering to SFRA best practices, which code snippet should be used?

A)

B2C-Commerce-Developer Question 30

B)

B2C-Commerce-Developer Question 30

C)

B2C-Commerce-Developer Question 30

Options:
A.

Option A

B.

Option B

C.

Option C