MOCK 2 - HYBRIS

Beschreibung

Para la certificación de Hybris
Ferrar Carter
Quiz von Ferrar Carter, aktualisiert more than 1 year ago
Ferrar Carter
Erstellt von Ferrar Carter vor mehr als 7 Jahre
4374
4

Zusammenfassung der Ressource

Frage 1

Frage
What describe best the JALO layer ?
Antworten
  • means Jakarta Logic
  • mix data and business logic
  • it’s a piece of the service layer
  • JALO classes are generated during runtime

Frage 2

Frage
For the following query to be imported successfully what changes need to be done ? $productCatalog=apparelProductCatalog $productCatalogName=Apparel Product Catalog INSERT_UPDATE ApparelProduct;code;$catalogVersion;unit(code); supercategories(code,$catalogVersion) ;300441142;;pieces;Blue Tomato,caps
Antworten
  • add a macro for catalog version
  • change the attribute header INSERT_UPDATE to INSERT_UNIQUE
  • mark code with [unique=true]
  • use the type Product instead of ApparelProduct

Frage 3

Frage
Choose the correct file to localize HMC entries in English (extension’s name is hybhubcore)?
Antworten
  • hybhubcore/resources/localization/hybhubcore-locales_en.properties
  • hybhubcore/resources/localization/hmc-locales_en.properties
  • hybhubcore/hmc/localization/hybhubcore-locales_en.properties
  • hybhubcore/resources/localization/english/hybhubcore.properties

Frage 4

Frage
Select the right definition for the tenant concept ?
Antworten
  • a single SAP Hybris installation with multiple localextensions.xml
  • a clustered SAP Hybris installation with one database
  • a single SAP Hybris installation with distinct sets of data
  • a single SAP Hybris installation with a speciic database for each store

Frage 5

Frage
When do you use cluster aware events ?
Antworten
  • when you run a cluster all events need to be cluster aware
  • since SAP Hybris V6 all events are cluster aware
  • when you need to run an event from a specific node
  • when you need to broadcast an event to all nodes

Frage 6

Frage
Why does the rule engine (used by the promotion engine) include a versioning and archiving mechanism ?
Antworten
  • to keep an history of all promotions that ever existed on the system
  • to have a consistent representation of the applied rules when promotions were applied
  • to be able to work on different time zone
  • all item types in SAP Hybris are archived and versioned

Frage 7

Frage
What is wrong with the following item type definition ? 1 <itemtype code="Subscription" extends="GenericItem"> 2 <attributes> 3 <attribute type="java.lang.String" qualifier="code"> 4 <persistence type="property" /> 5 <modifiers unique="true"/> 6 </attribute> 7 </attributes> 8 <indexes> 9 <index name="codeIdx"> 10 <key attribute="code"/> 11 </index> 12 </indexes> 13 </itemtype>
Antworten
  • missing a Jalo class definition
  • an index needs to be on at least two attributes
  • GenericItem is not a valid item
  • missing deployment data

Frage 8

Frage
Out of the box, what CMS items are used to build the top navigation menu ?
Antworten
  • NavigationBarComponent
  • TopMenuNavigationComponent
  • CMSNavigationNode
  • CMSLinkComponent

Frage 9

Frage
What steps you need to have to fulfill in order to create a new cronjob ?
Antworten
  • create a new cron job expression from Spring
  • implement a job
  • create a new item type extending CronJob
  • add the new cronjob in your local.properties

Frage 10

Frage
What statements are false about catalogs synchronization ?
Antworten
  • only existing items can be updated
  • no items can be deleted
  • all item types are being synchronized
  • the same catalog can a target and a source

Frage 11

Frage
Cached data are removed from the cache when ?
Antworten
  • the cache is full
  • a cache invalidation notification is received from another node
  • an item is created
  • an item is removed

Frage 12

Frage
What statements are true about classification ?
Antworten
  • classification is horizontal unlike categorization which is vertical
  • a product can be classified by only one classification attribute
  • classification is not being used by SAP Hybris because its model type definition is flexible
  • classification is not compatible with SOLR

Frage 13

