HANA_Q&A

27
WEEK-1 UNIT -1 1. What are the core capabilities of the SAP HANA database? Note: There are 3 correct answers to this question. o There is a special format for programming o Parallel processing can be performed across multiple CPUs o Data can be stored in a column store o Every row is a secondary index o All operations are performed in memory 2. What are some of the features of non-native applications? Note: There are 3 correct answers to this question. o They use an external application server o They use SAP HANA XS o Existing applications can be used without change o They connect directly to SAP HANA o They can be extended to run on SAP HANA 3. The SAP HANA platform comprises the following main components. Note: There are 3 correct answers to this question. o SAP HANA SQL o SAP HANA application cloud o SAP HANA appliance software o SAP HANA database o SAP HANA OData UNIT-II 4. Which perspectives does a developer use to build SAP HANA applications? Note: There are 3 correct answers to this question. o The Administration Console perspective

description

hana q&a from training programme of Thomas jung

Transcript of HANA_Q&A

WEEK-1

UNIT -1

1. What are the core capabilities of the SAP HANA database?Note: There are 3 correct answers to this question.

o There is a special format for programmingo Parallel processing can be performed across multiple CPUso Data can be stored in a column storeo Every row is a secondary indexo All operations are performed in memory

2. What are some of the features of non-native applications? Note: There are 3 correct answers to this question.

o They use an external application servero They use SAP HANA XSo Existing applications can be used without changeo They connect directly to SAP HANAo They can be extended to run on SAP HANA

3. The SAP HANA platform comprises the following main components. Note: There are 3 correct answers to this question.

o SAP HANA SQLo SAP HANA application cloudo SAP HANA appliance softwareo SAP HANA databaseo SAP HANA OData

UNIT-II

4. Which perspectives does a developer use to build SAP HANA applications? Note: There are 3 correct answers to this question.

o The Administration Console perspectiveo The Debug perspectiveo The Modeling perspectiveo The JavaScript perspectiveo The SAP HANA Development perspective

5. What is the main function of the SAP HANA repository?o To store runtime object versionso To store user preferences

o To store design-time object versionso To store catalog tables

6. Which views are displayed in the SAP HANA Development perspective? Note: There are 3 correct answers to this question.

o SQL editoro SAP HANA Repositorieso Navigator (SAP HANA Systems)o Project Explorero Job log

7. Which type of access does the SAP HANA Repositories view provide to repository content in SAP HANA studio?

o Read-only browse accesso Access to local content onlyo Full read/write accesso Write access

UNIT-III

8. Which of the following operations does the SAP HANA client perform?o It connects the SAP HANA repository to the SAP HANA database.o It connects the SAP HANA studio to the SAP HANA repository.o It connects the SAP HANA studio to another instance of the SAP HANA studio.o It connects Web browsers to the SAP HANA studio.

9. What is the SAP HANA studio? Note: There are 3 correct answers to this question.

o An Eclipse-based writing toolo An Eclipse-based administration toolo An Eclipse-based development environmento An Eclipse-based upgrade toolo An Eclipse-based modeling environment

10. What is a design-time object in SAP HANA? o Only active content stored in the SAP HANA repositoryo Only inactive content stored in the SAP HANA repositoryo All content stored in the SAP HANA database catalogo Transportable content stored in the SAP HANA repository

UNIT-IV11. What do you use to request access to a running SAP HANA system?

o SAP HANA forumo SAP Community Mailing Listo Search engineso SAP HANA Developer Center

12. How can you reduce the cost of an SAP HANA system with Amazon Web Services (AWS) in the Cloud? Note: There are 3 correct answers to this question.

o Use Request Spot Instances to bid on an instanceo Choose a higher HANA instance size when creating a stack in AWSo Start your instance using an EBS Optimized Volumeo Stop the instance when not using the instanceo Choose a lower HANA instance size when creating a stack in AWS

UNIT-V

