Salesforce B2C-Commerce-Developer - Salesforce Certified B2C Commerce Developer (SP25)
Total 203 questions
Business Manager has the configuration:
Active Log category is "root"
Log level of WARN
The code below is executing:
var log = Logger.getLogger("products");
Using this information, which two logs will be written?
Choose 2 answers
Business Manager has the configuration:
Active log category is “rootâ€
Log level of INFO
The code below execites:
Var log = Logger.getLogger(“productsâ€,â€exportâ€);
Log.info (“This is important informationâ€);
Using this information, what is the beginning of the filename in which the log will be written?
A developer uses hooks for an extension point. Which n true for running multiple hooks for an extension point?
Given the code snippet aboce, what should be added after this code so it can be used for page
component display?
A Newsletter controller contains the following route:
Server.post(‘Subscribe’, function (req,res,next){
var newsletterForm = server.forms.getForm(‘newsletter’);var CustomObjectMgr = require(‘dw/object/CustomObjectMgr’);
if(newsletterForm.valid){
try{
var CustomObject =
CustomObjectMgr.createCustomObejct(‘NewsletterSubscription’, newsletterform.email.value);
CustomObject.custom.firstName = newsletterForm.fname.value;
CustomObject.custom.lastName = newsletterForm.lname.value;-
} catch(e){
//Catch error here
}
}
next();
});
Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template
when the subscription form is correctly submitted?
A merchant has asked their development team to add a new site.
Which two tasks are essential for correct site configuration prior to launch?
Choose 2 answers
A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store
locator list, the client wants the single-brand stores to have a particular background color to highlight them.
Which Business Manager action should be completed to allow the developer to apply different styling to
the single-brand stores?
Given the following snippet:
Server.append( ‘Show’ , function (req, res, next) )
According to SFRA, which two optionsshows a correct way to complete the code above in order to provide
data to the response using a controller?
Choose 2 answers
A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.
Which two methods can the Developer use to verify the cache settings for the product tiles? (Choose two.)
A Digital Developer extends a system object, Product, andadds a Boolean attribute, “sellable,†to it.
Assuming “prod†is the variable name handling the product, what code can the Developer use to access it?