Frage
What can you do from an addon ?
Antworten
  • add front end files (JSP, HTML, CSS and Javascript)
  • generate or customize the data model
  • declare new Spring Services or Facades or customize existing
  • declare new Controllers or customize existing

Frage 14

Frage
What configuration file has the highest priority ?
Antworten
  • project.properties from the platform extension
  • advanced.properties from the platform extension
  • local.properties from the config extension
  • local.properties from the custom extension

Frage 15

Frage
When you create the following item type A what classes are being generated ? 1 <itemtype code="A" extends="ItemB" generate="false"> 2 <attributes> 3 <attribute type="java.lang.String" qualifier="code"> 4 <persistence type="property" /> 5 <modifiers unique="true"/> 6 </attribute> 7 </attributes> 8 </itemtype>
Antworten
  • A.java
  • GeneratedA.java
  • AJalo.java
  • AModel.java

Frage 16

Frage
When configuring the Apache SOLR indexer mode what does DIRECT means ?
Antworten
  • access the embedded Apache SOLR server
  • send request to Apache SOLR using its REST API
  • all index operations would be made directly on the index
  • all index operations would be made on a temporary index before indexes are switch

Frage 17

Frage
Is it possible for two tenants to use different extensions ?
Antworten
  • yes using two different localextensions.xml, one for each tenant
  • yes using allowed.extensions and forbidden.extensions inside a tenant specific configuration file
  • yes using .allowed.extensions and .forbidden.extensions inside your configuration
  • no, SAP Hybris is not compatible with this

Frage 18

Frage
How do you install a new addon ?
Antworten
  • add the addon inside your localextensions.xml
  • add the addon under external-dependencies.xml
  • use the ant target addoninstall
  • use the ant target syncaddons

Frage 19

Frage
Is this a valid Flexible Search Query ? select {p.description[fr]:o} from {Product as p} where {p:pk} in ( {{ select {p:pk} from {product as p} where {p:code} like '%0%' }} )
Antworten
  • no
  • yes if we delete :o
  • yes if we delete the whole where statement
  • yes

Frage 20

Frage
Out of the box how can you access the assisted service module functionalities ?
Antworten
  • from the targeted storefront add a request parameter asm equal true
  • from the backoice open the asm perspective
  • go to the /asmcockpit
  • go to the /cscockpit

Frage 21

Frage
How can you initialize SAP Hybris ?
Antworten
  • using ant initialize
  • from the HAC
  • from the HMC
  • from the backoffice

Frage 22

Frage
What is highest B2B organization block ?
Antworten
  • company
  • unit
  • division
  • region

Frage 23

Frage
In order to force a product to be listed on top of a give category, what out of the box features should you use ?
Antworten
  • boost rules
  • hero rules
  • hero products
  • top products

Frage 24

Frage
What payment steps is described by the following definition ? 1 Transfer back money to a customer account, the transfer not being associated with any order or previous transactions.
Antworten
  • capture
  • stand alone refund
  • capture.
  • refund

Frage 25

Frage
The BTG module is used to ?
Antworten
  • personalize a web applications based on customers
  • business to groups
  • provides a upgraded version of the CMS cockpit
  • add business targets accessible from the backoice

Frage 26

Frage
What ant target should you use to start working on a new B2C implementation ?
Antworten
  • ant installer -r b2c_acc
  • ant extgen
  • ant modulegen
  • ant accelerator

Frage 27

Frage
What Spring context has the larger scope ?
Antworten
  • web context
  • core context
  • shared context
  • international context

Frage 28

Frage
During an Impex import what will happen when the import process can’t find a reference to an item type ?
Antworten
  • import process will fail and move onto the next ile
  • the value line would be ignored
  • the value line would be saved and a new attempt would be made
  • the value line would be saved and attached to an error log entry

Frage 29

Frage
When loading available prices what is the price factory trying to match ?
Antworten
  • customer / customer group
  • product / product group
  • date range if any configured
  • promotion / promotion group

Frage 30

