Commerce Developer Practice Exam, Exams of Technology

A comprehensive test for developers who create and maintain eCommerce platforms. It evaluates knowledge of catalog management, product configuration, cart and checkout workflows, payment integration, order orchestration, APIs, security practices, and extensibility models. Candidates must exhibit proficiency in customizing commerce engines, implementing promotional logic, optimizing storefront performance, and supporting omnichannel retail experiences.

Typology: Exams

2025/2026

Available from 01/08/2026

shilpi-jain-1
shilpi-jain-1 🇮🇳

4.2

(5)

29K documents

1 / 91

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Commerce Developer Practice Exam
**Question 1. Which tool is most commonly used to manage source code versions for
Commerce development projects?**
A) SVN
B) Git
C) Mercurial
D) Perforce
Answer: B
Explanation: Git is the defacto standard for version control in modern development, including
Commerce platforms, because of its distributed nature and strong branching capabilities.
**Question 2. In a typical Commerce architecture, which layer is responsible for handling HTTP
requests and routing them to appropriate controllers?**
A) Data Access Layer
B) Presentation Layer
C) Service Layer
D) Integration Layer
Answer: B
Explanation: The Presentation Layer (often the storefront) receives HTTP requests and uses
routing mechanisms to invoke the correct controller actions.
**Question 3. When configuring a new currency in Business Manager, which setting must be
defined to ensure correct price calculations?**
A) Currency Symbol
B) ISO Code
C) Rounding Mode
D) Exchange Rate
Answer: D
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b

Partial preview of the text

Download Commerce Developer Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which tool is most commonly used to manage source code versions for Commerce development projects? A) SVN B) Git C) Mercurial D) Perforce Answer: B Explanation: Git is the de‑facto standard for version control in modern development, including Commerce platforms, because of its distributed nature and strong branching capabilities. Question 2. In a typical Commerce architecture, which layer is responsible for handling HTTP requests and routing them to appropriate controllers? A) Data Access Layer B) Presentation Layer C) Service Layer D) Integration Layer Answer: B Explanation: The Presentation Layer (often the storefront) receives HTTP requests and uses routing mechanisms to invoke the correct controller actions. Question 3. When configuring a new currency in Business Manager, which setting must be defined to ensure correct price calculations? A) Currency Symbol B) ISO Code C) Rounding Mode D) Exchange Rate Answer: D

Explanation: The exchange rate determines how prices are converted between the base currency and the newly added currency. Question 4. What is the primary purpose of a cache partition in a Commerce platform? A) To store user sessions permanently B) To isolate cached data for different sites or functionalities C) To encrypt cached objects D) To compress cached files for faster transmission Answer: B Explanation: Cache partitions allow separate caching spaces, preventing data collisions between sites, locales, or modules. Question 5. Which of the following best describes a “composable” Commerce architecture? A) A monolithic codebase with tightly coupled services B) A set of independent micro‑services that can be combined as needed C) A single SaaS instance with no extensibility D) An on‑premise installation with no cloud features Answer: B Explanation: Composable architecture relies on loosely coupled, reusable services that can be assembled to meet specific business needs. Question 6. In the data model, which object directly represents a purchasable item listed in the catalog? A) Order B) Customer C) Product D) Pricebook

B) Direct SQL updates via JDBC C) Batch REST endpoint that accepts an array of updates D) SOAP calls for each inventory item Answer: C Explanation: Batch endpoints reduce network overhead and allow the platform to process multiple updates in a single transaction. Question 10. In ISML templating, which tag is used to output escaped HTML content? A) B) C) D) Answer: A Explanation: The <isprint> tag automatically escapes HTML, preventing XSS attacks. Question 11. Which component type is used to create reusable UI pieces in a Lightning‑based storefront? A) Visualforce Page B) Apex Controller C) Lightning Web Component (LWC) D) Aura Component Answer: C Explanation: LWCs are the modern, standards‑based way to build reusable UI components in Salesforce Commerce Cloud. Question 12. To support multiple languages on a storefront, which file type typically holds translation strings?

A) .properties B) .json C) .xml D) .txt Answer: A Explanation: .properties files are standard for key‑value translation pairs in many Commerce platforms. Question 13. What is the purpose of a “preference” in the Commerce platform’s extensibility model? A) To define a new database table B) To replace a core class with a custom implementation at runtime C) To store user session data D) To configure caching behavior for a cartridge Answer: B Explanation: Preferences allow developers to specify which implementation a framework should use, enabling runtime swapping without code changes. Question 14. Which extensibility mechanism is best suited for adding logic before and after a core method execution without altering the core code? A) Decorator B) Observer C) Plugin (Interceptor) D) Factory Answer: C Explanation: Plugins (also called interceptors) wrap core methods, allowing before/after/around logic injection.

