ExamGecko
Home Home / Salesforce / Certified B2C Commerce Developer

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

Question list
Search
Search

List of questions

Search

Related questions











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

A.
res.json()
A.
res.json()
Answers
B.
res.render()
B.
res.render()
Answers
C.
res.print()
C.
res.print()
Answers
Suggested answer: A

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.
A.
Answers
B.
B.
Answers
C.
C.
Answers
Suggested answer: A

A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?

A.
The cartridge containing the script is not in the site's cartridge path
A.
The cartridge containing the script is not in the site's cartridge path
Answers
B.
The script debugging session is not active
B.
The script debugging session is not active
Answers
C.
The script is form a third party cartridge and hence does not allow_settings breakpoints.
C.
The script is form a third party cartridge and hence does not allow_settings breakpoints.
Answers
Suggested answer: A

Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?

A.
Images and other static assets
A.
Images and other static assets
Answers
B.
Content slots
B.
Content slots
Answers
C.
Products
C.
Products
Answers
Suggested answer: A

The developer needs to add custom category debug logging into the "contact'' script, to ensure that a third-party service call responds as expected.

Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
Suggested answer: A

A developer wants to embed a link to a content page from within the body of another content asset. the target content asset ID is: about-us Which option represents the correct format to use?

A.
$url(''page-Show,''cid'', about-us')$
A.
$url(''page-Show,''cid'', about-us')$
Answers
B.
$url('Content_Show', 'about-us')$
B.
$url('Content_Show', 'about-us')$
Answers
C.
$url('Content-Page', cid 'about-us;)$
C.
$url('Content-Page', cid 'about-us;)$
Answers
Suggested answer: A

A developer needs to render a Page Designer page in JSON format. What is the correct syntax?

A.
PageMgr.serializePage(pageID), {parameter1:value1}};
A.
PageMgr.serializePage(pageID), {parameter1:value1}};
Answers
B.
JSON.stringgify(PageMgrrenderpage(pageID), {paramter1:value1}}:
B.
JSON.stringgify(PageMgrrenderpage(pageID), {paramter1:value1}}:
Answers
C.
PageMgr,renderPage{pageID, {parameter1: value1}}
C.
PageMgr,renderPage{pageID, {parameter1: value1}}
Answers
Suggested answer: A

A client that sells sport shows wants to allow its customers to filer products based on the intended activity (such as tennis, jogging, basketball, etc.) but this particular information is not present in the current catalog.

Which two actions does a developer need to perform in a B2C Commerce instance to allow this two happen?

A.
Create a new Product custom attribute AND add a new Search Refinement Definition for the desired categories.
A.
Create a new Product custom attribute AND add a new Search Refinement Definition for the desired categories.
Answers
B.
Create a new ProductRefinement custom attribute AND add a new Search Refinement Definition for the desired categories.
B.
Create a new ProductRefinement custom attribute AND add a new Search Refinement Definition for the desired categories.
Answers
C.
Create a new Product custom attribute AND add a new viewtype in the storefront catalog settings
C.
Create a new Product custom attribute AND add a new viewtype in the storefront catalog settings
Answers
Suggested answer: A

A developer observed a specific issue in production, which they cannot reproduce in other environments. The developer wants to do a hot fix to one of the ISML pages, which uses <iscach> tag, to see if that resolves while issue. Which consideration must the developer keep in mind while deploying the hot fix in production?

A.
It will be required to invalidate the cache for the hot fix.
A.
It will be required to invalidate the cache for the hot fix.
Answers
B.
If the page has multiple tags, the highest cache duration will be used in production to determine the resulting page's caching behavior.
B.
If the page has multiple tags, the highest cache duration will be used in production to determine the resulting page's caching behavior.
Answers
C.
The TTL cache setting only affects static content and not the page cache, which could potentially cause he production issue.
C.
The TTL cache setting only affects static content and not the page cache, which could potentially cause he production issue.
Answers
Suggested answer: C

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

However, the NewsletterSubscription custom object is not persisted.

What is a possible reason?

A.
The code shown need to be wrapped in a transaction.
A.
The code shown need to be wrapped in a transaction.
Answers
B.
The code shown needs to be wrapped in a try/catch block.
B.
The code shown needs to be wrapped in a try/catch block.
Answers
C.
The code shown is the wrong syntax. The correct syntax is:
C.
The code shown is the wrong syntax. The correct syntax is:
Answers
Suggested answer: A
Total 209 questions
Go to page: of 21