Frage
What is the problem with the following business process action ? 1 package com.hybhub.core.process.action; 2 3 import de.hybris.platform.core.model.order.OrderModel; 4 import de.hybris.platform.orderprocessing.model.OrderProcessModel; 5 import de.hybris.platform.processengine.action. AbstractSimpleDecisionAction; 6 import de.hybris.platform.servicelayer.model.ModelService; 7 import de.hybris.platform.task.RetryLaterException; 8 9 import javax.annotation.Resource; 10 11 12 public class HybhubSimpleAction extends AbstractSimpleDecisionAction< OrderProcessModel> 13 { 14 15 @Resource 16 private ModelService modelService; 17 18 @Override 19 public Transition executeAction(final OrderProcessModel orderProcess) throws RetryLaterException, Exception 20 { 21 OrderModel order = orderProcess.getOrder(); 22 23 if(order!= null){ 24 order.setNet(Boolean.TRUE); 25 modelService.save(order); 26 return Transition.OK; 27 } 28 29 return null; 30 } 31 32 }
Antworten
  • it doesn’t always return a transition
  • it has not setter for the modelService attribute
  • it should implement Action
  • the package is wrong

Frage 31

Frage
What is true about the DefaultCMSComponentController controller ?
Antworten
  • it will inject all attributes into the model
  • it will inject all front-end attributes (non system) into the model
  • it is used by default if no specific controller are implemented
  • it should be avoided

Frage 32

Frage
What is true about the following log extracted from the build process ? [echo] catalog->(validation,commons) 6.0.0.0-SNAPSHOT [p*cib]
Antworten
  • the catalog extension was automatically required
  • the catalog extension has a core module
  • the catalog extension is deprecated
  • the catalog extension is a platform extension

Frage 33

Frage
Choose the correct user rights definition to complete the following import query. $START_USERRIGHTS Type;UID;MemberOfGroups;Password;Target;read;change;create;delete; change_perm UserGroup;employeegroup;; <Choose the right answer to complete this> $END_USERRIGHTS
Antworten
  • ;;;;Media;true+;false;false;false;false
  • ;;;;Media;1;0;0;0;0
  • ;;;;Media;+;-;-;-;
  • ;;;;Media;granted;denied;denied;denied;denied

Frage 34

Frage
Which of the following components are deprecated ?
Antworten
  • cockpit framework
  • Jalo layer
  • task engine
  • service layer

Frage 35

Frage
What is the correct way of configuring a new logger for the package com.hybhub.hybhubaddon ?
Antworten
  • log4j.logger.com.hybhub.hybhubaddon = info
  • log4j.logger.hybhub.name = com.hybhub.hybhubaddon log4j.logger.hybhub.level = info log4j.logger.hybhub.appenderRef.stdout.ref = STDOUT
  • log4j2.logger.hybhub.name = com.hybhub.hybhubaddon log4j2.logger.hybhub.level = info log4j2.logger.hybhub.appenderRef.stdout.ref = STDOUT
  • log4j2.logger.com.hybhub.hybhubaddon = info log4j2.logger.com.hybhub.hybhubaddon = STDOUT

Frage 36

Frage
The OCC webservices are ?
Antworten
  • restful API
  • restless API
  • soap API
  • oAuth API

Frage 37

Frage
What statements are wrong about converters ?
Antworten
  • they all have the same bean parent abstractPopulatingConverter
  • they contain a list of attributes to convert
  • they contain a list a populators to call
  • they are un-aware of the object type they are converting

Frage 38

Frage
What is wrong with the following extensioninfo.xml file ? <extensioninfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="extensioninfo.xsd"> <extension abstractclassprefix="Generated" classprefix=" HybhubFacades" name="hybhubfacades"> <requires-extension name="hybhubfacades"/> <requires-extension name="hybhubcore"/> <coremodule generated="true" manager="de.hybris.platform.jalo .extension.GenericManager" packageroot="com.hybhub. facades"/> </extension> </extensioninfo>
Antworten
  • missing web module declaration
  • missing core module declaration
  • missing hmc module declaration
  • dependency issue

Frage 39

