Skip to content

Comm-Dev-101 B2C Commerce Cloud Developer Practice Questions

Prepare for Comm-Dev-101 with more than an answer.

100 questions in the full set12 sample questionsUpdated Mar 12, 2026
  1. 1

    A developer is troubleshooting an issue where a specific product is not appearing in search results for the phrase "running shoes", even though the product name contains both words.

    Which three steps in Business Manager should the developer take to diagnose this issue? (Select THREE)

    Show answer details

    Correct answer: C, D, F

    The Search Index Query Testing tool allows developers to see exactly why a product matches or doesn't match a query.

    Availability and categorization are common reasons for products dropping out of the index. If a product is offline or unassigned, it won't be indexed.

    Verifying that the attribute containing the keywords is actually configured to be searchable is a primary step.

  2. 2

    A developer needs to create a new site in the B2C Commerce sandbox. After creating the site in Business Manager, which two settings MUST be configured before the site can successfully process any prices or taxes? (Select TWO)

    Show answer details

    Correct answer: C, D

    The system needs to know if prices include tax (Gross) or exclude tax (Net) to calculate order totals correctly.

    A site must have a default currency defined to interpret price books.

  3. 3

    A developer is writing a script to update product descriptions. They need to ensure that if an error occurs during the update of 100 products, none of the changes are committed to the database.

    Which code structure correctly implements this requirement?

    Show answer details

    Correct answer: D

    The Transaction.wrap() method executes the provided function within a database transaction. If the function throws an exception, the transaction is automatically rolled back, ensuring atomicity.

  4. 4

    A developer is configuring the cartridge path for a new B2C Commerce site based on the Storefront Reference Architecture (SFRA). The requirement is to override the standard checkout flow with custom logic defined in a cartridge named app_custom_checkout, while ensuring core SFRA functionality remains available for other areas.

    Given the standard SFRA cartridges are app_storefront_base and modules, which cartridge path configuration ensures the custom checkout logic takes precedence?

    Show answer details

    Correct answer: D

    In B2C Commerce, the cartridge path is traversed from left to right. To override functionality in app_storefront_base, the custom cartridge app_custom_checkout must be placed to the left of the base cartridge. This ensures that when the system looks for a controller or template, it finds the custom version first.

  5. 5

    A merchant requires a new variation of the Product Detail Page (PDP) that displays a specialized inventory countdown for flash sales. This component should only appear for products assigned to the 'Flash Sale' category. The developer decides to use an ISML template decorator.

    Which ISML tag should be used in the product template to wrap the content with the site's standard look and feel while allowing the specific page content to be injected?

    Show answer details

    Correct answer: A

    The tag is specifically designed to wrap the enclosed content with a decorating template (like a layout). The decorating template uses to identify where the inner content should be rendered. simply includes another file and does not provide the wrapping/decorator pattern.

  6. 6

    During a code review, a Technical Architect notices the following pattern in a scheduled job script intended to export order data to an ERP system:

    var orderIterator = dw.order.OrderMgr.searchOrders('status = {0}', 'creationDate desc', dw.order.Order.ORDER_STATUS_NEW);
    while (orderIterator.hasNext()) {
    var order = orderIterator.next();
    // ... complex processing ...
    }
    

    The job fails with a QuotaExceededException on production when order volume is high. What is the root cause and the correct remediation?

    Show answer details

    Correct answer: A

    Iterating through large result sets using searchOrders and hasNext/next keeps objects in memory, eventually hitting the heap quota. OrderMgr.processOrders() is designed for batch processing; it loads objects into memory one by one (or in small batches) and clears them after the callback executes, preventing memory leaks.

Create an account to continue.