MOCK 2 - HYBRIS

Descripción

Para la certificación de Hybris
Ferrar Carter
Test por Ferrar Carter, actualizado hace más de 1 año
Ferrar Carter
Creado por Ferrar Carter hace más de 7 años
4374
4

Resumen del Recurso

Pregunta 1

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

Pregunta 2

Pregunta
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
Respuesta
  • 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

Pregunta 3

Pregunta
Choose the correct file to localize HMC entries in English (extension’s name is hybhubcore)?
Respuesta
  • 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

Pregunta 4

Pregunta
Select the right definition for the tenant concept ?
Respuesta
  • 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

Pregunta 5

Pregunta
When do you use cluster aware events ?
Respuesta
  • 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

Pregunta 6

Pregunta
Why does the rule engine (used by the promotion engine) include a versioning and archiving mechanism ?
Respuesta
  • 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

Pregunta 7

Pregunta
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>
Respuesta
  • missing a Jalo class definition
  • an index needs to be on at least two attributes
  • GenericItem is not a valid item
  • missing deployment data

Pregunta 8

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

Pregunta 9

Pregunta
What steps you need to have to fulfill in order to create a new cronjob ?
Respuesta
  • 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

Pregunta 10

Pregunta
What statements are false about catalogs synchronization ?
Respuesta
  • 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

Pregunta 11

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

Pregunta 12

Pregunta
What statements are true about classification ?
Respuesta
  • 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

Pregunta 13

Pregunta
What can you do from an addon ?
Respuesta
  • 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

Pregunta 14

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

Pregunta 15

Pregunta
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>
Respuesta
  • A.java
  • GeneratedA.java
  • AJalo.java
  • AModel.java

Pregunta 16

Pregunta
When configuring the Apache SOLR indexer mode what does DIRECT means ?
Respuesta
  • 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

Pregunta 17

Pregunta
Is it possible for two tenants to use different extensions ?
Respuesta
  • 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

Pregunta 18

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

Pregunta 19

Pregunta
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%' }} )
Respuesta
  • no
  • yes if we delete :o
  • yes if we delete the whole where statement
  • yes

Pregunta 20

Pregunta
Out of the box how can you access the assisted service module functionalities ?
Respuesta
  • 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

Pregunta 21

Pregunta
How can you initialize SAP Hybris ?
Respuesta
  • using ant initialize
  • from the HAC
  • from the HMC
  • from the backoffice

Pregunta 22

Pregunta
What is highest B2B organization block ?
Respuesta
  • company
  • unit
  • division
  • region

Pregunta 23

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

Pregunta 24

Pregunta
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.
Respuesta
  • capture
  • stand alone refund
  • capture.
  • refund

Pregunta 25

Pregunta
The BTG module is used to ?
Respuesta
  • 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

Pregunta 26

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

Pregunta 27

Pregunta
What Spring context has the larger scope ?
Respuesta
  • web context
  • core context
  • shared context
  • international context

Pregunta 28

Pregunta
During an Impex import what will happen when the import process can’t find a reference to an item type ?
Respuesta
  • 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

Pregunta 29

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

Pregunta 30

Pregunta
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 }
Respuesta
  • it doesn’t always return a transition
  • it has not setter for the modelService attribute
  • it should implement Action
  • the package is wrong

Pregunta 31

Pregunta
What is true about the DefaultCMSComponentController controller ?
Respuesta
  • 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

Pregunta 32

Pregunta
What is true about the following log extracted from the build process ? [echo] catalog->(validation,commons) 6.0.0.0-SNAPSHOT [p*cib]
Respuesta
  • 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

Pregunta 33

Pregunta
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
Respuesta
  • ;;;;Media;true+;false;false;false;false
  • ;;;;Media;1;0;0;0;0
  • ;;;;Media;+;-;-;-;
  • ;;;;Media;granted;denied;denied;denied;denied

Pregunta 34

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

Pregunta 35

Pregunta
What is the correct way of configuring a new logger for the package com.hybhub.hybhubaddon ?
Respuesta
  • 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

Pregunta 36

Pregunta
The OCC webservices are ?
Respuesta
  • restful API
  • restless API
  • soap API
  • oAuth API

Pregunta 37

Pregunta
What statements are wrong about converters ?
Respuesta
  • 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

Pregunta 38

Pregunta
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>
Respuesta
  • missing web module declaration
  • missing core module declaration
  • missing hmc module declaration
  • dependency issue

Pregunta 39