Frage
Is the following dynamic attribute handler correct ? 1 package com.hybhub.core.model.dynamic; 2 3 import de.hybris.platform.core.model.product.ProductModel; 4 import de.hybris.platform.servicelayer.model.attribute. DynamicAttributeHandler; 5 6 public class HybhubDynamicHandler implements DynamicAttributeHandler< String, ProductModel> 7 { 8 9 @Override 10 public String get(ProductModel product) 11 { 12 return product.getCode() + " - " + product.getDescription(); 13 } 14 15 }
Antworten
  • no, it must extends ServiceLayerItems
  • no, it must also implement a setter
  • no, it must be in a different package
  • yes

Frage 40

Frage
What statements are true about collections under item type definitions ?
Antworten
  • a collection is comma-separated list of PKs
  • collections are preferred over relations
  • at runtime collections are loaded into a collection of objects
  • collections can store as many objects as needed

Frage 41

Frage
Which of the following definition is the correct one for unit tests ?
Antworten
  • requires access to the database and need a running SAP Hybris
  • requires access to the database and don’t need a running SAP Hybris
  • does not require access to the database and don’t need a running SAP Hybris
  • require access to the database and starts a transaction for each test

Frage 42

Frage
What is the following Spring configuration doing ? <context:annotation-config/> <context:component-scan base-package="...,..." scope-resolver="..."/>
Antworten
  • add a new XML Spring configuration
  • load all detected components from the given packages
  • create a new bean scope
  • configure a request filter

Frage 43

Frage
When you synchronize a Media object from a Staged to an Online catalog what happens to the media file ?
Antworten
  • the Media file is referenced by the Online and Staged Media
  • the Media file is copied to the Online data folder and referenced by the Online Media
  • the Media file is moved to a shared folder and referenced by both Media
  • the Media file is embedded inside the file attribute and synchronize like all other attributes

Frage 44

Frage
Select the right definition for the facade layer.
Antworten
  • builds a complex object using simple objects and using a step by step approach
  • separates application’s concerns
  • hides the complexities of the system and provides a simplified interface to the client
  • add new functionality to an existing object without altering its structure

Frage 45

Frage
Select the existing Impex header mode.
Antworten
  • INSERTED
  • UPDATE_INSERT
  • REMOVE
  • DELETE

Frage 46

Frage
How could you configure a new hot folder ?
Antworten
  • from the HAC
  • from the HMC
  • from the import cockpit
  • from a Spring config file

Frage 47

Frage
How do you create a new interceptor ?
Antworten
  • declare it along with the item type definition
  • provide an implementation of one of Interceptor interface
  • run a system update
  • add a Spring bean mapping the item type and the Interceptor implementation

Frage 48

Frage
A checkout step has ?
Antworten
  • checkoutGroup reference
  • checkoutStepValidator reference
  • transitions map
  • progressBarId string

Frage 49

Frage
What are are valid legacy cockpit areas ?
Antworten
  • navigation
  • item
  • browser
  • editor

Frage 50

Frage
When running an initialization on one tenant SAP Hybris will ?
Antworten
  • delete all tables
  • delete all known tables
  • delete all known tables starting with the tenant table prefix
  • delete and recreate the database

Frage 51

Frage
When creating a new item how do you generate a new primary key ?
Antworten
  • using java.util.UUID.randomUUID()
  • using the primaryKeyService
  • primary keys creation is automatically handled by the database
  • primary keys creation is automatically handled by the service layer

Frage 52

Frage
How could you declare configure an attribute to be encrypted ?
Antworten
  • <attribute qualifier="sensible" autocreate="true" type="java.lang. String"> 2 <persistence type="property"/> 3 <modifiers encrypted="true"/> 4 </attribute>
  • <attribute qualifier="sensible" autocreate="true" type="encrypted: java.lang.String"> 2 <persistence type="property"/> 3 </attribute>
  • <attribute qualifier="sensible" autocreate="true" type="java.lang. String"> 2 <persistence type="property" encrypted="true"/> 3 </attribute>
  • <attribute qualifier="sensible" autocreate="true" type="java.lang. String"> 2 <modifiers type="property" encrypted="true"/> 3 </attribute>

Frage 53

