Sunday, 30 August 2015

Hybris Certification Questions 4

Hotelwatchdog
1. If you want to extend/create your own UI component for a cockpit the GUI web framework you have to use is:
ZK
Spring MVC
AJAX
JSP
2. Eachtime you implement a custom webservice resource in hybris to complete the build and deploy process you must
Run the ant webservice_nature task
Run the ant clean all task
Edit the relevant spring.xml file and run ant
Do nothing. New webservice resources are auto compiled and hot deployed
3. The hybris platform is configured to run against HSQL by default, which of the following is true?
HSQL is the recommended DB to use for production environments
Configuring HSQL to run in memory is a useful configuration for debugging transactions
HSQL is only recommended for development or test environments
Configuring HSQL is run in memory is the recommended way to guarantee good performance in clustered production environments.
4. When defining enum types for  use by hybris item type which of the following is true?
Enum types must be defined in java code before being reference by hybris generated item classes
Enum types can be defined by using the <enumtyype> tag in relevant –items.xml
Enum types can be defined inside the <itemtype> tag of the item type which needs to reference them
A default value can be set using the <defaultvalue> tag in relevant –tems.xml
5. When your extension has dependency on one of the platform extensions (like validation or catalog) you need to:
Use the requires tag in extensioninfo.xml file of your extension
Use the requires tag in local.properties  file of config project
Usually nothing, dependencies on platform are resolved by default
Use the importextension in your java code to import the extension you wish to import
6. In which case you must restart the hybris server for your changes to take effect
After initializing the system data for first time
After creating or updating cockpit configuration file
After adding a new spring bean to one of the spring configuration file
After editing any JSP files
7. In the development environment you wanted to configure a setting to specify a JDBC url the best place to put it would be
The extensioninfo.xml file of your extension
The project.properties file in platform bin directory
The localextensions.xml in configuration directory/Eclipse project
The local.properties in configuration directory/Eclipse project
8. Which of the following is true about the configuration setting in project.properties file in the server platform directory?
System configuration setting should not be added to this file, because the file will be overridden when you update the platform version
After any changes are made to this file a complete clean and rebuild should be performed using ant clean all
 Any setting in this file will be override any local propertied you set in your extensions or in the configuration folder/Eclipse project
Any local properties you set in your extensions or in the configuration folder/Eclipse project will override any properties in this file
9. When implementing dynamic attributes in hybris which of the following applies?
You can read and or write logic by implementing the DynamicAttributeHandler interface
You must define a custom type which is specifically enabled for dynamic attributes
You must specify  <persistence  type=”property” > in your –items.xml file
You don’t need to create any configuration information. Hybris uses the type interface to detect dynamic types
10. Which of the following are true about cronjobs in hybris platform?
A cronjob is a means for  performing business logic at particular times and intervals
Cronjobs are a thin wrapper around your OS’s cronjob mechanism
They can only use when hybris is running on Linux
You can use some existing useful cronjobs in platform or you can create own using java code

No comments:

Post a Comment