13. Where does an SAP HANA application store design-time content? o In the SAP HANA application descriptorso In the SAP HANA repositoryo In dedicated XSJS fileso On the SAP HANA Web server

14. Which of the following are core application files? Note: There are 2 correct answers to this question.

o .xsappo .xsaccesso .xslogono .xsproject

15. Which of the following application files has no content?o .xsappo .xsprivilegeso .xssqlcco .xsaccess

16. What is the main role of server-side JavaScript in SAP HANA XS?o To define data unaided in the SAP HANA databaseo To update data unaided in the SAP HANA databaseo To extract content unaided from the databaseo To expose extracted data in response to client requests

WEEKLY ASSIGNMENT-1

17. What are some of the features of non-native applications? Note: There are 3 correct answers to this question.

They connect directly to SAP HANAThey use an external application serverThey can be extended to run on SAP HANAThey use SAP HANA XSExisting applications can be used without change

 

18. Which of the following is true of SAP HANA Extended Application Services (SAP HANA XS)? Note: There are 3 correct answers to this question.

SAP HANA XS handles the control flow (business) logicSAP HANA XS is a lightweight application serverSAP HANA XS handles the data extraction logicClients handle the presentation logicSAP HANA XS handles the data calculation logic

 

19. What is an SAP HANA project?

A collection of inactive development objectsA shared folderA collection of both active and inactive development objectsA collection of active development objects

20. Which type of access does the Project Explorer view provide to repository content in SAP HANA studio? Write access to all packagesRead/write access to authorized packages in the repositoryRead-only access to all packagesRead/write access to local content only

 

21. Which SAP HANA studio perspectives are most often used by the application developer?

Note: There are 2 correct answers to this question.

The JavaScript perspectiveThe Project Explorer perspectiveThe Debug perspective

The SAP HANA Repositories perspectiveThe SAP HANA Development perspective

 22. What is a runtime object in SAP HANA?

An object generated when you commit an object in the SAP HANA repositoryAn object generated when you activate an object in the SAP HANA repositoryAn object generated when you share an object in the SAP HANA repositoryAn object generated when you save an object in the SAP HANA repository

23. How can you reduce the cost of an SAP HANA system with Amazon Web Services (AWS) in the Cloud? Note: There are 3 correct answers to this question.

Choose a lower HANA instance size when creating a stack in AWSStop the instance when not using the instanceStart your instance using an EBS Optimized VolumeChoose a higher HANA instance size when creating a stack in AWSUse Request Spot Instances to bid on an instance

 

24. What happens when you stop an SAP HANA instance on Amazon Web Services (AWS)?

Data entered during an AWS session is saved and made available when the instance restartsData entered during an AWS session is lost and must be reentered on restartYou are prompted to save data before the AWS session stopsThe AWS session continues to process data in the background

 

25. Where does an SAP HANA application store runtime objects?

The Eclipse project workspaceThe SAP HANA workspaceThe SAP HANA repositoryThe SAP HANA database

26. Which of the following elements can you specify in the application-access file? Note: There are 3 correct answers to this question.

Application privilegeContent exposureContent hierarchyUser-authentication mechanismUser authorization

WEEK-2

UNIT-I

27. What is meant by the term hdbtable? o A syntax used to specify table authorizationo A syntax used to define runtime representation of a tableo A syntax used to define a design-time representation of a tableo A syntax used to define table access permissions

28. What is the main advantage of the design-time approach to data modeling? o Faster data-model design processo Immediate availability of data modelo Longer, more accurate data-model design processo Transportability of data models between SAP HANA systems

29. What is the file extension associated with a design-time schema definition?o .scho .hdbscho .hdbschemao .schema

30. What are the main benefits of the SAP HANA repository for application development? Note: There are 3 correct answers to this question.

o Built-in support for translatable textso Software component delivery and patchingo Support for client-based developmento Direct connection to external product updateso Object management, versioning, and transport

UNIT-II