Frage
Which item types exist ?
Antworten
  • collectiontype
  • enumtype
  • atomictype
  • listtype

Frage 54

Frage
A customer segment could be executed in ?
Antworten
  • optimized processing
  • full processing
  • jalo processing
  • complete processing

Frage 55

Frage
Why a Spring MCV controller needs to return a String ?
Antworten
  • to return it as an HTML page
  • to load a view
  • to load a servlet
  • to load a model

Frage 56

Frage
What features are available through the Order Management Module (formally OMS) ?
Antworten
  • order splitting
  • payment
  • sourcing
  • promotion engine

Frage 57

Frage
Why do you need to define stop words for for your search configuration ?
Antworten
  • to ignore configured words while searching
  • to boost configured words while searching
  • to stop the query after a configured word
  • to split the query in two queries

Frage 58

Frage
What are the two main components of the rule engine ?
Antworten
  • rule processor
  • rule matcher
  • rule executor
  • rule builder

Frage 59

Frage
How could you improve the following code (groovy) ? 1 import de.hybris.platform.processengine.enums.ProcessState 2 3 def businessProcessService = spring.getBean("businessProcessService") 4 def modelService = spring.getBean("modelService") 5 6 def process = businessProcessService.createProcess(UUID.randomUUID(). toString(), "myProcess") 7 modelService.save(process) 8 9 businessProcessService.startProcess(process) 10 11 modelService.refresh(process) 12 if(ProcessState.SUCCEEDED != process.getProcessState()){ 13 businessProcessService.startProcess(process) 14 }
Antworten
  • use the method T startProcess(String arg0, String arg1); to create a process
  • delete the second call trying to start the business process
  • delete the useless call to save
  • generate a unique identifier for the business process

Frage 60

Frage
What statements are true about the following table (SQL DDL for HSQL) ? 1 CREATE CACHED TABLE b2bbudgetslp 2 ( 3 ITEMPK BIGINT, 4 ITEMTYPEPK BIGINT, 5 LANGPK BIGINT, 6 p_name NVARCHAR(255), 7 PRIMARY KEY (ITEMPK, LANGPK) 8 );
Antworten
  • table prefix is b2b
  • the item b2bbudgets has only one attribute
  • contains localized attributes for b2bbudgets item
  • it has 4 primary keys

Frage 61

Frage
Why would you use classification ?
Antworten
  • to optimize Apache SOLR requests
  • to have dynamic product features
  • to speed up search
  • to unify product and category attributes

Frage 62

Frage
Which facet search configuration attributes give you the ability to redirect a user for a specific search request ?
Antworten
  • stopwords
  • keywords
  • redirectwords
  • matchwords

Frage 63

Frage
What statements are wrong about extensions ?
Antworten
  • they have to be inside the bin folder
  • they need to have a dependency to yempty
  • they can written using Groovy
  • they are always automatically loaded

Frage 64

Frage
What statements are true about the SAP Hybris server ?
Antworten
  • based on Apache Tomcat
  • good for production
  • compatible with EJB
  • can be started from the command line

Frage 65

Frage
When you run an impex import query from the HAC with the default configuration what statements are true ?
Antworten
  • you are running distributed impexes
  • you are using the service layer
  • you are using the jalo layer
  • import relaxed is activated

Frage 66

Frage
Which of the following would be good uses for a SAP Hybris CronJob ?
Antworten
  • synchronizing the stock level with an external warehouse once per day
  • notify the System Administrator when the peak load on the server passes a critical point
  • perform an inventory once per week at midnight
  • any task that isn’t database related, cronjobs are designed to perform operating System tasks, not database system tasks

Frage 67

Frage
Content slots for page template are ?
Antworten
  • place holder for CMS component
  • place holder for JSP tags
  • shared across all pages using the page template
  • configured on the JSP view page

Frage 68

Frage
Which bean would be loaded from getBean(“bean”) ? 1 <bean name="stringBean" class="java.lang.String" > 2 <constructor-arg><value>my String Name</value></constructor-arg> 3 </bean> 4 5 <bean id="stringBean" class="java.lang.String" > 6 <constructor-arg><value>my String ID</value></constructor-arg> 7 </bean> 8 9 <alias name="stringBean" alias="bean" />
Antworten
  • my String Name
  • my String ID
  • a new String
  • none

