Advertise here ✔️

Phone: +255 692 127 931 Email: njoholes@gmail.com

Monday, December 15, 2025

DATABASE ADMINISTRATOR QUESTIONS AND ANSWERS

 DATABASE ADMINISTRATOR QUESTIONS AND ANSWERS

Section A: Database Fundamentals (1–15)

  1. A database is best described as:
    A. A collection of programs
    B. A collection of related data
    C. A programming language
    D. A storage device
    Answer: B
  2. DBMS stands for:
    A. Data Backup Management System
    B. Database Management System
    C. Digital Base Management System
    D. Data Binary Management System
    Answer: B
  3. Which of the following is NOT a DBMS?
    A. MySQL
    B. Oracle
    C. PostgreSQL
    D. Python
    Answer: D
  4. The person responsible for managing databases is called:
    A. Programmer
    B. System Analyst
    C. Database Administrator
    D. Network Engineer
    Answer: C
  5. Which level of database architecture describes how data is stored?
    A. External
    B. Conceptual
    C. Internal
    D. Logical
    Answer: C
  6. The logical structure of a database is known as:
    A. Schema
    B. Table
    C. Index
    D. Instance
    Answer: A
  7. A table row is also known as:
    A. Attribute
    B. Record
    C. Field
    D. Key
    Answer: B
  8. A table column is also known as:
    A. Tuple
    B. Record
    C. Attribute
    D. Row
    Answer: C
  9. Which key uniquely identifies a record?
    A. Foreign key
    B. Candidate key
    C. Primary key
    D. Composite key
    Answer: C
  10. A foreign key is used to:
    A. Uniquely identify records
    B. Improve performance
    C. Link tables
    D. Encrypt data
    Answer: C
  11. Which model uses tables to store data?
    A. Hierarchical
    B. Network
    C. Relational
    D. Object-oriented
    Answer: C
  12. SQL is used to:
    A. Design networks
    B. Manage databases
    C. Write operating systems
    D. Create hardware
    Answer: B
  13. Which command is used to retrieve data?
    A. INSERT
    B. UPDATE
    C. DELETE
    D. SELECT
    Answer: D
  14. Which command removes a table permanently?
    A. DELETE
    B. DROP
    C. TRUNCATE
    D. REMOVE
    Answer: B
  15. Which normal form removes transitive dependency?
    A. 1NF
    B. 2NF
    C. 3NF
    D. BCNF
    Answer: C

 

Section B: SQL & Query Management (16–35)

  1. Which SQL clause filters records?
    A. ORDER BY
    B. GROUP BY
    C. WHERE
    D. HAVING
    Answer: C
  2. Which function returns the number of rows?
    A. SUM()
    B. COUNT()
    C. AVG()
    D. MAX()
    Answer: B
  3. Which JOIN returns matching records only?
    A. LEFT JOIN
    B. RIGHT JOIN
    C. FULL JOIN
    D. INNER JOIN
    Answer: D
  4. Which JOIN returns all records from the left table?
    A. RIGHT JOIN
    B. LEFT JOIN
    C. FULL JOIN
    D. INNER JOIN
    Answer: B
  5. Which keyword sorts results?
    A. SORT
    B. ORDER BY
    C. GROUP BY
    D. FILTER
    Answer: B
  6. Which command changes table structure?
    A. UPDATE
    B. ALTER
    C. MODIFY
    D. CHANGE
    Answer: B
  7. Which constraint prevents NULL values?
    A. UNIQUE
    B. PRIMARY KEY
    C. NOT NULL
    D. CHECK
    Answer: C
  8. Which constraint enforces data uniqueness?
    A. CHECK
    B. NOT NULL
    C. UNIQUE
    D. DEFAULT
    Answer: C
  9. A view is:
    A. A physical table
    B. A virtual table
    C. An index
    D. A trigger
    Answer: B
  10. Which command removes all rows but keeps table structure?
    A. DELETE
    B. DROP
    C. TRUNCATE
    D. REMOVE
    Answer: C
  11. Which clause is used with aggregate functions?
    A. WHERE
    B. GROUP BY
    C. ORDER BY
    D. DISTINCT
    Answer: B
  12. Which operator checks for a range of values?
    A. LIKE
    B. BETWEEN
    C. IN
    D. EXISTS
    Answer: B
  13. Which operator checks pattern matching?
    A. LIKE
    B. IN
    C. BETWEEN
    D. IS
    Answer: A
  14. Which SQL command is DDL?
    A. SELECT
    B. INSERT
    C. CREATE
    D. UPDATE
    Answer: C
  15. Which SQL command is DML?
    A. DROP
    B. CREATE
    C. INSERT
    D. ALTER
    Answer: C
  16. Which SQL command is TCL?
    A. COMMIT
    B. SELECT
    C. INSERT
    D. CREATE
    Answer: A
  17. Which SQL command is DCL?
    A. GRANT
    B. SELECT
    C. INSERT
    D. UPDATE
    Answer: A
  18. Which index improves query performance?
    A. Clustered
    B. Non-clustered
    C. Primary
    D. All of the above
    Answer: D
  19. Which statement removes duplicate rows?
    A. UNIQUE
    B. DISTINCT
    C. GROUP BY
    D. HAVING
    Answer: B
  20. Which SQL feature ensures data consistency?
    A. Index
    B. Constraint
    C. Trigger
    D. View
    Answer: B