Explanation: The state machine defines allowed transitions and typically locks the order record to prevent conflicting updates. Question 18. Which integration pattern is most appropriate for a high‑volume, real‑time payment gateway that must respond within seconds? A) Asynchronous message queue B) Scheduled batch job C) Synchronous REST service call D) FTP file transfer Answer: C Explanation: Real‑time payment processing requires immediate response, making synchronous REST calls the suitable pattern. Question 19. When configuring an OCAPI endpoint, which attribute controls which HTTP methods are allowed? A) allowedMethods B) permissions C) scopes D) methodsAllowed Answer: A Explanation: The allowedMethods attribute explicitly lists GET, POST, PUT, DELETE, etc., for the endpoint. Question 20. In a SaaS Commerce environment, which feature enables real‑time notifications of order events to external systems? A) Cron Jobs B) Webhooks (Event Bus) C) Database Triggers

D) Email Alerts Answer: B Explanation: Webhooks publish events such as order creation, allowing external services to react instantly. Question 21. Which log level should be used to capture detailed debugging information without exposing sensitive data? A) ERROR B) WARN C) INFO D) DEBUG Answer: D Explanation: DEBUG provides granular information for troubleshooting while still respecting data masking policies. Question 22. What is the primary benefit of using a profiler during performance optimization? A) It automatically rewrites slow code B) It identifies hotspots by measuring execution time and memory usage C. It compresses assets for faster download D. It disables caching to test raw performance Answer: B Explanation: Profilers analyze runtime behavior, highlighting methods or queries that consume disproportionate resources. Question 23. Which security measure helps prevent SQL injection in custom scripts? A) Using string concatenation for queries

Question 26. When adding a new product variant type, which attribute must be set to enable variant selection on the PDP? A) variantGroup B) masterProductID C) isVariant D) variantAttributeSet Answer: D Explanation: The variantAttributeSet defines which attributes (size, color, etc.) differentiate variants and drives the selection UI. Question 27. Which search engine is commonly integrated with modern Commerce platforms to provide full‑text product search? A) MySQL Full‑Text B) ElasticSearch C) Solr Cloud D) PostgreSQL GIN Answer: B Explanation: ElasticSearch offers scalable, real‑time search capabilities and is the default in many cloud Commerce solutions. Question 28. To improve catalog page load times, which cache strategy is most effective? A) Disable all caching during peak traffic B) Cache the entire HTML page for each user C) Cache product attribute queries and search result sets separately D) Cache only static assets like images and CSS Answer: C

Explanation: Caching query results reduces database load while still allowing personalized content to be rendered per request. Question 29. Which of the following is a recommended practice when writing a custom service integration that may fail intermittently? A) Throw a generic exception and abort the transaction B) Implement retry logic with exponential backoff C) Ignore the failure and continue processing D) Log the error and immediately shut down the server Answer: B Explanation: Retry with exponential backoff mitigates transient issues while preventing immediate overload. Question 30. In Business Manager, what does the “Export” function for a price book primarily generate? A) A PDF catalog B) An XML file containing price entries C) A CSV file suitable for bulk import D) A JSON API endpoint Answer: C Explanation: Exporting a price book creates a CSV that can be edited and re‑imported for mass updates. Question 31. Which of the following is NOT a valid way to invalidate cached data after a product update? A) Using cache partition purge commands B) Restarting the entire application server C) Setting a short TTL (time‑to‑live) on cache entries

B) 400 Bad Request C) 403 Forbidden D) 422 Unprocessable Entity Answer: D Explanation: 422 indicates that the server understands the content type and syntax but cannot process the contained instructions. Question 35. In a composable Commerce setup, which layer typically handles communication with ERP systems? A) Presentation Layer B) Integration Layer C) Data Access Layer D) Service Layer Answer: B Explanation: The Integration Layer abstracts external system interactions, such as ERP or payment gateways. Question 36. Which of the following is a primary advantage of using Dependency Injection (DI) in cartridge development? A) Hard‑coding class names for faster execution B) Allowing runtime swapping of implementations without changing consumer code C) Reducing the number of files in the project D) Eliminating the need for unit tests Answer: B Explanation: DI decouples components, enabling easier testing and flexible configuration.

