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

Free and Premium SAP P_C4H340_34 Dumps Questions Answers

Page: 1 / 6
Total 82 questions

SAP Certified Development Professional - SAP Commerce Cloud Developer Questions and Answers

Question 1

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

Options:

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.

Buy Now
Question 2

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

Options:

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.

Question 3

Which services are included in the basecommerce extension to address customer services

functionality? Note: There are 3 correct answers to this question.

Options:

A.

OrderCancelService

B.

ReturnService

C.

CustomerReviewService

D.

CustomerAccountService

E.

RefundService

Question 4

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?

Options:

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.

Question 5

What can you do in the Builds workspace in Cloud Portal? Note: There are 2 correct answers to

this question.

Options:

A.

Delete a build that is no longer needed

B.

View the history of the past deployments of a selected build

C.

Deploy a successful build to a certain environment

D.

Rebuild a successful build to do a performance test

Question 6

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?

Options:

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.

Question 7

You need to create a CronJob for an automated task that will be performed every day at midnight.

Which steps would you follow? Note: There are 3 correct answers to this question.

Options:

A.

Register the JobPerformable bean in your extension's Spring configuration file.

B.

Define the Cronjob logic in a class that implements the JobPerformable interface.

C.

Perform a system update for essential data.

D.

Perform a system update for sample data.

E.

Create a CronJob item and a trigger for midnight using ImpEx or Backoffice.

Question 8

What Solr index operation uses the indexedProperties field on the SolrExtIndexerCronJob?

Options:

A.

FULL

B.

UPDATE

C.

DELETE

D.

PARTIAL_UPDATE

Question 9

What happens when you use a deployment tag in the items.xml file? Note: There are 2 correct ======

answers to this question.

Options:

A.

All instances of the enclosing type are stored in the specified database table.

B.

Only non-inherited properties of the enclosing type are stored in the deployment table.

C.

The deployment typecode is used as part of the primary key (PK) of that type's items.

D.

The name of the deployment table is generated automatically.

Question 10

In SmartEdit, what can you do with variations defined for a customization? Note: There are 3

correct answers to this question.

Options:

A.

Assign the customer a custom search profile if a variation is in effect.

B.

Apply a variation to customers who belong to a combination of segments.

C.

Show different content in a slot if a variation is in effect.

D.

More than one variation in a customization can be triggered at the same time.

E.

Give the customer a coupon if a variation is in effect.

Question 11

How can you define a new event? Note: There are 2 correct answers to this question.========

Options:

A.

Create a new EventTemplate in an ImpEx file.

B.

Create a new ItemType in an items.xml file.

C.

Extend a pre-defined event DTO in a custom beans.xml.

D.

Create a new DTO in a beans.xml file.

Question 12

In an Accelerator-based storefront, which of the following would allow you to display a custom ======

CMS Component? Note: There are 2 correct answers to this question.

Options:

A.

Create a JSP named [componentTypeCode].jsp that pulls data from a [ComponentTypeCode]Data

object.

B.

Configure a custom controller bean and redefine the DefaultCMSComponentController alias to

point to it.

C.

Configure a renderer in the cmsComponentRendererRegistry that doesn’t need to use a data

object or a view.

D.

Create a controller for this component and register it in the cmsComponentControllerRegistry

Question 13

What is the recommended way to deploy Solr in a production environment? Note: There are 2

correct answers to this question.

Options:

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

Question 14

Which of the following is a mechanism used by WCMS to position components on a page?

Options:

A.

The Page item has a position map that links each component to the component in the page that

the item should be displayed in.

B.

The ContentSlot item’s code property is used to determine which slot in the page that the item

should be displayed in.

C.

The component’s CurrentPosition attribute is used to determine which component within the

page the item should be displayed in.

D.

The position attribute in the ContentSlotForTemplate item is used to identify the slot in the page

that the item should be displayed in.

Question 15

When you define an aspect in your manifest.json file, what types of information should you

provide? Note: There are 2 correct answers to this question.

Options:

A.

properties

B.

addons

C.

webapps

D.

extensions

Question 16

In an extension named myext, you defined Pump, a subtype of the Product item type with a

