ExamGecko
Home Home / Salesforce / Certified B2C Commerce Developer

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

Question list
Search
Search

List of questions

Search

Related questions











A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects. Which three things should the Digital Developer verify to ensure the cartridges are uploaded? (Choose three.)

A.
The Auto-Upload setting is enabled for the server connection.
A.
The Auto-Upload setting is enabled for the server connection.
Answers
B.
The Active Server setting is enabled for the server connection.
B.
The Active Server setting is enabled for the server connection.
Answers
C.
The credentials for the server connection are correctly entered.
C.
The credentials for the server connection are correctly entered.
Answers
D.
The cartridge is for the current version of B2C Commerce.
D.
The cartridge is for the current version of B2C Commerce.
Answers
E.
The server is configured to accept incoming connections.
E.
The server is configured to accept incoming connections.
Answers
Suggested answer: A, D, E

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC4/index.jsp?topic=%2Fcom.demandware.dochelp%2FSiteDevelopment%2FTroubleshootingStudio.html

Universal Containers specifies a new category hierarchy for navigating the digital commerce storefront. A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.

How can other Developers with sandboxes on the same realm create the same catalog in their own sandboxes?

A.
Use Business Manager to upload and import a copy of the export file obtained from the original Developer.
A.
Use Business Manager to upload and import a copy of the export file obtained from the original Developer.
Answers
B.
Use the remote upload capability of the Site Import & Export module of Business Manager.
B.
Use the remote upload capability of the Site Import & Export module of Business Manager.
Answers
C.
Use the import capability of the Site Import & Export module of Business Manager.
C.
Use the import capability of the Site Import & Export module of Business Manager.
Answers
D.
Use the Business Manager Data Replication module to replicate the catalog from the original Developer's sandbox.
D.
Use the Business Manager Data Replication module to replicate the catalog from the original Developer's sandbox.
Answers
Suggested answer: C

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FImportExport%2FCatalogObjectImportExport.html

The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer's address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the form field.

How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?

A.
addressForm.invalidateFormElement("addressid");
A.
addressForm.invalidateFormElement("addressid");
Answers
B.
addressForm.addresssid.invalidateFormElement = true;
B.
addressForm.addresssid.invalidateFormElement = true;
Answers
C.
addressForm.invalidateFormElement(addressForm.addressid);
C.
addressForm.invalidateFormElement(addressForm.addressid);
Answers
D.
addressForm.addresssid.invalidateFormElement();
D.
addressForm.addresssid.invalidateFormElement();
Answers
Suggested answer: C

Given the file structure below, which ISML method call renders the customLandingPage template?

A.
ISML.renderTamplate('cartridge/templates/default/content/custom/customLandingPage');
A.
ISML.renderTamplate('cartridge/templates/default/content/custom/customLandingPage');
Answers
B.
ISML('content/custom/customLandingPage');
B.
ISML('content/custom/customLandingPage');
Answers
C.
ISML.render('content/custom/customLandingPage');
C.
ISML.render('content/custom/customLandingPage');
Answers
D.
ISML.renderTemplate('content/custom/customLandingPage');
D.
ISML.renderTemplate('content/custom/customLandingPage');
Answers
Suggested answer: D

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC4/index.jsp?topic=%2Fcom.demandware.dochelp%2FDWAPI%2Fscriptapi%2Fhtml%2Fapi%2Fclass_dw_template_ISML.html

A business user wants to add a link to a content page from within the body of another content asset. The target content asset ID is: terms-and-conditions.

Which link function generates the correct link?

A.
$include('Page-Include', 'cid', 'terms-and-conditions')$
A.
$include('Page-Include', 'cid', 'terms-and-conditions')$
Answers
B.
$http('Content-Page', 'cid', 'terms-and-conditions')$
B.
$http('Content-Page', 'cid', 'terms-and-conditions')$
Answers
C.
$httpUrl('Content-Show', 'cid', 'terms-and-conditions')$
C.
$httpUrl('Content-Show', 'cid', 'terms-and-conditions')$
Answers
D.
$url('Page-Show', 'cid', 'terms-and-conditions')$
D.
$url('Page-Show', 'cid', 'terms-and-conditions')$
Answers
Suggested answer: C

Explanation:

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

Why should a Digital Developer use ProductSearchModel.getProducts() instead of Category.getOnlineProducts() to access products?

A.
It is more readable code.
A.
It is more readable code.
Answers
B.
It has fewer lines of code.
B.
It has fewer lines of code.
Answers
C.
It uses the search index.
C.
It uses the search index.
Answers
D.
It reduces accesses to the application server.
D.
It reduces accesses to the application server.
Answers
Suggested answer: D

A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.

In which folder should the developer place resource bundles?

A.
templates/de
A.
templates/de
Answers
B.
templates/default
B.
templates/default
Answers
C.
templates/resources
C.
templates/resources
Answers
D.
templates/default/resources
D.
templates/default/resources
Answers
Suggested answer: C

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2FLocalization%2FLocalizingTemplateResourceBundles.html

Assume the code below is executing:

Business Manager has the configuration:

Active Log category is "root" with log level of "info."

Given this information, what is the beginning of the filename in which the log will be written?

A.
xyz
A.
xyz
Answers
B.
custominfo-blade
B.
custominfo-blade
Answers
C.
custom-export
C.
custom-export
Answers
D.
custom-xyz
D.
custom-xyz
Answers
Suggested answer: D

A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on the pipeline dictionary with the name myProduct.

Which code sample will achieve this?

A.
ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
A.
ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
Answers
B.
ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });
B.
ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });
Answers
C.
ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });
C.
ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });
Answers
D.
ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });
D.
ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });
Answers
Suggested answer: A

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FSGJC%2FPipelinetoControllerConversion.html

A Digital Developer has identified that the code segment below is causing performance problems.

What should the Developer do to improve the code?

A.
Use a system attribute instead of the isOnSaleFlag custom attribute.
A.
Use a system attribute instead of the isOnSaleFlag custom attribute.
Answers
B.
Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
B.
Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
Answers
C.
Breaks the process into separate loops.
C.
Breaks the process into separate loops.
Answers
D.
Avoid using an Iterator and use a Collection instead.
D.
Avoid using an Iterator and use a Collection instead.
Answers
Suggested answer: C
Total 209 questions
Go to page: of 21