Frage 69

Frage
Is it possible to add new enumeration values by runtime ?
Antworten
  • no
  • yes if you are using JRebel
  • yes if the enumeration is dynamic
  • yes if the enumeration is a subtype of the HybrisEnumValue class

Frage 70

Frage
What a POS is ?
Antworten
  • a warehouse
  • a physical store
  • a web store
  • a geolocalization service

Frage 71

Frage
What statements are wrong about Backoffice widgets ?
Antworten
  • widget can extend each other
  • widget ids must be unique or the compilation fails
  • views are implemented using JSP tags
  • widgets can have parameters

Frage 72

Frage
When writing unit tests how should you simulate pojo dependencies to external services, facades… ?
Antworten
  • the test class should extend HybrisUnitTests
  • the test class should extend ServicelayerTest
  • use Mockito to stub dependencies
  • wrap all tests inside a transaction

Frage 73

Frage
What is the notification framework used for ?
Antworten
  • notify cockpit users
  • notify customers
  • notify administrators
  • facade for the event service

Frage 74

Frage
What statements are true about stock levels ?
Antworten
  • the stock service can check stock levels across multiple warehouses
  • a single warehouse can contain multiple stock levels for the same product
  • a base store is attached to a single warehouse
  • a product can be sold even if it has no stock

Frage 75

Frage
The CS cockpit was designed for ?
Antworten
  • customer segment management
  • order life cycles management
  • css rendering management
  • customer security management

Frage 76

Frage
SAP Hybris semi-session failover mechanism allows to ?
Antworten
  • automatically redirected users to the login page of a new node when on node goes down
  • to transfer all sessions of the failing node to other available nodes without loss of data
  • to always have all sessions replicated on every nodes
  • to automatically redirect users to a temporary page

Frage 77

Frage
Choose the flexible query which has generated the following SQL query ? SELECT item_t0.PK, item_t1.p_code FROM products item_t0 LEFT JOIN medias item_t1 ON item_t1.PK = item_t0.p_logo WHERE ((item_t0.TypePkString=? AND (item_t1.TypePkString IS NULL OR ( item_t1.TypePkString=? ) )))
Antworten
  • select {prd.pk}, {md.code} from {Product as prd left join Media as md on {md.pk} = {prd.logo}}
  • select {prd.pk}, {md.code} from {Product! as prd join Media! as md on {md.pk} = {prd}}
  • select {prd.pk}, {md.code} from {Product! as prd left join Media! as md on {md.pk} = {prd.logo}}
  • select {md.code} from {Product as prd left join Media! as md on {md.pk} = {prd.logo}}

Frage 78

Frage
What service should you use to save an model ?
Antworten
  • persistenceService
  • jaloService
  • serviceLayerService
  • modelService

Frage 79

Frage
If you are testing a Flexible Search Restriction, the user you are running the query as ?
Antworten
  • should be admin
  • should be flexiblesearchquery
  • should be a member of the searchquery group
  • should not be a member of the admin group

Frage 80

Frage
By default when you load an item from the service what is fetched inside the object ?
Antworten
  • nothing all attributes are lazy loaded
  • only literal values
  • only references values
  • all
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Kleines Latein-Quiz
anna.grillborzer0656
Kraftwerke und Stromsicherheit
Peter Kasebacher
Qualitative und Quantitative Forschungsmethoden
Clarissa Müller-Stengel
WT1 Uni Due
Awash Kaul
Vetie: Virofragen 2015
Johanna Tr
Vetie Mibi Klausur 2018
Jessica Nachtwey
Vetie - Klausur Tierhaltung und Tierhygiene 2018
E. König
Vetie Pharma Datum unbekannt Karteikarten
Alina Stumpf
Vetie Repro 2018
Johanna Müller
Vetie Tierseuchen 2018
Johanna Müller
Bildungspsychologie und Evaluation
Daniel Martinovic