SAP P_C4H340_24 SAP Certified Development Professional – SAP Commerce Cloud Developer Online Training
SAP P_C4H340_24 Online Training
The questions for P_C4H340_24 were last updated at Nov 15,2024.
- Exam Code: P_C4H340_24
- Exam Name: SAP Certified Development Professional - SAP Commerce Cloud Developer
- Certification Provider: SAP
- Latest update: Nov 15,2024
You are implementing two new independent extensions, extension A and extension B, both of which extend and overwrite a bean of the core platform.
How can you make sure the bean from extension A doesn’t override the one from extension B? Note: There are 2 correct answer to this question.
- A . Use the beans’ parent attribute in extension B to specify the core bean.
- B . Add only one of the extensions into localextensions.xml at the same time.
- C . The beans are loaded in alphabetical order; therefore, extension B takes precedence.
- D . Define a dependency wherein extension B requires extension A.
You need to add a new Cockpit to the Backoffice to implement new features for a business user role.
Which tasks are required? Note: There are 2 correct answer to this question.
- A . Create or reuse an add-on, and install it into the storefront.
- B . Create a new multiplexer widget for the borderlayout widget.
- C . Create or reuse a Backoffice extension with the proper meta information.
- D . Add a new layout widget in config.xml.
Which of the following relations are defined in the data model for personalization (based on SmartEdit)? Note: There are 2 correct answer to this question.
- A . A one-to-many relation between CxExpressionTrigger and CxSegment
- B . A one-to-many relation between CxCustomization and CxVariation.
- C . A many-to-many relation between CxVariation and CxAbstractAction.
- D . A many-to-many relation between CxSegmentTrigger and CxSegment.
How can CronJobs be started or aborted? Note: There are 3 correct answer to this question.
- A . CronJobs can be started manually using flexible search.
- B . CronJobs can be aborted automatically if a configurable time threshold is exceeded.
- C . CronJobs can be started manually via the Backoffice administration perspective.
- D . CronJobs can be aborted only if implemented as abortable.
- E . CronJobs can be started manually via the command line by running "ant runcronjob".
What are AddOns specifically designed to allow an SAP Commerce developer to do? Note: There are 2 correct answer to this question.
- A . Extend the Accelerator storefront.
- B . Extend the Backoffice.
- C . Provide additional RESTful web services for OCC.
- D . Provide a new web application.
What is the effect of the redeclare attribute within an itemtype definition? Note: There are 2 correct answer to this question.
- A . It can be used to change the type of an attribute.
- B . It can be used to change the class of an itemtype.
- C . It can be used to change the name of an attribute.
- D . It can be used to change the modifier of an attribute.
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 only be executed once.
What is the recommended approach for updating the project data?
- A . Create a class that extends AbstractPatchesSystemSetup and configure any data patches, which can run an import of your ImpEx files during an update.
- B . Extract a SQL script of all the changes in a single environment, which a OBA can then run directly against the database for all remaining environments.
- C . Create a class that extends AbstractSystemSetup and use the @SystemSetup annotation with TYPE.PROJECT, which can run an import of your ImpEx files during an update.
- D . With each deployment, manually import the ImpEx files via the hybris Admin Console or via the ant importimpex target.
You restart the platform without running "ant all".
Which of the following changes take effect? Note: There are 2 correct answer to this question.
- A . Addition of a Spring bean definition
- B . Removal of an extension from the localextensions.xml file
- C . Definition of a new item type in the items.xml file for an extension
- D . Changes to database properties in the local.properties file
What are best practices when using models? Note: There are 2 correct answer to this question.
- A . Create models using Java’s ‘new’ keyword
- B . Use modelService.getQ to obtain an item referenced by another using its PK.
- C . Save the model using the modelService after the model is modified.
- D . Create models using modelService.create( ).
Which of the following are best practices for adding a new parameter to an existing method of CommerceCartService? Note: There are 2 correct answer to this question.
- A . Overload the existing method of CommerceCartService by adding the new parameter.
- B . Add a new property to CommerceCartParameter in a beans.xml file.
- C . Extend the default strategy called by the method to handle the new parameter.
- D . Extend the default implementation of the method to handle the new parameter.