A developer working on a simple web service integration is asked toadd appropriate logging to allow future
troubleshooting.
According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?
A developer working on a multi country site is asked to store country specific data that drives the creation of a country selector. Examples of the data storedare:
Pricebook to be used
Image URL for country flag
The data used in staging also applies in production, but only for this site.
Which approach should the developer take to implement these requirements?
A merchant has a content slot on a page that currently displays products based on thetop sellers for the current week. The merchant wants to change this functionality. They want to 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 thischange?
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?
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
A DigitalDeveloper has a new requirement to disable the "Discover" credit card type for all checkouts.
What does the Developer need to change in Business Manager to fulfill this requirement?
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?
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
A developer wants to configure multiple products that should only be sold as a group. It should not bepossible for buyers to buy these products individually. How should the developer configure the products?
In Log Center, a developer notes j number of Cross Site Request Forgery (CSRF) log entries.
After adding the token in the 15ML template, which action might solve this problem'
Universal Containers needs to have Apple Pay disabled for the country of Spain.
Which Business Manager module should the Developer use to meet this requirement?
A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.
Which statement should the Developer use to lazy loadscripts?
There are three logging categories: category1, category1.eu, and category1.us.
In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.
The code segmentbelow executes.
What is the result'
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 developer is is configuring Shipping Methods on a storefront. Which of the following considerations must be kept in mind while configuring shipping methods.
Given the requirements:
• To show the washing instructions for a clothing product on a dedicated section the detail page
• Washing instructionscome from the product information manager(PIM)
• To have this attribute available to localize in the Storefront.
Which action meets these requirements?
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 formfield.
How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?
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)
B)
C)
Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
In order to build the SFRA code to adeveloper sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?
Reference the following code snippets that allow a form to function correctly.
Which code should a developer insert at the EXPRESSION placeholder m the ISML template snippet above to have the form work as expected?
A Storefront is designed so that multiple pages share a common header and footer layout.
Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?
There is a business requirement thata custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?
A)
B)
C)
A merchant has a requirement to render personalized content ton a category page via a Content Slot that
targets VIP high-spending customers during a specific promotional period.
Which two items should the developer create to achieve the specified requirements?
Choose 2 answers:
A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an
unlimited number of these digital vouchers, this item should be available to sell at all items.
How can a developer use Business Manager to ensure that the gift vouchers are always available?
A merchant wants to obtain an export file that contains all the products .assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help Generate this. The merchant s Instance setup is as follows:
They have one Master catalog and one storefront catalog.
Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.
Which method allows the developer to generate the export for the merchant?
A developer wants to use an external application to manage their stores information (such as opening
hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are
saved.
What is the appropriatetechnique the developer should perform to allow the merchant to create a new
store in this scenario?
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, what will be written to the log?
Why should a Digital Developeruse ProductSearchModel.getProducts() instead of Category.getOnlineProducts() to access products?
A developer has configured the following log levels for categories & sub categories as
WARN logging is enabled for 'product’ and DEBUG for "product.import"
What will be the log level used for various categories and sub-categories?
Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?
A developer is asked to periodically create a CSB file in a WebDAV folder to hold the orders information of the last 30 days.
What are the appropriate actions to implement such a requirement?
A developer is writing a server side script that needs to maintain state across calls. The persistent
information needed includes these items.
• The current customer
• Whether or not the customer is authenticated
• The privacy attributes (such as tracking consent or cookie policy)
Which technique should the developer use to maintain state in an efficient and scalable manner that
follows best practice?
A developer wants to create in Business Manager extension with thecartridge named
plugin_vm_extension.
Which two steps should the developer take for the extension option to show up in Business Manager?Choose 2 answers:
A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cartforms. In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.
The code below is the submit button for the ISML markup.
What additional steps must occur before the Digital Developer can begin writing the processing code for this request?
A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and datamodel remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront.
The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.
Which modification should be made to the new cartridge path?
Given the file structure below, which ISML method call renders the customLandingPage template?
A developer needs to display a products list of their "Women Dresses" category in a new web application, independent of their main B2C Commerce site. This custom listing page needs to be styled differently from the existing one, as per marketing requirements.
Which B2C Commerce tool should the developer use to collect the necessary information?
Universal Containers specifies a new category hierarchy for navigating thedigital 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 Developerswith sandboxes on the same realm create the same catalog in their own sandboxes?
Given a job step configured in the steptype.json, a developer needs to add a custom status code
“No_FILES_FOUND”.
Which code snippet will complete the requirement?
A developer is using logging in scripts to troubleshoot an issue. They are using thedw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?
A developer customized the Cart-Show controller routewith a LINK cartridge that adds social media data. There is a new requirement to add a datalayer object to the Cart-Show controller route.
How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?
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 developer is asked to write a log containing the ID and name of the product with a variable named myProduct.
Which snippet of code should be used?
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?
Which line of code creates a content slot that can be included on homepage.isml to display on the home page?
A Digital Developernoticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection’s target version directory.
Which action potentially solves this problem?
A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below to
What does this achieve?
A Digital Developer adds the following line of code to a script.
The code executes without error; however, the log file on disk does NOTcontain the log message.
Which two actions should be completed to write the log message to disk? (Choose two.)
A developer is working on a new site for the U.S based on an existing Canadian site. One of the
requirements is a change to the address form. The current Canadian form has an
correct two-letter abbreviation for the provinces.
The U.S. requirements are to:
Have an
province field.
Set the U.S site locale.
Add the options list field definition to the XML file.
How should the developer set up the files before making the required edits?
A developer isimplementing new Page Designer content on a merchant's Storefront and adds the line shown below to the setupCsntentSearch function in the searchHelpers.Js file.
What does this achieve?
Given the requirement to add caching toan existing page while adhering to SFRA best practices, which code snippet should be used?
A)
B)
C)
Adeveloper cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Which action should the developer take to resolve the problem?
The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.
Which statement correctly adds a log entry?
Which three configuration does a developer need to ensure to have a new product visible in the
Storefront?
Choose 3 answers