Question 61
HardA company stores customer addresses in both its billing and its delivery systems, and they often disagree. Which DBMS benefit would most directly fix this?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
A company stores customer addresses in both its billing and its delivery systems, and they often disagree. Which DBMS benefit would most directly fix this?
Controlled redundancy, with one shared copy of the data
More indexes
Faster disks
Better user interfaces
Sign up free to see the answer and a step-by-step explanation.
A column's data type is changed from INT to BIGINT, and existing queries keep working. Which kind of independence does this mostly show?
Network independence
Transaction independence
Logical data independence
Physical data independence
Sign up free to see the answer and a step-by-step explanation.
A view joins Customer and Orders. The Orders table is later split into two tables, and the view is redefined so applications using it are unaffected. What does this show?
Atomicity
Logical data independence
Durability
Physical data independence
Sign up free to see the answer and a step-by-step explanation.
Which mapping must change when a table is moved to a new tablespace on a different disk?
The conceptual–internal mapping
Neither mapping
The external–conceptual mapping
Both mappings
Sign up free to see the answer and a step-by-step explanation.
Which statement about TRUNCATE in most databases is correct?
It removes all rows quickly by deallocating pages and usually cannot be rolled back in the same way as DELETE
It can delete rows matching a WHERE clause
It removes the table's definition
It fires row-level DELETE triggers
Sign up free to see the answer and a step-by-step explanation.
A DBA grants SELECT on a table to user A WITH GRANT OPTION. A grants it to B. The DBA then revokes A's privilege with CASCADE. What happens to B?
The table is dropped
B loses the privilege too
B keeps it
B becomes the owner
Sign up free to see the answer and a step-by-step explanation.
Which component checks that a user has permission to run a query before it is executed?
The authorisation and integrity manager
The buffer manager
The query optimiser
The file manager
Sign up free to see the answer and a step-by-step explanation.
A query is slow, and EXPLAIN shows a full table scan even though an index exists on the filtered column. What is the most likely reason?
Indexes are never used for WHERE clauses
EXPLAIN is always wrong
The optimiser estimates that the condition matches a large fraction of rows, so scanning is cheaper
The index is on another table
Sign up free to see the answer and a step-by-step explanation.
Which of these is the job of the transaction manager?
Ensuring that concurrent transactions and failures leave the database consistent
Allocating CPU time to processes
Parsing SQL text
Drawing ER diagrams
Sign up free to see the answer and a step-by-step explanation.
Why are database pages typically read into a buffer pool rather than read from disk for every access?
Buffers make the data smaller
SQL forbids direct reads
Disk access is thousands of times slower than memory, and many pages are reused
Disks can't be read directly
Sign up free to see the answer and a step-by-step explanation.