Salesforce-B2C-Commerce-Cloud-Developer Practice Test

Salesforce Spring 25 Release
202 Questions

A Digital Developer needs to check forproduct inventory in a specific inventory list using the Open Commerce API.
An example request URL is:

Which resource_id value enables the appropriate resource?

A. /inventory_lists/*

B. /inventory_lists/**

C. /inventory_list_search

D. /products/*

A.   /inventory_lists/*

Explanation:

To check product inventory in a specific inventory list using Open Commerce API (OCAPI), the correct resource_id must be configured to allow access to the inventory lists endpoint. Here’s why /inventory_lists/* is the right choice:

OCAPI Inventory List Endpoint Structure
The endpoint to fetch inventory for a specific list is:
GET /inventory_lists/{inventory_list_id}/product_inventory_records/{product_id}
The example URL in the question follows this pattern:
/dw/data/v18_3/inventory_lists/econ-inventory/product_inventory_records/00883408601

Why /inventory_lists/*?
The wildcard * allows access to all subpaths under /inventory_lists/, including:
Specific lists (e.g., econ-inventory)
Product records within those lists (e.g., product_inventory_records/00883408601)
This matches the required URL structure for inventory checks.

Why Not the Other Options?
B. /inventory_lists/**
While ** is sometimes used for recursive wildcards, OCAPI specifically uses * for resource paths.

C. /inventory_list_search
This is a search endpoint, not for accessing specific inventory lists.

D. /products/*
This refers to product catalog data, not inventory lists.

Exam Relevance:
Tests knowledge of OCAPI endpoint permissions and wildcard usage (* vs. **).
Critical for configuring API access to inventory data.

Reference:
Salesforce OCAPI: Inventory Lists

Salesforce-B2C-Commerce-Cloud-Developer Practice-Test - Home Previous
Page 5 out of 202 Pages