Sunday, 30 August 2015

Hybris Certification Questions 3

Save over 78% off Hotel Deals and Get Expert-analyzed Hotel Deals based on Price, Location & Review Ratings at Hotelwatchdog!
-----------------------------------------------------------------------------------------------------------------------------------------------
1. After you have run Ant task from the command prompt you may see build errors in your eclipse project navigatior or explorer this is because:
Your ant script might have generated source files which are not yet loaded into eclipse. You need to refresh the eclipse project
When using ant and eclipse together, you need use the embedded version of eclipse otherwise you won’t be able to see files generated by ant in eclipse navigator.
You have errors in your project which are not shown in ant build because the ant build is not as complete as the eclipse build.
You should not build hybris projects from the command prompt.
2. When updating the running system in hybris, what should you do about handling incoming requests from the front end?
Nothing. Hybris will buffer and synchronize all requests  allowing the system to remain fully functional whilst data is updating
Temporarily  change the port settings in the local properties file so that incoming requests are prevented from disturbing the update process
Make sure that  you use maintenance extension or some other technique to redirect the requests to a maintenance page
The isUpdating() method in the http session should be implemented so that every request can be synchronized with updates
3. Which of the following statements is true regarding the use of inheritance in the hybris item type definition?
If you specify a deployment for your type, you will get one table which contains all of the attributes from your type and its ancestors
If you specify a deployment for your type, you will get one table which only contains all of the attributes defined on your type
You cannot specify a deployment, the hybris system definitions will always create a single table for the entire hierarchy
4. You cannot specify a deployment, the hybris system definitions will always create on What kind of data is cached in hybris cache?
Item instances
Spring bean instances
Results of flexible search queries
Dynamic attribute values
e table for the each item in the hierarchy
5. When defining relationships between itemtypes in an –items.xml file
The relation tag is used to specify sourceElement, targetElement and their conditions
The relation tag can be used to specify the relationship between two types defined in two different extensions
The generate attribute not specified because no table is generated for a relationship between two items
Relations are only defined in the java code. They are not a feature of object / Relational mapping

6. What might influence which data is returned in the result set of a flexible search query?
The session catalog version
Whether or not the specified database columns are indexed 
The contents of the flexible search cache
A personalization rule or search restriction created in the hMC
7. Examine the following piece of xml
<itemtype code=”MyProduct” autocreate=”true” generate=”true” extends=”Product”>
which statement below is/are true?
This defines a subtype of MyProduct
This defines a supertype of MyProduct
This is probably defined locally in –items.xml file of an extension
This is probably defined locally in local.properties file of a config folder
8. To configure a hybris instance to run your e-shop on different database which of the following are necessary steps?
Specifying the connection parameters like JDBC driver, username and password in the relevant configuration file
Create a DB for each tenant that you want in the new configuration Example junit
Checking the items .xml files in any extensions you have created to ensure that all of your item type definitions are compatible with the new DB
Initializing the system for example by using HAC
9. In the hybris platform, when you create a new extension, which of the following is true?
You must use the ant extgen task from the command prompt, because the embedded ant cannot create a new extension from within eclipse
If you use the  the ant extgen task from within eclipse, your new extension will automatically be loaded into the eclipse workspace as new project
Wherever you ruin the ant extgen task you will need to import the project file into eclipse using the “Import existing project” feature
Wherever you run the ant extgen task, new extension will automatically be loaded into the eclipse workspace as new project next time you restart eclipse 
10. When you define an item type in the –items.xml  in your extension which of the following is/are true?
You may add attributes to an item type which has already been defined in another  -items.xml file in another extension
You may specify the database table which is used to persist your item using the table attribute of the deployment tag <deployment table=”tablename”>
You may specify the database table which is used to persist your item using the table attribute of the databasetable tag < databasetable table=”tablename”>
You cannot specify the database table which is used to persist your item because hybris configures it automatically

No comments:

Post a Comment