Sail E0 Webinar

MCQs

Total Questions : 11 | Page 1 of 2 pages
Question 1. Point out the correct statement :
  1.    Avoid less row count SQL statements that can cause a table lock
  2.    A blocking lock occurs when one lock causes another process to wait in a holding queue
  3.    Lock is a done by database when any connection access a different piece of data concurrently
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> A blocking lock occurs when one lock causes another process to wait in a holding queue


If blocking locks are common (rather than infrequent), there is probably some kind of design or query implementation problem.


Question 2. To remove archival compression and restore the data to columnstore compression :
  1.    Use ALTER TABLE
  2.    Use ALTER COLUMN
  3.    Use ALTER DATABASE
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> Use ALTER TABLE


use ALTER TABLE (Transact-SQL) or ALTER INDEX (Transact-SQL) with the REBUILD option and DATA COMPRESSION = COLUMNSTORE.


Question 3. Point out the correct statement :
  1.    When SORT_IN_TEMPDB is set to OFF, the default, the sort runs are stored in the source filegroup
  2.    The Database Engine first scans the data pages of the base table to retrieve key values and builds an index leaf row for each data row
  3.    When SORT_IN_TEMPDB is set to ON, the default, the sort runs are stored in the destination filegroup.
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> The Database Engine first scans the data pages of the base table to retrieve key values and builds an index leaf row for each data row


When the internal sort buffers have been filled with leaf index entries, the entries are sorted and written to disk as an intermediate sort run.


Question 4. ______________ allow concurrent transactions to read (SELECT) a resource.
  1.    Update locks
  2.    Shared locks
  3.    Exclusive Locks
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> Shared locks


Shared (S) locks on a resource are released as soon as the data has been read.


Question 5. Point out the correct statement :
  1.    On x86-based systems, creating a table or index with more than 1000 partitions is possible
  2.    Compressing large tables or indexes can have manageability and performance benefit
  3.    Partitioning slow tables or indexes can have the following manageability and performance benefit
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> On x86-based systems, creating a table or index with more than 1000 partitions is possible


Partioning feature is not supported on x86 system.


Question 6. To produce execution plan output by using most Showplan Transact-SQL SET options, users must have
  1.    SHOW SHOWPLAN
  2.    SHOW PLAN
  3.    SHOWPLAN
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> SHOWPLAN


The SHOWPLAN permission on the databases that contain objects referred to in the Transact-SQL statement, such as views, stored procedures, or user-defined functions.


Question 7. Point out the correct statement :
  1.    JDBC use parameter markers
  2.    Parameter markers are question marks (?) that replace a constant in an SQL statement
  3.    When forced parametrization is tried but fails, simple parametrization is still subsequently tried
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> Parameter markers are question marks (?) that replace a constant in an SQL statement


Parameter markers are bound to a variable


Question 8. ____________ rolls back a user-specified transaction to the beginning of the transaction.
  1.    ROLLBACK
  2.    ROLLBACK WORK
  3.    SAVE TRANSACTION
  4.    COMMIT
 Discuss Question
Answer: Option B. -> ROLLBACK WORK


When nesting transactions, ROLLBACK WORK always rolls back to the outermost BEGIN TRANSACTION statement.


Question 9. Enabling the Resource Governor requires _________ permission.
  1.    CONTROL SERVER
  2.    CONTROL
  3.    SERVER
  4.    SELECT
 Discuss Question
Answer: Option A. -> CONTROL SERVER


The classifier function is run for new connections so that their workloads can be assigned to workload groups.


Question 10. ____________ is the preferred statement for indicating errors in the transaction.
  1.    SELECT
  2.    PRINT
  3.    RAISERROR
  4.    All of the mentioned
 Discuss Question
Answer: Option C. -> RAISERROR


If warnings are needed in stored procedures or triggers, use RAISERROR.


Latest Videos

Latest Test Papers