SAP Certified Development Professional - SAP Commerce Cloud Developer
Find out if you're ready for P_C4H340_34. Take the free timed mock exam and get your score in minutes, or study the free P_C4H340_34 questions below with answers and explanations.
You are creating a business process (mybusinessprocess) that requires an action (actionB)
to pass
an info String value to another action (actionE) occurring later in the process. What do you
need to
do to make this possible? Note: There are 2 correct answers to this question.
Show answerHide answer
Correct answer: B, CCreate a myBusinessProcess item type that extends BusinessProcess and adds an info
String
property. Specify myBusinessProcessModel as the processClass argument to the processCreate an event myEvent that extends the AbstractProcessEvent and adds an info
String property.
Register the target action as a listener for this event. Fire the event with
eventService.publishEvent
(myEvent).
Explanation
Explanation:
Option B is correct because custom process models serve as persistent state containers in SAP Commerce. By creating myBusinessProcess extending BusinessProcess with an info String attribute, you establish shared storage accessible to all actions. When actionB sets this attribute, actionE can later read it directly from the same process instance. The processClass parameter in the process definition XML links your custom model to the process, enabling type-safe data passing.
Option C is correct because events can carry data between decoupled components. Creating myEvent extending AbstractProcessEvent with an info String property allows actionB to publish the data via eventService.publishEvent(). Since actionE is registered as a listener, it receives the complete event object with the String value when triggered.
Why Other Options Are Incorrect:
Option A is incorrect because businessProcessService.startProcess() requires a persisted model instance, not a constructor argument. You must create and save the model using modelService first.
Option D is incorrect because there is no "info event" configuration in process XML with originator/target attributes, and businessProcessService.triggerEvent(info) is not a valid SAP Commerce API.
References:
SAP Commerce Documentation: "Business Processes" section on Process Models
SAP Help Portal: "Event Handling in Business Processes"
Question 2Choose 1
Your solution has been live for a significant period of time. Now you need to update project
data
across multiple environments, but this update should onlybe executed once. What is
the recommended approach for updating the project data?
Show answerHide answer
Correct answer: ACreate a class that extends AbstractPatchesSystemSetup and configure any data
patches, which
can run an import of your ImpEx files during an update.
Explanation
Explanation:
The Patches System in SAP Commerce Cloud is specifically designed for "run-once" data updates in live environments. While the standard AbstractSystemSetup (Option C) is intended for initializing or updating the general system state, AbstractPatchesSystemSetup provides a specialized framework for tracking which updates have already been applied to a specific database.
Why Other Options are Incorrect
Option B: Directly running SQL scripts against the SAP Commerce database is strongly discouraged. It bypasses the Persistence Layer (Jalo/Models), meaning caches are not invalidated, business logic is ignored, and you risk corrupting the data model integrity.
Option C: A standard AbstractSystemSetup with TYPE.PROJECT is typically used for data that can be re-imported or should be refreshed during every system update. It does not natively provide the "execute only once" tracking logic that the Patches framework offers.
Option D: Manual imports are prone to human error and are not scalable for managing multiple environments. They fail to meet the requirement of a professional "recommended approach" for a live solution where automation and audit trails are critical.
References
SAP Help Portal: Hooks for System Initialization and Update – Documentation on AbstractPatchesSystemSetup.
Question 3Choose 3
Which of the following items are configured via a direct relation to a BaseStore? Note:
There are 3 correct answers to this question.
Show answerHide answer
Correct answer: B, D, EA list of Product Catalogs providing the product info shown to CustomersA list of warehouses that support the deliveryA list of points of service that represent local branches
Explanation
Explanation:
In the SAP Commerce Cloud type system, the BaseStore acts as the central hub for physical and logical store configuration. The relationship between these items is defined directly in the BaseStore item type.
B (Product Catalogs): The BaseStore contains a direct attribute productCatalogs (a list of CatalogModel). This defines which products are available for purchase within that specific store context.
D (Warehouses): The BaseStore has a direct warehouses attribute. This is critical for the Sourcing and Availability logic, as it tells the engine which inventory locations can fulfill orders for that store.
E (Points of Service): The BaseStore maintains a direct relation to PointOfServiceModel (PoS). This is used to define physical locations, such as brick-and-mortar stores, for "Buy Online, Pick Up In Store" (BOPIS) functionality.
Why Other Options are Incorrect
Option A (Content Catalogs): This is a common point of confusion. Content Catalogs are actually linked to the CMSSite, not the BaseStore. While a CMSSite points to a BaseStore, the "pages, slots, and CMSItems" belong to the site's configuration.
Option C (Customers): Customers (Users) are not directly listed on the BaseStore. Instead, a Customer may have a defaultPaymentAddress or defaultDeliveryAddress, and their orders are linked to a BaseStore, but there is no "List of Customers" attribute on the BaseStore model itself.
References
SAP Help Portal: BaseStore Documentation – Details the attributes of the BaseStore item type.
Question 4Choose 2
Which features does the Cloud Hot Folders module support? Note: There are 2 correct
answers to
this question.
Show answerHide answer
Correct answer: B, CMedia using external URLs in uploaded ImpExZip archives with Impex, media and CSV files
Explanation
Explanation:
The Cloud Hot Folders module is an extension of the traditional Platform Hot Folders, optimized for the SAP Commerce Cloud (CCv2) infrastructure. It is designed to ingest data from Azure Blob Storage rather than a local file system.
B (Media using external URLs): Cloud Hot Folders support a specialized channel for remote media. By using the url_media prefix or specific converter mappings, you can import ImpEx files that reference external URLs. This allows the system to associate products with images hosted on third-party CDNs or external servers without needing to upload the physical binary files to the hot folder.
C (Zip archives): A core feature of the cloudhotfolder extension is the Unzip Channel. Unlike standard hot folders that primarily process individual CSVs, Cloud Hot Folders can process a single .zip file containing a mix of ImpEx scripts, CSV data, and media files. The engine automatically extracts the archive and processes the contents based on defined patterns.
Why Other Options are Incorrect
Option A: While you can view storage credentials and regenerate access keys in the Cloud Portal, you cannot "directly configure" the Hot Folder logic (like mappings or transformation beans) there. Configuration is done via Spring XML files (e.g., cloudhotfolder-spring.xml) and properties in your manifest.json.
Option D: Cloud Hot Folders are an inbound integration tool. They are designed to pull data from Azure Blob Storage into SAP Commerce. Exporting data out to Azure storage is typically handled by the Integration API, custom CronJobs, or the Azure Cloud Storage extension, but it is not a feature of the Hot Folders module itself.
References
SAP Help Portal: Cloud Hot Folders – Overview of the architecture and supported file patterns.
Question 5Choose 3
What must you always specify when you are creating a new Adaptive Search Profile? Note:
There
are 3 correct answers to this question.
Show answerHide answer
Correct answer: B, C, EIndex configurationIndex typeCatalog version
Explanation
Explanation:
In SAP Commerce Cloud, an Adaptive Search Profile is a set of configurations that determines how search results are boosted, hidden, or promoted. To create a valid profile, the system must know exactly which search index and data set the rules should apply to.
B (Index configuration): The profile must be linked to a specific Solr Index Configuration (e.g., default or electronics). This tells the system which physical Solr server and core settings to use.
C (Index type): You must specify the Indexed Type (e.g., Product). This defines the specific item type being searched and ensures the profile can access the correct indexed properties (facets and attributes).
E (Catalog version): Search profiles are context-aware. You must specify a Catalog Version (e.g., electronicsProductCatalog:Online) because search results and their relevance are scoped to the specific products available in that version.
Why Other Options are Incorrect
Option A (Category): While you can create a category-aware profile (to have different search rules for "Cameras" vs. "Laptops"), it is not mandatory. You can create a "Global" profile that applies to the entire index without specifying a category.
Option D (User): Similar to categories, you can define profiles for specific User Groups (personalization), but this is an optional feature. A profile does not "always" require a user assignment to function.
References
SAP Help Portal: Adaptive Search Module – Outlines the mandatory fields for creating a AsSearchProfile.
Question 6Choose 1
You are running a transaction that creates an item and updates it twice. If the transaction is
committed successfully, how many AfterSaveEvent items will the ServiceLayer create?
Show answerHide answer
Correct answer: A1
Explanation
Explanation:
In SAP Commerce, when multiple operations are performed on the same item within a single transaction, the ServiceLayer aggregates these operations and generates only one AfterSaveEvent after successful commit
Why Other Options Are Incorrect:
Option C (3) is incorrect because it assumes each database operation generates a separate event. However, the AfterSaveEvent mechanism aggregates operations on the same item within a transaction, firing only one event representing the net effect .
Option D (2) is incorrect because it fails to account for aggregation rules. Even with multiple operations, only a single event is produced .
References:
SAP Commerce Javadoc: AfterSaveEvent class documentation
Question 7Choose 1
How many category items will the following ImpEx create?
To determine the final count, we must analyze the uniqueness of each row. In this ImpEx, a Category is defined as unique based on the combination of its code AND its $catVersion.
Why Other Options are Incorrect
Option A (1): This would only be true if the catalogVersion was not marked as [unique=true], causing the system to only look at the code.
Option C (4): This is a common trap. While there are four data rows, rows 1 and 4 resolve to the identical code and catalogVersion combination. INSERT_UPDATE prevents the creation of a fourth item.
Option D (2): This ignores the fact that the apparelProductCatalog and the Online version of the electronics catalog are distinct entities from the initial Staged version.
References
SAP Help Portal: ImpEx Syntax – Documentation on how header defaults (default=...) and macros ($...) are processed in data rows.
Question 8Choose 3
What does the Cloud Portal application enable you to do? Note: There are 3 correct
answers to
this question.
Show answerHide answer
Correct answer: A, C, DSet up and deploy SAP Commerce Cloud in the public cloud.Create and configure endpoints tied to configured aspects.Review the page load times of your environments.
Explanation
Explanation:
The Cloud Portal is a secure, browser-based self-service interface that enables you to set up, configure, and deploy SAP Commerce Cloud solutions in the public cloud .
Option A is correct because the Cloud Portal enables you to set up and deploy SAP Commerce Cloud in the public cloud. It allows you to create environments, connect your code repository, build your application, and deploy builds to these environments .
Option C is correct because endpoints tied to configured aspects can be created and configured directly in the Cloud Portal. When you select an environment, you can configure endpoints that define web routing and access for aspects like API, Backoffice, Storefront, and Background Processing .
Option D is correct because the Cloud Portal integrates with SAP CX Observability (Dynatrace) and Cloud Logging System (CLS) for monitoring. You can review page load times, metrics, and performance data through the Monitoring section of each environment .
Why Other Option Is Incorrect:
Option B is incorrect because cloud hot folders are not configured through the Cloud Portal UI. While access credentials for hot folder Azure Blob Storage are displayed in the Cloud Portal, the actual configuration requires XML mapping files and property settings in the codebase. The Cloud Portal only shows the connection details but does not provide configuration management for hot folders .
References:
SAP Learning: "Exploring Basic Features of Cloud Portal"
SAP Help Portal: "Setup" documentation
SAP Help Portal: "Cloud Hot Folders" documentation
Question 9Choose 2
How does SAP Commerce cloud, composable storefront compare to the SAP Commerce
Cloud Accelerators? Note: There are 2 correct answers to this question.
Show answerHide answer
Correct answer: B, DAccelerators are JSP-based while Spartacus is JavaScript-based.They are both extensible according to project requirement.
Explanation
Explanation:
The transition from SAP Commerce Cloud Accelerators to Composable Storefront (formerly known as Spartacus) represents a fundamental shift in architecture—from a monolithic, coupled approach to a modern, decoupled (headless) one.
B (Technology Stack): Accelerators are built using JSP (JavaServer Pages) and the Spring MVC framework, where the frontend and backend are tightly integrated within the same deployment unit. Composable Storefront is a JavaScript-based Single Page Application (SPA) built on Angular, allowing the frontend to run independently of the platform logic.
D (Extensibility): Both solutions are designed to be modified to meet specific business needs. While the method of extension differs—Accelerators often use AddOns and JSP overrides, while Composable Storefront uses Angular dependency injection and library-based configuration—both are fully extensible frameworks that allow developers to build custom features on top of the base template.
Why Other Options are Incorrect
Option A: They do not have the same feature parity. Composable Storefront was built from the ground up to replace Accelerators, and while it has reached significant maturity, there are still legacy or specialized Accelerator features (particularly in older industry-specific extensions) that have not been implemented in the Composable version.
Option C: This is partially incorrect. While Composable Storefront relies 100% on the OCC API (Omni Commerce Connect) to communicate with the backend, traditional Accelerators primarily use direct Java calls to the Facade and Service layers. While an "Accelerator OCC" extension exists to expose data to mobile apps, the Accelerator web storefront itself does not use OCC for its own page rendering.
References
SAP Help Portal: Composable Storefront FAQ – Explicitly compares the architecture (Angular vs. JSP) and notes that they do not yet have 100% feature parity.
Question 10Choose 3
You are asked to define a new business process. What steps do you perform? Note: There
are 3 correct answers to this question.
Show answerHide answer
Correct answer: B, C, EDefine the actions as Spring beans.Create actions in Java code.Define the process in XML format.
Explanation
Explanation:
Defining a business process in SAP Commerce Cloud requires a specific combination of configuration and coding. The engine uses a "Graph-Based" approach where the flow is defined in a file and the logic is implemented in Java classes.
E (Define the process in XML format): This is the first structural step. You must create an XML file (typically named my-process.xml) that defines the nodes (actions, wait states, and transitions). This file dictates the logic flow and links names to actual Spring beans.
C (Create actions in Java code): For every action node defined in your XML, you must write a Java class. These classes typically extend AbstractAction or AbstractProceduralAction and contain the actual business logic to be executed.
B (Define the actions as Spring beans): To make your Java classes accessible to the Business Process Engine, they must be declared as Spring beans in your *-spring.xml file. The id of the bean in Spring must match the bean attribute used in the process XML action node.
Why Other Options are Incorrect
Option A: SAP Commerce Cloud's native Business Process Engine uses its own proprietary XML schema, not the industry-standard BPMN (Business Process Model and Notation) format. While external tools can visualize it, the platform cannot directly execute a .bpmn file.
Option D: Actions are logic components, not data components. You do not define actions as item types in items.xml. Item types are used for the BusinessProcess model (to store state/data), but the actions themselves are Spring-managed Java objects.
References
SAP Help Portal: Automated Business Processes – Section on "Defining a Process," which lists the XML definition and Action implementation as core requirements.
Full mock exam
Sit the P_C4H340_34 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real P_C4H340_34 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.
This practice test focuses on advanced SAP Commerce Cloud developer topics: core architecture, extension development, backoffice customization, integration patterns, and performance optimization. You will practice questions on data modeling, ImpEx, OCC web services, SmartEdit, and deployment strategies. The test emphasizes hands-on developer knowledge required to build and scale enterprise e-commerce solutions. By working through these exam-realistic questions, You will validate your expertise in both foundational and advanced development concepts, preparing you for the professional-level certification and complex implementation projects.
Proven Results
Commerce Cloud development requires both coding skills and platform knowledge. P_C4H340_34 practice exam challenged me on accelerators, customization, and integrations. The developer-level questions were spot-on and prepared me perfectly for the exam.
Michael Thompson, Commerce Cloud Developer | New York, NY