31. Which of the following are valid keywords in a design-time sequence definition for SAP HANA? Note: There are 3 correct answers to this question.

o start_with=o cycles=o stop_with=

o schema=o depends_on_sequence=

32. What is the file extension associated with a design-time SQL view definition?o .hdbviewo .vwso .hdbvwso .view

33. What is meant by the key word "cycles = true"?o When a sequence reaches the end, it starts over againo When a sequence reaches the end, a different sequence is triggeredo The sequence remains open-endedo When a sequence reaches the end, it is reversed

UNIT-III

34. Which of the following roles are assigned by default to an SAP HANA user? Note: There are 3 correct answers to this question.

o SUPERUSERo MONITORINGo MODELINGo PUBLICo CONTENT_ADMIN

35. What is the correct file extension for a design-time role definition?o .dbro .hdbroleo .roleo .xsrole

36. What is the name of the _SYS_REPO procedure used to grant a role to an SAP HANA user?

o GRANT_INACTIVE_ROLEo GRANT_ACTIVE_ROLEo GRANT_ ACTIVATED_ROLEo GRANT_USER_ROLE

UNIT-IV

37. Which of the following sequences are included in the EPM data? Note: There are 3 correct answers to this question.

o Text IDo Address IDo Goods Receipt IDo Purchase Order IDo Invoice ID

38. Which of the following synonyms is included with the EPM data?o TCURZo TCURCo T00Ao T002

UNIT-V

39. Which files are required for an automated table load using a design-time configuration? Note: There are 3 correct answers to this question.

o A table-import model fileo A table-import index fileo A table content fileo A CSV fileo A table-import data file

40. What is the mandatory file extension for the file used to define table-import data?o .hdbdatao .hdbido .hdbdo .hdbtid

UNIT-VI

41. Can you create a new field in an attribute view? o No, you must insert the new field in the source system as a placeholder. o No, you must define the new field in the analytic view.o Yes, you can.o Yes, but you cannot fill the new field with data. This must be done in a

calculation view.

42. What is the normal way to check the correctness of an attribute view?o With an SAPUI5 script

o With data preview in SAP HANA studioo With an SQL scripto With a query in SAP BW

43. Which of the following are properties of an output column? Note: There are 3 correct answers to this question.

o Hiddeno Output Coloro Key Attributeo Drilldown Enabledo Template

UNIT-VII

44. The SEMANTICS part of the model is the correct place to: Note: There are 3 correct answers to this question.

o Define measureso Define variableso Define attributeso Define hierarchieso Define a calculated column

45. In Analytic views, you can perform the following actions: Note: There are 3 correct answers to this question.

o Hide a hierarchy of an attributeo Apply filters for attributeso Apply one variable for one attributeo Hide a measureo Apply several variables for one attribute

UNIT-VIII

46. Which of the following characters can you use in a calculation view name? Note: There are 3 correct answers to this question.

o Upper-case letters (A-Z)o Integers (0-9)o Lower-case letters (a-z)o Wildcards/Special characters (*, -)

o Underscores (_)

47. Which of the following are functions of the component projection in a calculation view? Note: There are 2 correct answers to this question.

o Define expressionso Create hierarchyo Define unionso Define output fieldso Format output

48. Which "elements" are used in the expression that defines a calculated column in a calculation view? Note: There are 3 correct answers to this question.

o Input parameterso Output parameterso Columnso Calculated columnso Measures

49. Which "functions" can be used in the expression that defines a calculated column in a calculation view? Note: There are 3 correct answers to this question.

o Derived functionso Integer functionso Mathematical functionso Date functionso Miscellaneous functions

UNIT-IX

50. For what do you need analytic privileges? Note: There are 3 correct answers to this question.

o To create an analytic usero To retrieve data from an analytic viewo To retrieve data from a calculation viewo To retrieve data from an attribute viewo To call a query