Section C: DBA Roles, Security & Performance (36–70)

  1. Which is a DBA responsibility?
    A. Data entry
    B. Database backup
    C. Writing applications
    D. Network cabling
    Answer: B
  2. Backup ensures protection against:
    A. Virus only
    B. Power failure only
    C. Data loss
    D. Slow queries
    Answer: C
  3. Which backup copies only changed data?
    A. Full
    B. Differential
    C. Incremental
    D. Mirror
    Answer: C
  4. Which backup is fastest to restore?
    A. Incremental
    B. Differential
    C. Full
    D. Partial
    Answer: C
  5. Which ensures authorized access?
    A. Indexing
    B. Normalization
    C. Authentication
    D. Replication
    Answer: C
  6. Which command gives user permission?
    A. REVOKE
    B. ALLOW
    C. GRANT
    D. ASSIGN
    Answer: C
  7. Which command removes permission?
    A. DENY
    B. DELETE
    C. DROP
    D. REVOKE
    Answer: D
  8. Encryption protects data:
    A. At rest
    B. In transit
    C. Both
    D. None
    Answer: C
  9. Which improves query speed?
    A. Backup
    B. Index
    C. Trigger
    D. View
    Answer: B
  10. Which tool monitors database performance?
    A. Profiler
    B. Compiler
    C. Debugger
    D. Editor
    Answer: A
  11. Deadlock occurs when:
    A. Server shuts down
    B. Queries run fast
    C. Transactions wait on each other
    D. Backup fails
    Answer: C
  12. Which resolves deadlocks?
    A. Commit
    B. Rollback
    C. Index
    D. View
    Answer: B
  13. Which isolation level prevents dirty reads?
    A. Read uncommitted
    B. Read committed
    C. Repeatable read
    D. Serializable
    Answer: B
  14. Which isolation level is strictest?
    A. Read committed
    B. Repeatable read
    C. Serializable
    D. Snapshot
    Answer: C
  15. ACID stands for:
    A. Atomicity, Consistency, Isolation, Durability
    B. Accuracy, Control, Integrity, Data
    C. Access, Control, Index, Data
    D. Atomic, Consistent, Internal, Durable
    Answer: A

 

