Sunday, 30 August 2015

Hybris Certification Questions 1

Hotelwatchdog
1. Examine the following piece of XML <itemtype code=”MyProduct” autocreate=”true” generate=”true” extends=Product” > Which statements below is/are true
This defines a super type of MyProduct
This is probably defined locally in the –items.xml file of an extension
This is probably defined in the localextensions.xml file in the config folder/ Eclipse project
This defines a subtype of MyProduct 


2. When your extension has a dependency on one of  the extensions from the platform/ext folder (like validation or catalog) you need to 
Use the required tag in the extensionsinfo.xml of your extension
Use the importextension statement in your Java Code to import the extension you want to use
Use the requires tag in the localextensions.xml file of the config project
Usually nothing, dependencies on platform extensions are defined by default


3. When updating a running system in hybris, what should you do about handling/processing requests from the   front end??
Nothing , hybris will buffer and synchronize all requests, allowing the system to remain fully functional whilst the data is updating
Make sure that you use the Maintenance extension or some other technique or redirect requests to maintenance page.
Temporarily change the port settings in the local.properties file so that incoming requests are prevented from disturbing the update process.
The isUpdating() method in the http session should be implemented so that every request can be synchronized with updates.


4. In which cases is it mandatory to restart the hybris server for your changes to take effect??
After editing any JSP page
After adding a new Spring bean to one of the Spring Configuration files
After initializing the system data for the first time
After creating or updating a cockpit configuration file


5. Restrictions could be applied in which of the following cases?
When executing a flexible search query as a member of the admin group
When executing a flexible search query as a member of the customer group
When executing any raw SQL query against the database
When querying hybris items via webservices


6. If you are writing a query to test a flexible search restriction in the hybris platform, the user you are running the as
must always be part of the admin group in order for restrictions to be applied
must be a member of the Customer group in order for any restrictions to be applied
must have read rights for the restriction type you are testing
must never be part of the admin group in order for restriction to be applied


7. When you have edited an impex file and ensure it is in appropriate place for a “convention over configuration” style import. You must
Run the ant import all task
Run the ant clean import all task
Initialize or Update the hybris system
Do nothing. New impex coc files are auto imported if they are in the correct directory


8. Examine the following SQL statement which has been translated from a flexi search query 
SELECT item_t0.code FROM products item_t0 where (item_t).TypePkString IN (?,?,?,?,?))
Which of the following statement is the original flexi search query?
Select {p.code} from {product as p} where {TypePKString} in (?session.catelogversions)
Select p.code from product as p where TypePKString in (:types)
Select {p.code} from {product as p}
Select Product.getcode() from Product 


9. If you want to execute a native SQL query using flexible search service which of the following is true?
You can use the search type parameter in flex  search method flexibleSearchService.search(SearchType.NATIVE_SQL,fq); to issue a native SQL search
You can execute a native SQL query as it is using flexible search service without needing any parameters
You cannot execute a native SQL using flexi service
A native SQL query will be automatically converted to a flexi search query by flexibleSearchService


10. What is the Spring framework?
It is an open source framework designed to make it easier to build large, scalable applications.
It is a framework that allows you to easily manage the lifecycle of java classes(POJO’s)and treat them as application objects or components.
It is a GUI framework that provides a large library of Rich GUI components.
It is a hybris core extension designed to allow the use of dependency injection in hybris systems.

3 comments:

  1. Some of the answers given(bold and red) are incorrect and incomplete answers

    ReplyDelete
  2. Q9: "You cannot execute a native SQL using flexi service" is the right answer

    ReplyDelete
  3. Hi,
    Do you have commerce exam questions. I need it desperatly. Please Help.

    ReplyDelete