51. With analytic privileges, you can restrict access in a data container to: Note: There are 3 correct answers to this question.

o An attribute field in an Analytic viewo A field from an attribute viewo An attribute field in a Calculation viewo A private dimension of an Analytic viewo A public dimension of an Analytic view

52. What concept enables you to make the definition of analytic privileges more flexible?o Dynamic privilegeso Schema definitionso Value restrictionso The "Applicable to all content models" option

WEEKLY ASSIGNMENT-2

53. Which of the following statements is true for design-time objects in SAP HANA? Note: There are 3 correct answers to this question.

o In SAP HANA, design-time objects have a mandatory, type-specific file extension

o In SAP HANA, only the binary file type is allowed for design-time objectso Design-time objects are transportable between SAP HANA systemso Repository activation of an SAP HANA design-time object creates a runtime

object in the catalogo In SAP HANA, it is not possible to edit design-time objects

54. Which of the following are valid keywords in a design-time SQL-view definition in SAP HANA? Note: There are 3 correct answers to this question.

o cycles=o depends_on_sequence=o depends_on_view=o schema=o query=

55. Which parameters are required when using the SQL (grant role) procedure to grant an activated role to an SAP HANA user? Note: There are 2 correct answers to this question.

o ROLENAMEo ROLE_NAME

o ACTIVE_USERNAMEo ACTIVE_ROLENAMEo USERNAME

56. Which of the following objects are included in the EPM demo data? Note: There are 3 correct answers to this question.

o Synonymso Procedureso Tableso Sequenceso Triggers

57. What is the mandatory file extension for the file used to define a table-import model?o .hdbtimo .hdbimo .hdbmo .hdbmodel

58. What do you have to specify for a new calculated field? Note: There are 3 correct answers to this question.

o Data typeo Rule definitiono Tableo Widtho Color

59. How many objects can you use in the data foundation?o Oneo Objects are automatically assignedo As many as you likeo None

60. A restricted column can: Note: There are 3 correct answers to this question

o Restrict a hierarchyo Restrict a measureo Restrict an attributeo Restrict a calculated measure

 

61. Which of the following are types of calculation view? Note: There are 2 correct answers to this question.

o SQL Scriptingo Callingo Readingo Multidimensionalo Graphical

 

62. Which components can be a part of a calculation view? Note: There are 3 correct answers to this question.

o BAPIso Logical databaseo Analytic viewo Attribute viewo Tables

 

63. Which privilege types are included in the SAP HANA authorization concept? Note: There are 3 correct answers to this question.

o Analytic privilegeso Query privilegeso System privilegeso SQL privilegeso Parameter privileges

WEEK – 3

UNIT-I

64. When programming with SQLScript...o you have no possibility to create parallel SQLScript procedures.o you have to optimize the script for parallel execution with focus on

synchronization.o you do not need to worry about parallel execution, because all statements are

guaranteed to run in parallel.o you must keep in mind that there are combinations of statements, which could

block parallel execution.

65. As well as SQLScript, which programming language can you use to write procedures?o C++o NoSQLo XSJSo R-Language

66. Procedures can be defined...o as read-only procedures using the keywords READS SQL DATA.o to return a view using the keywords AS VIEW.o to be executed sequentially using the keywords EXECUTE SEQUENTIALLY.o as purely imperative using the keywords IMPERATIV ONLY.

UNIT-II

67. Which statement is true?o Input parameters have to be marked with an @ in front of them.o Input parameters have to be marked with a # behind them.o Input parameters have to be marked with a colon in front of them.o Input parameters do not need to be marked.

68. Where are activated procedures stored by default?o In the same schema as your JavaScript sourceso On your local PCo In the "PROC" schemao In the "_SYS_BIC" schema

UNIT-III

69. The Calculation Engine (CE) is the execution engine for what? Note: There are 2 correct answers to this question.

o SQLScript-based procedures.o Calculation views.o Complex arithmetic functions, like sin, cos, tan, and derivative.o XS-JavaScript functions.o Semantic media mining in the database.

 

