ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 80 - Certified B2C Commerce Developer discussion

Report
Export

The following code performs poorly in the storefront.

Considering best practices, what is the main problem with this code?

A.
The code performs post-query processing in an inefficient manner. The nested for-loops should be changed to more efficient code.
Answers
A.
The code performs post-query processing in an inefficient manner. The nested for-loops should be changed to more efficient code.
B.
The code uses ProductSearchModel, which performs a database search.
Answers
B.
The code uses ProductSearchModel, which performs a database search.
C.
The code invokes dw.catalog.ProductSearchModel directly. It is more efficient to use the following code and then invoke the method. var ProductSearchModel = require (dw.catalog.ProductSearchModel);
Answers
C.
The code invokes dw.catalog.ProductSearchModel directly. It is more efficient to use the following code and then invoke the method. var ProductSearchModel = require (dw.catalog.ProductSearchModel);
D.
The code performs post-query processing, which is inefficient and should be avoided
Answers
D.
The code performs post-query processing, which is inefficient and should be avoided
Suggested answer: C
asked 23/09/2024
Ismaiel Al-Mufleh
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first