80 Questions Flashcards
Why would you create SQL in cal views
To implement custom logic
Which type of join supports a temporal condition in a cal view
Inner join
What can you do with shared hierarchies
Enable SQL SELECT statements to access hierarchies, Provide reusable hiearchies for drilldown in a cube without star join
What options do you have to handle orphan nodes in your hierarchies
generates additional root nodes, assign them to a level below the root
Which privileges would an user require to view US data when querying the cube cal view?
A SELECT privilege on the cube cal and an analytic privilege (Country=US) on the dim cal view
What do you use in the def on a dynamic SQL analytic privilege
A procedure that returns the data access condition as an SQL expression
Which tool generates and executes the SQL for specific node of ur cal view
Debug query mode
You are managing ur source files using GIT. In which sequence does ur file progress towards a commit
Working directory->staging area->local git repository
You want to create a star schema using a cal view. The measures are based on columns from two transaction tables. Dimension cal views provide the attributes. What is the correct approach
Combine the transaction tables using a join node in a cal view of type Cube with star join. Use a star join node to join the dim to the fact table.
What are some best practices when developing a cal views
Include all data flow logic within one cal view?, Avoid defining joins on cal columns
In ur cal view, you want to consume a custom data source defined using SQLScript. In which type of object do you write ur code
Table function
What are some of the typical roles in an SAP HANA Cloud implementation
Data architect, Modeler
In a cal view, the table function node executes a table function that requires input parameters. How can you fill the input parameters of the table function
Define constant values, map columns from lower nodes, and create the map an input parameter.
In DB module, what is the purpose of the .hdiconfig file
To specify which HDI plug ins are available
You are deploying a new cal view, A, that uses cal view B. When you preview cal view A, the account number is not masked. What could be the reason
You didn’t define masking in cal view A
What are the limitations of using a full outer join in a star join node
It must appear in the last dimension in the star join node, it is restricted to one dimension in a star join node
You combine two tables in a join node using multiple columns in each table. Why do you enable the dynamic join option
To ensure that join execution only uses the joined columns requested in the query, to allow data analysis at different levels of granularity with the same cal view
You create a table function to remove historic records, sum the current total weekly working hrs for each employee, and update the personnel table with the results. The deployment of the table function fails. Which of the following could be a valid reason.
Your function includes a truncate statement
Why would you choose an HDI shared service plan instead of a schema service plans
You want to use BAS, you want to use containers to isolate objects, and You want to create DB objects using source files
You want to ensure that cal view does not give unexpected results for a query that is based on any combination of columns. what is the recommended approach for verifying the results
Write and execute a custom SQL query in the SQL console, Select data preview for the cal view
You have configured static cache for your cal view and run a query against it, but the cache results are ot being used. What might be the reason for this
You did not define any columns in the cache setting
At which levels of a project structure can you execute a deploy operation
Entire workspace, sub folder of a database module
You have imported a new cal view in a folder that contains an .hdinamespace file. This cal view consumes one data source, which is a table. When trying to deploy the cal view, the deployment fails with a namespace-relate issue. What could be the reason?
The namespace used within the cal view to reference the table is different from the actual namespace in the identifier of this table, The imported cal view and its data source have different namespaces
What is generated when you deploy a cube cal view design time file
Cached results to improve read performance, metadata to enable consumption by external tools
Why would you enable Debug Query mode in a cal view
To identify data sources that are not accessed by a query
You define a hierarchy in a cal view. you want to expose the hierarchy to SQL. Which of the following conditions must be met
The hierarchy must be exposed by a cal view type Cube with star join, the hierarchy must be a shared hierarchy
Why does SAP issue warnings about the use of imperative or procedural SQLScripts statement
They introduce potential security risks
which components are part of SAP Hana Cloud
Data lake, SAP Hana DB
What are some of the restrictions that apply when defining parallelization block in calculation view
Only one block can be defined across a stack of cal views, The block must star with a node that defines a table as a data source
What is a restricted measure
A measure that is filtered by one of more attributes values
Which calendar types can be selected when creating time-based dimensions.
fiscal and gregorian
you implement a referential join between table A and Table B, but when you query the calculation view, Table B is not pruned.
join cardinality is set o :1, and integrity constrain is set to right
you have imported cal views from SAP Hana on premise to SAP Hana cloud. why should you switch cal column expression fro column engine to SQL.
To benefits from additional SQL optimizations
In a cal view, why would you implement an SQL expression.
To define a filter, to generate a restricted column and to generate a cal column.
You create a user provided service to access tables in external schemas. In which file type do you assign the user provided service to ur DB?
yaml
Your calculation view consumes one datasource, which includes the following columns: SALES_ORDER_ID, PRODUCT_ID, QUANTITY AND PRICE. Inthe output, you want to see summarized dta by PRODUCT_ID and cal column PRODUCT_TOTAL witht he formula QUANTITY * PRICE. In which type of node do you define the calculation to display the correct result
Projection
You want to join two tables in a cal view. why do you use a non equi join
The join condition is not represented by matching values
What are possible consequences of improper unfolding
SQL compilation time increases, count distinct results are incorrect
Which of the following are standard options provided to define analytic privileges
SQL expression, dynamic and Attributes
You have generated caculation view properties file. What does it contain?
Description of all objects defined in a calculation view
In BAS, you rename a Dimension cal view that is used by a cube cal view. You do not use the option to rename the runtime view and adjust the reference. Afterward, you perform the following deploy operations: Deploy the dimension cal view as a single object. Deploy the entire SAP Hana DB module. What is the outcome of the deploy operations
The first deployment is successful. The second deployment is successful.
Which database features are typically not required by analytical applications that run on SAP Hana cloud?
Pre-calculated aggregates, indexes
You combine two customer master data tables with a union mode in a cal view. Both master data tables include the same customer name. How do you ensure that each customer name appears only once in the results
Add an intersect node above the union node
Why do you use the hidden columns checkbox in the semantic node of your cal view
To ensure specific columns are not exposed to the reporting tool, To remove a column that is also used as a label column
What is the SQL keyword used to process input parameters defined in a cal view
Placeholder
Two calculation view, A and B are defined. Analytic privilege 1 -> product = P1. Cal View 2: Analytical privilege 2 -> country = US or GE, Product = P2; Analytical privilege 1 -> Country = US. When you preview Cal View A, what data do you see?
US for P1 and GE for P1
In calculation view, why would you choose the DEPRECATED setting
To ensure it is not exposed to reporting tools for consumption, To warn developers that the cal view is no longer supported
You have defined a pruning configuration table in a cal view. What are you attempting to prune from the query execution
Filters
which of the following data sources can you include in a graphical calculation view
Table function and row table
Why would you set the ignore multiple outputs for filters property in cal views
To force filters to apply at the lowest node
Why would you use the SQL analyzer
To display the execution time of a cal view, to preview data at the node level of a cal view.
In a cal colum, what is the purpose of a variable
To provide a dynamic value in cal colum
A new version of SAP Hana Cloud, SAP Hana DB is available from today. If you do not perform the upgrade manually, how much time do you have before your database will be automatically upgrade to the next version.
3 months
Which project structure object correponds to a unique HDI container
SRC folder
You created a procedure to be consumed in an analytic privilege of the type DYNAMIC but it is not working as expected. what could be the reason
No input parameter is defined, you defined more than one output parameter
What can you identify using Performance Analysis mode
joins that are defined on calculated columns, and information about join cardinality
You deleted the design time file of a cal view in your HDB module. what is the recommended way to ensure the corresponding runtime object is also removed from the database
Deploy the project that contained the deleted design time file
Why would you use parameter mapping in a cal view
To pass variable values to external value help views, to push down filters to the lowest level cal views
Why might you use the keep flag property in an aggregation node
to include columns that are not requested by a query but are essential for the correct result
In SAP Hana Cloud, which tasks are handled by the cloud provider
Tuning the DB to run optimally on the underlying operating system and hardware, backing up the operating system and the DB software, Installing, configuring and upgrading the operating system
Why would you create cal view of data category dimension with type time
To provide additional time related navigation possibilities
Why would you use the transparent filter property in a cal view
To allow filter pushdown in stacked cal view
Which of the following approaches might improve the performance of joins in a cube cal view
Specify the number of joined columns, limit the number of joined columns.
What are the key steps to implement currency conversion in a cal view?
Assign semantic type enable the measure for conversion
Choose client, source, and target currencies
Choose conversion date and rate type
When is the first column store compression executed
When a delta merger is triggered
Why would an SQL developer work with SQLScript
To pass parameters from cal views, to exploit additional data types, to implement conditional logic
What is the recommended tool for developing cloud foundry applications
SAP Hana Cloud Central
You set the Null Handling property for attribute but do not set a default value. What is displayed when null values are found in a column of data type NVARCHAR
Empty string
What are the consequences of not executing a delta merge
Read performance decreases, new records are not read.
Why would you partition a table in an SAP Hana Cloud DB
To overcome the 2 billion record limit
You created a table and inserted data in it using SQL statements inside the SAP Hana Deployment Infrastructure (HDI) container of your project. You add this table as as data source to a cal view and try to deploy it. why do you observe in the SAP Hana DB container
The deployment fails and the table is not dropped
What are some of the typical tasks performed by the SAP Hana Cloud modeler role
Create graph workspaces and develop cal views
Which of the following techniques can you use to improve the performance of the cal views
partition large tables and limit the number of stacked cal views
Using the table in the diagram, you need to create a cube cal view. what is the simplest approach to create output shown in the screen shot.
Table A Output A
Country value France Germany UK
France 100 100 100 200
Germany 100
UK 200
Create a restricted column for each country
a Cal view consumes the data sources shown in the graphic. You want to identify which companies sold products in January and February. what is the optimal way to do this.
Sales Prediction Jan Sales Prediction February
001 X 001 X
002 Y 002 Y
003 004
005
use an intersect node
Which solutions form the SAP BAS platform
Analytics and Application Development & Integration
a Cal view includes a rank node that uses the source data and settings shown in the graphic. How many rows are inthe output query
9
You want to map an input parameter of cal view A to an input parameter of Cal view B using the parameter mapping feature in cal view editor. However, the input parameters of cal view B are not proposed as source parameters. what might be the reason for this?
You already mapped the input parameters in another cal view
What are some best practices for writing SQLScrips for use with cal views
Break up large statements by using variables and choose declarative language instead of imperative language
What are the advantages of column store table compared to row store tables in general terms
Higher data compression rates, parallel access is improved and higher performance for query operations.
What is Iot
Devices are more intelligent by including CPUs and Internet connectivity built inside.
What are the opportunities for innovation in the digital world?
IoT
Increase data volumes
Data Science
New Data Types
Increase of Mobiles devices
The move to the Cloud platforms
What are the IT challenges on any organisation at the moment?
- Massive increase in data volume
- Legacy applications are difficult to enhance
- Users expect innovative apps with great performance
- IT landscapes have grown too complex
What is the key driver in the intelligent enterprise?
Data
What Intelligence Enterprise is made of?
- Business Processes
- Applications
- Technology
- Infrastructure
What is SAP BTP comprised of?
- Database & Data Management
- Analytics
- Application Development & Integration
- Intelligent Technologies
What is SAP Hana Cloud
It is fully managed, in memory, cloud database as service (DBaas)
Can SAP Hana Cloud access live data remotely in real time from any system?
True
What are the key services of SAP Hana cloud?
SAP Hana DB and Data Lake
What are the two most important aspects of SAP Hana Elasticity:
compute (CPU) and data storage
What is a dimension
Analysing the measures is easier if you group attributes together by dimension.
Dimension with associated attributes are
Sales Organisation->Country->Region
A star schema consists of
one fact table that references one or several dimension tables.
A hierarchy is
a structured representation of an organisation, a list of products, the time dimension, and so on, by levels
The term semantics is sometimes used to describe what a piece of data means, or relates to. A piece of numeric data that you report can be of different types, here are some examples:
- A monetary value: the total amount of sales orders
- A number of items: a number of sales orders, or a number of calls to support services
- A weight, volume, distance or a compound of these measures
- A percentage
Default data category is never exposed to client tools. Are this type of views to be exposed to the users?
False
Can the default views be used to build other views?
True
Is the default view appear as blank in DS?
True
In Cube star join: where do the private objects come from?
Join of facts tables
In Cube star join: where do the shared objects come from
Join of dimension tables
In How many ways can you determine what type of table is a SAP Hana table
3
What are those ways to determine the SAP Hana table type
- System/View catalog-> check the table icon. Open the table definition
- Within a node in Information view consuming the table
- From the SQL console – table M_TABLES:
SELECT SCHEMA NAME, TABLE NAME, TABLE TYPE FROM M_TABLES
WHERE SCHEMA_NAME = XXXX
AND TABLE_NAME = XXXX
TUFs are used when there is a need for
“if…then…else” or loops (for while)
What are the SAP Hana Engines
- Join engine
- OLAP engine
- Calculation engine
What are the two main steps to optimised the cal view when it is queried
- The cal engine generates a single SQL statement, then it is passed to the SQL optimiser, and
- The SQL optimiser adds additional optimisations and delegates operations to the best DB execution operator
Standard data preview features In SAP Web IDE, there are two tabs,
Raw data: displays all data
Analysis: Selected attributes and measures in tables or graphs
Setting a filter in SAP Web Ide is performed under
Tool->preference->data preview
It is on: the data preview is not execured immediately
Deferred Default Query execution
Deferred Default Query execution
When the user wants to apply additional criteria
When the user wants to execute a custom query derived from the standard data preview
What is an inner join
The Inner Join is the most basic of the join types. It returns rows when there is at least one match on both sides of the join.
Where is Full Outer Join supported by
calculation views only, in the standard and Star Join nodes.
What is a Full Outer Join
It combines the behaviours of the Left and Right Outer Joins.
The result set is composed of the following rows:
* Rows from both tables that match on joined columns
* Rows from the left table with no match in the right table
* Rows from the right table with no match in the left table
The type of joins between the fact and dimension tables within the star schema can be defined in the Star Join node. The available joins are
1 Referential Join
2 Inner Join
3 Left Outer Join
4 Right Outer Join
5 Full Outer Join, with some specific restrictions (see above)
6 Text Join
What is the SAP Hana specific joins
- Referential join
- Text join
- Temporal join
- Star join
- Spatial join
How does the full outer join behave?
The behaviour is combining the left and outer joins
* Rows from both tables that match on joined columns
* Rows from the left table with no matching in the right table
* Rows from the right table with no matches in the left table
Where is the Full outer join defined
In the standard and star join nodes.
In a star join node a full outer join can be defined on one dimension cal view and this view must appear last in what join
the star join node
A referential join is semantically an inner join that assumes that referential integrity is given,
meaning that the left table always has a matching entry in the right table
A referential join is performed only
if at least one field from the right table is requested
If the cardinality is 1..1 or n..1. would the join be executed?
the join is not executed
Text joins act as Left Outer joins and can be used with SAP tables only if
The language column - field (SPRAS) is present.
Temporal joins are only supported in the star join of calculation views of the type cube with star join. What should the join be defined as?
The join must be defined as inner
Temporal conditions can be defined on columns of the following data types: 3
- Timestamp
- Date
- Integer
The star join in calculation views of the type Cube with star join is a node type, rather that a join type.
True
What is Join cardinality
The cardinality defines how data from two tables are related
When does Multi-Join Priority Affect the Join Node Results
- When all joins are Inner Joins, the result set is generally the same regardless of the join execution order.
- With a mix of Inner and Left Outer Joins, the result set can vary based on the join execution order.
What is non equi join
SAP HANA cloud provides a type of join, called Non-Equi Join, where the join condition is not represented by an = (equal) operator
Non equi join can be defined for the following types of joins
- Inner
- Left Outer
- Right Outer
- Full Outer
What columns are involved in the Dynamic Join
Only the joined columns requested in the query are brought into context and play a part in the join execution
What happened in a Dynamic Join when none of the joined columns are requested by the client query
you get a query runtime error
Union node can be used to join data set with not matching structures
yes
How many union approaches exist
standard and constant values
What is standard union:
a standard union is where, for each target column in the union, there is always one source column that is mapped
What is union with constant value
A union with constant values is where you provide a fixed value that is used to fill a target column where the data source cannot provide a mapped column.
What is the purpose of an aggregation node
The purpose of an Aggregation node is to apply aggregate functions to measures based on one or several attributes
What are the aggregated functions used in the graphical calculation views?
SUM (the default function), MIN, MAX, and COUNT.
What are the additional aggregate functions in SAP HANA Cloud that can be applied to the calculation views:
- Average
- Variance
- Standard deviation
- Median
In an Aggregation node, a calculated column is always computed AFTER the aggregate functions.
True
What are node features helping to control the aggregation nodes
- Keep Flag
- Transparent Filter
Setting the Keep Flag property to true for a source field column forces
the calculation to be triggered at the relevant level of granularity
Set transparent filter is needed when
When using stacked views where the lower views have distinct count measures.
When queries executed on the upper calculation view contain filters on
columns that are not projected.
What is the purpose of rank node
The purpose of the Rank node is to enable the selection, within a data set, of the top or bottom 1, 2, … n values for a defined measure, and to output these measures together with the corresponding attributes and, if needed, other measures.
When there is a need to combine measures from two tables, there is the tendency to create a join. This practise is very expensive. It is more beneficial to use a union node.
A union is not a join.
What are the Calculated columns?
- The calculation can be arithmetic or just character string manipulation
- Cal column also support non measure attributes as part of the calculation
- It is possible to nest cal columns so that on cal column can be used in other cal columns
The purpose of these time based dimension cal views
is to ease the manipulation of measures across time.
What are the calendars available for time cal views
- Gregorian: This is made up of years, months, and days.
- Fiscal: this is organised into fiscal years and fiscal periods
What is the name of the table populated for the Gregorian calendar?
M_TIME_DIMENSION
What is the name of the table populated for the fiscal calendar
M_FISCAL_CALENDAR
Which schema holds the tables M_TIME_DIMENSION and M_FISCAL_CALENDAR
_SYS_BI
Can a table be used several times in a cal view
True
Alias name can be generated when adding the same table to a view.
True
Can the Alias name be modified
Yes, on the properties-> alias
Aggregating data in a dimension calculation view would be like a “Select Distinct Statement”
In cal view measures can originate from several data sources, such as:
- Several tables
- information views
- Table functions
When a report tool request data from cal view, the speed of returning data depend on
- Selected attributes and measures
- Aggregate functions applied by the client query
- Ordering defined on one or several columns
Overview of the possible node types
Node type Use case
Projection To filter data or obtain a subset of required columns from a datasource
Aggregation To summarize measures by grouping them together by attribute columns values
Join To query data from two or more data sources
Union To combine the data from two data sources
Star join To join attributes to the very last node of a Cube with star join calculation
Rank To order the data for a set of partition columns and select only the top 3/4/…./n elements
Can a dynamic join be used on one attribute only
No, it must be done in several attributes
Would you receive an error message if the calling query does not request a join dimension. The dynamic join is not activated.
True
The star join is always deployed with an aggregation node on top of it.
Can the star join in cal views supports the referential join type?
True
When can the union node be utilised
When the multiple result set have identical structures
Can the union node be utilised with more than two identical structures
True
Standard union can be of two types
- A standard union
- A union with constant values
What is a standard union
For each target object, there is one source column that is mapped.
Does Standard union must provide provide a source column for all fields
False