Unlock hundreds more features
Save your Quiz to the Dashboard
View and Export Results
Use AI to Create Quizzes and Analyse Results

Sign inSign in with Facebook
Sign inSign in with Google

Master the B2C Commerce Developer Certification Quiz

Test your consumer commerce development expertise with practice questions

Difficulty: Moderate
Questions: 20
Learning OutcomesStudy Material
Colorful paper art depicting a trivia quiz for B2C Commerce Developer Certification

Ready to tackle the B2C Commerce Developer Certification Quiz? Ideal for aspiring Salesforce Commerce Cloud developers, this practice test covers key topics from storefront customization to API integrations. Candidates will sharpen their skills while exploring real-world questions, including best practices for pipelines and performance. You can freely adapt this quiz in our editor to focus on specific areas, like E-Commerce and Marketing Knowledge Quiz or dive deeper with Software Developer Fundamentals Quiz. Check out more quizzes to build a comprehensive study plan.

What is the primary server-side scripting language used in Salesforce B2C Commerce?
Java Servlets
Ruby
Server-Side JavaScript
Apex
Salesforce B2C Commerce uses Demandware Script, which is implemented as server-side JavaScript. This allows developers to write business logic in a JavaScript environment on the server. Other languages like Apex or Java are not used for storefront scripting.
In B2C Commerce, which object model represents a customer's active shopping cart?
Order
Basket
Profile
Catalog
The Basket object in B2C Commerce represents the in-progress shopping cart before it becomes an Order. An Order object is created only after checkout is completed. Profiles and Catalogs serve different purposes in the data model.
Which API is typically used in storefront code to retrieve product information in Salesforce B2C Commerce?
SOAP API
Bulk API
REST API via Salesforce CRM
OCAPI Shop API
The OCAPI Shop API is the primary RESTful interface for storefront interactions, including product retrieval. SOAP and Bulk APIs serve other integration scenarios, and CRM REST APIs are separate from storefront OCAPI.
What file extension do ISML template files use in B2C Commerce storefront development?
.isml
.xml
.tpl
.html
ISML stands for Internet Store Markup Language, and template files are stored with the .isml extension. This format allows embedding dynamic tags and logic in server-rendered storefront pages.
Which method is used to log informational messages in a pipeline script?
console.log
Logger.getLogger
System.out.println
dw.system.Logger.info
In B2C Commerce pipeline and script files, dw.system.Logger.info is the standard method to log information-level messages. Console.log is not available on the server side, and System.out.println is Java-specific.
In a pipeline definition, which XML tag marks the entry point for pipeline execution?
The tag in a pipeline.xml file defines where execution begins for that pipeline. Pipeline steps are defined by tags, but is the specific entry point element.
In an SFRA-based cartridge, where should controller files be placed?
cartridges//cartridge/scripts
cartridges//cartridge/models
cartridges//cartridge/templates
cartridges//cartridge/controllers
SFRA organizes logic into controllers stored under the controllers folder in each cartridge. Models, scripts, and templates reside in their respective directories for separation of concerns.
Which HTTP header should be set to enable far-future client-side caching of static assets?
Cache-Control: max-age
Content-Type: text/javascript
Expires: 0
Pragma: no-cache
Cache-Control: max-age specifies how long browsers should cache resources, enabling far-future caching. Pragma and Expires headers can affect caching but are not used for far-future scenarios in modern clients.
What is the recommended way to clear the server-side cache from Business Manager?
Delete temporary files via WebDAV
Using the Cache page under Administration > Site Development
Restart the server
Run a full code deployment
The Cache page in Business Manager under Site Development allows selective clearing of cache regions without a full server restart. Other methods are either disruptive or ineffective.
Which Site Preferences setting enables script debugging in Salesforce B2C Commerce?
Development > Enable Script Debugger
Security > Log Level=Debug
Cache > Disable Cache
System > Debug Mode
Under Site Preferences in the Development section, setting Enable Script Debugger turns on server-side script debugging tools. Other settings do not control the built-in debugger.
When using a custom pipelet in a pipeline, where must it be referenced?
In a controller file
In the ISML template
In the element of pipeline.xml
In Site Preferences
Custom pipelets are invoked by adding a entry in the pipeline.xml definition. ISML templates and controllers do not directly reference pipelets in SiteGenesis pipelines.
To add a custom attribute to the Product object, where do you configure it?
Administration > Business Manager Users
Merchant Tools > Products > Attributes
Site > Catalogs > Themes
Administration > Operations > Jobs
Product attributes are managed in Business Manager under Merchant Tools > Products > Attributes, where you can create or modify custom fields on the Product data model.
Which hook should be implemented to define custom payment methods during checkout?
hookCalculateTax
hookValidateCoupon
hookListShippingMethods
hookDefinePaymentMethods
hookDefinePaymentMethods is the designated hook in the checkout pipeline to add or modify available payment methods. Other hooks serve different checkout stages.
Which integration pattern is best suited for bulk exporting inventory data from B2C Commerce?
OCAPI Bulk Inventory Export job
REST Inventory CRUD
Real-time Inventory WebSocket
SOAP Inventory Service
The OCAPI Bulk Inventory Export job is designed for high-volume, scheduled inventory data extracts. SOAP and REST CRUD APIs are more suited for individual record operations.
In SFRA controllers, which method is used to render an ISML template with data?
app.view
next()
res.render
res.send
In SFRA, controllers invoke res.render(templateName, data) to render ISML templates with provided context. Other methods like res.send do not process ISML templates.
Which API method wraps a set of operations in a single transaction in B2C Commerce?
Transaction.start
Transaction.begin
Transaction.wrap
system.begin
Transaction.wrap takes a callback function and executes contained operations in a transaction, rolling back on exceptions. There are no separate begin or start methods in the public API.
How do you programmatically clear a specific named cache region in B2C Commerce scripts?
CacheMgr.getCache('regionName').clear()
CacheMgr.remove('regionName')
CacheMgr.resetCache()
CacheMgr.clearAll()
dw.system.CacheMgr.getCache('regionName').clear() retrieves the named cache region and clears all its entries. There is no clearAll or resetCache method for named regions.
Which class provides methods to retrieve and query custom objects in B2C Commerce?
CustomerMgr
CustomObjectMgr
ProductMgr
OrderMgr
CustomObjectMgr is the API class designed for CRUD operations on custom objects. ProductMgr, OrderMgr, and CustomerMgr serve the standard product, order, and customer models respectively.
To override a core SFRA controller, where should the overriding file be placed?
In the document root of the web server
In a custom cartridge located earlier in cartridge path than the base cartridge
In the base cartridge under /templates folder
In Site Preferences > Custom Scripts
SFRA uses the cartridge path order to resolve controllers. Placing an identically named controller in a higher-priority custom cartridge overrides the base implementation.
Which hook is invoked to customize shipping cost calculations in B2C Commerce?
hookGetShippingMethods
hookCalculateShippingCosts
hookBeforeCalculateShipping
hookAfterShippingSelection
hookCalculateShippingCosts is the designated hook during the shipping calculation phase, allowing custom logic for shipping fees. Other hook names do not correspond to the shipping cost calculation step.
0
{"name":"What is the primary server-side scripting language used in Salesforce B2C Commerce?", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"What is the primary server-side scripting language used in Salesforce B2C Commerce?, In B2C Commerce, which object model represents a customer's active shopping cart?, Which API is typically used in storefront code to retrieve product information in Salesforce B2C Commerce?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}

Learning Outcomes

  1. Analyse B2C Commerce architecture and data models
  2. Identify key APIs and integration patterns
  3. Apply best practices for storefront customization
  4. Demonstrate proficiency in pipelines and controllers
  5. Evaluate performance optimization and caching strategies
  6. Master debug and troubleshooting techniques

Cheat Sheet

  1. Understand B2C Commerce Architecture - Get to know how storefront catalogs, master catalogs, categories, inventory, promotions, products, price books, cart, and checkout interact in Salesforce B2C Commerce. This foundational knowledge helps you map out how each piece fits together to build a seamless shopping experience. Explore the Udemy course
  2. Master Storefront Reference Architecture (SFRA) - Dive into SFRA's structure to learn page types, generation workflows, search integration, cart/checkout flows, templates, and CSS organization. Understanding how SFRA updates or Commerce upgrades impact these elements will keep your storefront modern and maintainable. Explore the Udemy course
  3. Utilize Business Manager Effectively - Hone your skills in Business Manager for code versioning, site development, and data import/export, plus setting global and custom preferences. Being fluent in this tool accelerates configuration changes and keeps your e-commerce site running smoothly. Explore the Udemy course
  4. Develop with ISML Templates - Practice writing ISML templates using local includes, remote includes, components, and other ISML tags to customize your storefront. Mastery here ensures you can build dynamic, reusable page sections and enhance user interaction. Visit the Test Prep Training tutorial
  5. Implement JavaScript Controllers - Learn to create and extend JavaScript controllers with models, decorators, factories, or helpers following API best practices. You'll render templates or return JSON responses effectively, powering dynamic storefront features. Visit the Test Prep Training tutorial
  6. Manage Data with Business Manager - Configure site search preferences, create and refine search facets, and manage product data models including categorization, inventory, and price books. Efficient data handling delivers faster searches and accurate product listings. Visit the Test Prep Training tutorial
  7. Optimize Performance and Caching - Use performance inspection tools and implement caching strategies and profilers to boost page load times. Optimized caching means a snappier user experience and lower server load during peak traffic. Visit the Test Prep Training tutorial
  8. Integrate with External Systems - Configure and use Open Commerce API (OCAPI) Shop and Data APIs to connect B2C Commerce with external services. Properly setting OCAPI permissions ensures secure data flow and seamless third-party integrations. Visit the Test Prep Training tutorial
  9. Develop and Manage Jobs - Create and manage import/export jobs for catalogs, orders, inventory, and system objects using B2C Commerce best practices. Automate data merges, deletes, updates, or replacements to maintain accurate site content. Visit the Test Prep Training tutorial
  10. Debug and Troubleshoot Effectively - Employ debugging tools to pinpoint code or configuration issues and optimize performance for scalability. Strong troubleshooting skills ensure your site remains robust under real-world traffic and feature demands. Explore the Udemy course
Powered by: Quiz Maker