property named efficiency. You have also extended the productDTO bean to have an efficiency

property. To copy the efficiency property to the productDTO, what do you need to do? Note:

There are 2 correct answers to this question.

Options:

A.

Write a PumpProductConverter class that extends AbstractPopulatingConverter, and copies the

efficiency property from the Pump item to the productDTO bean if the item is an instance of Pump.

Configure an instance of this converter in myext-spring.xml.

B.

Make sure the definition of the Pump item type defines the efficiency attribute with persistence

type property. When you run at all, the productConverter class generated in bootstrap/gensrc will

copy the efficiency property to the productDTO.

C.

Create a PumpPopulator class that extends ProductPopulator and, if necessary, copies the

efficiency property from the Pump item to the productDTO bean. In myext-spring.xml, redefine the

productPopulator alias to point to an instance of PumpPopulator.

D.

Write a PumpAttributePopulator class that copies the efficiency property from the item to the

DTO only if its method is passed an instance of PumpModel. Define a bean for this new class in

myext-spring.xml, and use a modifyPopulatorList bean to add it to the productConverter's list of

populators.

Question 17

Why are rule-aware objects (RAOs) used in the rule engine? Note: There are 2 correct answers to

this question.

Options:

A.

To store the configuration of the rule engine

B.

To provide the data as facts in rule conditions and actions

C.

To persist the results of the rule evaluation

D.

To eliminate unnecessary data provided by complex objects

Question 18

You need to create a new custom promotion based on customer reviews for a product. You create

a customPromotion extension with a new Rule Aware Object to keep customer reviews. In which

file will you define this new Rule Aware Object?

Options:

A.

In the customPromotion-backoffice-config.xml file

B.

In the customPromotion-spring.xml file

C.

In the customPromotion-beans.xml file

D.

In the customPromotion-items.xml file

Question 19

What attributes can you set for a SearchRestriction? Note: There are 2 correct answers to this

question.

Options:

A.

restrictedType

B.

currentUser

C.

principal

D.

argumentType

Question 20

The miniature car replicas your company sells on its site are now available in a choice of colors,

each at a different price point. You wish your product page to allow your customers to select the

color before adding the replica to the cart. To complicate things, your boss won’t let you restart

your production servers to add this functionality. What entities would you have to create to

achieve this?

Options:

A.

A ConfigurationCategory, an AbstractConfiguratorSetting for color, a ConfiguratorType, and an

OrderEntryProductInfo for each color a given replica is available in.

B.

A VariantCategory for color, a VariantValueCategory for each color, and a GenericVariantProduct

for each color a given replica is available in.

C.

A ClassficationCategory, a ClassificationAttribute for color, a ClassificationAttributeUnit, a

ClassificationAttributeValue for each color a given replica is available in, and a

ClassAttributeAssignmentModel instance to tie them together.

D.

A ComposedType, that extends the VariantProduct type to add a color attribute, and an instance

of this type for each color a given replica is available in.

Question 21

Assuming that property impex.legacy.scripting is set to false and ‘Enable code execution’ is

checked, what are the results of the following ImpEx script? INSERT_UPDATE

Title;code[unique=true] #%groovy% beforeEach: line.clear(); ;foo; ;bar; ;baz;

Options:

A.

No entries will be updated or inserted.

B.

Only the Title with code that equals "baz" will be updated or inserted.

C.

All data rows will be cleared of unnecessary space.

D.

All "foo", "bar", and "baz" codes will be updated or inserted.

Question 22

Which of the following can you configure in a widget definition (definition.xml) file? Note: There ========

are 2 correct answers to this question.

Options:

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

Question 23

Which component configurations does the ServiceLayer architecture promote? Note: There are 3 =====

correct answers to this question.

Options:

A.

Services orchestrate Strategies

B.

Services orchestrate Converters

C.

Facades orchestrate Converters

D.

Facades orchestrate Strategies

E.

Facades orchestrate Services

Question 24

Which of the following are best practices for adding a new parameter to an existing method of

CommerceCartService? Note: There are 2 correct answers to this question.

Options:

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.

Page: 1 / 6
Total 82 questions