Questão 1
Questão
1. Most real-world database transactions are formed by only one database request.
Questão 2
Questão
2. Although the DBMS is designed to recover a database to a previous consistent state when an interruption prevents the completion of a required set of transactions, the transactions themselves are defined by the end user or programmer and must be semantically correct.
Questão 3
Questão
3. The DBMS guarantees that the semantic meaning of a transaction truly represents the real-world event.
Questão 4
Questão
4. Atomicity indicates the permanence of the database's consistent state.
Questão 5
Questão
5. Serializability means that data used during the execution of a transaction cannot be used by a second transaction until the first one is completed.
Questão 6
Questão
6. Incomplete or improper transactions can have a devastating effect on database integrity.
Questão 7
Questão
7. Durability requires that all portions of the transaction must be treated as a single, logical unit of work in which all operations are applied and completed to produce a consistent database.
Questão 8
Questão
8. The multiuser DBMS must implement controls to ensure serializability and isolation of transactions, in addition to atomicity and durability, in order to guard the database's consistency and integrity.
Questão 9
Questão
9. The phenomenon of uncommitted data occurs when two transactions are executed concurrently and the first transaction is rolled back after the second transaction has already accessed the uncommitted data—thus violating the isolation property of transactions.
Questão 10
Questão
10. The scheduler establishes the order in which the operations within concurrent transactions are executed.
Questão 11
Questão
11. A scheduler facilitates data isolation to ensure that two transactions do not update the same data element at the same time.
Questão 12
Questão
12. A lock guarantees the open use of a data item to multiple transactions.
Questão 13
Questão
13. In a page-level lock, the DBMS will lock an entire diskpage.
Questão 14
Questão
14. A field-level lock allows concurrent transactions to access the same row, as long as they require the use of different fields within that row.
Questão 15
Questão
15. A shared lock produces no conflict as long as all the concurrent transactions are read-write only.
Questão 16
Questão
16. A growing phase in a two-phase lock is when a transaction acquires all the required locks without locking any data.
Questão 17
Questão
17. Timestamps must only have the single property of uniqueness.
Questão 18
Questão
18. Time stamping demands a lot of system resources because many transactions might have to be stopped, rescheduled, and stamped.
Questão 19
Questão
19. An optimistic approach is based on the assumption that the majority of the database operations do not conflict.
Questão 20
Questão
20. When using an optimistic approach, during the read phase, a transaction reads the database, executes the needed computations, and makes the updates to a private copy of the database values.
Questão 21
Questão
21. The serializable isolation level is the least restrictive level defined by the ANSI SQL standard.
Questão 22
Questão
22. The reason for the different levels of isolation is to increase transaction concurrency.
Questão 23
Questão
23. The transaction recovery write-ahead-log protocol ensures that transaction logs are always written before any database data are actually updated.
Questão 24
Questão
24. The last step in the write-through technique recovery procedure is to identify the last checkpoint in the transaction log.
Questão 25
Questão
25. A transaction is a unit of work that must be either entirely completed or aborted.
Responda
-
a. timed
-
b. practical
-
c. logical
-
d. physical
Questão 26
Questão
26. A consistent database state is .
Responda
-
a. one in which all tables have foreign keys
-
b. one in which all data integrity constraints are satisfied
-
c. one in which all tables are normalized
-
d. one in which all SQL statements only update one table at a time
Questão 27
Questão
27. requires that all operations of a transaction be completed.
Responda
-
a. Specificity
-
b. Atomicity
-
c. Durability
-
d. Time stamping
Questão 28
Questão
28. means that data used during the execution of a transaction cannot be used by a second transaction until the first one is completed.
Responda
-
a. Serializability
-
b. Atomicity
-
c. Isolation
-
d. Time stamping
Questão 29
Questão
29. A single-user database system automatically ensures of the database, because only one transaction is executed at a time.
Responda
-
a. serializability and durability
-
b. atomicity and isolation
-
c. serializability and isolation
-
d. atomicity and serializability
Questão 30
Questão
30. The ANSI has defined standards that govern SQL database transactions. Transaction support is provided by two SQL statements: and ROLLBACK
Responda
-
a. RETRIEVE
-
b. ASSIGN
-
c. UPDATE
-
d. COMMIT
Questão 31
Questão
31. ANSI defines four events that signal the end of a transaction. Of the following events, which is defined by ANSI as being equivalent to a COMMIT?
Responda
-
a. Five SQL statements are executed.
-
b. The end of a program is successfully reached.
-
c. The program is abnormally terminated.
-
d. The database is shut down for maintenance.
Questão 32
Questão
32. ANSI defines four events that signal the end of a transaction. Of the following events, which is defined by ANSI as being equivalent to a ROLLBACK?
Responda
-
a. Five SQL statements are executed.
-
b. The end of a program is successfully reached.
-
c. The program is abnormally terminated.
-
d. The database is shut down for maintenance.
Questão 33
Questão
33. The implicit beginning of a transaction is .
Responda
-
a. when the database is started
-
b. when a table is accessed for the first time
-
c. when the first SQL statement is encountered
-
d. when the COMMIT command is issued
Questão 34
Questão
34. The information stored in the is used by the DBMS for a recovery requirement triggered by a ROLLBACK statement, a program’s abnormal termination, or a system failure such as a network discrepancy or a disk crash.
Responda
-
a. data dictionary
-
b. metadata
-
c. rollback manager
-
d. transaction log
Questão 35
Questão
35. One of the three most common data integrity and consistency problems is .
Responda
-
a. lost updates
-
b. disk failures
-
c. user errors
-
d. deadlocks
Questão 36
Questão
36. occurs when a transaction accesses data before and after one or more other transactions finish working with such data.
Questão 37
Questão
37. As long as two transactions, T1 and T2, access data, there is no conflict, and the order of execution is irrelevant to the final outcome.
Responda
-
a. shared
-
b. common
-
c. unrelated
-
d. locked
Questão 38
Questão
38. are required to prevent another transaction from reading inconsistent data.
Responda
-
a. Locks
-
b. Schedules
-
c. Stamps
-
d. Logs
Questão 39
Questão
39. The______ manager is responsible for assigning and policing the locks used by the transactions.
Responda
-
a. transaction
-
b. database
-
c. lock
-
d. schedule
Questão 40
Questão
40. Lock indicates the level of lock use.
Responda
-
a. granularity
-
b. shrinking
-
c. growing
-
d. serializability
Questão 41
Questão
41. A lock locks the entire table preventing access to any row by a transaction while another transaction is using the table.
Responda
-
a. database-level
-
b. table-level
-
c. page-level
-
d. row-level
Questão 42
Questão
42. A lock locks the entire diskpage.
Responda
-
a. transaction-level
-
b. table-level
-
c. page-level
-
d. row-level
Questão 43
Questão
43. A diskpage, or page, is the equivalent of a .
Responda
-
a. database table
-
b. disk sector
-
c. database schema
-
d. diskblock
Questão 44
Questão
44. A lock allows concurrent transactions to access different rows of the same table.
Responda
-
a. database-level
-
b. table-level
-
c. page-level
-
d. row-level
Questão 45
Questão
45. A(n) specifically reserves access to the transaction that locked the object.
Responda
-
a. shared lock
-
b. exclusive lock
-
c. binary lock
-
d. deadlock
Questão 46
Questão
46. A(n) lock exists when concurrent transactions are granted read access on the basis of a common lock
Responda
-
a. shared
-
b. exclusive
-
c. binary
-
d. two-phase
Questão 47
Questão
47. What is a rule that applies to the two-phase locking protocol?
Responda
-
a. Two transactions cannot have conflicting locks.
-
b. No unlock operation can precede a lock operation in a different transaction
-
c. No data is affected until all locks are released.
-
d. No data is affected until the transaction is in its locked position
Questão 48
Questão
48. A(n) phase in a two-phase lock is when a transaction releases all locks and cannot obtain any new lock.
Responda
-
a. growing
-
b. shrinking
-
c. locking
-
d. unlocking
Questão 49
Questão
49. A(n) condition occurs when two or more transactions wait for each other to unlock data.
Responda
-
a. deadlock
-
b. exclusive lock
-
c. binary lock
-
d. two-phase lock
Questão 50
Questão
50. The approach to scheduling concurrent transactions assigns a global unique stamp to each transaction.
Responda
-
a. scheduled
-
b. table-locking
-
c. unique
-
d. timestamping
Questão 51
Questão
51. In the wait/die scheme,:
Responda
-
a. the older transaction rolls back the younger transaction and reschedules it.
-
b. the younger, preempted transaction is rescheduled using the same time stamp.
-
c. the older transaction waits for the younger one to complete and release its locks.
-
d. both the younger and older transactions wait indefinitely to be released.
Questão 52
Questão
52. In the optimistic approach, during the phase, a transaction scans the database, executes the needed computations, and makes the updates to a private copy of the database values.
Responda
-
a. read
-
b. validation
-
c. write
-
d. shared
Questão 53
Questão
53. In the optimistic approach, during the phase, changes are permanently applied to the database.
Responda
-
a. read
-
b. validation
-
c. write
-
d. shared
Questão 54
Questão
54. The isolation level ensures that queries return consistent results.
Responda
-
a. Read Uncommitted
-
b. Read Committed
-
c. Serializable
-
d. Repeatable Read
Questão 55
Questão
55. A(n) occurs when a transaction executes a query at time t1, and then it runs the same query at time t2, yielding additional rows that satisfy the query.