Database Administration and SQL Best Practices

Test your knowledge of database administration, SQL coding standards, performance optimization techniques, security guidelines, and Oracle-specific features like parallelism and indexing.

19 Questions Published

Questions

Question 1 True/False

If the number of leaf blocks of index , scanned is less than 5000 then degree of parallelismis 2?

  1. True
  2. False
Question 2 True/False

If the number of leaf blocks of index , scanned is 50000-250000 then what is the degree of parallelism is 16 ?

  1. True
  2. False
Question 3 True/False

NOLOGGING is used to reduce redo log generation ?

  1. True
  2. False
Question 4 True/False

EXPORT_TABLE_STATS procedure is used to export statistics of an existing table ?

  1. True
  2. False
Question 5 True/False

If the serial code runs in less than 50% window time than parallelism should be considered ?

  1. True
  2. False
Question 6 True/False

The purpose of comments is that someone that has never worked on the project before. They would need to underderstand precisely where changes has been done, why those changeswere made, and exactly what the change was.

  1. True
  2. False
Question 7 True/False

The primary goal of logging is to ensure that if your PL/SQL block has performance problems once deployed to production you should be able to identify the exact SQL or other PL/SQL component (eg a loop) that is causing the issue.

  1. True
  2. False
Question 8 True/False

HINTS should be used to parallelise an operation if the operation is FULL TABLE SCAN ?

  1. True
  2. False
Question 9 True/False

If parallelism is used in a DML then PX COORDINATOR should be below DML operation in the EXPLAIN PLAN ?

  1. True
  2. False
Question 10 True/False

Comment lines contain about the parallelism used ?

  1. True
  2. False
Question 11 True/False

BITMAP INDEX is used in situations where the index is created after the table or partition is populated ?

  1. True
  2. False
Question 12 True/False

If we are using UNION or UNION ALL then comment is necessary ?

  1. True
  2. False
Question 13 True/False

UNION or UNION ALL should be avoided ?

  1. True
  2. False
Question 14 True/False

As per BT security guide lines, account sharing is legal ?

  1. True
  2. False
Question 15 True/False

Reading and writing data in datawarehouse should be maximized ?

  1. True
  2. False
Question 16 True/False

In case of any deployment you if we need to backup data anywhere there must be a clear plan to remove this later. ?

  1. True
  2. False
Question 17 True/False

For creating a table named T1 do we need to check whether that table exist or not ?

  1. True
  2. False
Question 18 True/False

Make sure that every SQL that will run in your PL/SQL writes it’s elapsed time to your log file?

  1. True
  2. False
Question 19 True/False

Business Logic comments is required for any SQL

  1. True
  2. False