Pregunta
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 }
Respuesta
  • no, it must extends ServiceLayerItems
  • no, it must also implement a setter
  • no, it must be in a different package
  • yes

Pregunta 40

Pregunta
What statements are true about collections under item type definitions ?
Respuesta
  • 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

Pregunta 41

Pregunta
Which of the following definition is the correct one for unit tests ?
Respuesta
  • 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

Pregunta 42

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

Pregunta 43

Pregunta
When you synchronize a Media object from a Staged to an Online catalog what happens to the media file ?
Respuesta
  • 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

Pregunta 44

Pregunta
Select the right definition for the facade layer.
Respuesta
  • 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

Pregunta 45

Pregunta
Select the existing Impex header mode.
Respuesta
  • INSERTED
  • UPDATE_INSERT
  • REMOVE
  • DELETE

Pregunta 46

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

Pregunta 47

Pregunta
How do you create a new interceptor ?
Respuesta
  • 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

Pregunta 48

Pregunta
A checkout step has ?
Respuesta
  • checkoutGroup reference
  • checkoutStepValidator reference
  • transitions map
  • progressBarId string

Pregunta 49

Pregunta
What are are valid legacy cockpit areas ?
Respuesta
  • navigation
  • item
  • browser
  • editor

Pregunta 50

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

Pregunta 51

Pregunta
When creating a new item how do you generate a new primary key ?
Respuesta
  • 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

Pregunta 52

Pregunta
How could you declare configure an attribute to be encrypted ?
Respuesta
  • <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>

Pregunta 53

Pregunta
Which item types exist ?
Respuesta
  • collectiontype
  • enumtype
  • atomictype
  • listtype

Pregunta 54

Pregunta
A customer segment could be executed in ?
Respuesta
  • optimized processing
  • full processing
  • jalo processing
  • complete processing

Pregunta 55

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

Pregunta 56

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

Pregunta 57

Pregunta
Why do you need to define stop words for for your search configuration ?
Respuesta
  • 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

Pregunta 58

Pregunta
What are the two main components of the rule engine ?
Respuesta
  • rule processor
  • rule matcher
  • rule executor
  • rule builder

Pregunta 59

Pregunta
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 }
Respuesta
  • 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

Pregunta 60

Pregunta
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 );
Respuesta
  • table prefix is b2b
  • the item b2bbudgets has only one attribute
  • contains localized attributes for b2bbudgets item
  • it has 4 primary keys

Pregunta 61

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

Pregunta 62

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

Pregunta 63

Pregunta
What statements are wrong about extensions ?
Respuesta
  • 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

Pregunta 64

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

Pregunta 65

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

Pregunta 66

Pregunta
Which of the following would be good uses for a SAP Hybris CronJob ?
Respuesta
  • 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

Pregunta 67

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

Pregunta 68

Pregunta
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" />
Respuesta
  • my String Name
  • my String ID
  • a new String
  • none

Pregunta 69

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

Pregunta 70

Pregunta
What a POS is ?
Respuesta
  • a warehouse
  • a physical store
  • a web store
  • a geolocalization service

Pregunta 71

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

Pregunta 72

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

Pregunta 73

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

Pregunta 74

Pregunta
What statements are true about stock levels ?
Respuesta
  • 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

Pregunta 75

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

Pregunta 76

Pregunta
SAP Hybris semi-session failover mechanism allows to ?
Respuesta
  • 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

Pregunta 77

Pregunta
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=? ) )))
Respuesta
  • 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}}

Pregunta 78

Pregunta
What service should you use to save an model ?
Respuesta
  • persistenceService
  • jaloService
  • serviceLayerService
  • modelService

Pregunta 79

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

Pregunta 80

Pregunta
By default when you load an item from the service what is fetched inside the object ?
Respuesta
  • nothing all attributes are lazy loaded
  • only literal values
  • only references values
  • all
Mostrar resumen completo Ocultar resumen completo

Similar

Test Asociado al Reading "Social Network"
Diego Santos
Aparato DIGESTIVO
JL Cadenas
Integrales Indefinidas
Rupert012
Linea del tiempo Ciencia
erick romero
TO GET
Nati Lu
"Formas de integrar TIC en un aula de clases"
Diana Peñailillo
Determinantes
Marina González
Declinaciones del Latín
Licha Eliza
Sistemas Jurídicos
Efrain Tlahque
ATMÓSFERA
Ulises Yo
ESPAÑA FÍSICA: TERMOS
Nuria Prado Álvarez