Sei sulla pagina 1di 5

c 

 

1) In the Shared SQL Area, you find a Select statement with 10,000 logical read accesses per
execution
("Gets/Execution"). What could be the reasons for the high number of read accesses? Note!
More
than one answer is correct.
a) There is a hardware bottleneck (CPU or I/O) on the database server
b) There is a network problem between the application server and the DB server.
c) The database optimizer has decided in favor of the "incorrect" index OR there is no
appropriate
index for the SQL statement.
d) There are lockwait situations (Exclusive Lockwait) in the database.
e) A large number of records are being transferred from the database to the ABAP program.
2) What is the quality in the following screen dump?
a) 95.0
b) 97.7
c) 98.7
d) 94.4
3) The typical ratio for ³User calls´ to ³reads´ from the data buffer for a well tuned R/3 system is
approximately:
a) 1:10
b) 1:20
c) 1:15
d) 1:100
4) Expensive SQL statement in which there are many buffer gets but only a few records per
execution
can be tuned by:
a) Update of optimizer statistics
b) Increasing the Redo log buffer area
c) Change of ABAP code
d) Creating an Index
e) Increasing the parameter db_cache_size.
5) What should be the command to update statistics in SAP release 6.10 and higher?
a) Sapdba ±checkopt followed by sapdba ±analyze
b) brconnect ±f check
c) brconnect ±f stats
d) brconnect ±f statistics
6) Parsed SQL statements are stored in which of the following Memory area?
a) Database buffer cache
b) Shared SQL area
c) Redo log buffer
d) None of the above
xx.xx
7) One of the expensive statements chooses an unsuitable access path leading to many buffer
gets but
only a few records per execution. Such type of statements can be tuned with:
a) Update of optimizer statistics
b) Change of ABAP code
c) Optimizing user input
d) Creating an index
8) One of the expensive statements chooses a suitable access path leading to many buffer gets
and many
records per execution. Such type of statements can be tuned with:
a) Change of ABAP code
b) Optimizing user input
c) Creating an index
d) Tuning of the business process
9) During an investigation by a Basis administrator in the month of February 2005, he came
across an
expensive statement. What could be his initial reaction?
a) Index is missing on the table.
b) ABAP code needs to be changed.
c) Table statistics is not up to date.
d) None of the above.
10) Which of the following statement is true about ³Estimated cost´ displayed in the execution
plan of an
SQL statement using ³Explain´?
a) Estimated cost indicates either the expected number of buffer gets that must be performed or
the expected number of disk accesses.
b) CPU time necessary to process the statement greatly influence the estimated costs.
11)An R/3 system has expensive statements if: (1) the number of buffer gets for the topmost
statement
exceeds 5% of the total number of reads. (2) The ratio of reads to user calls > 15.
a) False
b) True
12) Statements with many buffer gets per execution will lead to:
a) High consumption of system resources during execution.
b) Should have a low number of executions.
c) Should not be executed during peak hours.
d) None of the above
13) Which of the following table is used to update the accuracy of table statistics using DB21?
a) DBMSGORA
b) DBCHECKORA
c) DBSTATC
d) BDSTATC
14) For the purpose of calculating table statistics, method ³Compute´ means that only a part of
the table
is used for the analysis.
a) False
b) True
15) During the process of finding out the code that caused the expensive statement, it is now
possible (As
of release 4.6 B) to jump directly to the ABAP code from Shared Cache Area.
a) False
b) True
16) An ABAP Open SQL statement is different than the SQL statement in the Shared SQL Area
in case
of:
a) Use of Internal tables (IN TAB)
b) The command FOR ALL ENTRIES
c) Projection views
d) SAP Queries
e) None of the above
17) Which of the following statements are true?
a) The system administrator monitors the impact of expensive SQL statements in the system. If
the
system is well tuned and properly sized, he can only analyze the situation and not solve it.
b) It is the job of end-users to optimize the coding, indexes and customizing and is responsible
for
the data model design.
c) In large installations it is always recommended to log the details of expensive statements in
the
system and send the summary to IT management if requested.
d) If an expensive statement is less critical, the user can be advised to run the same in the
background or during periods of low system activity.
18) In case of an ³Index Unique Scan´ approximately how many blocks (table and index) could
be
accessed?
a) 1
b) 4
c) 3
d) 10
19) Suppose one large table ZVBAP has 10 fields apart from the primary key on the following 3
fields
MANDT, VBELN and POSNR. Which of the following statement is correct?
a) A statement such as: SELECT * FROM ZVBAP WHERE MANDT = µ001¶ AND VBELN =
µ0000123¶
AND POSNR = µ0001¶ is of type ³Index Unique Scan´ and will result in more than 1 records.
b) A statement such as: SELECT * FROM ZVBAP WHERE MANDT = µ001¶ AND VBELN =
µ0000123¶ is
of type ³Index Range Scan´ and will result in 0 or 1 number of records.
c) A statement such as: SELECT * FROM ZVBAP WHERE MANDT = µ001¶ AND POSNR =
µ0001¶ is of
type ³Index Range Scan´. However it is inefficient leading to the reading of many index blocks
that do not contain the requested data.
d) A statement such as: SELECT MANDT, VBELN, POSNR FROM ZVBAP WHERE MANDT =
µ001¶
AND POSNR = µ0001¶ will return the data from the index blocks. In this case data blocks do not
need to be read resulting in less buffer gets.
e) A statement such as: SELECT * FROM ZVBAP WHERE MANDT = µ001¶ AND MATNR =
µ00815¶ is of
type unselective ³Index Range Scan´. This may lead to reading a very large fraction of index
blocks. In such kind of selects maximum Gets/Execution could be = Number of table rows +
number of index blocks.
20)Which of the following is true about ³Full Table Scan´?
a) No index is used during a full table scan.
b) Each data block is read once.
c) Maximum Gets/Execution could be = Number of table blocks + number of index blocks
21) Which of the following statements are true?
a) If table statistics exist, the Oracle cost based optimizer is used and the estimated cost for the
selected access path is > 0.
b) If rule based optimizer is used than either µestimated costs = 0¶ or no estimated costs at all
displayed in the explain output.
c) In a query if the options used are not supported by rule based optimizer, the cost based
optimizer
is used, although no statistics exist.
d) None of the above.
22)Which of the following Oracle parameter control cost calculation functions?
a) control_cost
b) db_file_multi_block_read_count
c) events
d) optimizer_index_cost_adj
e) cost_pool_size
23)What is SAP recommended value for db_file_multi_block_read_count?
a) 16
b) 8
c) 10
d) 24
24)Which of the following R/3 parameters control cost calculation functions?
a) rsdb/max_blocking_factor
b) dbs/ora/use_hints
25)What is SAP recommended value for rsdb/max_blocking_factor?
a) 10
b) 5
c) 15
d) 8
26)Which of the following statements about creating indexes are correct?
a) Use only selective fields if possible.
b) Use as few fields as possible. Thumb rule: Max 5.
c) Create as many indexes per table as possible. There is no limit.
d) You are free to change the index created by SAP.
27)Which of the following steps one can take before resorting to creating an index for a table in
order
to optimize an expensive SQL statement?
a) Check for the missing index in DB02 and recreate them.
b) Run update statistics.
c) Change the code so that existing index can be used.
d) Change SAP index without SAP approval.
28)Which of the following statements are true about ³Similar Statements´?
a) They use the same access path.
b) Have the same or similar WHERE clause.
c) Have different entries in the Shared SQL area.
d) May not be individually expensive, but the sum of similar statements can be expensive.
e) None of the above.
29) Are the following statements similar:
SELECT * FROM V_MARA WHERE MANDT = µ001¶ AND KOSTL IN (A, B)
SELECT * FROM V_MARA WHERE MANDT = µ001¶ AND KOSTL IN (A, B, C)
SELECT * FROM V_MARA WHERE MANDT = µ001¶ AND KOSTL IN (A, B, C, «, Z)
a) Yes
b) No
30) The Shared SQL Area treats statements as ³different´ if the character string is different.
a) False
b) True
31) How can you avoid similar statements?
a) Change the ABAP code so that statements match exactly.
b) Use the ABAP command FOR ALL ENTRIES instead of IN conditions.
c) Write the statements once in upper case and once in lower case when you are using third
party
tools.
d) All of the above.
32)Which of the following statements are possible optimization methods for expensive
statements with
suitable access path?
a) Pull the statement out of the loop or nested select if the where clause of the driven statement
does not change.
b) Do no think of join or view instead of the nested select as join could be very expensive.
c) Process only those records that are required.
d) None of the above.
R  

1) c, e
2) c
3) c
4) a, c, d
5) c
6) b
7) a, b, c, d
8) a, b, d
9) c
10) a
11) b
12) a, b, c
13) c
14) a
15) b
16) a, b, c, d
17) a, c, d
18) b
19) c, d, e
20) a, b
21) a, b, c
22) b, c, d
23) b
24) a, b
25) c
26) a, b
27) a, b, c
28) a, b, c, d
29) a
30) b
31) a, b
32) a, cY

Potrebbero piacerti anche