70. Imagine you have a column-stored table named "BOOKS" with the attributes "TITLE", "AUTHOR", "ISBN", "PRICE", and "PUBDATE". If you want to select the author and title of all books that cost less than $10, which of the following statement has the best performance?

o SELECT * FROM "BOOKS" WHERE "PRICE"<10

o SELECT "AUTHOR", "TITLE" FROM "BOOKS" WHERE "PRICE"<10o CE_SELECT("BOOKS"; "AUTHOR", "TITLE"; "PRICE"<10)o CE_PROJECTION("BOOKS",["AUTHOR", "TITLE"],'"PRICE" < 10')

UNIT-IV

71. In general, what is the effect of using imperative logic in the SAP HANA Database?o The programmer can decide whether the procedure is executed in parallel or not.o One record is processed at a time.o You have to write your procedure in pure C.o Imperative code performs bulk operations on an entire record set.

 

72. Imagine you want to calculate the price of all the books in your book table. Which of the following is the best solution in terms of performance and correctness?

o val := CE_SUM(:books, [price]);o SELECT SUM(price) into val FROM bookso CURSOR c_cursor1 FOR SELECT isbn, title, price FROM books; BEGIN FOR

r1 AS c_cursor1 DO val := :val + r1.price; END FOR;o books = SELECT price FROM books; FOR i IN books DO val := :val + i.price;

END FOR;

UNIT-V

73. Which of these elements is not a main element of the Debug Perspective in the SAP HANA studio?

o Code Viewo Watch Windowo Calculation Statisticso Debug Session

WEEKLY ASSIGNMENT-3

74. What is SQL Script?o Internal SAP HANA logic that performs SQL queries on the data.o Extended ANSI SQL standard for stored procedures in the SAP HANA Database.o A draft for SQL statements for the SAP HANA Database.o A JavaScript like language, that combines some declarative parts of SQL and

some imperative and object-oriented parts of Java.

 75. Using imperative logic in SQL Script procedures...

o requires a special library.o is not allowed.o prevents parallel processing.o leads to undefined behavior.o increases the performance of your application.

 

76. You should avoid using SELECT * whenever possible, becauseo materialization of attributes, which are not accessed by the application results in

increased I/O.o in a column-table, the database system has to read all columns, even if they are

not used.o it blocks other select queries on the SAP HANA Database.o it cannot be executed in parallel.

 

77. A stored procedure can be tested...o with the SQL Script test unit.o by clicking the Activate button, and thereby triggering a procedure execution.o with the SQL Console provided by the SAP HANA studio.o with assert() statements in the procedure.

 

78. Which engines really exists in the SAP HANA Database? Note: There are 3 correct answers to this question.

o Combined OLTP/OLAP Engineo Calculation Engineo Row Store Engineo Join Engineo FTP Engine

 

79. What are Calculation Engine (CE) functions?o Implementations of the 5 most used standard SQL statements.o The 5 basic functions the database combines to execute all possible SQL queries.o Implementations of all standard SQL statements directly in the calculation engine.o Implementations of many standard SQL statements directly in the calculation

engine.

 

80. Which loop statements are part of the correct SQLScript syntax of SAP HANA? Note: There are 2 correct answers to this question.

o <MARK>: ... IF ... THEN JUMP <MARK>;o WHILE ... DO ... END WHILE;o FOR <loop-var> IN <start> ... <end> DO ... END FOR;o REPEAT ... UNTIL ... END REPEAT;

 

81. For which schema do you need all privileges to be able to debug?o _SYS_REPOo _SYS_RTo _SYS_BIo _SYS_BIC

 

82. What do you currently have to set up in your debug configuration?o None of theseo The IP and port of your SAP HANA systemo Input parameter valueso The number of iterations through the procedure

WEEK-4

UNIT-I

