Salesforce-Certified-B2C-Commerce-Developer MCQs Salesforce-Certified-B2C-Commerce-Developer TestPrep Salesforce-Certified-B2C-Commerce-Developer Study Guide Salesforce-Certified-B2C-Commerce-Developer Practice Test Salesforce-Certified-B2C-Commerce-Developer Exam Questions
Salesforce-Certified-B2C-Commerce-Developer
Certified B2C Commerce Developer
https://killexams.com/pass4sure/exam-detail/Salesforce-Certified-B2C-Commerce-Developer
Question: 57
A client has a requirement to render different content on the homepage based on if the customer is logged in or guest user.
What should a developer implement to achieve this requirement?
Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user.
Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered.
Set the Content Asset configuration for a customer that is a registered, versus unregistered, user.
Add specific custom messages in Page Designer for a customer that is a registered, versus unregistered, user.
Question: 58
A Digital Developer needs to add logging to the following code:
Which statement logs the HTTP status code to a debug-level custom log file?
logger.getLogger(???profile???).debug("Error retrieving profile email, Status Code: ", http.statusCode);
logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
Logger.getLogger(???profile???).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
Question: 59
A developer has a sandbox with code to log a message during execution, and the following code:
After the code executes, the developer does not see any log file with the message in the WebDAV folder. What could the developer do to correct this issue?
Set the root log level to debug AND check the box for info under Log Files.
Set the logging global preference to true AND set the root log level to debug.
Set the logging global preference to true AND check the box for Info under Log Files
Question: 60
A developer has the following files in template/resources: account.proierties
weight.unit=kilos account_en.propierties weight.unit=stones account_en_US.propierties weight.unit= pounds
Using the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale=
Your parcel weighs 10 ${Resource.msg(???weight.unit???,???account???)}
Your parcel weighs 10 stones.
Your parcel weighs 10 pounds.
Your parcel weighs 10 undefined.
Your parcel weighs 10 kilos
Question: 61
Assume the code below is executing:
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?
xyz
custominfo-blade
custom-export
custom-xyz
Question: 62
The developer has been given the following business requirement:
The shipping method, Free Standard Ground Shipping??? has an exclusion for products *lth category equals or is child of electronics-televisions.???
The marketing department has scheduled a sale offering a ???Free Standard Ground Shipping??? method for brand XyzTv televisions for the next 3 months.
What method accomplishes this while following best practices?
Extend the code in cartridge/models/shipping/shippingMethod.js using module, super Module and add an exception for the specified brand.
Extend the CheckoutShippingservices controller using module.superModule and add an exception for the specified brand
Create an allow list for the existing shipping method by adding a product exclusion for ???brand equals XyzTV" to the exclusion list for "Free Standard Ground Shipping."
Question: 63
A developer needs to check for product inventory in all inventory lists using the Open Commerce API. An example request URL is:
Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?
Client_id
Ecom-inventory
Inventory_list
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form:
<form ??? action = ???submit???>
<input name =???${dw.web.CSRFProtection.getTokenName()}??? value = ???${dw.web.CSRFProtection.generateToken()???>
???
<the rest of the Form fields>
???
</form>
To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable:
validateRequest validateAjaxRequest
Where in the code does the developer need to add this CSRF validation check?
In the controller function that displays the form
In the middleware chain of the controller post route
In the controller function that handles the submitted form
In the model function that persists the form data
Question: 65
A Digital Developer must give users the ability to choose an occasion (holiday, birthday, anniversary, etc.) for which gifts are currently being selected. The data needs to be persistent throughout the current shopping experience.
Which data store variable is appropriate, assuming there is no need to store the selection in any system or custom objects?
Request scope variable
Page scope variable
Session scope variable
Content slot variable
Question: 66
A developer wants to configure multiple products that should only be sold as a group. It should not be possible for
buyers to buy these products individually.
How should the developer configure the products?
Bundle
Set
Variation Group
Question: 67
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
log.warn("This is a warn message");
log.error("This is an error message");
log.info("This is an info message");
log.debugfThis is a debug message");
Question: 68
A merchant has a content slot on a page that currently displays products based on the top Sellers for the current week. They wish to change this functionality and, instead, have the slot render a specific content asset so that the content
experience is more personalized to the visitors.
Which two actions are necessary to make this change? Choose 2 answers
Delete the existing content slot and create a new one.
Change the rendering template in the slot configuration
Change the default setting in the slot configuration
Change the content type for the slot configuration
Question: 69
Which two methods are efficient and scalable? (Choose two.)
ProductMgr.queryAllSiteProducts()
ProductSearchHit.getRepresentedProducts()
ProductSearchModel.getProductSearchHits()
Category.getProducts()
Question: 70
A controller route in the SFRA base looks as follows:
In order to extend this route using prepared ( ), what should the developer consider?
Specify any middleware functions needed for the new functionality.
Specify any middleware functions needed for the new functionality using only those called by the base route.
Remove next ( ); on the new route so only the route???s middleware functions execute.
KILLEXAMS.COM
Killexams.com is a leading online platform specializing in high-quality certification exam preparation. Offering a robust suite of tools, including MCQs, practice tests, and advanced test engines, Killexams.com empowers candidates to excel in their certification exams. Discover the key features that make Killexams.com the go-to choice for exam success.
Killexams.com provides exam questions that are experienced in test centers. These questions are updated regularly to ensure they are up-to-date and relevant to the latest exam syllabus. By studying these questions, candidates can familiarize themselves with the content and format of the real exam.
Killexams.com offers exam MCQs in PDF format. These questions contain a comprehensive
collection of questions and answers that cover the exam topics. By using these MCQs, candidate can enhance their knowledge and improve their chances of success in the certification exam.
Killexams.com provides practice test through their desktop test engine and online test engine. These practice tests simulate the real exam environment and help candidates assess their readiness for the actual exam. The practice test cover a wide range of questions and enable candidates to identify their strengths and weaknesses.
Killexams.com offers a success guarantee with the exam MCQs. Killexams claim that by using this materials, candidates will pass their exams on the first attempt or they will get refund for the purchase price. This guarantee provides assurance and confidence to individuals preparing for certification exam.
Killexams.com regularly updates its question bank of MCQs to ensure that they are current and reflect the latest changes in the exam syllabus. This helps candidates stay up-to-date with the exam content and increases their chances of success.