Section D: Advanced DBA Concepts (71–100)

  1. Replication is used for:
    A. Backup only
    B. Data synchronization
    C. Indexing
    D. Security
    Answer: B
  2. Sharding improves:
    A. Security
    B. Scalability
    C. Backup
    D. Normalization
    Answer: B
  3. Which database is NoSQL?
    A. Oracle
    B. MySQL
    C. MongoDB
    D. SQL Server
    Answer: C
  4. Which NoSQL database is document-based?
    A. Redis
    B. Cassandra
    C. MongoDB
    D. Neo4j
    Answer: C
  5. Which NoSQL database is graph-based?
    A. MongoDB
    B. Redis
    C. Neo4j
    D. Cassandra
    Answer: C
  6. Which command optimizes tables?
    A. ANALYZE
    B. OPTIMIZE
    C. TUNE
    D. FIX
    Answer: B
  7. Which log records all changes?
    A. Error log
    B. Binary log
    C. Query log
    D. Access log
    Answer: B
  8. Which ensures high availability?
    A. Backup
    B. Replication
    C. Normalization
    D. Indexing
    Answer: B
  9. Which detects slow queries?
    A. Profiler
    B. Slow query log
    C. Error log
    D. Trigger
    Answer: B
  10. Which storage ensures durability?
    A. RAM
    B. Cache
    C. Disk
    D. Register
    Answer: C
  11. Which feature automates actions on events?
    A. View
    B. Trigger
    C. Index
    D. Cursor
    Answer: B
  12. Which cursor processes rows one by one?
    A. Static
    B. Dynamic
    C. Implicit
    D. Explicit
    Answer: D
  13. Which tool restores data?
    A. Backup
    B. Index
    C. View
    D. Query
    Answer: A
  14. Which database supports stored procedures?
    A. MySQL
    B. Oracle
    C. SQL Server
    D. All of the above
    Answer: D
  15. Which ensures minimal redundancy?
    A. Indexing
    B. Normalization
    C. Encryption
    D. Replication
    Answer: B
  16. Which process checks data accuracy?
    A. Validation
    B. Indexing
    C. Backup
    D. Recovery
    Answer: A
  17. Which DBA task involves planning storage?
    A. Capacity planning
    B. Debugging
    C. Coding
    D. Designing UI
    Answer: A
  18. Which improves fault tolerance?
    A. Replication
    B. Normalization
    C. Constraints
    D. Indexing
    Answer: A
  19. Which ensures consistency after failure?
    A. Backup
    B. Durability
    C. Atomicity
    D. Isolation
    Answer: B
  20. Which process restores database after crash?
    A. Recovery
    B. Replication
    C. Normalization
    D. Indexing
    Answer: A
  21. Which command saves a transaction permanently?
    A. ROLLBACK
    B. COMMIT
    C. SAVEPOINT
    D. END
    Answer: B
  22. Which command undoes changes?
    A. COMMIT
    B. SAVE
    C. ROLLBACK
    D. END
    Answer: C
  23. Which allows partial rollback?
    A. COMMIT
    B. SAVEPOINT
    C. END
    D. STOP
    Answer: B
  24. Which is NOT a DBA tool?
    A. pgAdmin
    B. SQL*Plus
    C. Photoshop
    D. SSMS
    Answer: C
  25. Which handles concurrent access?
    A. Locking
    B. Backup
    C. Replication
    D. Indexing
    Answer: A
  26. Which lock allows read-only access?
    A. Exclusive
    B. Shared
    C. Deadlock
    D. Full
    Answer: B
  27. Which ensures data integrity across tables?
    A. Primary key
    B. Foreign key
    C. Index
    D. View
    Answer: B
  28. Which improves read-heavy workloads?
    A. Indexing
    B. Encryption
    C. Backup
    D. Logging
    Answer: A
  29. Which DBA task ensures compliance?
    A. Auditing
    B. Coding
    C. Designing
    D. Formatting
    Answer: A
  30. A DBA must prioritize:
    A. Speed only
    B. Cost only
    C. Security, performance, and availability
    D. UI design
    Answer: C

 

Share:

0 comments:

Post a Comment

Contact Us

SALEHE NJOHOLE P.O.BOX 2428, DAR ES SALAAM, TANZANIA EAST AFRIKA. Call: 0692 127 931