83. Which of the following are traits of classic ABAP applications? Note: There are 2 correct answers to this question.

o Application logic is executed in the application server, instead of using advanced SQL capabilities.

o The application server must be very small.o The application server is not involved with UI rendering.o The database is used for many stored procedures.o The database is only used for data storage.

84. What increases the performance of applications for the XS Engine?o Locality and deep integration with the databaseo High performance of the connection between the client and the XS Engineo A wide range of client devices

o The calculation power of the XS Engine

UNIT-II

85. Where do you find the SAPUI5 help in your SAP HANA database? o hostname:port/sap/ui5/1/sdk/overview.htmlo hostname:port/sap/ui5/1/API/overview.htmlo hostname:port/sap/ui5/1/API/index.htmlo hostname:port/sap/ui5/1/sdk/index.html

UNIT-III

86. Which path do you have to specify for the "src=" attribute in your .html-file to have the correct settings for your SAP HANA system?

o /sap/ui5/1/resources/sap-ui-core.jso /sap/ui5/resources/sap-ui-core.jso sap/ui5/resources/sap-ui-core.jso sap/ui5/1/resources/sap-ui-core.js

 

87. In the code line var myButton = new sap.ui.commons.Button("btn"), what does the parameter "btn" set for this element?

o Alert-text for the on-click evento IDo Nameo Text

UNIT-IV

88. Which of the following are OData query options? Note: There are 3 correct answers to this question.

o $filtero $selecto $topo $bottomo $equals

89. Which of the following are steps in the OData development process? Note: There are 2 correct answers to this question.

o UI Call to OData Serviceo Data End Point Definitiono Data Migration Definitiono Data Start Point Definition

UNIT-V

90. Which of the following are the possible response types for an OData service? Note: There are 2 correct answers to this question.

o JSONo YAMLo Atom-XMLo txt

 

91. Which is the easiest data format to consume directly in custom JavaScript code?o JSONo Atom-XMLo YAMLo txt

UNIT-VI

92. Which of the following statements about OData services is correct? Note: There are 2 correct answers to this question.

o Each entity needs at least one stored procedureo Each entity needs a keyo Each entity needs a table/view on which it is definedo Each entity needs its own service

UNIT-VII

93. How do you get the records from your OData entity into your table?

o .bindRows("path",...)o .bindProperty("path",...)o .bindData("path",...)o .bind("path",...)

 

94. Which functionality is implemented for the SAPUI5 Table Columns by default? Note: There are 2 correct answers to this question.

o Auto-completiono Filtering (by string)o Syntax-highlightingo Sort ascending

WEEKLY ASSIGNMENT-4

95. What does ICM stand for?o Internet Communication Managero Internal Communication Managero Internet Control Managero Internal Control Manager

96. What increases the performance of applications for the XS Engine?o A wide range of client deviceso The calculation power of the XS Engineo High performance of the connection between the client and the XS Engineo Locality and deep integration with the database

97. On which side of the application does SAPUI5 run?o Only Servero Only Cliento Client and Servero Database

98. Which formats can you use to specify a view?Note: There are 3 correct answers to this question.

o XMLo Java

o JavaScripto JSONo C++

99. Which connection capabilities do you need to use an OData service?Note: There are 2 correct answers to this question.

o ODBCo JDBCo HTTPo SQLDBCo HTTPS

100. Which type of file do you have to use to create an OData service?o .odatao .odataxso .xsodatao .xodatas

101. How do you combine multiple query options for OData via HTTP-Request?o -o &o ;o And

102. When do you have to define a key for your exposed OData entity?o When you define the OData entity on a view that has a combined primary keyo When you define a projection for your OData entityo When you define the OData entity on a table that has a combined primary keyo When you define the OData entity on a view

103. Which command do you need to get the correct data from a column in your OData entity into a table column

o UI element?o .bindProperty(...)o .assign(...)o .bind(...)o .assignProperty(...)

WEEK-5

UNIT-I