Exam4Training

SAP P_C4H340_24 SAP Certified Development Professional – SAP Commerce Cloud Developer Online Training

Question #1

What is the recommended way to deploy Solr in a production environment? Note: There are 2 correct answer to this question.

  • A . Embedded with the SAP Commerce Cloud server
  • B . As one leading server and multiple subordinate servers
  • C . As one standalone server
  • D . As a Solr Cloud

Reveal Solution Hide Solution

Correct Answer: B,D
Question #2

What should you pay attention to when connecting two widgets?

  • A . The output socket’s type does not have to be the same as the input socket’s type.
  • B . The input socket’s type should be the same as the output socket’s type.
  • C . The output socket’s type must be the same as the input socket type.
  • D . The input socket’s type must be a sub type of a composed item type.

Reveal Solution Hide Solution

Correct Answer: B
Question #3

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 answer to this question.

  • A . Create a myBusinessProcess item type that extends BusinessProcess and adds an info String property. Use an instance of this type to start theprocess in your Java code with businessProcessService.startProcess(new myBusinessProcessModel).
  • B . Create a myBusinessProcess item type that extends BusinessProcess and adds an info String property. Specify myBusinessProcessModel as the processClass argument to the process
  • C . Create 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).
  • D . In the mybusinessprocess.xml definition file, define an info event and configure actionB as the event’s originator and actionE as its target. Trigger the event in the class implementing actionB using businessProcessService.triggerEvent(info).

Reveal Solution Hide Solution

Correct Answer: A,D
Question #4

You are asked to define a new business process.

What steps do you perform? Note: There are 3 correct answer to this question.

  • A . Define the process in BPMN format.
  • B . Define the actions as Spring beans.
  • C . Create actions in Java code.
  • D . Define actions as new item types.
  • E . Define the process in XML format.

Reveal Solution Hide Solution

Correct Answer: B,C,E
Question #5

When using Monitoring Support in the Integration API Module, what should you pay attention to? Note: There are 2 correct answer to this question.

  • A . You can monitor the inbound integration requests using the Meta API.
  • B . In Outbound monitoring, if the source of the OutboundRequest is not from outbound sync or webhooks, it is set as UNKNOWN.
  • C . If you want to disable the monitoring, you need to change the dedicated properties in local.properties and restart the commerce cloud server.
  • D . If the number of batches in a bulk request exceeds the limit allowed, then the system records one Inbound Request with the payload.

Reveal Solution Hide Solution

Correct Answer: A,B
Question #6

What does the Cloud Portal application enable you to do? Note: There are 3 correct answer to this question.

  • A . Set up and deploy SAP Commerce Cloud in the public cloud.
  • B . Manage the configurations of your cloud hot folders.
  • C . Create and configure endpoints tied to configured aspects.
  • D . Review the page load times of your environments.
  • E . Generate new passwords for admin and anonymous users.

Reveal Solution Hide Solution

Correct Answer: A,C,E
Question #7

What can a *-backoffice-widgets.xml contain in the Backoffice framework? Note: There are 2 correct answer to this question.

  • A . Spring beans of backoffice web context
  • B . Context configuration object definition
  • C . Virtual socket definition
  • D . Widget connection

Reveal Solution Hide Solution

Correct Answer: C,D
Question #8

You synchronize a media item stored in SAP Commerce Cloud from a staged version to an online version.

What happens next? Note: There are 2 correct answer to this question.

  • A . Both staged and online media items now refer to the same image file in the file system.
  • B . The staged and online media items now refer to two different image files in the file system.
  • C . The values of the attributes are copied from the source item in the staged catalog to the target item in the online catalog.
  • D . The media format in the staged version is also synchronized to the media format in the online version.

Reveal Solution Hide Solution

Correct Answer: A,C
Question #9

What are the advantages of using classification attributes? Note: There are 2 correct answer to this question.

  • A . Cached classification attributes provide better performance than fixed properties.
  • B . Classification attributes are applied dynamically in response to customer actions.
  • C . Business users can create or modify classification attribute definitions using the Backoffice.
  • D . Rebuilding and redeployment are NOT required.

Reveal Solution Hide Solution

Correct Answer: B,D
Question #10

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?

  • A . 1
  • B . 0
  • C . 3
  • D . 2

Reveal Solution Hide Solution

Correct Answer: C

Question #11

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.

Reveal Solution Hide Solution

Correct Answer: A,D
Question #12

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.

Reveal Solution Hide Solution

Correct Answer: B,C
Question #13

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.

Reveal Solution Hide Solution

Correct Answer: B,D
Question #14

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".

Reveal Solution Hide Solution

Correct Answer: C D E
Question #15

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.

Reveal Solution Hide Solution

Correct Answer: A,C
Question #16

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.

Reveal Solution Hide Solution

Correct Answer: A,D
Question #17

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.

Reveal Solution Hide Solution

Correct Answer: A
Question #18

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

Reveal Solution Hide Solution

Correct Answer: A,D
Question #19

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( ).

Reveal Solution Hide Solution

Correct Answer: C,D
Question #20

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.

Reveal Solution Hide Solution

Correct Answer: A,D

Question #21

Which features does the Cloud Hot Folders module support? Note: There are 2 correct answer to this question.

  • A . Direct configuration of Hot Folders in the Cloud Portal
  • B . Media using external URLs in uploaded ImpEx
  • C . Zip archives with Impex, media and CSV files
  • D . Data export into Azure Blob storage.

Reveal Solution Hide Solution

Correct Answer: B,C
Question #22

What can you do within the integration UI Tool in Backoffice? Note: There are 2 correct answer to this question.

  • A . Create a search restriction to secure an integration object for only a certain integration user group.
  • B . Set up access rights for integration objects.
  • C . Force-delete an integration object even if it is associated with an InboundChannelConfiguration (ICC).
  • D . Export the configuration types so that they can be imported into a target system.

Reveal Solution Hide Solution

Correct Answer: B D
Question #23

Which of the following can you configure in a widget definition (definition.xml) file? Note: There are 3 correct answer to this question.

  • A . The available non-virtual sockets
  • B . The available virtual sockets
  • C . The view file
  • D . The default values for widget settings
  • E . The business logic of the widget via a bean shell script

Reveal Solution Hide Solution

Correct Answer: A,C,D
Question #24

How many category items will the following ImpEx create?

$prodCat=electronicsPr

$version=Staged

fli.

$catVersion=catalogVersion(catalog(id [defauIt=$prodCat]),version[default=$version])

INSERT_UPDATE Category;code[unique=true];$catVersion[unique=true]

;test_category;eIectronicsProductCatalog

;test_category;apparelProductCatalog:$version

;test_category;:Online

;test_category;

  • A . 1
  • B . 3
  • C . 4
  • D . 2

Reveal Solution Hide Solution

Correct Answer: C
Question #25

What type of class should you implement when you need to change the trigger for recalculating the user experience results?

  • A . A populator
  • B . An interceptor
  • C . A voter
  • D . A controller

Reveal Solution Hide Solution

Correct Answer: C
Exit mobile version