H1pr2

Create an engaging and vibrant illustration that depicts a person taking a quiz on a computer, surrounded by SAP Hybris symbols and programming elements in a tech-inspired environment.

Master Your SAP Hybris Knowledge

Test your understanding of SAP Hybris with our comprehensive quiz designed for developers, administrators, and anyone interested in enhancing their skills. This quiz consists of 80 questions covering various aspects of SAP Hybris, ensuring you have a well-rounded understanding of the platform.

Features of the quiz:

  • 80 unique questions
  • Multiple choice and checkbox format
  • Immediate feedback on your answers
80 Questions20 MinutesCreated by CodingFalcon152
What assessments are correct about modules and extensions?
1. A module is a synonym of template
2. An extension is never used alone
3. A module includes a set of functionalities fulilled by one or more extensions
4. An extension holds source code and coniguration iles
What is a saved query ??
1. A query that has been cached by the service layer
2. A way of reusing a query from the lexible search service
3. A lexible search query saved inside the SavedQuery item type and reusable from the HMC
4. There is no such query
Why do you need to execute setantenv.sh or setantenv.bat before calling the build platform ?
1. To preload ant classes
2. To conigure your PLATFORM_HOME environment variable
3. If you already have ant installed you do need to call this script
4. TO conigure ant home and opts environment variable
Choose the correct deinition for the bean scope singleton
1. One shared instance, which will be returned by all calls to getBean with the given id
2. One shared instance per thread, which will be returned by all calls to getBean with the given id
3. Independent instance resulting from each call to getBean
4. One shared instance per tenant, which will be returned by all calls to getBean with the given id
What is the “batch=true” Impex header modiier ?
1. Creates an individual import context for each value line
2. Allows modifying more than one item for a combination of all unique attributes
3. Inserts line by batches, default batch size is 20
4. There is no such header modiier
What are the steps in order to create a backoice widget ?
1. Create a widget view
2. Create a widget model hook
3. Create a widget deinition
4. Execute ant widgetGen
What is correct definition of the LTU eviction strategy ?
1. The oldest element would be deleted first
2. The youngest element would be deleted first
3. The most unused element would be deleted first
4. This is not a valid eviction strategy
Which of the following statements are not true regarding the use of inheritance in SAP Hybris Item type definitions ?
1. All new item types must extend Object
2. All new item types must be declared within the Core extension
3. You can extend another item type only if it has been deined within the same extension
4. Item types are not compatible with inheritance
Which one of the following design patterns has this as its primary goal ; Provides a single, simplified interface to a complex system of mutually dependent interacting objects ?
1. Strategy
2. Model View Controller
3. Service Layer
4. Facade
If you are performing a flexible search query as the user admin* which of the following is true ?*
1. All restrictions on the search are ignored
2. You cannot perform a lexible search being admin
3. You will only see in the result for the admin catalog
4. At least one restriction must be conigured or no search will be performed
When executing an Impex import, which of the following is true ?
1. You can only import one item type per Impex file
2. Each line under header is a potential value line
3. You need to specify the location of the CSV value lines file
4. If you don’t specify a header the Impex framework will find a matching item type
OAUTH2 is
1. A library built by SAP Hybris to handle authentication
2. A library built by Spring to handle authentication
3. An application protocol like HTTP but for authorization
4. An authorization protocol
To load a localized resource bundle, what service should you use ?
1. L10NService
2. I18NService
3. CommonI18NService
4. CommerceCommonI18NService
How can you activate the cluster mode ?
1. Cluster mode is on by default
2. Cluster mode is always on
3. Configure clustermode
4. Configure clustering
What are the logging framework shipped with Hybris ?
1. LOG4J
2. LOG4J2
3. LOG4J3
4. SLF4J
What happen when you run the following Impex script when the currency doesn’t exist yet ?
a UPDATE Currency ; isocode [ unique=true ] ; conversion ; d I g I t s ; symbol
b ;GBP; 1 ; 2 ;£
1. The import fails, log an error and move on to the next file
2. The import logs a warning and continue to resolve the remaining value lines
3. The import logs a warning, creates a temporary file, and try to import it later on
4. The import ignores non matching value lines when doing only UPDATE
Why is it considered bad practice to call directly CartService.getSessionCart().getEntries().isEmpty() to test if a customer already has a cart ?
1. This will create a cart if none is yet existing and the cart creation is expensive
2. The customerCartService wrapper is preferred to the raw cart service
3. getSessionCart() is deprecated, use getInMemoryCart() instead
4. getEntries() could be null
What is the correct definition of the Spring MVC dispatcher servlet ?
1. Receives incoming API requests and dispatch them to the right extension
2. Process all incoming requests made to the root path
3. Servlet responsible to find a matching controller and view to generate a response
4. Servlet responsible to load data from the database, load the JSP view and delegate the request handling to a matching controller
What template do you use do create a new cockpit ?
1. ycockpit
2. cockpit
3. ybackoice
4. backoice
Which of the following cockpit import by convention files have a correct path and name ?
1. cockpitextension/resources/cockpitextensionadmin/cscockpit/all/listViewContentBrowser_CatalogVersion.xml
2. cockpitextension/resources/cockpitextension/cscockpit/cockpitgroup/listViewContentBrowser_CatalogVersion.xml
3. cockpitextension/resources/cockpitextensionadmin/cscockpit/cockpitgroup/listViewContentBrowser.xml
4. cockpitextension/resources/cockpitextension-config/cscockpit/cockpitgroup/listViewContentBrowser_CatalogVersion.xml
Which methods are valid to create and save a new product item from the service layer ?
1. 1 ModelService modelService
2. 1 ModelService modelService
3. 1 ModelService modelService
What is the correct deinition of the ant target updatesystem ?
1.type system definitions are modified to match the new type system definition in the items.xml files, the update mechanism makes sure that all data that existed in the system before the update is still accessible after the update
2.type system definitions are recreated to match the new type system definition in the items.xml files, the update mechanism makes sure that all data that existed in the system before the update is still accessible after the update
3.type system definitions are modified to match the new type system definition in the items.xml files, the update mechanism makes sure that all data that existed in the system are replaced by new data
4.type system definitions are modified to match the new type system definition in the spring-items.xml files,the update mechanism makes sure that all data that existed in the system before the update is still accessible after the update
How many currency items would be inserted from the following impex query, assuming they don’t exist in
2 ;DKK; 1 ; 2 ;DKK
3
4 INSERT Currency ; isocode [ unique=true ] ; conversion ; d I g I t s ; symbol
5 ;DKK; 7 ; 2 ;DKK
6
7 INSERT_UPDATE Currency ; isocode [ unique=true ] ; conversion ; d I g I t s
8 ;VND; 7 ; 2 ;VND
1. none
2. one
3. two
4. three
Which of the following application contexts are valid ?
1. Tenant service application context
2. Tenant core application context
3. Global web application context
4. Hac web application context
What does the ant target customize do ?
1. Inject all properties into tomcat configuration
2. Execute all call back scripts
3. Copies all files from /config/customize folder to /bin folder recursively
4. Customize the tomcat configuration folder from the config folder
What SQL query could be generated from the following flexible search query ?
1 s e l e c t {pk} from {Product as prd}
1. SELECT prd.PK FROM products prd WHERE (prd.TypePkString IN (?,?))
2. SELECT item_t0.PK FROM products item_t0 WHERE (item_t0.TypePkString IN (?,?))
3. SELECT PK FROM products WHERE (TypePkString IN (?,?))
4. SELECT item_t0.PK FROM {products} item_t0 WHERE (item_t0.TypePkString IN (?,?))
Which of the following item type attribute default value definition valid
1. java.lang.Boolean.FALSE
2. enumerationService().getEnumerationValue(“validEnumeration”, “validValue”)
3. Boolean.FALSE
4. com.hybhub.core.ExistingClass.EXISTING_STATIC_STRING
The SAP Hybris out of the box model service is used to ?
1. Refresh the status of a data object
2. Lock a model object
3. Remove a model object
4. Create new item type definition
What statements about the backoffice application orchestrator are wrong ?
1. it’s already visible when you are logged as an admin
2. You use it to create and modify backoffice application
3. You use it to import new data
4. You need to press F4 to activate it
What is cached by SAP Hybris ?
1. Result of flexible search queries
2. Media images
3. Item attributes
4. User sessions
Choose the correct definition of an interface based architecture ?
1. Defines an application as a collection of components, in which API calls between components are made through abstract interfaces, not concrete classes
2. Defines an application as a collection of components, in which API calls between components are made through concrete classes, not abstract interfaces
3. Defines an application as a collection of static components, in which API calls between components are made static references
4. Defines an application as a collection of RESTFUL API entry points, calls between components are made through HTTP requests
What steps are required in order to create a new SAP Hybris cron job ?
1. Create a new trigger for the job
2. Create a job implementation of JobPerformable
3. Update your system
4. Create a new item that extends cronjob
How do you declare an attribute dynamic ?
1. Attribute type "dynamic" attributeHandler
2. Persistence type "dynamic" attributeHandler
3. Dynamic attributeHandler "myAtttibuteHandlerBean"
4. Persistence dynamic "myAtttibuteHandlerBean"
How is Spring configured in SAP Hybris ?
1. Explicit configuration in XML
2. Explicit configuration in Java
3. Implicit bean discovery and automatic wiring
4. Explicit configuration in XML, implicit bean discovery and automatic wiring
How could you enable single product catalog synchronization from the PCM ?
1. Catalog synchronization cannot be done from the PCM, it’s meant to be done by administrators only
2. Configure expressUpdateCatalogVersions
3. Each product can be synchronized individually out of the box
4. PCM is not for products
What is the default authorization framework for the OCC web services ?
1. spring-security
2. oauth 2.0
3. java-security
4. sso
In order to test a dao implementation what test should you write ?
1. @UnitTest
2. @DatabaseTest
3. @SqlTest
4. @IntegrationTest
How can you use environment variables in your Hybris configuration ?
1. From a call back scripts
2. Using hybhub.config $NAME assuming the env variable exists and is named NAME
3. Using hybhub.config assuming the env variable exists and is name y_hybhub_config
4. Using hybhub.conig
What statements are correct about the following impex ?
1 INSERT_UPDATE MediaFolder ; q u a l I f I e r [ unique=true ] ; path [ unique=true ]

