Question 51
MediumA bank needs its database to be readable even if one data centre goes down. Which DBMS feature helps most?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
A bank needs its database to be readable even if one data centre goes down. Which DBMS feature helps most?
Replication to another site
Views
Indexing
Normalisation
Sign up free to see the answer and a step-by-step explanation.
A hospital wants nurses to see patients' names and wards but not their billing details. What is the simplest way to do this in SQL?
Delete the billing columns
Store billing in a text file
Give everyone the DBA role
Create a view with only the allowed columns and grant access to the view
Sign up free to see the answer and a step-by-step explanation.
Which of these is NOT a typical responsibility of a DBMS?
Compiling the application's Java source code
Enforcing integrity constraints
Recovering from crashes
Controlling concurrent access
Sign up free to see the answer and a step-by-step explanation.
Which data model would best represent a social network where people follow each other and you need to find friends of friends quickly?
Flat-file model
Key-value model
Graph model
Hierarchical model
Sign up free to see the answer and a step-by-step explanation.
TRUNCATE and DELETE (without WHERE) both remove every row of a table. How do they usually differ?
TRUNCATE can have a WHERE clause
DELETE removes the table structure too
They are identical in every DBMS
TRUNCATE is DDL, faster, and usually doesn't log or fire row-level triggers; DELETE is DML and logs each row
Sign up free to see the answer and a step-by-step explanation.
How does DROP TABLE differ from TRUNCATE TABLE?
DROP keeps the indexes
DROP removes the table and its structure; TRUNCATE removes only the rows
TRUNCATE removes the structure; DROP removes only rows
They are the same
Sign up free to see the answer and a step-by-step explanation.
Which of these are DDL commands? (Select all that apply.)
CREATE
ALTER
UPDATE
DROP
Sign up free to see the answer and a step-by-step explanation.
In the three-schema architecture, which mapping must change when a new index is added to a table?
External/conceptual mapping
Neither mapping
Both mappings
Conceptual/internal mapping
Sign up free to see the answer and a step-by-step explanation.
Which feature of a DBMS lets many users read and change the same data at the same time without corrupting it?
Report generation
Data dictionary
Concurrency control
Data compression
Sign up free to see the answer and a step-by-step explanation.
What does a DBMS's recovery manager use to restore the database after a crash?
The user's browser cache
The transaction log (write-ahead log)
The data dictionary only
The query optimiser
Sign up free to see the answer and a step-by-step explanation.