Test
MOCK 2 - HYBRIS
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (80)
1What describe best the JALO layer ?
- Ameans Jakarta Logic
- Bmix data and business logic
- Cit’s a piece of the service layer
- DJALO classes are generated during runtime
2For 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- Aadd a macro for catalog version
- Bchange the attribute header INSERT_UPDATE to INSERT_UNIQUE
- Cmark code with [unique=true]
- Duse the type Product instead of ApparelProduct
3Choose the correct file to localize HMC entries in English (extension’s name is hybhubcore)?
- Ahybhubcore/resources/localization/hybhubcore-locales_en.properties
- Bhybhubcore/resources/localization/hmc-locales_en.properties
- Chybhubcore/hmc/localization/hybhubcore-locales_en.properties
- Dhybhubcore/resources/localization/english/hybhubcore.properties
4Select the right definition for the tenant concept ?
- Aa single SAP Hybris installation with multiple localextensions.xml
- Ba clustered SAP Hybris installation with one database
- Ca single SAP Hybris installation with distinct sets of data
- Da single SAP Hybris installation with a speciic database for each store
5When do you use cluster aware events ?
- Awhen you run a cluster all events need to be cluster aware
- Bsince SAP Hybris V6 all events are cluster aware
- Cwhen you need to run an event from a specific node
- Dwhen you need to broadcast an event to all nodes
6Why does the rule engine (used by the promotion engine) include a versioning and archiving mechanism ?
- Ato keep an history of all promotions that ever existed on the system
- Bto have a consistent representation of the applied rules when promotions were applied
- Cto be able to work on different time zone
- Dall item types in SAP Hybris are archived and versioned
7What 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>- Amissing a Jalo class definition
- Ban index needs to be on at least two attributes
- CGenericItem is not a valid item
- Dmissing deployment data
8Out of the box, what CMS items are used to build the top navigation menu ?
- ANavigationBarComponent
- BTopMenuNavigationComponent
- CCMSNavigationNode
- DCMSLinkComponent
9What steps you need to have to fulfill in order to create a new cronjob ?
- Acreate a new cron job expression from Spring
- Bimplement a job
- Ccreate a new item type extending CronJob
- Dadd the new cronjob in your local.properties
10What statements are false about catalogs synchronization ?
- Aonly existing items can be updated
- Bno items can be deleted
- Call item types are being synchronized
- Dthe same catalog can a target and a source
11Cached data are removed from the cache when ?
- Athe cache is full
- Ba cache invalidation notification is received from another node
- Can item is created
- Dan item is removed
12What statements are true about classification ?
- Aclassification is horizontal unlike categorization which is vertical
- Ba product can be classified by only one classification attribute
- Cclassification is not being used by SAP Hybris because its model type definition is flexible
- Dclassification is not compatible with SOLR
13What can you do from an addon ?
- Aadd front end files (JSP, HTML, CSS and Javascript)
- Bgenerate or customize the data model
- Cdeclare new Spring Services or Facades or customize existing
- Ddeclare new Controllers or customize existing
14What configuration file has the highest priority ?
- Aproject.properties from the platform extension
- Badvanced.properties from the platform extension
- Clocal.properties from the config extension
- Dlocal.properties from the custom extension
15When 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>- AA.java
- BGeneratedA.java
- CAJalo.java
- DAModel.java
16When configuring the Apache SOLR indexer mode what does DIRECT means ?
- Aaccess the embedded Apache SOLR server
- Bsend request to Apache SOLR using its REST API
- Call index operations would be made directly on the index
- Dall index operations would be made on a temporary index before indexes are switch
17Is it possible for two tenants to use different extensions ?
- Ayes using two different localextensions.xml, one for each tenant
- Byes using allowed.extensions and forbidden.extensions inside a tenant specific configuration file
- Cyes using .allowed.extensions and .forbidden.extensions inside your configuration
- Dno, SAP Hybris is not compatible with this
18How do you install a new addon ?
- Aadd the addon inside your localextensions.xml
- Badd the addon under external-dependencies.xml
- Cuse the ant target addoninstall
- Duse the ant target syncaddons
19Is 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%' }} )- Ano
- Byes if we delete :o
- Cyes if we delete the whole where statement
- Dyes
20Out of the box how can you access the assisted service module functionalities ?
- Afrom the targeted storefront add a request parameter asm equal true
- Bfrom the backoice open the asm perspective
- Cgo to the /asmcockpit
- Dgo to the /cscockpit
21How can you initialize SAP Hybris ?
- Ausing ant initialize
- Bfrom the HAC
- Cfrom the HMC
- Dfrom the backoffice
22What is highest B2B organization block ?
- Acompany
- Bunit
- Cdivision
- Dregion
23In order to force a product to be listed on top of a give category, what out of the box features should you use ?
- Aboost rules
- Bhero rules
- Chero products
- Dtop products
24What 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.- Acapture
- Bstand alone refund
- Ccapture.
- Drefund
25The BTG module is used to ?
- Apersonalize a web applications based on customers
- Bbusiness to groups
- Cprovides a upgraded version of the CMS cockpit
- Dadd business targets accessible from the backoice
26What ant target should you use to start working on a new B2C implementation ?
- Aant installer -r b2c_acc
- Bant extgen
- Cant modulegen
- Dant accelerator
27What Spring context has the larger scope ?
- Aweb context
- Bcore context
- Cshared context
- Dinternational context
28During an Impex import what will happen when the import process can’t find a reference to an item type ?
- Aimport process will fail and move onto the next ile
- Bthe value line would be ignored
- Cthe value line would be saved and a new attempt would be made
- Dthe value line would be saved and attached to an error log entry
29When loading available prices what is the price factory trying to match ?
- Acustomer / customer group
- Bproduct / product group
- Cdate range if any configured
- Dpromotion / promotion group
30What 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 }- Ait doesn’t always return a transition
- Bit has not setter for the modelService attribute
- Cit should implement Action
- Dthe package is wrong
31What is true about the DefaultCMSComponentController controller ?
- Ait will inject all attributes into the model
- Bit will inject all front-end attributes (non system) into the model
- Cit is used by default if no specific controller are implemented
- Dit should be avoided
32What is true about the following log extracted from the build process ?
[echo] catalog->(validation,commons) 6.0.0.0-SNAPSHOT [p*cib]- Athe catalog extension was automatically required
- Bthe catalog extension has a core module
- Cthe catalog extension is deprecated
- Dthe catalog extension is a platform extension
33Choose 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- A;;;;Media;true+;false;false;false;false
- B;;;;Media;1;0;0;0;0
- C;;;;Media;+;-;-;-;
- D;;;;Media;granted;denied;denied;denied;denied
34Which of the following components are deprecated ?
- Acockpit framework
- BJalo layer
- Ctask engine
- Dservice layer
35What is the correct way of configuring a new logger for the package com.hybhub.hybhubaddon ?
- Alog4j.logger.com.hybhub.hybhubaddon = info
- Blog4j.logger.hybhub.name = com.hybhub.hybhubaddon
log4j.logger.hybhub.level = info
log4j.logger.hybhub.appenderRef.stdout.ref = STDOUT - Clog4j2.logger.hybhub.name = com.hybhub.hybhubaddon
log4j2.logger.hybhub.level = info
log4j2.logger.hybhub.appenderRef.stdout.ref = STDOUT - Dlog4j2.logger.com.hybhub.hybhubaddon = info
log4j2.logger.com.hybhub.hybhubaddon = STDOUT
36The OCC webservices are ?
- Arestful API
- Brestless API
- Csoap API
- DoAuth API
37What statements are wrong about converters ?
- Athey all have the same bean parent abstractPopulatingConverter
- Bthey contain a list of attributes to convert
- Cthey contain a list a populators to call
- Dthey are un-aware of the object type they are converting
38What 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>- Amissing web module declaration
- Bmissing core module declaration
- Cmissing hmc module declaration
- Ddependency issue
39Is 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 }- Ano, it must extends ServiceLayerItems
- Bno, it must also implement a setter
- Cno, it must be in a different package
- Dyes
40What statements are true about collections under item type definitions ?
- Aa collection is comma-separated list of PKs
- Bcollections are preferred over relations
- Cat runtime collections are loaded into a collection of objects
- Dcollections can store as many objects as needed
41Which of the following definition is the correct one for unit tests ?
- Arequires access to the database and need a running SAP Hybris
- Brequires access to the database and don’t need a running SAP Hybris
- Cdoes not require access to the database and don’t need a running SAP Hybris
- Drequire access to the database and starts a transaction for each test
42What is the following Spring configuration doing ?
<context:annotation-config/>
<context:component-scan
base-package="...,..."
scope-resolver="..."/>- Aadd a new XML Spring configuration
- Bload all detected components from the given packages
- Ccreate a new bean scope
- Dconfigure a request filter
43When you synchronize a Media object from a Staged to an Online catalog what happens to the media file ?
- Athe Media file is referenced by the Online and Staged Media
- Bthe Media file is copied to the Online data folder and referenced by the Online Media
- Cthe Media file is moved to a shared folder and referenced by both Media
- Dthe Media file is embedded inside the file attribute and synchronize like all other attributes
44Select the right definition for the facade layer.
- Abuilds a complex object using simple objects and using a step by step approach
- Bseparates application’s concerns
- Chides the complexities of the system and provides a simplified interface to the client
- Dadd new functionality to an existing object without altering its structure
45Select the existing Impex header mode.
- AINSERTED
- BUPDATE_INSERT
- CREMOVE
- DDELETE
46How could you configure a new hot folder ?
- Afrom the HAC
- Bfrom the HMC
- Cfrom the import cockpit
- Dfrom a Spring config file
47How do you create a new interceptor ?
- Adeclare it along with the item type definition
- Bprovide an implementation of one of Interceptor interface
- Crun a system update
- Dadd a Spring bean mapping the item type and the Interceptor implementation
48A checkout step has ?
- AcheckoutGroup reference
- BcheckoutStepValidator reference
- Ctransitions map
- DprogressBarId string
49What are are valid legacy cockpit areas ?
- Anavigation
- Bitem
- Cbrowser
- Deditor
50When running an initialization on one tenant SAP Hybris will ?
- Adelete all tables
- Bdelete all known tables
- Cdelete all known tables starting with the tenant table prefix
- Ddelete and recreate the database
51When creating a new item how do you generate a new primary key ?
- Ausing java.util.UUID.randomUUID()
- Busing the primaryKeyService
- Cprimary keys creation is automatically handled by the database
- Dprimary keys creation is automatically handled by the service layer
52How could you declare configure an attribute to be encrypted ?
- A<attribute qualifier="sensible" autocreate="true" type="java.lang. String">
2 <persistence type="property"/>
3 <modifiers encrypted="true"/> 4 </attribute> - B<attribute qualifier="sensible" autocreate="true" type="encrypted: java.lang.String">
2 <persistence type="property"/>
3 </attribute> - C<attribute qualifier="sensible" autocreate="true" type="java.lang. String">
2 <persistence type="property" encrypted="true"/>
3 </attribute> - D<attribute qualifier="sensible" autocreate="true" type="java.lang. String">
2 <modifiers type="property" encrypted="true"/>
3 </attribute>
- A<attribute qualifier="sensible" autocreate="true" type="java.lang. String">
53Which item types exist ?
- Acollectiontype
- Benumtype
- Catomictype
- Dlisttype
54A customer segment could be executed in ?
- Aoptimized processing
- Bfull processing
- Cjalo processing
- Dcomplete processing
55Why a Spring MCV controller needs to return a String ?
- Ato return it as an HTML page
- Bto load a view
- Cto load a servlet
- Dto load a model
56What features are available through the Order Management Module (formally OMS) ?
- Aorder splitting
- Bpayment
- Csourcing
- Dpromotion engine
57Why do you need to define stop words for for your search configuration ?
- Ato ignore configured words while searching
- Bto boost configured words while searching
- Cto stop the query after a configured word
- Dto split the query in two queries
58What are the two main components of the rule engine ?
- Arule processor
- Brule matcher
- Crule executor
- Drule builder
59How 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 }- Ause the method T startProcess(String arg0, String arg1); to create a process
- Bdelete the second call trying to start the business process
- Cdelete the useless call to save
- Dgenerate a unique identifier for the business process
60What 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 );
- Atable prefix is b2b
- Bthe item b2bbudgets has only one attribute
- Ccontains localized attributes for b2bbudgets item
- Dit has 4 primary keys
61Why would you use classification ?
- Ato optimize Apache SOLR requests
- Bto have dynamic product features
- Cto speed up search
- Dto unify product and category attributes
62Which facet search configuration attributes give you the ability to redirect a user for a specific search request ?
- Astopwords
- Bkeywords
- Credirectwords
- Dmatchwords
63What statements are wrong about extensions ?
- Athey have to be inside the bin folder
- Bthey need to have a dependency to yempty
- Cthey can written using Groovy
- Dthey are always automatically loaded
64What statements are true about the SAP Hybris server ?
- Abased on Apache Tomcat
- Bgood for production
- Ccompatible with EJB
- Dcan be started from the command line
65When you run an impex import query from the HAC with the default configuration what statements are true ?
- Ayou are running distributed impexes
- Byou are using the service layer
- Cyou are using the jalo layer
- Dimport relaxed is activated
66Which of the following would be good uses for a SAP Hybris CronJob ?
- Asynchronizing the stock level with an external warehouse once per day
- Bnotify the System Administrator when the peak load on the server passes a critical point
- Cperform an inventory once per week at midnight
- Dany task that isn’t database related, cronjobs are designed to perform operating System tasks, not database system tasks
67Content slots for page template are ?
- Aplace holder for CMS component
- Bplace holder for JSP tags
- Cshared across all pages using the page template
- Dconfigured on the JSP view page
68Which 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" />- Amy String Name
- Bmy String ID
- Ca new String
- Dnone
69Is it possible to add new enumeration values by runtime ?
- Ano
- Byes if you are using JRebel
- Cyes if the enumeration is dynamic
- Dyes if the enumeration is a subtype of the HybrisEnumValue class
70What a POS is ?
- Aa warehouse
- Ba physical store
- Ca web store
- Da geolocalization service
71What statements are wrong about Backoffice widgets ?
- Awidget can extend each other
- Bwidget ids must be unique or the compilation fails
- Cviews are implemented using JSP tags
- Dwidgets can have parameters
72When writing unit tests how should you simulate pojo dependencies to external services, facades… ?
- Athe test class should extend HybrisUnitTests
- Bthe test class should extend ServicelayerTest
- Cuse Mockito to stub dependencies
- Dwrap all tests inside a transaction
73What is the notification framework used for ?
- Anotify cockpit users
- Bnotify customers
- Cnotify administrators
- Dfacade for the event service
74What statements are true about stock levels ?
- Athe stock service can check stock levels across multiple warehouses
- Ba single warehouse can contain multiple stock levels for the same product
- Ca base store is attached to a single warehouse
- Da product can be sold even if it has no stock
75The CS cockpit was designed for ?
- Acustomer segment management
- Border life cycles management
- Ccss rendering management
- Dcustomer security management
76SAP Hybris semi-session failover mechanism allows to ?
- Aautomatically redirected users to the login page of a new node when on node goes down
- Bto transfer all sessions of the failing node to other available nodes without loss of data
- Cto always have all sessions replicated on every nodes
- Dto automatically redirect users to a temporary page
77Choose 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=? ) )))- Aselect {prd.pk}, {md.code} from {Product as prd left join Media as md on {md.pk} = {prd.logo}}
- Bselect {prd.pk}, {md.code} from {Product! as prd join Media! as md on {md.pk} = {prd}}
- Cselect {prd.pk}, {md.code} from {Product! as prd left join Media! as md on {md.pk} = {prd.logo}}
- Dselect {md.code} from {Product as prd left join Media! as md on {md.pk} = {prd.logo}}
78What service should you use to save an model ?
- ApersistenceService
- BjaloService
- CserviceLayerService
- DmodelService
79If you are testing a Flexible Search Restriction, the user you are running the query as ?
- Ashould be admin
- Bshould be flexiblesearchquery
- Cshould be a member of the searchquery group
- Dshould not be a member of the admin group
80By default when you load an item from the service what is fetched inside the object ?
- Anothing all attributes are lazy loaded
- Bonly literal values
- Conly references values
- Dall
Información
- Descripción
- Para la certificación de Hybris
- Autor
- Ferrar Carter
- Idioma
- English
- Visitas
- 4.544
- Etiquetas
- Valoración
- 5,0 de 5 · 1 valoración Valora este test