Developer Certification

An engaging and colorful illustration depicting developers working on code, debugging, and collaborating in a tech environment, with coding symbols and icons in the background.

Developer Certification Quiz

Test your knowledge with our comprehensive Developer Certification Quiz designed for aspiring and experienced developers alike. Challenge yourself to answer a series of thought-provoking questions that cover essential development practices, coding standards, and system configurations.

Key Features:

  • Assess your understanding of best practices
  • Engage with practical coding scenarios
  • Enhance your professional development
12 Questions3 MinutesCreated by CodingKnight123
Which three operations should be done in a controller?
Choose 3 answers
Use the Script API to generate data for the view.
Use middleware functions when applicable
Use the model needed for the view.
Generate the response as JSON or HTML
Create a plain JavaScript object representing a system object
A developer has a requirement to display a banner in two different category pages.
Which snippet of code should the developer add to a template to allow the merchant to configure each independently?
<isbanner id="category-banner" description="Categories Banner" context="category" context-object="${pdict.ProductSearchResult.category}" />
<isslot id="category-banner" description="Categories Banner" context="category" context-object="${pdict.productsearchresult.category}" />
<iscontent id="category-banner" description="Categories Banner" context="category" context-object="${pdict.productsearchresult.category}" />
A client wants to differentiate their monobrand stores with a special icon when shown in the store locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.
How should the developer follow SFRA best practices to expose this data for rendering?
Pass the Store system object to the template, so that custom propierties are available
Add an <isscript> to the template, and call StoreMgr.searchStoresByCoordinates();
Extend the existing Stores-Find controller with a new middleware function that performs the query
Use the module.superModule functionality and the call method to add a new property to the Store Model.
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 <options> list with the correct two-letter abbreviation for the provinces.
The U.S. Requirements are to:
  • Have an <options> list with the correct two-letter abbreviation for the states in place of the 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?
Create a copy of existing address.xml file in the default folder. Rename that file to
address_en_US.xml
Create a new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file in the new folder.
Create a new sub-folder in the forms folder. Name it US. Copy existing address.xml file in the new folder
Create a copy of existing address.xml file in the default folder. Rename that file to address_US.xml
A developer set up a new site with Taxation:Net. However, the business requirements changed and the site now needs to be Taxation:Gross. The Business Manager interface does not give this option.
Which sequence of steps is necessary to change the site to gross taxation?
Unlock the site preferences and then change the Taxation setting to Gross
Create a new site with Taxation set to Gross, then delete the old site.
Change the global setting, "Enable Taxation Methods" to true, then change the Taxation setting to Gross
Make sure that the developer has "Administrator" Access, then change the Taxation setting to Gross
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?
01  var Logger = require('dw/system/Logger');
02  var service = dw.svc.LocalServiceRegistry.createService('contact.http.submit', options);
03  var serviceResponse = service.call(requestJSON);
04
05  if (serviceResponse.ok) {
06    // Insert logging code here
07  }
Logger.getLogger('contact').debug('Contact service responded with OK.")
Logger.debug('Contact service responded with OK.")
Logger.customLogger('contact').debug('Contact service responded with OK.")
A client has a requirement to allow users on the Storefront to filter by a newly created
attribute.
After creating the search refinement, what else is necessary to achieve this?
Ensure the attribute has data and is indexed
Change the productsearchrefinebar.isml template.
Set the attribute as Searchable.
A custom cartridge that seemed to be performing well in a sandbox has been installed in production. The production instance is showing increased page load times that seem to be related to the new custom code.
What can a developer do to quickly track down the potential problem?
Use the Code Profiler in a sandbox instance. Set the mode Extended Development Mode and then load the suspected pages and run the suspected process several times. Click the refresh button to see the new data.
Use the Code Profiler in production instance. Set the mode to Development Mode and click the refresh button to see the new mode displayed.
Use the Code Profiler in production instance. Set the mode to Development Mode and then wait a few minutes to collect data from onsite traffic. Click the refresh button to see the new data.
A developer wants to add a link to the My Account Page.
What is the correct code to accomplish this?
<a href="${URLUtils.url('Account-Show')}>${Resource.msg('myaccount', 'account', null)}</a>
<a href="${URLUtils.get('Account-Show')}>${Resource.msg('myaccount', 'account', request.locale())}</a>
<a href="${url.get('Account-Show')}>${Resource.message('myaccount')}</a>
<a href="${URLUtils ('Account-Show')}>${ResourceMgr.getPropierties('myaccount', 'account', null)}</a>
A developer uses hooks for an extension point.
Which n true for running multiple hooks for an extension point?
If you call multiple modules, only the first hook called returns a value
It is possible to control the order in which registered modules are called.
It is possible to register multiple modules to call for an extension point in a single hooks.json file
A merchant has a content slot on a page that currently displays products based on the top 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 this change?
Change the default setting AND the rendering template in the slot configuration.
Change the content type AND the rendering template in the slot configuration.
Change the rendering template in the slot configuration AND delete the existing content slot to create a new one.
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?
WARN and ERROR are lugged for product" and all its subcategories. For the subcategory 'product.import' DEBUG and INFO are also logged
WARN and FRROR ate lugged for product" and all its subcategories.
WARN and ERROR are logged fix product' and all its subcategories. For the subcategory'' product.import* DEBUG and INFO are not logged.
{"name":"Developer Certification", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge with our comprehensive Developer Certification Quiz designed for aspiring and experienced developers alike. Challenge yourself to answer a series of thought-provoking questions that cover essential development practices, coding standards, and system configurations.Key Features:Assess your understanding of best practicesEngage with practical coding scenariosEnhance your professional development","img":"https:/images/course6.png"}
Powered by: Quiz Maker