2 ; images ; images
3 ; email−body ; email−body
4 ; email−attachments ; email−attachments
1. Only creates new MediaFolder
2. Generates a unique database index from the qualifier and the path
3. contains 3 value lines
4. doesn’t use any macro
Which one of the following flexible correct is valid ?
1. select {name[de]} from {product}
2. select {name.de} from {product}
3. select {name}[de] from {product}
4. select {name} from {product},{lang} where {lang}
Choose the right definition for a payment capture ?
1. Authorize an amount of money after it has been reserved
2. Transfer money back for a given order
3. Transfer money from after it has been authorized
4. Lock an amount of money on the card’s holder account
Using the out of the box impex import convention, what files would be imported during the update process (only create essential data checked) ?
1. extension/resources/impex/0_essentialdata.impex
2. extension/resources/impex/essentialdata_0.impex
3. extension/resources/impex/core/essentialdata_0.impex
4. extension/resources/impex/projectdata_users.impex
€A navigation technique for accessing a collection of available information by narrowing down long lists of objects to a manageable size. The reduction is achieved through attribute filters that can by applied in flexible combinations of any order.” best describes ?
1. Facet search
2. solr
3. Category search
4. Flexible search
How many catalog versions can be attached to a catalog ?
1. zero, a catalog defines its own version
2. one, the version can be shared across diferent catalogs, for example Online
3. two, catalogs have their own Staged and Online catalog versions
4. As many as needed, there are no limits at how many versions a catalog can have
How many transactions would be created by the following Groovy script ?
1 def transaction = de . hybris . platform . tx . Transaction . current ()
2
3 transaction . begin ()
4
5 transaction . begin ()
6 //Do something
7 transaction . commit()
8
9 transaction . begin ()
10 //Do something
11 transaction . commit()
12
13 transaction . commit()

