ExamGecko
Ask Question

Salesforce Certified B2C Commerce Developer Practice Test - Questions Answers, Page 13

List of questions

Question 121

Report
Export
Collapse

In order to build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?

npm run compile:js, npm run compile:html, npm run clean
npm run compile:js, npm run compile:html, npm run clean
npm run compile:js, npm run compile:scss, npm run compile:fonts
npm run compile:js, npm run compile:scss, npm run compile:fonts
npm run compile:js, npm run compile:scss, npm run compile:html
npm run compile:js, npm run compile:scss, npm run compile:html
npm run compile:scss, npm run compile:html, npm run clean
npm run compile:scss, npm run compile:html, npm run clean
Suggested answer: B

Explanation:

Reference: https://trailhead.salesforce.com/content/learn/modules/b2c-page-designer-developers/b2c-page-designer-set-up-dev-environment

asked 23/09/2024
Muhammad Hafizh
29 questions

Question 122

Report
Export
Collapse

A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.

Which action should the developer take to resolve the problem?

Change the data type of the attributes
Change the data type of the attributes
Set the attributes to site-specific replicable
Set the attributes to site-specific replicable
Create an Attribute Group with the desired attributes in it
Create an Attribute Group with the desired attributes in it
Sort the attributes in the custom object type
Sort the attributes in the custom object type
Suggested answer: A
asked 23/09/2024
Aline Oliveira
40 questions

Question 123

Report
Export
Collapse

There are three logging categories: category1, category1.eu, and category1.us.

In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.

The code segment below executes

var logger = Logger.getLogger("loggerFile", "category1.eu" );

logger.warn("This is a log message");

What is the result?

Logs will be written to the log file with a prefix loggerFile.
Logs will be written to the log file with a prefix loggerFile.
Logs will not be written.
Logs will not be written.
Logs will be written to the log file with a prefix customwarn.
Logs will be written to the log file with a prefix customwarn.
Logs will be written to the log file with a prefix custom-loggerFile.
Logs will be written to the log file with a prefix custom-loggerFile.
Suggested answer: A
asked 23/09/2024
Sathish M
48 questions

Question 124

Report
Export
Collapse

What are two appropriate uses of the <isif> ISML tag that follow B2C Commerce and SFRA best practices? (Choose two.)

Display a section of the page to logged users only.
Display a section of the page to logged users only.
Show a different <div> tag depending on a pdict Boolean variable.
Show a different <div> tag depending on a pdict Boolean variable.
Redirect users to the registration page if they are not logged in.
Redirect users to the registration page if they are not logged in.
Implement involved business logic through conditional statements.
Implement involved business logic through conditional statements.
Suggested answer: B, D

Explanation:

Reference: https://support.intershop.com/kb/index.php/Display/247F41

asked 23/09/2024
Christopher Horting
41 questions

Question 125

Report
Export
Collapse

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?

Add the creation date to the attributes of the Custom Object.
Add the creation date to the attributes of the Custom Object.
Mark the existing creation date attribute as visible.
Mark the existing creation date attribute as visible.
Add the creation date to the attribute group for the Custom Object.
Add the creation date to the attribute group for the Custom Object.
Assign the current date/time to a new custom attribute, creationDate, via code.
Assign the current date/time to a new custom attribute, creationDate, via code.
Suggested answer: A

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC3/index.jsp?topic=%2Fcom.demandware.dochelp%2FScriptProgramming%2FCreatingCustomBusinessObjectsInstance.html

asked 23/09/2024
Trung Phan
43 questions

Question 126

Report
Export
Collapse

Given the requirements:

To show the washing instructions for a clothing product on a dedicated section the detail page

Washing instructions come from the product information manager (PIM) To have this attribute available to localize in the Storefront

Which action meets these requirements?

Create a custom attribute on the product system object and set it as localizable.
Create a custom attribute on the product system object and set it as localizable.
Set the product system object type as localizable.
Set the product system object type as localizable.
Add a resource file for every locale for which the attribute needs to be translated.
Add a resource file for every locale for which the attribute needs to be translated.
Add a custom attribute for each locale.
Add a custom attribute for each locale.
Suggested answer: B
asked 23/09/2024
Anthony Zaborski
48 questions

Question 127

Report
Export
Collapse

Refer to this example snippet of an ISML template:

<h2>Welcome back, ${pdict.username}.</h2>

The "pdict.username" variable does not print correctly when used in a similar template.

Assuming that the variable is correct in the Controller's "viewData", how should a developer temporarily modify their code to use a debugger and troubleshoot the issue in the template?

Add an <isbreak> tag to have the debugger stop at the desired line.
Add an <isbreak> tag to have the debugger stop at the desired line.
Add an <isscript> tag and JavaScript with a breakpoint set.
Add an <isscript> tag and JavaScript with a breakpoint set.
Add a local <isinclude> tag to inspect the topLevel function in the call stack.
Add a local <isinclude> tag to inspect the topLevel function in the call stack.
Add an <isdebug> tag to allow the inspection of global variables.
Add an <isdebug> tag to allow the inspection of global variables.
Suggested answer: C
asked 23/09/2024
Yasser Mohamed Mohamed
45 questions

Question 128

Report
Export
Collapse

A developer is given the requirement to add a step to the existing business logic of the registration process.

How should the developer modify the route that handles the customer registration?

Copy the code from the original route to a new controller route, and change it.
Copy the code from the original route to a new controller route, and change it.
Override the route with new functionality.
Override the route with new functionality.
Extend the route with new functionality.
Extend the route with new functionality.
Change the controller route with new functionality.
Change the controller route with new functionality.
Suggested answer: C
asked 23/09/2024
Sumit Dhar
47 questions

Question 129

Report
Export
Collapse

A developer receives a product image that needs to be uploaded to the catalog.

What should the developer use to upload this image?

Products & Catalogs module of Business Manager
Products & Catalogs module of Business Manager
Sites/Impex WebDAV Directory
Sites/Impex WebDAV Directory
Content Image Import module of Business Manager
Content Image Import module of Business Manager
Site Development Import & Export module of Business Manager
Site Development Import & Export module of Business Manager
Suggested answer: C

Explanation:

Reference: https://trailhead.salesforce.com/en/content/learn/modules/b2c-import-export/b2c-configure-import-export

asked 23/09/2024
Franco Santos
38 questions

Question 130

Report
Export
Collapse

A developer is asked to create a controller endpoint that will be used in a client-side AJAX request. Its purpose is to display updated 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?

res.json()
res.json()
res.render()
res.render()
res.print()
res.print()
res.log()
res.log()
Suggested answer: B

Explanation:

Reference: https://www.beeit.rs/blog/getting-started-with-controllers-models-and-decorators-sfcc

asked 23/09/2024
Ken Mak
43 questions
Total 209 questions
Go to page: of 21
Search

Related questions