Exam4Training

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

Question #1

What can you configure on the Endpoint Configuration page in Cloud Portal? Note: There are 3 correct answers to this question.

  • A . SSL Certificate
  • B . IP Filter Sets
  • C . Trusted Certificates
  • D . Redirect Sets
  • E . Host Alias Sets

Reveal Solution Hide Solution

Correct Answer: A, B, D
Question #2

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.

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

Reveal Solution Hide Solution

Correct Answer: A, D
Question #3

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

  • 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

Reveal Solution Hide Solution

Correct Answer: B, C
Question #4

What is the effect of the redeclare attribute within an itemtype definition? Note: There are 2 correct answers 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 #5

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

Reveal Solution Hide Solution

Correct Answer: B, D
Question #6

When a customer places an order using the default order management process defined in the Y accelerator fulfilment process extension, when does the fulfillment process send the notification that the order has been placed?

  • A . After the order has been fraud checked
  • B . After the order has been completely sourced
  • C . At the first stage of the fulfillment process
  • D . After the payment has been processed

Reveal Solution Hide Solution

Correct Answer: A
Question #7

You want to add a new feature using a classification system.

What should you pay attention to? Note: There are 2 correct answers to this question.

  • A . Use feature descriptor values if the values of the new feature are limited to a selection.
  • B . Create an empty classification unit even if the new feature doesn’t have a unit.
  • C . Use a feature descriptor to represent the name of the new feature and assign it to the product.
  • D . Create a classifying category with an attribute assignment model and assign it to the product.

Reveal Solution Hide Solution

Correct Answer: A, D
Question #8

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

  • 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

Reveal Solution Hide Solution

Correct Answer: B, D
Question #9

To define the data that gets extracted into the Solr index for searching, what do you need to provide? Note: There are 2 correct answers to this question.

  • A . A flexible search query for an incremental update
  • B . A solrconfig XML file
  • C . An ImpEx script for a full load
  • D . A flexible search query for a full load

Reveal Solution Hide Solution

Correct Answer: A, D
Question #10

How is the primary key (PK) for an SAP Commerce Cloud item created? Note: There are 2 correct answers to this question.

  • A . It is automatically generated and assigned.
  • B . It is generated from a counter and the type code of the item.
  • C . It is generated from the item’s unique business key(s).
  • D . It is provided by the user in the Create wizard or as a column value in ImpEx.

Reveal Solution Hide Solution

Correct Answer: A, B

Question #11

What are AddOns specifically designed to allow an SAP Commerce developer to do? Note: There are 2 correct answers 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: D
Question #12

Which of the following are valid types of environments in SAP Commerce Cloud in the public cloud? Note: There are 3 correct answers to this question.

  • A . Staging
  • B . Production
  • C . Pre-Production
  • D . Test
  • E . Development

Reveal Solution Hide Solution

Correct Answer: A, B, E
Question #13

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.

  • 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: B, D
Question #14

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.

Reveal Solution Hide Solution

Correct Answer: C, D
Question #15

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

Reveal Solution Hide Solution

Correct Answer: A, B
Question #16

You are creating an extension with a web module.

What do you need to ensure? Note: There are 2 correct answers to this question.

  • A . An extension with a web module can only be extended with an addon.
  • B . An extension with a web module must have a web folder.
  • C . An extension with a web module must always have a core module.
  • D . The web root must be set in the web module directive in the extensioninfo.xml file

Reveal Solution Hide Solution

Correct Answer: B, D
Question #17

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.

Reveal Solution Hide Solution

Correct Answer: A, B
Question #18

In Integration API Module, which of the following API verbs are controlled by access rights? Note: There are 2 correct answers to this question.

  • A . Update – POST
  • B . Create – POST
  • C . Create – PATCH
  • D . Update – POST, PATCH

Reveal Solution Hide Solution

Correct Answer: B, D
Question #19

What must you always specify when you are creating a new Adaptive Search Profile? Note: There are 3 correct answers to this question.

  • A . Category
  • B . Index configuration
  • C . Index type
  • D . User
  • E . Catalog version

Reveal Solution Hide Solution

Correct Answer: B, C, E
Question #20

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.

  • 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 #21

You are implementing a new custom promotion action that changes the delivery mode of an order.

What steps are required to make sure that the effects of this action are reverted as soon as the condition that triggered it is NO longer fulfilled? Note: There are 2 correct answers to this question.

  • A . Implement the undo method in your custom rule action strategy
  • B . Define a new session attribute to store the original delivery mode
  • C . Implement your custom action item so that it can store the original delivery mode
  • D . Create a promotion that uses the inverse action if the condition is NOT fulfilled

Reveal Solution Hide Solution

Correct Answer: A, C
Question #22

What can you do within the integration UI Tool in Backoffice? Note: There are 2 correct answers 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: A, D
Question #23

What are the advantages of using classification attributes? Note: There are 2 correct answers 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 . When modifying, Rebuilding and redeployment are NOT required.

Reveal Solution Hide Solution

Correct Answer: C, D
Question #24

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

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

Reveal Solution Hide Solution

Correct Answer: B, D
Question #25

Which of the following steps could be included in the process of installing an AddOn? Note: There are 3 correct answers to this question.

  • A . Run ant all.
  • B . Configure storefront properties files.
  • C . Run ant addoninstall.
  • D . Run ant modulegen.
  • E . Copy files from the storefront to the AddOn web source folder

Reveal Solution Hide Solution

Correct Answer: A, B, C
Question #26

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

Reveal Solution Hide Solution

Correct Answer: D
Question #27

Which component configurations does the ServiceLayer architecture promote? Note: There are 3 correct answers to this question.

  • A . Services orchestrate Strategies
  • B . Services orchestrate Converters
  • C . Facades orchestrate Converters
  • D . Facades orchestrate Strategies
  • E . Facades orchestrate Services

Reveal Solution Hide Solution

Correct Answer: B, D, E
Question #28

You are creating a new SolrIndexProperty as a facet and want to define it using facet ranges.

What do you need to do to achieve that?

  • A . Manually create SolrValueRange items to define the range boundaries.
    Create a SolrValueRangeSet, add SolrValueRange items, and add to the SolrIndexProperty.
  • B . Define the number of ranges in the SolrIndexProperty.
    Provide sample data that is used to
    generate the SolrValueRange items.
  • C . Define the cadence of the ranges in the SolrIndexProperty.
    Provide the sample data that is used
    to generate the SolrValueRangeSet.
  • D . Create SolrValueRange items to define the range boundaries.
    Add them to the SolrIndexProperty

Reveal Solution Hide Solution

Correct Answer: D
Question #29

Which of the following items are configured via a direct relation to a BaseStore? Note: There are 3 correct answers to this question.

  • A . A list of Content Catalogs providing the pages, slots, and other CMSItems shown to Customers
  • B . A list of Product Catalogs providing the product info shown to Customers
  • C . A list of customers associated with the BaseStore.
  • D . A list of warehouses that support the delivery
  • E . A list of points of service that represent local branches

Reveal Solution Hide Solution

Correct Answer: B, E
Question #30

What causes item data to be invalidated in the SAP Commerce Cloud entity cache? Note: There are 2 correct answers to this question.

  • A . Receiving an invalidation event for the item via cluster messaging
  • B . Calling the modelService.create( ) method passing a Model class
  • C . Calling a setter method on a Model class
  • D . Calling the modelService.save( ) method passing an item model

Reveal Solution Hide Solution

Correct Answer: A, D
Exit mobile version