?
1. Code execution will fail
2. One transaction would be created
3. Two transactions would be created
4. Three transaction would be created
What is the main entry servlet of Spring MVC application ?
1. SpringMvcServlet
2. DispatcherServlet
3. JaloServlet
4. RequestContextServlet
What statements are true about CMSItem and CMSRelation item types ?
1. Their sub items are catalog version aware
2. it’s used by all tag components
3. every CMS types extend one or the other
4. They are defined under the core extension
How can you configure a new checkout flow ?
1. From an impex query
2. From a java implementation of de.hybris.platform.acceleratorstorefrontcommons.checkout.CheckoutFLow
3. From a spring configuration
4. from JSP tag file
What application context is valid to create a new region cache for an item type ?
1. Core tenant
2. Master tenant
3. Core static
4. Global static
Choose the best definition for the following exception : de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException ?
1. The service layer can’t find any matching identifier
2. The service layer found more than one matching item and expected only one
3. The service layer doesn’t know what attribute is used as the unique identiier
4. The service layer doesn’t know the item type
What informations can you extract from a PK ?
1. Type code
2. Last modified time
3. Created time
4. User who created the item
The Spring Integration Framework is used for ?
1. OCC webservices
2. Datahub
3. Hot Folder
4. Service Layer
Where can you specify an index for an item type ?
1. resources/extensionName-indexes.xml
2. resources/extensionName-items.xml
3. resources/extensionName-indices.xml
4. resources/database/index.sql
55) Choose the right definition for the order splitting service ?
1. Split an order into sets of order entries, for each set a consignment is then created
2. Split an order into multiple orders, for each orders a consignment is then created
3. Split order entries into sets of order entries, for each set a consignment is then created
4. Split a consignment into sets of consignments, for each set a new consignment is then created
56) When designing a new web service what HTTP header should you choose to implement a create object endpoint?
1. GET
2. PUT
3. CREATE
4. POST
57)What is the downside of product variants ?
1. none
2. You cannot have common attributes between variant objects without changing the base product definition
3. Products are virtual
4. All variant objects and the base product share the same unique code which makes any search not trivial
58) How could you group solr attribute values in a single set to avoid excessive number of values ?
1. Use a group by statement
2. Use a paginated solr search query
3. Use a facet range
4. Use a facet sort
59)Which of the following interceptors are valid ?
1. load
2. init
3. prepare
4. remove
60)What statements are wrong about the build framework ?
1. It compiles extension in a pre-defined order
2. It generates and compiles sources from items.xml files
3. Every ant targets compile the source files
4. It is runnable only from your platform folder
61)A Media can be ?
1. A image
2. A zip file
3. A flat file
4. A string
62)Which one of the following service is best suited to load a resource bundle for a specific language ?
1. I18NService
2. CommonI18NService
3. CommerceCommonI18NService
4. L10NService
63)If I add the following search restriction for product and for user anonymous, what will happen when anonymous users execute a product search ?