Question 37. When creating a custom attribute on the Customer object, which scope must be selected to make the attribute searchable? A) System B) Public C) Searchable D) Private Answer: C Explanation: The “Searchable” scope adds the attribute to the search index, allowing queries against it. Question 38. Which method is preferred for retrieving a large list of orders for reporting purposes? A) Loading each order individually in a loop B) Using a bulk query with pagination and streaming results C) Executing a separate REST call per order D) Accessing the order table directly via SQL Answer: B Explanation: Bulk queries with pagination reduce memory consumption and network overhead, suitable for large datasets. Question 39. In a storefront template, which tag is used to include another ISML fragment? A) B) C) D) Answer: A Explanation: <isinclude> inserts the content of another ISML file at render time.

Explanation: Decorators wrap existing classes, allowing additional logic without altering the original implementation. Question 43. When a product is out of stock, which inventory status should be set to prevent it from being added to the cart? A) “In Stock” B) “Backorderable” C) “Pre‑order” D) “Out of Stock” Answer: D Explanation: The “Out of Stock” status blocks add‑to‑cart actions unless custom backorder logic is implemented. Question 44. Which command-line tool is typically used to synchronize data between a local development sandbox and a remote cloud environment? A) git sync B) sfcc-ci data:import/export C) npm sync D) docker cp Answer: B Explanation: sfcc-ci (or the platform‑specific CLI) provides data import/export capabilities for cloud Commerce environments. Question 45. In the context of API security, what does OAuth 2.0 primarily provide? A) Data encryption at rest B) Token‑based delegated authorization C) Password hashing algorithms

D) Input sanitization for web forms Answer: B Explanation: OAuth 2.0 issues access tokens that grant limited permissions to third‑party applications. Question 46. Which of the following is the most appropriate way to handle large image assets for product pages? A) Store them directly in the database as BLOBs B) Serve them from a CDN with appropriate caching headers C) Embed them as base64 strings in HTML D) Host them on the same server without compression Answer: B Explanation: CDNs deliver images efficiently worldwide and reduce load on the origin server. Question 47. What does the “state” field in an Order object represent? A) The shipping address country B) The current step in the order lifecycle (e.g., new, processing, completed) C) The payment method used D) The customer’s loyalty tier Answer: B Explanation: The order’s “state” tracks its progression through defined workflow stages. Question 48. Which of the following is a common cause of “Cache Stampede” and how can it be mitigated? A) Frequent cache invalidations; mitigate by increasing TTL B) Simultaneous cache misses for the same key; mitigate by using locking or request coalescing C) Overly large cache entries; mitigate by compressing data

B) Managing database connections directly C) Providing query methods for domain objects D) Abstracting persistence details from business logic Answer: B Explanation: Repositories use the platform’s data access APIs; they do not handle low‑level connection management. Question 52. When configuring a new site in Business Manager, which setting determines the default language displayed to visitors? A) Locale B) Currency C) Timezone D. Site ID Answer: A Explanation: The Locale setting defines language and regional formatting for the site. Question 53. Which of the following is the primary benefit of using GraphQL over REST for storefront data retrieval? A) Automatic caching of responses B) Ability to request exactly the fields needed, reducing over‑fetching C. Mandatory authentication for every request D. Simpler URL structures Answer: B Explanation: GraphQL lets clients specify precise data requirements, minimizing payload size and round‑trips.

Question 54. In a multi‑tenant cloud environment, what is the main purpose of “tenant isolation”? A) To share resources across all customers without restrictions B) To ensure that data and configurations of one tenant cannot be accessed by another C) To speed up deployment by merging codebases D) To enable cross‑tenant promotions automatically Answer: B Explanation: Tenant isolation guarantees security and data privacy between different customers using the same platform. Question 55. Which of the following is a recommended practice when writing custom controller actions that modify database records? A) Perform the modifications directly in the controller without service layers B) Use a service class to encapsulate business logic and transaction handling C) Disable all validation to speed up processing D. Write raw SQL statements inside the controller Answer: B Explanation: Service classes separate concerns, enable reuse, and allow proper transaction management. Question 56. Which of the following cache invalidation strategies is most appropriate after a price book update? A) Flush the entire site cache B) Invalidate only the cache entries related to the affected price book IDs C) Restart the application server D. Increase the cache TTL to a very high value Answer: B