





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























Question 1 Which SQL Server component is responsible for managing buffer pool memory? A. SQL Agent B. Database Engine C. Analysis Services D. Integration Services B. Database Engine The SQL Server Database Engine is responsible for core relational database operations, including query processing, transaction management, and memory management. The buffer pool is a critical part of the Database Engine that caches data pages in memory to reduce disk I/O and improve performance. SQL Agent handles job scheduling, Analysis Services handles OLAP and analytics workloads, and Integration Services handles ETL processes, so none of these manage buffer pool memory. Question 2 What is the primary purpose of the CHECKPOINT process in SQL Server?
A. To delete unused indexes B. To write dirty pages from memory to disk C. To rebuild transaction logs D. To compress database files B. To write dirty pages from memory to disk A CHECKPOINT forces SQL Server to write all dirty pages (modified pages in memory) to disk, ensuring that the database is in a consistent state and reducing recovery time after a crash. It does not delete indexes, rebuild logs, or compress files. Its main role is durability and recovery optimization. Question 3 Which recovery model fully supports point-in-time recovery? A. Simple B. Bulk-Logged C. Full D. Read-Only C. Full The Full recovery model logs all transactions and retains log records until backups are performed, enabling point-in-time recovery. Simple recovery truncates logs automatically and does not support point-in-time recovery, while Bulk-Logged provides limited point-in-time recovery only under specific bulk operations. Question 4 What is the default isolation level in SQL Server? A. Serializable B. Read Uncommitted
The transaction log records all changes made to the database, enabling rollback, crash recovery, and point-in-time recovery. It is essential for maintaining ACID properties. It does not store query plans or backup history. Question 7 Which command is used to force SQL Server to recompile a stored procedure? A. ALTER PROCEDURE B. EXECUTE WITH RECOMPILE C. DBCC RECOMPILE D. REBUILD PROCEDURE B. EXECUTE WITH RECOMPILE Using EXECUTE WITH RECOMPILE forces SQL Server to generate a new execution plan for a stored procedure, which is useful when parameter values vary significantly. Other options are invalid or unrelated to recompilation. Question 8 What is the main benefit of partitioning a table? A. Encrypt data B. Improve query performance and manageability C. Reduce database size automatically D. Eliminate need for indexes B. Improve query performance and manageability Table partitioning divides large tables into smaller, more manageable segments while maintaining a single logical structure. It improves performance through partition elimination and simplifies maintenance operations like archiving. Question 9 Which SQL Server feature provides high availability at the database level?
A. Log Shipping B. Database Mirroring only C. Always On Availability Groups D. Replication C. Always On Availability Groups Always On Availability Groups provide high availability and disaster recovery at the database level by allowing multiple readable replicas and automatic failover. Log shipping and mirroring are older technologies with limitations, and replication is primarily for data distribution. Question 10 What does the SQL Server Agent primarily do? A. Executes stored procedures only B. Manages ETL pipelines C. Automates scheduled administrative tasks D. Handles query optimization C. Automates scheduled administrative tasks SQL Server Agent is responsible for scheduling and automating jobs such as backups, maintenance tasks, and alerts. It does not optimize queries or handle ETL or stored procedure execution exclusively. Question 11 Which DBCC command checks logical and physical integrity of all database objects? A. DBCC CHECKDB B. DBCC CHECKTABLE C. DBCC CHECKALLOC D. DBCC CHECKFILEGROUP
Question 14 What is a deadlock in SQL Server? A. A failed login attempt B. A memory overflow condition C. Two processes blocking each other indefinitely D. A corrupted database file C. Two processes blocking each other indefinitely A deadlock occurs when two or more sessions hold locks on resources and wait indefinitely for each other to release them. SQL Server resolves deadlocks by terminating one process. Question 15 Which SQL Server feature isolates reporting workloads? A. Replication B. Always On C. Readable Secondary Replicas D. Mirroring C. Readable Secondary Replicas Always On Availability Groups allow secondary replicas to be used for read-only queries, offloading reporting workloads from the primary server. This improves performance and scalability. Question 16 What is the purpose of tempdb? A. Store permanent tables B. Store backup files C. Store temporary objects and intermediate results D. Store transaction logs
C. Store temporary objects and intermediate results tempdb is a system database used for temporary tables, sorting operations, version stores, and intermediate query processing results. It is recreated on restart. Question 17 Which SQL clause is used to filter aggregated results? A. WHERE B. HAVING C. GROUP BY D. ORDER BY B. HAVING HAVING filters results after aggregation, whereas WHERE filters rows before grouping. GROUP BY defines grouping, and ORDER BY sorts output. Question 18 What is the main purpose of indexing? A. Encrypt data B. Improve query performance C. Reduce database size D. Store backups B. Improve query performance Indexes allow SQL Server to quickly locate rows without scanning entire tables, significantly improving query performance for read operations. Question 19 Which recovery operation uses transaction log backups?
Question 22 What is a columnstore index primarily used for? A. OLTP workloads B. Analytical workloads C. File storage D. Backup optimization B. Analytical workloads Columnstore indexes are designed for data warehousing and analytics, offering high compression and fast aggregation by storing data column-wise. Question 23 Which backup type captures only changes since the last full backup? A. Full B. Differential C. Log D. File B. Differential Differential backups store only data changes since the last full backup, reducing backup size and time. Question 24 What is required before restoring a differential backup? A. Log backup only B. Full backup C. Snapshot D. Index rebuild
B. Full backup A full backup is required before restoring a differential backup because differentials depend on the base full backup. Question 25 What is the role of statistics in SQL Server? A. Encrypt data B. Improve query optimization C. Manage backups D. Control permissions B. Improve query optimization Statistics provide metadata about data distribution, helping the optimizer choose efficient execution plans. Question 26 What is a query execution plan? A. Backup strategy B. Step-by-step query processing path C. Index structure D. Data encryption method B. Step-by-step query processing path Execution plans show how SQL Server executes a query, including joins, scans, and index usage. Question 27 What triggers lock escalation?
Question 30 What is a benefit of Windows Authentication? A. Slower performance B. Integrated security C. No encryption D. Manual password storage B. Integrated security Windows Authentication integrates with Active Directory, providing centralized and secure identity management. Question 31 What does an index rebuild do? A. Deletes data B. Reorganizes and recreates index C. Encrypts table D. Drops constraints B. Reorganizes and recreates index Index rebuild removes fragmentation and recreates index structure for optimal performance. Question 32 What is fragmentation in SQL Server? A. Data encryption B. Logical data disorder in index pages C. Backup failure D. Permission issue
B. Logical data disorder in index pages Fragmentation occurs when index pages are not stored sequentially, degrading performance. Question 33 Which command shows active sessions? A. sp_who B. DBCC CHECKDB C. EXEC STATUS D. SHOW CONNECTIONS A. sp_who sp_who2 displays active processes and sessions in SQL Server. Question 34 What is a primary key constraint? A. Allows duplicates B. Uniquely identifies rows C. Encrypts data D. Stores backups B. Uniquely identifies rows A primary key ensures uniqueness and not-null constraints on table rows. Question 35 What is a foreign key? A. Unique identifier B. Links two tables
A. Backup deletion B. Removing inactive log entries C. Index rebuild D. Table compression B. Removing inactive log entries Log truncation frees space in the transaction log after backup or checkpoint operations. Question 39 What is the purpose of replication? A. Backup only B. Data distribution across servers C. Encryption D. Indexing B. Data distribution across servers Replication copies and distributes data to other servers for reporting or integration. Question 40 What is a clustered table? A. Has no indexes B. Data stored in index order C. Only memory-based D. Backup table B. Data stored in index order Clustered tables store data physically ordered by the clustered index key.
Question 41 What is the purpose of SQL Server memory clerks? A. Manage disk storage B. Track memory allocation by components C. Control backups D. Manage security roles B. Track memory allocation by components Memory clerks are internal SQL Server components that track and manage memory usage for different subsystems such as buffer pool, query execution, and caching. They help DBAs monitor memory pressure and optimize performance. Question 42 What does PAGEIOLATCH wait type indicate? A. CPU contention B. Disk I/O delay while reading pages C. Network delay D. Lock escalation B. Disk I/O delay while reading pages PAGEIOLATCH waits occur when SQL Server is waiting for data pages to be read from disk into memory, indicating potential storage or memory pressure issues. Question 43 What is the purpose of a covering index? A. Encrypt data B. Include all columns needed by a query C. Replace primary keys D. Store logs B. Include all columns needed by a query
C. Encryption layer D. Index rebuild tool B. Read-only static view of database Database snapshots provide a read-only, point-in-time view of a database using sparse files. Question 47 What is Always On Failover Cluster Instance (FCI)? A. Application clustering only B. Instance-level high availability C. Backup system D. Query optimizer tool B. Instance-level high availability FCI provides instance-level high availability using shared storage and Windows Server Failover Clustering. Question 48 What is the purpose of Resource Governor? A. Manage backups B. Control CPU and memory usage per workload C. Encrypt data D. Rebuild indexes B. Control CPU and memory usage per workload Resource Governor allows DBAs to allocate CPU and memory resources to different workloads for performance control.
Question 49 What does DBCC SHRINKFILE do? A. Increase database size B. Reduce size of a data or log file C. Rebuild indexes D. Delete logs permanently B. Reduce size of a data or log file DBCC SHRINKFILE reduces physical file size by moving pages and freeing unused space. Question 50 What is a heap table? A. Table without clustered index B. Encrypted table C. Partitioned table D. Indexed view A. Table without clustered index A heap is a table that does not have a clustered index, storing rows in no particular order. Question 51 What is the purpose of indexed views? A. Store backups B. Persist precomputed query results C. Replace tables D. Encrypt data B. Persist precomputed query results