1 {name} is not null

1. This will fail, where is missing
2. This will replace any where clause for anonymous and product
3. This will be added to the where clause for anonymous and product
4. This will be added to the where clause for anonymous and product during solr indexing
64)What happened when you execute the following Groovy script ?

1 import java . U t I l . HashSet
2 import de . hybris . platform . core . model . user . UserGroupModel
3
4 def modelService = spring . getBean(”modelService”)
5
6 def group = modelService . create (”userGroup”)
7 group . setUid (”newGroup”)
8 modelService . save (group)
9 def groups = new HashSet()
10 groups . add(group)
11
12
13 def customer = modelService . create (”customer”)
14 customer . setUid (”newCustomer”)
15 customer . setName(”newCustomer”)
16 customer . setGroups( groups )
17
18 modelService . save (customer)
1. A service layer exception is thrown
2. Only the customer is created
3. Only the user group is created
4. Both the customer and the user group are created
65)What statements are true about the promotion engine ?
1. Runs on the rule engine
2. Runs on the jalo layer
3. Uses rule aware object (RAO) actions
4. Runs when the promotion strategy is called during cart calculation
66)How can you create a new socket for a custom backoffice widget ?
1. Open your widget definition.xml file
2. Use the HMC
3. Run the widget wizard from OCC
4. Create a new socket.zul file
67)What statements are true about Apache SOLR ?
1. SAP Hybris uses an embedded SOLR server
2. SOLR uses the same database as SAP Hybris
3. All products are cached inside SOLR
4. SOLR can have multiple index
68)Why would run the following flexible search query ?
1 select {pk} from {Product !}
1. You need only to load product subtype items
2. You need only to load product type items
3. You need only to load product variants
4. You need to tell SAP Hybris not to cache the result
69) What is the right way to create a localized string attribute ?
1.1 attribute q u a l I f I e r ”name” type ”java . lang . String”>
2 persistence type ”property” localized ”true”/>
3 /attribute>
2.1 attribute q u a l I f I e r ”name” type ” localized : String”>
2 persistence type ”property”/>
3 /attribute>
3.1 attribute q u a l I f I e r ”name” type ” localized : java . lang . String”>
2 persistence type ”property” />
3 /attribute>
4.1 attribute q u a l I f I e r ”name” type ” localized : java . lang . String”>
2 /attribute>
70)What can you define permissions for (using the permission framework) ?
1. OCC access
2. Item type
3. Instance of an item type
4. attribute
71)What is the purpose of the following class ..quella con @SystemSetup?
1. Customize a HMC wizard
2. Customize the impex import service
3. Customize the update and initialization
4. Customize the available import choices when running an update from the HMC
72)Is this a valid impex import ?
1 INSERT_UPDATE Title ; code
2 #% beforeEach : print ( l I n e [ 1 ] ) ;
3 ; Doctor
1. yes
2. Yes only if bean shell execution is activated
3. Yes only if the title Doctor doesn’t exist yet
4. no(sol:A bean shell script can be executed from an impex script but an update need a unique identiier.)
73)What is the recommended way of setting cluster ids ?
1. Use cluster.node.autodiscovery set to true
2. Create a subnet and configure nodes to listen to the broadcast address
3. Manually configure a unique id on each node
4. Activate the Spring Cluster functionality
74)Which are valid steps of the ant build all target ?
1. Resolving extensions dependencies
2. Restart the application server
3. Delete all previously compiled classes
4. Generate sources for all extensions
75)Which statements are correct about widget definitions ?
1. Widget definition is as simple as creating a Spring bean under your core extension spring configuration
2. A widget needs to extend another widget id in order to be available
3. Each widget ids must be unique otherwise they wouldn’t be available
4. Widgets definition are located under myextension/backoffice/resources/widgets/{widgetName}/deinition.xml
76)What is the best way to create a new addon for your store front ?
1. Generate a new extension from yempty
2. Generate a new extension from yoccaddon
3. Generate a new extension from yaddon
4. Generate a new extension from addon
78)What are the required steps to create a new CMSComponent ?
1. Create an item that extends AbstractCMSComponent or one of its subtype
2. Create an item that extends CMSItem or one of its subtype
3. a Spring MVC controller that extends AbstractCMSComponentController
4. a JSP (or other front end technology) to render the component
79)When should you run a full Apache SOLR indexation ?
1. When you restart the SOLR server
2. When you update a product
3. When you update prices
4. Every day to recreate a clean index (not defragmented)
80)How many websites could you have per tenant ?
1. Only one because orders and customers are tenant dependent
2. Websites are not tenant aware
3. As many as you need
4. As many as you want if you are running a cluster
{"name":"H1pr2", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your understanding of SAP Hybris with our comprehensive quiz designed for developers, administrators, and anyone interested in enhancing their skills. This quiz consists of 80 questions covering various aspects of SAP Hybris, ensuring you have a well-rounded understanding of the platform.Features of the quiz:80 unique questionsMultiple choice and checkbox formatImmediate feedback on your answers","img":"https:/images/course1.png"}
Powered by: Quiz Maker