Pentaho BI Interview Question and Answers
by Venkatesan M, on May 18, 2017 11:46:44 AM
Q1. Compare Pentaho & Tableau?
Ans:
Criteria | Pentaho | Tableau |
Functionality | ETL, OLAP, & static Reports | Data analytics |
Availability | Open source | Proprietary |
Strengths | Data Integration | Interactive visualizations |
Q2. Define Pentaho and its usage.
Ans: Revered as one of the most efficient and resourceful data integration tools (DI), Pentaho virtually supports all available data sources and allows scalable data clustering and data mining. It is a light-weight Business Intelligence suite executing Online Analytical Processing (OLAP) services, ETL functions, reports and dashboards creation and other data-analysis and visualization operations.
Q3. Explain the important features of Pentaho.
Ans:
- Pentaho is capable of creating Advanced Reporting Algorithms regardless of their input and output data format.
- It supports various report formats, whether Excel spreadsheets, XMLs, PDF docs, CSV files.
- It is a Professionally Certified DI Software rendered by the renowned Pentaho Company headquartered in Florida, United States.
- Offers enhanced functionality and in-Hadoop functionality.
- Allows dynamic drill down into larger and greater information.
- Rapid Interactive response optimization.
- Explore and view multidimensional data.
Q4. Name major applications comprising Pentaho BI Project.
Ans:
- Business Intelligence Platform.
- Dashboards and Visualizations.
- Data Mining.
- Data Analysis.
- Data Integration and ETL (also called Kettle).
- Data Discovery and Analysis (OLAP).
Q5. What is the importance of metadata in Pentaho?
Ans: A metadata model in Pentaho formulates the physical structure of your database into a logical business model. These mappings are stored in a central repository and allow developers and administrators to build business-logical DB tables that are cost effective and optimized. It further simplifies the working of business users allowing them to create formatted reports and dashboards ensuring security to data access.
All in all, metadata model provides an encapsulation around the physical definitions of your database and the logical representation and define relationships between them.
Q6. Define Pentaho Reporting Evaluation.
Ans: Pentaho Reporting Evaluation is a particular package of a subset of the Pentaho Reporting capabilities, designed for typical first-phase evaluation activities such as accessing sample data, creating and editing reports, and viewing and interacting with reports.
Wish to Learn Pentaho? Click Here
Q7. Explain the benefits of Data Integration.
Ans:
- The biggest benefit is that integrating data improves consistency and reduces conflicting and erratic data from the DB. Integration of data allows users to fetch exactly what they look for, enabling them utilizeand work with what they collected.
- Accurate data extraction, which further facilitates flexible reporting and monitoring of the available volumes of data.
- Helps meet deadlines for effective business management.
- Track customer’s information and buying behavior to improve traffic and conversions in the future, thus advancing your business performance.
Q8. What is MDX and its usage?
Ans: MDX is an acronym for ‘Multi-Dimensional Expressions,’ the standard query language introduced by Microsoft SQL OLAP Services. MDX is an imperative part of XML for analysis API, which has a different structure than SQL. A basic MDX query is:
SELECT {[Quantity].[Unit Sales], [Quantity].[Store Sales]} ON COLUMNS,
{[Product].members} ON ROWS
FROM [Sales]
WHERE [Time].[1999].[Q2]
Q9. Define three major types of Data Integration Jobs.
Ans:
- Transformation Jobs :Used for preparing data and used only when the there is no change in data until transforming of data job is finished.
- Provisioning Jobs :Used for transmission/transfer of large volumes of data. Used only when no change is data is allowed unless job transformation and on large provisioning requirement.
- Hybrid Jobs :Execute both transformation and provisioning jobs. No limitations for data changes; it can be updates regardless of success/failure. The transforming and provisioning requirements are not large in this case.
Q10. Illustrate the difference between transformations and jobs.
Ans: While transformations refer to shifting and transforming rows from source system to target system, jobs perform high level operations like implementing transformations, file transfer via FTP, sending mails, etc.
Another significant difference is that the transformation allows parallel execution whereas jobs implement steps in order.
Q11. How to perform database join with PDI (Pentaho Data Integration)?
Ans: PDI supports joining of two tables form the same databse using a ‘Table Input’ method, performing the join in SQL only.
On the other hand, for joining two tables in different databases, users implement ‘Database Join’ step. However, in database join, each input row query executes on the target system from the main stream, resulting in lower performance as the number of queries implement on the B increases.
To avoid the above situation, there is yet another option to join rows form two different Table Input steps. You can use ‘Merge Join ‘step, using the SQL query having ‘ORDER BY’ clause. Remember, the rows must be perfectly sorted before implementing merge join.
Q12. Explain how to sequentialize transformations?
Ans: Since PDI transformations support parallel execution of all the steps/operations, it is impossible to sequentialize transformations in Pentaho. Moreover, to make this happen, users need to change the core architecture, which will actually result in slow processing.
Q13. Explain Pentaho Reporting Evaluation.
Ans: Pentaho Reporting evaluation is a complete package of its reporting abilities, activities and tools, specifically designed for first-phase evaluation like accessing the sample, generating and updating reports, viewing them and performing various interactions. This evaluation consists of Pentaho platform components, Report Designer and ad hoc interface for reporting used for local installation.
Q14. Can fieldnames in a row duplicated in Pentaho?
Ans: No, Pentaho doesn’t allow field duplication.
Q15. Does transformation allow filed duplication?
Ans: “Select Values” will rename a field as you select the original field also. The original field will have a duplicate name of the other field now.
Q16. How to use database connections from repository?
Ans: You can either create a new transformation/job or close and reopen the ones already loaded in Spoon.
Q17. Explain in brief the concept Pentaho Dashboard.
Ans: Dashboards are the collection of various information objects on single page including diagrams, tables and textual information. The Pentaho AJAX API is used to extract BI information while Pentaho Solution Repository contains the content definitions.
Q18. The steps involved in Dashboard creation include
Ans:
- Adding dashboard to the solution.
- Defining dashboard content.
- Implementing filters.
- Editing dashboards.
Q19. How to use logic from one transformation/job in other process?
Ans: Transformation logic can be shared using subtransformations, which provides seamless loading and transformation of variables enhancing efficiency and productivity of the system. Subtransformations can be called and reconfigured when required.
Q20. Explain the use of Pentaho reporting.
Ans: Pentaho reporting enables businesses to create structured and informative reports to easily access, format and deliver meaningful and important information to clients and customers. They also help business users to analyze and track consumer’s behavior for the specific time and functionality, thereby directing them towards the right success path.
Q21. What is Pentaho Data Mining?
Ans: Pentaho Data Mining refers to the Weka Project, which consists of a detailed tool set for machine learning and data mining. Weka is open source software for extracting large sers of information about users, clients and businesses. It is built on Java programming.
Q22. Is Data Integration and ETL Programming same?
Ans: No. Data Integration refers to passing of data from one type of systems to other within the same application. On the contrary, ETL is used to extract and access data from different sources. And transform it into other objects and tables.
Q22. Explain Hierarchy Flattening.
Ans: It is just the construction of parent child relationships in a database. Hierarchy Flattening uses both horizontal and vertical formats, which enables easy and trouble-free identification of sub elements. It further allows users to understand and read the main hierarchy of BI and includes Parent column, Child Column, Parent attributes and Child attributes.
Q23. Explain Pentaho report Designer (PRD).
Ans: PRD is a graphic tool to execute report-editing functions and create simple and advanced reports and help users export them in PDF, Excel, HTML and CSV files. PRD consists of Java-based report engine offering data integration, portability and scalability. Thus, it can be embedded in Java web applications and also other application servers like Pentaho BAserver.
Q24. Define Pentaho Report types.
Ans: There are several categories of Pentaho reports :
- Transactional Reports :Data to be used form transactions. Objective is to publish detailed and comprehensive data for day-to-day organization’s activities like purchase orders, sales reporting.
- Tactical Reports :data comes from daily or weekly transactional data summary. Objective is to present short-term information for instant decision making like replacing merchandize.
- Strategic Reports :data comes from stable and reliable sources to create long-term business information reports like season sales analysis.
- Helper Reports :data comes from various resources and includes images, videos to present a variety of activities.
Q25. What are variables and arguments in transformations?
Ans: Transformations dialog box consists of two different tables: one of arguments and the other of variables. While arguments refer to command line specified during batch processing, PDI variables refer to objects that are set in a previous transformation/job in the OS.
Q26.How to configure JNDI for Pentaho DI Server?
Ans: Pentaho offers JNDI connection configuration for local DI to avoid continuous running of application server during the development and testing of transformations. Edit the properties in jdbc.propertiesfile located at…\data-integration-server\pentaho-solutions\system\simple-jndi.
Q27. Is Pentaho a Trademark?
Ans: Yes, Pentaho is a trademark.
Q28. Explain MDX?explain
Ans: Multidimensional Expressions (MDX) is a query language for OLAP databases, much like SQL is a query language for relational databases. It is also a calculation language, with syntax similar to spreadsheet formulas.
Q29. Define Tuple?
Ans: Finite ordered list of elements is called as tuple.
Q30. What kind of data, cube contain?
Ans: The Cube will contain the following data:
- Fact fields – Sales, Costs and Discounts
- Time Dimension – with the following hierarchy: Year, Quarter and Month
- Customer Dimensions – one with location (Region, Country) and the other with Customer Group and Customer Name
- Product Dimension – containing a Product Name
Q31. Differentiate between transformations and jobs?
Ans: Transformations is moving and transforming rows from source to target.
Jobs are more about high level flow control.
Q32. How to do a database join with PDI?
Ans: If we want to join 2 tables from the same database, we can use a “Table Input” step and do the join in SQL itself.
If we want to join 2 tables that are not in the same database. We can use the the “Database Join”.
Q33. How to sequentialize transformations?
Ans: it is not possible as in PDI transformations all of the steps run in parallel. So we can’t sequentialize them.
Q34. How we can use database connections from repository?
Ans: We can Create a new conversion or close and re-open the ones we have loaded in Spoon.
Q34. How do you insert booleans into a MySql database, PDI encodes a boolean as ‘Y’ or ‘N’ and this can’t be insert into a BIT(1) column in MySql.
Ans: BIT is not a standard SQL data type. It’s not even standard on MySQL as the meaning (core definition) changed from MySQL version 4 to 5.
Also a BIT uses 2 bytes on MySQL. That’s why in PDI we made the safe choice and went for a char(1) to store a boolean. There is a simple workaround available: change the data type with a Select Values step to “Integer” in the metadata tab. This converts it to 1 for “true” and 0 for “false”, just like MySQL expects.
Q35. By default all steps in a transformation run in parallel, how can we make it so that 1 row gets processed completely until the end before the next row is processed?
Ans: This is not possible as in PDI transformations all the steps run in parallel. So we can’t sequentialize them. This would require architectural changes to PDI and sequential processing also result in very slow processing.
Q36. Why can’t we duplicate fieldnames in a single row?
Ans: we can’t. if we have duplicate fieldnames. Before PDI v2.5.0 we were able to force duplicate fields, but also only the first value of the duplicate fields could ever be used.
Q37. What are the benefits of Pentaho?
Ans:
- Open Source
- Have community that support the users
- Running well under multi platform (Windows, Linux, Macintosh, Solaris, Unix, etc)
- Have complete package from reporting, ETL for warehousing data management,
- OLAP server data mining also dashboard.
Q38. Differentiate between Arguments and variables?
Ans:
Arguments:
Arguments are command line arguments that we would normally specify during batch processing.
variables:
Variables are environment or PDI variables that we would normally set in a previous transformation in a job.
Q39. What are the applications of Pentaho?
Ans:
i)Suite Pentaho
- BI Platform (JBoss Portal)
- Pentaho Dashboard
- JFreeReport
- Mondrian
- Kettle
- Weka
ii)All build under Java platform
Q40. Define Pentaho Schema Workbench?
Ans: Pentaho Schema Workbench offers a graphical edge for designing OLAP cubes for Pentaho Analysis.
Q41.Brief about Pentaho Report designer?
Ans: It is a visual, banded report writer. It has various features lilke using subreports, charts and graphs etc.
Q42. What do you un derstand by the term ETL?
Ans: It is an entri level tool for data manipulation.
- What are the steps to Decrypt a folder or file?
- Right-click on the folder or file we want to decrypt, and then click on Properties option.
- Click the General tab, and then click Advanced.
- Clear the Encrypt contents to secure data check box, click OK, and then click OK again.
Q43. Explain Encrypting File system?
Ans: It is the technology which enables files to be transparently encrypted to secure personal data from attackers with physical access to the computer.
Q44. What is ETL process? Write the steps also?.
Ans: ETL is extraction , transforming , loading process the steps are :
- define the source
- define the target
- create the mapping
- create the session
- create the work flow
Q45. What is metadata?
Ans: The metadata stored in the repository by associating information with individual objects in the repository.
Q46. What are snapshots?
Ans: Snapshots are read-only copies of a master table located on a remote node which can be periodically refreshed to reflect changes made to the master table.
Q47. What is data staging?
Ans: Data staging is actually a group of procedures used to prepare source system data for loading a data warehouse.
Q48. Data staging is actually a group of procedures used to prepare source system data for loading a data warehouse.
Ans: Full Load means completely erasing the insides of one or more tables and filling with fresh data.
Incremental Load means applying ongoing changes to one or more tables based on a predefined schedule.
Q49. Define mapping?
Ans: Dataflow from source to target is called as mapping.
Q50. Explain session?
Ans: It is a set of instruction which tell when and how to move data from respective source to target.
Q51. What is Workflow?
Ans: It is a set of instruction which tell the infomatica server how to execute the task.
Q52. Define mapplet?
Ans: It creates and configure the set of transformation.
Q53. What do you understand by three tier data warehouse?
Ans: A data warehouse is said to be a three-tier system where a middle system provides usable data in a secure way to end users. Both side of this middle system are the end users and the back-end data stores.
Q54. What is ODS?
Ans: ODS is Operational Data Store which comes in between of data warehouse and staging area.
Q55. Differentiate between Etl tool and OLAP tool?
Ans: ETL Tool is used for extracting data from the legecy system and load it into specified database with some processing of cleansing data.
OLAP Tool is used for reporting process . Here data is available in multidimensional model hence we can write simple query to extract data from database.
Q56. What is XML?
Ans: XML is an extensiable markup language which defines a set of rule for encoding documents in both formats which is human readable and machine readable.
Q57. What are the different versions of infomatica?
Ans: Informatica Powercenter 4.1, Informatica Powercenter 5.1, Powercenter Informatica 6.1.2, Informatica Powercenter 7.1.2, etc.
Q58. What are various tools in ETL?
Ans: Abinitio,DataStage, Informatica, Cognos Decision Stream, etc
Q59. Define MDX?
Ans: MDX is multi- dimensional expression which is a main query language implemented by the Mondrains.
Q60. Define multi-dimensional cube?
Ans: It is a cube to view data where we can slice and dice the data. It have time dimension, locations and figures.
Q61. How do you duplicate a field in a row in a transformation?
Ans: Several solutions exist:
Use a “Select Values” step renaming a field while selecting also the original one. The result will be that the original field will be duplicated to another name. It will look as follows:
This will duplicate fieldA to fieldB and fieldC.
Use a calculator step and use e.g. The NLV(A,B) operation as follows:
This will have the same effect as the first solution: 3 fields in the output which are copies of each other: fieldA, fieldB, and fieldC.
Use a JavaScript step to copy the field:
This will have the same effect as the previous solutions: 3 fields in the output which are copies of each other: fieldA, fieldB, and fieldC.
Q62. We will be using PDI integrated in a web application deployed on an application server. We’ve created a JNDI datasource in our application server. Of course Spoon doesn’t run in the context of the application server, so how can we use the JNDI data source in PDI?
Ans: If you look in the PDI main directory you will see a sub-directory “simple-jndi”, which contains a file called “jdbc.properties”. You should change this file so that the JNDI information matches the one you use in your application server.
After that you set in the connection tab of Spoon the “Method of access” to JNDI, the “Connection type” to the type of database you’re using. And “Connection name” to the name of the JDNI datasource (as used in “jdbc.properties”).
Q63. The Text File Input step has a Compression option that allows you to select Zip or Gzip, but it will only read the first file in Zip. How can I use Apache VFS support to handle tarballs or multi-file zips?
Ans: The catch is to specifically restrict the file list to the files inside the compressed collection. Some examples:
You have a file with the following structure:
access.logs.tar.gz
access.log.1
access.log.2
access.log.3
To read each of these files in a File Input step:
File/Directory | Wildcard |
tar:gz:/path/to/access.logs.tar.gz!/access.logs.tar! | .+ |
Note: If you only wanted certain files in the tarball, you could certainly use a wildcard like access.log..* or something. .+ is the magic if you don’t want to specify the children filenames. .* will not work because it will include the folder (i.e. tar:gz:/path/to/access.logs.tar.gz!/access.logs.tar!/ )
You have a simpler file, fat-access.log.gz. You could use the Compression option of the File Input step to deal with this simple case, but if you wanted to use VFS instead, you would use the following specification:
File/Directory | Wildcard |
gz:file://c:/path/to/fat-access.log.gz! | .+ |
Finally, if you have a zip file with the following structure:
access.logs.zip/
a-root-access.log
subdirectory1/
subdirectory-access.log.1
subdirectory-access.log.2
subdirectory2/
subdirectory-access.log.1
subdirectory-access.log.2
You might want to access all the files, in which case you’d use:
File/Directory | Wildcard |
zip:file://c:/path/to/access.logs.zip! | a-root-access.log |
zip:file://c:/path/to/access.logs.zip!/subdirectory1 | subdirectory-access.log.* |
zip:file://c:/path/to/access.logs.zip!/subdirectory2 | subdirectory-access.log.* |
Note: For some reason, the .+ doesn’t work in the subdirectories, they still show the directory entries. :
Click Here to know more details about Pentaho BI.