Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

P_C4H340_34 Exam Dumps - SAP Certified Development Professional - SAP Commerce Cloud Developer

Go to page:
Question # 17

Which interface would you inject into your class to allow you to trigger an indexing operation via ======

API?

A.

IndexerStrategy

B.

IndexerQueryContext

C.

IndexerListener

D.

IndexerService

Full Access
Question # 18

Your system contains a search restriction with the following parameters: Type: Product User:

anonymous. Restriction: 1=0. There is a product "Candle" in the online catalog and a variant

product "PinkCandle" in the online catalog. The system renders the Product Detail Page for Pink

Candle using the following flexible search query: "SELECT {pk} FROM {VariantProduct} WHERE

{code}="PinkCandle". What happens next?

A.

The flexible search query returns a null value.

B.

The flexible search query returns “PinkCandle”.

C.

The flexible search query returns an SQL exception.

D.

The flexible search query returns an empty list.

Full Access
Question # 19

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.

A.

Create a myBusinessProcess item type that extends BusinessProcess and adds an info String

property. Use an instance of this type to start the process 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).

Full Access
Question # 20

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 therecommended 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 DBA 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.

Full Access
Question # 21

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 answers 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

Full Access
Question # 22

When using Monitoring Support in the Integration API Module, what should you pay attention to?

Note: There are 2 correct answers 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.

Full Access
Question # 23

You have these example item types defined in myext-items.xml:What additional steps are needed

to support the identification attribute?

< ?xml version="1.0" encoding="ISO-8859-1"? >

< items >

< itemtype code="Passport" autocreate="true" generate="true" >

< deployment typecode="8995" table="passport" />

< attributes > ... < /attributes >

< /itemtype >

< itemtype code="Student" extends="Customer" autocreate="true" generate="true" >

< attributes >

< attribute type="localized:Passport" qualifier="identification" >

< persistence type="property" />

< /attribute >

< /attributes >

< /itemtype >

< /items >

What additional steps are needed to support the identification attribute?

Define a one-to-many relation between Student and Passport using a relation tag with

parameter localized="true".

Add a maptype tag for localized:Passport with parameters argumenttype="Language" and

returntype="Passport".

Run an ant updatesystem command. A passportlp table will be generated to store the

localized property values.

Define a localized Passport attribute for the Student type in

myext/resources/localization/myext-locales_XY.properties.

Question

Customer Experience

A.

Define a one-to-many relation between Student and Passport using a relation tag with parameter

localized="true".

B.

Add a maptype tag for localized:Passport with parameters argumenttype="Language" and

returntype="Passport".

C.

Run an ant updatesystem command. A passportlp table will be generated to store the localized

property values.

D.

Define a localized Passport attribute for the Student type in myext/resources/localization/myextlocales_XY.properties.

Full Access
Question # 24

How are relations modeled in the database? Note: There are 2 correct answers to this question.

A.

One-to-many relations are stored in the links table.

B.

One-to-many relations are binary objects.

C.

One-to-many relations are stored in a column.

D.

Many-to-many relations are deployed as a table.

Full Access
Go to page: