Courseiva

CCNA Data Systems Management Questions

53 questions · Data Systems Management topic · All types, answers revealed

1
MCQmedium

You need to change the collation of a database. What is the impact of performing this operation?

A.It can be done instantly with an ALTER command
B.It is a metadata-only change
C.It requires rebuilding the database or recreating tables
D.It only impacts system tables
AnswerC

Collation governs how character data is sorted, compared and stored at the column and database level. Changing it alters those stored comparison rules, so existing data must be rewritten. SQL Server therefore rebuilds the database or recreates the affected tables to apply the new collation.

Why this answer

Changing a database's collation is not a simple metadata update; it affects how data is stored, compared, and sorted. In most database systems (e.g., SQL Server, MySQL), altering collation requires rebuilding the database or recreating tables and indexes, because existing data must be converted to the new collation's encoding and comparison rules.

Exam trap

DS0-001 often tests the misconception that collation changes are trivial metadata updates, when in fact they require data conversion and can impact performance, storage, and query results.

How to eliminate wrong answers

Option A is wrong because an ALTER command alone cannot instantly change collation for existing data; it may change the default for new objects but not existing columns. Option B is wrong because collation is not metadata-only; it impacts data storage and comparison behavior, requiring data conversion. Option D is wrong because collation affects all character-based columns and indexes, not just system tables.

2
MCQeasy

A database administrator is deploying a new SQL Server instance that will host a data warehouse. The instance must store data and log files on separate physical volumes to maximize performance and simplify backup operations. The server has four drive letters available: C, D, E, and F. The administrator wants to ensure that tempdb is also isolated. Which configuration should the administrator use?

A.Place all files on a single volume with RAID 5.
B.Place data files on C, log files on C, and tempdb on D.
C.Place data and log files on D, and tempdb on C.
D.Place data files on C, log files on D, and tempdb on E.
AnswerD

Separating data, log, and tempdb files onto distinct physical volumes reduces I/O contention and improves performance. The log volume should be dedicated because log writes are sequential and critical for durability. Placing tempdb on its own volume prevents heavy tempdb usage from competing with user database I/O. This matches the stated requirement to isolate data, log, and tempdb.

Why this answer

The best practice is to isolate data, log, and tempdb files on separate physical volumes. This reduces I/O contention, improves write performance for the log, and prevents tempdb activity from affecting user databases. The configuration that places data on C, log on D, and tempdb on E satisfies all isolation requirements with the available drives.

Exam trap

The trap here is thinking that RAID redundancy alone is sufficient and that separating files across volumes is unnecessary, when I/O isolation is the actual goal.

3
MCQmedium

In PostgreSQL, you need to monitor the performance of your long-running queries. Which view is the most appropriate to inspect the query execution statistics for all active sessions?

A.pg_stat_database
B.pg_locks
C.pg_stat_user_tables
D.pg_stat_activity
AnswerD

`pg_stat_activity` exposes one row per server process, including `state`, `query_start`, and the currently executing `query` text, so it reveals which sessions are actively running long queries. This directly satisfies the requirement to inspect execution statistics across all active sessions, unlike cumulative `pg_stat_statements` aggregates.

Why this answer

pg_stat_activity is the PostgreSQL system view that shows one row per server process, including the current query text, state (active, idle, idle in transaction), wait events, and timing information for every active session. It is the canonical view for monitoring long-running queries and session-level activity.

Exam trap

DS0-001 often tests whether candidates can distinguish session-level monitoring views (pg_stat_activity) from aggregate or object-level views (pg_stat_database, pg_stat_user_tables), since all share the pg_stat_ prefix.

How to eliminate wrong answers

Option A (pg_stat_database) is wrong because it aggregates statistics per database (commits, rollbacks, tuples fetched) rather than exposing individual query or session details. Option B (pg_locks) is wrong because it only shows lock information — useful for diagnosing blocking, but not query execution statistics. Option C (pg_stat_user_tables) is wrong because it reports table-level access statistics (sequential scans, index scans, dead tuples) rather than per-session query activity.

4
Multi-Selectmedium

Which THREE of the following are valid methods to improve database performance for read-heavy workloads?

Select 3 answers
A.Create read-only replicas
B.Create covering indexes
C.Increase the number of write threads
D.Enable synchronous replication
E.Implement query caching
AnswersA, B, E

Read-only replicas copy data to additional nodes that serve SELECT traffic, spreading read load away from the primary. This parallelises read capacity and reduces contention on the primary, directly addressing the read-heavy workload constraint in the scenario.

Why this answer

Option A (Create read-only replicas) is correct because read replicas offload SELECT traffic from the primary database, allowing reads to be distributed across multiple nodes and improving throughput for read-heavy workloads. Option B (Create covering indexes) is correct because a covering index contains all columns required by a query, letting the database satisfy the query entirely from the index without touching the base table, drastically reducing I/O for frequent read queries. Option E (Implement query caching) is correct because caching the results of frequently executed read queries avoids repeated database work and returns results faster, directly benefiting read-heavy patterns.

Option C (Increase the number of write threads) does not belong because it targets write throughput, not read performance, and can even contend with reads. Option D (Enable synchronous replication) does not belong because synchronous replication waits for replicas to acknowledge writes, adding latency and reducing write performance rather than improving read-heavy workloads.

Exam trap

DS0-001 often tests whether candidates confuse write-side scaling mechanisms (more write threads, synchronous replication) with read-side optimizations, since both sound like general 'performance improvements.'

5
MCQmedium

You are performing a backup for a database that is in a 24/7 environment. Which backup type should you use if you want to avoid interfering with the existing backup sequence of full and differential backups?

A.Full backup
B.Copy-only backup
C.Differential backup
D.Transaction log backup
AnswerB

A copy-only backup captures the database without resetting the differential base, so it does not disturb the existing full and differential backup chain. This allows an ad-hoc backup in a 24/7 environment while preserving the scheduled sequence's integrity.

Why this answer

A copy-only backup is a special type of backup that does not affect the normal backup sequence. It is independent of the regular full and differential backup chain, so it does not interfere with the differential base or log sequence. This makes it ideal for ad-hoc backups in a 24/7 environment without disrupting the existing backup strategy.

Exam trap

DS0-001 often tests the impact of different backup types on the backup chain, and candidates may incorrectly choose a full backup, not realizing it resets the differential base.

How to eliminate wrong answers

Option A is wrong because a full backup resets the differential base, which would interfere with the existing differential backup sequence. Option C is wrong because a differential backup is based on the last full backup and would be part of the sequence, potentially affecting subsequent differentials. Option D is wrong because a transaction log backup is part of the log chain and would truncate the log, affecting the log backup sequence.

6
Multi-Selecthard

Which THREE of the following are indicators of significant index fragmentation in a database?

Select 3 answers
A.Low page density
B.High scan latency
C.Decreased query performance
D.Increased memory usage
E.Increased server uptime
AnswersA, B, C

Low page density means index pages contain excessive free space from splits and deletes, forcing more pages to be read. This wasted space is a direct structural symptom of fragmentation, satisfying the question's requirement for an indicator of significant index fragmentation.

Why this answer

Low page density (A) is a direct indicator of significant index fragmentation because fragmentation leaves pages partially filled with free space, so the average page fullness (page density) drops well below 100%. High scan latency (B) is correct because fragmented indexes force the storage engine to read more pages and perform extra I/O during scans, measurably increasing the time to complete scan operations. Decreased query performance (C) is correct because fragmentation inflates the number of page reads for range scans and ordered lookups, so queries that rely on the index slow down noticeably.

Increased memory usage (D) is not a reliable fragmentation indicator, since buffer pool consumption is driven by workload and caching behavior rather than index page ordering. Increased server uptime (E) is unrelated to fragmentation, as uptime measures elapsed time since the last restart and says nothing about index page layout or density.

Exam trap

DS0-001 often tests whether candidates can distinguish fragmentation symptoms from generic server-health metrics, so the trap is selecting 'increased memory usage' because it sounds like a performance problem.

7
MCQhard

A production database is experiencing blocking and deadlocks during peak hours. The DBA suspects that long-running transactions are holding locks. Which dynamic management view (DMV) should the DBA query to identify the blocking chain and the SQL text of the blocking session?

A.sys.dm_exec_requests joined with sys.dm_exec_sql_text
B.sys.dm_exec_query_stats
C.sys.dm_tran_locks
D.sys.dm_os_wait_stats
AnswerA

sys.dm_exec_requests provides information about currently executing requests, including blocking_session_id and the SQL handle. Joining with sys.dm_exec_sql_text retrieves the actual SQL text for each request, allowing the DBA to identify the blocking session and its query. This is the standard method to diagnose blocking chains in SQL Server.

Why this answer

To diagnose blocking, the DBA needs to see which session is blocking and what SQL it is running. sys.dm_exec_requests includes blocking_session_id and sql_handle, which can be passed to sys.dm_exec_sql_text to retrieve the SQL. Other DMVs provide related but incomplete information, such as lock details or wait statistics, without the full context of the blocking chain and query text.

Exam trap

The trap here is assuming that sys.dm_tran_locks alone can provide the SQL text of the blocking session; it requires additional joins to get the query.

8
MCQeasy

During a disaster recovery test, the DBA realizes the database restoration takes too long. Which action is the most effective way to improve the restore speed of a large database?

A.Disable antivirus
B.Use striped backups
C.Run in single-user mode
D.Increase the recovery interval
AnswerB

Striped backups split the backup set across multiple files, letting SQL Server read them in parallel during restore. This directly addresses the stem's constraint: restoration of a large database takes too long. Parallel I/O streams reduce elapsed restore time proportionally to the number of stripes, unlike single-file backups, which remain bound by one device's throughput.

Why this answer

Striped backups split the backup (and therefore the restore) across multiple files or devices, allowing parallel read/write streams that dramatically reduce restore time for large databases. SQL Server's BACKUP ... TO DISK='f1', DISK='f2', ... and RESTORE with multiple MOVE targets, or Oracle RMAN with multiple channels, exploit this.

The bottleneck in large restores is usually I/O throughput, and striping multiplies it.

Exam trap

DS0-001 often tests whether candidates pick environmental tweaks (antivirus, single-user mode) over architectural changes (striping) — the trap is choosing a plausible-sounding but low-impact option instead of the one that addresses the I/O bottleneck.

How to eliminate wrong answers

Option A is wrong because disabling antivirus is a marginal, environment-specific tweak that doesn't address the fundamental I/O parallelism limit — it may help slightly but is not the most effective structural change. Option C is wrong because single-user mode only restricts concurrent access; it does not speed up the physical restore operation itself and is typically used for recovery or maintenance, not performance. Option D is wrong because increasing the recovery interval affects how often SQL Server checkpoints (indirectly affecting recovery time after a crash), not the speed of restoring a backup file.

9
MCQhard

A database administrator is troubleshooting a query that occasionally runs slowly. The query uses a parameterized stored procedure. The execution plan shows that sometimes the query uses an index seek and sometimes a clustered index scan. The DBA suspects parameter sniffing. Which action should the DBA take to mitigate the issue while preserving the ability to use the optimal plan for each execution?

A.Enable Trace Flag 2371 at the server level.
B.Use the OPTIMIZE FOR UNKNOWN query hint.
C.Create a plan guide to force the index seek plan.
D.Add OPTION (RECOMPILE) to the query inside the stored procedure.
AnswerD

OPTION (RECOMPILE) forces a new plan to be generated for each execution, allowing the optimizer to use the actual parameter values and choose an optimal plan per execution. This mitigates parameter sniffing by avoiding reuse of a plan optimized for a different parameter value, while still allowing seeks or scans as appropriate.

Why this answer

Parameter sniffing causes the optimizer to reuse a plan compiled for a specific parameter value, which may be suboptimal for other values. Adding OPTION (RECOMPILE) forces a new plan for each execution, allowing the optimizer to use the actual parameter values and choose the best plan per execution, directly mitigating the issue while retaining flexibility.

Exam trap

The trap here is thinking that forcing a specific plan or using average selectivity hints solves parameter sniffing, when only per-execution recompilation restores optimal plan choice for each parameter value.

10
MCQeasy

When planning a backup strategy, a company requires that the Recovery Point Objective (RPO) be set to 15 minutes. Which backup schedule meets this requirement?

A.Transaction Log Backups every 10 minutes
B.Daily Full Backups
C.Weekly Full and Daily Differential Backups
D.Hourly Transaction Log Backups
AnswerA

RPO defines the maximum tolerable data loss measured in time. Transaction log backups every 10 minutes capture changes more frequently than the 15-minute RPO, so at most 10 minutes of data is lost, meeting the requirement.

Why this answer

RPO defines the maximum acceptable data loss measured in time, so a 15-minute RPO requires backups no less frequent than every 15 minutes. Transaction log backups every 10 minutes capture all committed transactions within that window, guaranteeing at most 10 minutes of potential data loss — well within the 15-minute target.

Exam trap

The trap here is selecting 'hourly' log backups because log backups sound correct, but candidates must compare the actual interval (60 min) against the stated RPO (15 min) rather than just recognizing the backup type.

How to eliminate wrong answers

Option B is wrong because daily full backups leave up to 24 hours of data at risk, far exceeding a 15-minute RPO. Option C is wrong because weekly full plus daily differential backups still expose up to 24 hours of loss between differentials. Option D is wrong because hourly log backups allow up to 60 minutes of data loss, which violates the 15-minute RPO even though log backups are the right mechanism.

11
Multi-Selectmedium

Which TWO of the following are common symptoms of an undersized transaction log file?

Select 2 answers
A.Memory fragmentation
B.Excessive CPU usage
C.Transaction log full errors
D.Frequent auto-growth events
E.Slow index reading
AnswersC, D

When the transaction log cannot grow to accommodate incoming transactions, SQL Server raises error 9002, the transaction log full error, and may suspend further writes. This symptom directly reflects the undersized log constraint in the stem, distinguishing it from data file growth issues.

Why this answer

An undersized transaction log file commonly manifests as transaction log full errors (Option C), because the log cannot grow fast enough or is capped, so SQL Server raises error 9002 ("The transaction log for database is full") when it cannot accommodate new log records. It also causes frequent auto-growth events (Option D), since the log repeatedly hits its size limit and must expand in small increments, producing many VLFs and I/O stalls. Options A, B, and E are not typical symptoms of an undersized log: memory fragmentation relates to buffer pool or OS memory allocation, excessive CPU usage stems from query or workload inefficiency rather than log sizing, and slow index reading is an I/O or indexing issue unrelated to transaction log capacity.

Exam trap

DS0-001 often tests whether candidates can distinguish symptoms of log sizing from general performance symptoms; the trap is picking broad symptoms like CPU or memory issues that are not specific to the transaction log.

12
MCQmedium

A database server is consistently hitting high CPU usage. You suspect an unoptimized query is causing a full table scan. Which tool should you use to capture the execution plan of currently running queries?

A.Performance Monitor
B.SQL Server Configuration Manager
C.Extended Events
D.Windows Event Viewer
AnswerC

Extended Events captures live query execution plans with minimal overhead, satisfying the need to inspect currently running queries on the CPU-bound server. Unlike deprecated SQL Trace, its lightweight, event-based architecture lets you target plan-related events such as query_post_execution_showplan, revealing full table scans without materially worsening the existing CPU pressure.

Why this answer

Extended Events is a lightweight, highly scalable event-handling system in SQL Server that can capture execution plans of currently running queries. It provides detailed diagnostic information, including query plans, waits, and resource usage, making it the ideal tool for identifying full table scans and other performance issues.

Exam trap

DS0-001 often tests the confusion between monitoring tools (Performance Monitor, Event Viewer) and SQL Server-specific diagnostic tools (Extended Events), causing candidates to select system-level tools that lack query plan visibility.

How to eliminate wrong answers

Option A is wrong because Performance Monitor tracks system-level counters (CPU, memory, disk I/O) but does not capture query execution plans. Option B is wrong because SQL Server Configuration Manager manages services, protocols, and network configuration, not query diagnostics. Option D is wrong because Windows Event Viewer logs operating system and application events, not SQL query execution plans.

13
MCQhard

A database administrator is designing a backup strategy for a mission-critical database that must support point-in-time recovery. The database is in the FULL recovery model. They plan to take a full backup every Sunday, differential backups nightly, and transaction log backups every 15 minutes. A failure occurs on Wednesday at 10:07 AM. What is the minimum set of backups required to restore the database to the point of failure?

A.The most recent full backup, the most recent differential backup, and all transaction log backups since that differential backup.
B.The most recent full backup and the most recent differential backup only.
C.The most recent full backup and all transaction log backups since that full backup.
D.The most recent full backup, all differential backups since that full backup, and all transaction log backups since the full backup.
AnswerA

In FULL recovery model, restoring a differential backup requires the base full backup, then the differential, then all transaction log backups taken after the differential to reach the point of failure. This sequence preserves the log chain and allows point-in-time recovery to 10:07 AM.

Why this answer

To recover to a point in time with a full, differential, and log backup strategy, you restore the latest full backup, then the latest differential backup, then all transaction log backups taken after that differential. This minimizes restore time while preserving the log chain needed to reach the exact point of failure.

Exam trap

The trap here is assuming that all differential backups must be applied or that log backups alone suffice, when only the latest differential plus subsequent log backups are required.

14
MCQhard

A DBA is troubleshooting a slow query. The execution plan indicates an 'Implicit Conversion' is occurring, which prevents the use of an index seek. What is the most likely cause?

A.The database collation is incorrect
B.The table is not partitioned
C.Data type mismatch between column and parameter
D.The statistics are outdated
AnswerC

When the parameter's data type differs from the column's, the optimiser applies an implicit conversion to the column side, making the predicate non-sargable and forcing a scan instead of an index seek. This satisfies the execution plan's implicit conversion warning.

Why this answer

Implicit conversion occurs when SQL Server must convert a value from one data type to another to compare it, such as when a varchar parameter is compared to an int column. Because the conversion is applied to the column (the higher-precedence type), the optimizer cannot seek the index and must scan, which is why the execution plan shows the warning. Matching parameter data types to column data types eliminates the conversion and restores index seeks.

Exam trap

DS0-001 often tests whether candidates can read execution plan warnings literally; the trap is confusing implicit conversion (type mismatch) with stale statistics, since both can cause scans but only one produces that specific warning.

How to eliminate wrong answers

Option A is wrong because collation mismatches cause explicit conversion errors or sort-order issues, not the implicit conversion warning tied to data type precedence. Option B is wrong because partitioning affects data placement and partition elimination, not the data type conversion that blocks an index seek. Option D is wrong because outdated statistics cause cardinality estimation errors and bad plan choices, but they do not produce an 'Implicit Conversion' warning in the plan; that warning is specifically about type mismatch.

15
MCQeasy

What is the primary function of an index in a database?

A.To speed up data retrieval
B.To enforce data encryption
C.To reduce disk space usage
D.To manage user permissions
AnswerA

An index maintains a separate ordered structure pointing to table rows, letting the database locate matching records without scanning the whole table. This directly reduces the I/O needed for retrieval, which is its primary function.

Why this answer

Indexes are designed to speed up data retrieval by providing a faster lookup mechanism than scanning every row in a table.

16
MCQhard

A data warehouse contains a fact table with billions of rows. Analysts frequently run aggregation queries that group by product_category and calculate total sales. These queries are slow because they scan the entire fact table. You need to improve performance without changing the queries. What should you implement?

A.A clustered columnstore index on the fact table
B.A nonclustered index on the product_category column
C.An indexed view that pre-aggregates total sales by product_category
D.Table partitioning on the product_category column
AnswerA

A clustered columnstore index stores data in a columnar format, which is highly efficient for aggregation queries that scan large amounts of data. It provides high compression and batch-mode execution, significantly speeding up queries that group by product_category and sum sales. It eliminates the need for full table scans by reading only relevant columns.

Why this answer

A clustered columnstore index is ideal for large fact tables in data warehousing because it stores data column-wise, enabling high compression and efficient batch-mode processing. Aggregation queries that group by product_category and sum sales benefit from reading only the necessary columns and leveraging segment elimination, resulting in faster performance without query changes.

Exam trap

The trap here is assuming that a traditional row-based index or partitioning will solve aggregation performance, but only a columnstore index provides the columnar storage and batch-mode execution needed for large-scale aggregations.

17
MCQhard

In an Oracle Database environment, a DBA identifies that specific queries are performing poorly due to fragmented tables. Which command should the DBA execute to reclaim unused space and defragment the table without dropping the table structure?

A.ALTER TABLE ... SHRINK SPACE
B.TRUNCATE TABLE
C.ANALYZE TABLE ... COMPUTE STATISTICS
D.DROP AND RECREATE
AnswerA

ALTER TABLE ... SHRINK SPACE reclaims fragmented space in-place, moving rows downward and resetting the high-water mark without dropping the table. It satisfies the stem's requirement to defragment while preserving the table structure, unlike MOVE (which relocates segments) or export/import. Row movement must be enabled first.

Why this answer

ALTER TABLE ... SHRINK SPACE is the Oracle command that reclaims unused space below the high-water mark and defragments the segment without dropping or rebuilding the table. It moves rows downward into free space, compacting the segment so full-table scans read fewer blocks and query performance improves.

Exam trap

The trap is confusing statistics gathering (ANALYZE) with physical reorganization (SHRINK SPACE) — candidates often pick ANALYZE because it sounds like it 'fixes' the table, but it only updates the optimizer's metadata.

How to eliminate wrong answers

Option B is wrong because TRUNCATE TABLE removes all rows from the table, destroying data — it is a data-removal operation, not a defragmentation operation. Option C is wrong because ANALYZE TABLE ... COMPUTE STATISTICS only gathers optimizer statistics; it does not move rows or reclaim space, so it cannot defragment a table.

Option D is wrong because DROP AND RECREATE destroys the table structure and requires rebuilding indexes, constraints, and dependent objects — the question explicitly asks for a method that does not drop the table structure.

18
MCQhard

A MySQL DBA needs to diagnose a deadlock issue. Which tool or command provides the most detailed information regarding the specific InnoDB internal locks held by transactions at the time of a deadlock?

A.CHECK TABLE
B.SHOW ENGINE INNODB STATUS
C.EXPLAIN
D.SHOW PROCESSLIST
AnswerB

SHOW ENGINE INNODB STATUS returns the LATEST DETECTED DEADLOCK section, listing each transaction's held and waiting InnoDB row and table locks plus the SQL involved. This gives the internal lock detail needed to identify the conflicting access pattern.

Why this answer

SHOW ENGINE INNODB STATUS is the canonical MySQL command for diagnosing InnoDB deadlocks — its LATEST DETECTED DEADLOCK section prints the exact transactions involved, the SQL statements they were executing, the locks each held and waited for, and the transaction that was rolled back. This is the most detailed lock-level forensic output available without enabling additional instrumentation.

Exam trap

DS0-001 often tests whether candidates confuse diagnostic tools — the trap is picking SHOW PROCESSLIST (which shows running queries but not locks) or EXPLAIN (which shows plans, not runtime contention) instead of the InnoDB-specific status command.

How to eliminate wrong answers

Option A is wrong because CHECK TABLE verifies table and index integrity (corruption detection), not lock contention or deadlock history. Option C is wrong because EXPLAIN shows the query execution plan (access paths, join order, index usage) — it has nothing to do with runtime lock waits. Option D is wrong because SHOW PROCESSLIST lists current connections and their running statements but does not expose InnoDB row-level locks, wait-for graphs, or deadlock history.

19
MCQhard

A DBA is designing a backup strategy for a database that must meet a recovery point objective (RPO) of 15 minutes and a recovery time objective (RTO) of 1 hour. The database is in the FULL recovery model. Which combination of backup types and scheduling best satisfies these objectives?

A.Weekly full backups, daily differential backups, and transaction log backups every 15 minutes.
B.Weekly full backups and hourly transaction log backups.
C.Daily full backups and no transaction log backups.
D.Continuous mirroring with no scheduled backups.
AnswerA

With FULL recovery, transaction log backups every 15 minutes limit data loss to at most 15 minutes, satisfying the RPO. Weekly full backups plus daily differentials keep restore time manageable, and the log chain provides point-in-time recovery. The RTO of 1 hour is realistic because restoring one full, one differential, and a handful of log backups is far faster than replaying a week of logs from a single full backup.

Why this answer

The 15-minute RPO dictates that transaction log backups must be taken at least every 15 minutes so that at most 15 minutes of transactions are lost. Combining weekly full backups, daily differentials, and 15-minute log backups keeps the restore chain short enough to meet the 1-hour RTO while satisfying the RPO. Strategies without log backups or with hourly logs fail the RPO, and mirroring alone is not a backup strategy.

Exam trap

The trap here is focusing only on RTO and choosing a strategy that restores quickly while ignoring the 15-minute RPO, which mandates frequent transaction log backups.

20
Multi-Selecteasy

Which THREE of the following are standard database maintenance tasks?

Select 3 answers
A.Creating new database servers
B.Updating statistics
C.Changing the server IP address
D.Rebuilding indexes
E.Full database backups
AnswersB, D, E

Updating statistics is a standard maintenance task that refreshes the query optimiser's cardinality estimates, satisfying the stem's requirement. It runs alongside index rebuilds and backups, preventing poor execution plans caused by stale distribution data after significant data modification.

Why this answer

Updating statistics (B) is a standard maintenance task because the query optimizer relies on accurate statistics to generate efficient execution plans, and stale statistics lead to poor cardinality estimates and slow queries. Rebuilding indexes (D) is standard maintenance because index fragmentation degrades read performance and wastes space, so indexes are periodically rebuilt (or reorganized) to restore efficiency. Full database backups (E) are a core maintenance task since they provide the recoverability baseline required for disaster recovery and point-in-time restores.

Creating new database servers (A) is a provisioning/deployment activity, not routine maintenance of an existing database, and changing the server IP address (C) is a network/infrastructure change unrelated to database upkeep.

Exam trap

DS0-001 often tests the boundary between one-time provisioning activities (creating servers, changing IPs) and recurring maintenance tasks, catching candidates who pick infrastructure changes as 'maintenance'.

21
Multi-Selecthard

Which THREE of the following are necessary prerequisites for implementing database mirroring in a SQL Server environment?

Select 3 answers
A.Database must be in Full recovery model
B.Full backup and log backup restored on the mirror
C.The server must be a domain controller
D.Must be running in Read-only mode
E.Correct service account permissions
AnswersA, B, E

Mirroring requires the log chain.

Why this answer

Option A is correct because database mirroring requires the principal database to use the Full recovery model so that the transaction log can support the log stream sent to the mirror; Simple or Bulk-Logged recovery models are not supported for mirroring. Option B is correct because before mirroring can start, you must restore a full backup of the principal database on the mirror server WITH NORECOVERY, followed by any necessary transaction log backups WITH NORECOVERY, to bring the mirror database to a recovering state. Option E is correct because the SQL Server service accounts on both the principal and mirror instances must have the appropriate permissions to connect and communicate, typically via domain accounts or certificates with endpoints configured for database mirroring.

Option C is not required — a domain controller is not necessary, and in fact running SQL Server on a domain controller has its own restrictions. Option D is not required — the mirror database stays in a restoring/recovering state (not read-only accessible) until a failover occurs, and read-only access is only available with a snapshot, not as a mirroring prerequisite.

Exam trap

DS0-001 often tests the recovery model prerequisite and the backup sequence (full + log WITH NORECOVERY), while planting distractors like 'domain controller' and 'read-only mode' that sound plausible but are not mirroring requirements.

22
MCQeasy

Which database backup strategy is recommended to ensure that you can restore a database to a specific point in time?

A.Differential backups only
B.Full and Transaction Log backups
C.Full backups only
D.Copy-only backups
AnswerB

Transaction log backups capture every committed transaction since the last log backup, so combining them with periodic full backups lets you replay logs to a precise point in time. Full backups alone restore only to the last backup, and differential backups restore only to the differential's creation, so neither meets the point-in-time requirement.

Why this answer

Point-in-time recovery requires a full backup as the base plus a continuous chain of transaction log backups. Restoring the full backup and then replaying transaction logs up to a specific timestamp (STOPAT) reconstructs the database to any moment within the log chain's coverage.

Exam trap

DS0-001 often tests whether candidates understand that PITR requires a log chain, so the trap is choosing 'Full backups only' because full backups sound comprehensive, or choosing differentials because they 'capture changes'.

How to eliminate wrong answers

Option A is wrong because differential backups only capture changes since the last full backup and cannot be replayed incrementally to an arbitrary point — you still need a full backup and, for PITR, transaction logs. Option C is wrong because full backups alone only restore to the moment of the last full backup, losing all changes since. Option D is wrong because copy-only backups are excluded from the normal backup chain and are used for ad-hoc copies without disturbing the log sequence, so they cannot serve as the basis for PITR.

23
MCQeasy

A database administrator is responsible for a PostgreSQL database that stores financial transactions. The compliance team requires that all changes to the transactions table be recorded with the user, timestamp, and old and new values for auditing. The application performs INSERT, UPDATE, and DELETE operations. The DBA must implement a solution that captures all changes without modifying application code. Which PostgreSQL feature should the DBA use?

A.Enable row-level security on the transactions table.
B.Create a BEFORE UPDATE trigger that inserts into an audit table.
C.Use an AFTER INSERT OR UPDATE OR DELETE trigger that writes to an audit table.
D.Set the database to log all statements using log_statement = 'all'.
AnswerC

An AFTER trigger that fires on INSERT, UPDATE, and DELETE can capture all changes and write the user, timestamp, and old and new values to an audit table. AFTER triggers run after the row is modified, so they can access both OLD and NEW values. This requires no application code changes and provides a complete audit trail as required by compliance.

Why this answer

An AFTER trigger on INSERT, UPDATE, and DELETE captures all changes and can record user, timestamp, and old/new values into an audit table. This meets the compliance requirement without application changes. The other options either cover only some operations, provide security instead of auditing, or log unstructured statements without old/new values.

Exam trap

The trap here is confusing logging with auditing; server logs do not provide the structured old/new value capture required for compliance.

24
Multi-Selecteasy

Which THREE of the following are essential components of a robust disaster recovery plan for a mission-critical database?

Select 3 answers
A.Using only RAID 0 for storage
B.Keeping all data in memory
C.Off-site or cloud storage of backups
D.Regularly tested backup restoration
E.Documented and tested failover procedures
AnswersC, D, E

Off-site or cloud backup storage places copies geographically apart from the primary database, so a site-level disaster cannot destroy both production data and its backups. This separation satisfies the stem's requirement for an essential component of a robust disaster recovery plan.

Why this answer

Option C is correct because storing backups off-site or in the cloud protects against site-wide disasters such as fire, flood, or ransomware that could destroy locally held copies, ensuring a survivable copy exists in a separate failure domain. Option D is correct because backups are only trustworthy if restoration has been verified; regularly testing restores validates backup integrity, media readability, and RTO/RPO assumptions before an actual outage. Option E is correct because documented and tested failover procedures ensure that database replicas, clustering, or standby systems can be promoted quickly and consistently, minimizing downtime and human error during a real incident.

Option A is not appropriate because RAID 0 offers striping with no redundancy or parity, so a single disk failure destroys the array and it is never a disaster recovery safeguard. Option B is not appropriate because keeping all data in memory is volatile, non-persistent, and lost on power failure or crash, providing no durable recovery capability.

Exam trap

DS0-001 often tests the misconception that RAID or in-memory storage constitutes a backup, when in fact RAID is not a backup and memory is volatile — candidates must recognize that DR requires off-site, tested, and documented procedures.

25
MCQhard

A database is experiencing high I/O wait times on the log drive. What is the most effective configuration change to alleviate this bottleneck?

A.Move the log to a high-performance dedicated drive
B.Use data compression
C.Increase the buffer pool size
D.Reduce the database recovery interval
AnswerA

Moving the transaction log to a dedicated high-performance drive directly addresses the I/O wait bottleneck by isolating sequential log writes from competing data-file reads. This separation reduces disk contention and lowers write latency, satisfying the stem's requirement to alleviate log-drive I/O pressure most effectively.

Why this answer

The log drive is the write-ahead log (WAL/redo) target, and it is written sequentially and synchronously on every commit. If that drive is slow or shared with data files, commits stall and I/O wait spikes. Moving the log to a dedicated high-performance device (SSD/NVMe, or a dedicated volume) removes contention and gives the sequential log stream the IOPS and low latency it needs.

Exam trap

The trap here is confusing read-path tuning (buffer pool, compression) with the write-path bottleneck that log I/O wait actually represents.

How to eliminate wrong answers

Option B is wrong because data compression reduces storage footprint and can lower I/O volume for reads, but it does not address the latency of synchronous log writes and adds CPU overhead. Option C is wrong because the buffer pool caches data pages in memory; enlarging it can reduce physical reads but does nothing for the log drive's write bottleneck. Option D is wrong because the recovery interval controls how often checkpoints occur; shortening it actually increases checkpoint/log write activity and can worsen log I/O pressure.

26
MCQmedium

A database administrator notices that the transaction log file is nearly full. Which operation will shrink the file to free up space?

A.DBCC SHRINKDATABASE
B.BACKUP LOG ... WITH TRUNCATE
C.ALTER DATABASE ... SET LOGFILE
D.DBCC SHRINKFILE
AnswerD

This command is used to shrink a specific file, such as a transaction log.

Why this answer

DBCC SHRINKFILE is the targeted command that reduces the size of a specific database file — including a transaction log file — by moving the file's end marker inward and releasing unused pages back to the OS. It is the correct tool when a DBA needs to reclaim space from one named log file without affecting other files in the database.

Exam trap

The trap here is confusing logical truncation (BACKUP LOG WITH TRUNCATE, which frees space for reuse) with physical shrinking (DBCC SHRINKFILE, which reduces file size on disk) — candidates often pick the truncation option thinking it shrinks the file.

How to eliminate wrong answers

Option A is wrong because DBCC SHRINKDATABASE operates at the database level and shrinks all files, not a specific log file, and it cannot shrink a log below the virtual log file (VLF) boundary or below the size needed for the active log. Option B is wrong because BACKUP LOG ... WITH TRUNCATE (or WITH TRUNCATE_ONLY in older versions) truncates the inactive portion of the log, marking space as reusable, but it does not physically shrink the file on disk — the file remains the same size.

Option C is wrong because ALTER DATABASE ... SET LOGFILE is not a valid T-SQL syntax; log file size is changed via ALTER DATABASE ... MODIFY FILE (SIZE = ...), and even that sets a target size rather than reclaiming fragmented free space.

27
Multi-Selecthard

Which THREE of the following items should be monitored to identify performance bottlenecks in a database?

Select 3 answers
A.Disk latency (I/O wait)
B.Batch requests per second
C.The database name length
D.Server room temperature
E.CPU utilization
AnswersA, B, E

Disk latency directly exposes storage-bound bottlenecks: high I/O wait means queries stall waiting on physical reads rather than CPU or network. Monitoring it satisfies the stem's requirement to identify performance bottlenecks, since slow disk throughput commonly throttles database operations before other resources saturate.

Why this answer

Disk latency (I/O wait) (A) is correct because high I/O wait times directly indicate storage bottlenecks where the database engine is waiting on reads/writes, a primary cause of slow query performance. Batch requests per second (B) is correct because it measures the throughput of SQL batches processed by the instance, revealing whether the workload is saturating the server or degrading under load. CPU utilization (E) is correct because sustained high CPU usage shows the database engine is compute-bound, often from expensive queries, missing indexes, or inefficient plans.

The database name length (C) is irrelevant since naming conventions have no effect on query execution or resource consumption, and server room temperature (D) is a facilities/environmental metric, not a database performance counter, though extreme heat could indirectly affect hardware.

Exam trap

DS0-001 often tests whether candidates confuse environmental or cosmetic attributes (server room temperature, database name length) with genuine performance counters, so pick only metrics that map to I/O, throughput, or compute.

28
MCQmedium

A data systems team runs an analytics workload on a database that is also used for OLTP. Reports have become slower over time, and the team suspects that an index is being scanned instead of seeked. They want to capture the actual execution plan for a specific report query to confirm the operator used. Which action should they take?

A.Run the query with SET STATISTICS IO ON and compare logical reads.
B.Run the query with Include Actual Execution Plan enabled in the client tool.
C.Enable Query Store and inspect the plan for the query's query_id.
D.Run the query with SET SHOWPLAN_XML ON to capture the estimated plan before execution.
AnswerB

Including the actual execution plan captures the plan after execution, showing the operators actually used, including scans, seeks, and their properties. This directly confirms whether the index is being scanned or seeked for the report query, matching the need to verify the operator used.

Why this answer

The actual execution plan is generated after the query runs and reflects the operators and runtime behavior, making it the correct way to confirm whether an index scan or seek occurred. Estimated plans may not match runtime behavior, and I/O statistics or historical Query Store data do not directly show the actual operator for a specific execution.

Exam trap

The trap here is confusing estimated plans or I/O statistics with the actual execution plan, which is the only one that shows the operators used at runtime.

29
Multi-Selecthard

A database administrator is configuring a new SQL Server instance for a high-volume online transaction processing (OLTP) system. The administrator needs to optimize tempdb performance. Which two actions should the administrator take? (Choose two.)

Select 2 answers
A.Set the tempdb filegrowth to a small percentage to save disk space.
B.Enable trace flag 1118 to use uniform extents for tempdb allocations.
C.Create multiple tempdb data files, one per CPU core up to eight.
D.Set the tempdb recovery model to FULL.
E.Place the tempdb transaction log on the same volume as the data files.
AnswersB, C

Trace flag 1118 forces uniform extent allocations, reducing contention on SGAM pages for tempdb. In SQL Server 2016 and later, this behavior is enabled by default for tempdb, but on older versions or when explicitly disabled, enabling it improves performance. It complements multiple data files by further reducing allocation bottlenecks. This is a recognized tempdb optimization.

Why this answer

For high-volume OLTP, tempdb performance is improved by creating multiple data files (one per core up to eight) to reduce allocation contention, and by ensuring uniform extent allocations via trace flag 1118 (or relying on the default in newer versions). These actions address the most common tempdb bottlenecks. Changing the recovery model, co-locating log and data files, or using small percentage growth would harm performance or are invalid.

Exam trap

The trap here is assuming that tempdb can be tuned like a user database, such as changing its recovery model or using small filegrowth, when tempdb has unique restrictions and best practices.

30
MCQeasy

Which database object is specifically designed to enforce referential integrity between two tables?

A.Index
B.Primary Key
C.Unique Constraint
D.Foreign Key
AnswerD

A foreign key column references the primary key of a related table, so the database engine rejects inserts or updates that would leave an orphaned row. This directly enforces referential integrity between the two tables, unlike a check constraint or unique index.

Why this answer

A Foreign Key constraint is designed to ensure that data in one table matches valid entries in another table, maintaining referential integrity.

31
Multi-Selecteasy

Which THREE of the following are common types of database backups?

Select 3 answers
A.Full
B.Differential
C.Snapshot
D.Transaction Log
E.Hardware copy
AnswersA, B, D

A full backup copies the entire database, providing a complete standalone restore point and resetting the differential and transaction log chain. It satisfies the stem's requirement as one of the three standard backup types, alongside differential and transaction log backups.

Why this answer

Full, differential, and transaction log backups are the standard backup types used in professional database environments.

32
Multi-Selectmedium

Which TWO of the following are key considerations when configuring a database for high availability?

Select 2 answers
A.The color of the server chassis
B.Number of database users
C.Network latency between nodes
D.The database name
E.Storage subsystem performance
AnswersC, E

Replication and failover between nodes depend on timely heartbeat and synchronisation traffic, so high network latency delays detection of failure and risks stale reads. This directly satisfies the high-availability requirement by ensuring rapid, consistent failover.

Why this answer

Network latency between nodes (C) is a key high-availability consideration because replication, clustering heartbeats, and failover coordination depend on timely inter-node communication; high latency can cause replication lag, split-brain scenarios, or delayed failover. Storage subsystem performance (E) is also critical because HA designs rely on fast, reliable shared or replicated storage (e.g., SAN, RAID, synchronous replication) to meet RPO/RTO targets and avoid I/O bottlenecks during failover. The color of the server chassis (A) is purely cosmetic and has no bearing on availability.

The number of database users (B) affects load and licensing but is not a defining HA configuration factor. The database name (D) is just an identifier and does not influence availability mechanisms.

Exam trap

DS0-001 often tests the misconception that HA is about user count or naming — candidates pick 'number of database users' because it sounds operational, missing that HA is fundamentally about latency, storage, and failover mechanics.

33
Multi-Selectmedium

Which TWO of the following can be used to prevent unauthorized access to sensitive database tables?

Select 2 answers
A.Row-level security
B.Add more CPU cores
C.Role-based access control
D.Increase the backup frequency
E.Use the sa account
AnswersA, C

Row-level security enforces predicates inside the database engine, filtering rows by the executing user's identity regardless of the query submitted. This satisfies the requirement to prevent unauthorised access to sensitive tables, because Microsoft Entra ID-backed users only ever see rows matching their granted predicate, even through ad-hoc queries or reporting tools.

Why this answer

Implementing role-based access control (RBAC) and row-level security (RLS) are effective ways to secure access to data.

34
MCQmedium

You are managing a PostgreSQL database that supports a global application. Users in different regions experience slow query performance when filtering on a timestamp column that stores UTC values. You need to ensure that queries filtering on local time are efficient. What should you do?

A.Add a nonclustered index on the timestamp column
B.Change the column data type to timestamp with time zone
C.Create an expression index on the timestamp column converted to the local time zone
D.Create a separate materialized view for each region with local time
AnswerC

An expression index on the converted timestamp allows the database to use an index when queries filter on local time. Without it, the conversion would prevent index usage, causing full scans. This approach maintains the UTC storage while enabling efficient queries for each region by creating indexes tailored to their time zone.

Why this answer

An expression index on the timestamp column converted to the local time zone enables the database to use an index for queries that filter on local time. This maintains the storage in UTC while providing efficient access for each region's queries, avoiding full table scans caused by non-sargable predicates.

Exam trap

The trap here is assuming that simply having an index on the timestamp column is sufficient, but applying a function or conversion in the WHERE clause prevents index usage unless an expression index is created.

35
MCQhard

A database administrator is configuring a new SQL Server instance that will host a database with sensitive financial data. The compliance team requires that all data at rest be encrypted, and that the encryption keys be managed by a hardware security module (HSM). Which SQL Server feature should the administrator implement to meet these requirements?

A.Transparent Data Encryption (TDE) with an Extensible Key Management (EKM) provider
B.Always Encrypted with secure enclaves
C.Row-Level Security (RLS) with column encryption
D.Dynamic Data Masking (DDM) with a certificate
AnswerA

TDE encrypts data and log files at rest, and using an EKM provider allows the asymmetric key that protects the Database Encryption Key (DEK) to be stored in an HSM. This satisfies both encryption at rest and HSM key management. TDE with EKM is designed for regulatory compliance scenarios requiring hardware-based key protection. The administrator must configure the EKM provider and create a credential for the HSM.

Why this answer

Transparent Data Encryption (TDE) encrypts the entire database, including data and log files, at rest. When combined with an Extensible Key Management (EKM) provider, the asymmetric key that protects the Database Encryption Key can be stored in a hardware security module (HSM), meeting the compliance requirement for HSM-based key management. Always Encrypted, Row-Level Security, and Dynamic Data Masking do not encrypt all data at rest.

Exam trap

The trap here is assuming that Always Encrypted or column-level encryption satisfies the requirement for all data at rest, when TDE is needed for full database encryption.

36
MCQmedium

You are a database administrator for a high-traffic e-commerce platform. The order history table has grown to 500 GB and queries filtering on order_date are performing poorly. You need to implement a partitioning strategy that allows you to quickly archive old orders by switching out partitions. Which partitioning approach should you use?

A.List partitioning on the order_status column
B.Hash partitioning on the order_id column
C.Range partitioning on the order_date column
D.Round-robin partitioning across available filegroups
AnswerC

Range partitioning on order_date allows you to define partitions for specific date ranges, such as monthly or yearly. This enables efficient archiving by switching out old partitions, which is a metadata operation. It also improves query performance through partition elimination when filtering on order_date, directly addressing the slow queries.

Why this answer

Range partitioning on the order_date column is the correct approach because it aligns with the query filter and enables efficient archiving through partition switching. It allows the database engine to eliminate irrelevant partitions during queries, improving performance, and provides a simple way to move old data to an archive table by switching out a partition.

Exam trap

The trap here is assuming that any partitioning strategy will improve performance and archiving, but only range partitioning on the filter column supports both partition elimination and partition switching for archiving.

37
MCQmedium

A database administrator is designing a backup strategy for a 2 TB OLTP database that must support point-in-time recovery with a maximum data loss window of 15 minutes. Full backups complete in 4 hours, and the transaction log is backed up every 10 minutes. What is the most appropriate recovery model for this database?

A.Full recovery model
B.Bulk-logged recovery model
C.Simple recovery model
D.Model recovery model
AnswerA

The full recovery model allows transaction log backups, enabling point-in-time recovery and minimizing data loss. With log backups every 10 minutes, the maximum data loss is 10 minutes, which satisfies the 15-minute requirement. This model is standard for OLTP databases where data loss must be minimized. It supports all restore options, including restoring to a specific point in time.

Why this answer

The full recovery model is necessary to support transaction log backups and point-in-time recovery. With log backups every 10 minutes, the maximum data loss is 10 minutes, meeting the 15-minute requirement. The simple recovery model does not allow log backups, and bulk-logged recovery may not guarantee point-in-time recovery after bulk operations.

The model database is not a recovery model for user databases.

Exam trap

The trap here is confusing the bulk-logged recovery model with full recovery, assuming that minimal logging still provides point-in-time recovery without limitations.

38
MCQeasy

Which tool provides a graphical interface for managing SQL Server instances, including configuring security and creating maintenance plans?

A.Performance Monitor
B.SQL Server Profiler
C.SQL Server Management Studio
D.SQL Server Configuration Manager
AnswerC

SQL Server Management Studio delivers the graphical console the stem requires, exposing Object Explorer for instance configuration, login and role security management, and the Maintenance Plan Wizard for scheduled backups and index rebuilds. It satisfies the demand for a single GUI tool covering both security configuration and maintenance plan creation.

Why this answer

SQL Server Management Studio (SSMS) is the standard GUI tool for SQL Server management.

39
MCQmedium

You are managing a database that uses transparent data encryption. If you need to back up the database, what additional component must be included to ensure the backup can be restored on a different server?

A.The master data file
B.The SQL Server configuration file
C.The transaction log file
D.The certificate and its private key
AnswerD

Transparent data encryption protects the database encryption key with a certificate stored in the master database. Restoring the backup elsewhere requires that certificate and its private key, otherwise the database encryption key cannot be decrypted and the restore fails.

Why this answer

Transparent Data Encryption (TDE) encrypts the database using a Database Encryption Key (DEK), which is itself protected by a certificate stored in the master database. To restore a TDE-encrypted backup on a different server, you must supply that certificate and its private key, otherwise the DEK cannot be decrypted and the restore fails.

Exam trap

The trap is assuming the backup file alone is sufficient; candidates forget that TDE ties the backup to the certificate/private key, so restoring elsewhere requires exporting and importing that certificate.

How to eliminate wrong answers

Option A is wrong because the master data file (master.mdf) contains server-level metadata but not the TDE certificate's private key needed to decrypt the DEK. Option B is wrong because the SQL Server configuration file holds startup parameters, not encryption keys. Option C is wrong because the transaction log file is part of the database being restored and does not carry the certificate; it is itself encrypted by TDE.

40
Multi-Selecthard

A DBA is designing a backup strategy for a large SQL Server database that must support point-in-time recovery and minimize backup windows. The database is in the full recovery model. Which two backup types should the DBA include in the strategy to achieve these goals? (Choose two.)

Select 2 answers
A.Full backup
B.Filegroup backup
C.Copy-only backup
D.Transaction log backup
E.Differential backup
AnswersA, D

A full backup provides the baseline for recovery and is required to start the log chain in the full recovery model. It captures the entire database and is essential for restoring the database to a known point. Without a full backup, transaction log backups cannot be applied. It also serves as the foundation for differential backups.

Why this answer

To support point-in-time recovery, the full recovery model requires a full backup to establish the baseline and transaction log backups to capture ongoing changes. These two types are essential. Differential backups can help reduce restore time but are not mandatory.

Copy-only and filegroup backups serve other purposes and do not by themselves enable point-in-time recovery.

Exam trap

The trap here is thinking that differential backups are required for point-in-time recovery; they are not, as transaction log backups provide that capability.

41
MCQhard

A data systems technician is asked to recommend a partitioning strategy for a very large PostgreSQL table that stores time-series sensor readings. Queries almost always filter on the reading_timestamp column and return a narrow time window, while older data must remain available for compliance for seven years. The team wants the planner to prune partitions automatically and wants to keep maintenance simple. Which approach should the technician recommend?

A.List partitioning on a device_id column, with one partition per sensor manufacturer.
B.Hash partitioning on reading_timestamp, with sixteen partitions distributed evenly.
C.No partitioning, but create a BRIN index on reading_timestamp and rely on sequential scans.
D.Range partitioning on reading_timestamp, with one partition per month and a default partition for out-of-range rows.
AnswerD

Range partitioning on the timestamp aligns partition boundaries with the narrow time-window predicates, so the PostgreSQL planner can exclude nonmatching partitions during execution. Monthly partitions keep each relation small enough for efficient indexing and vacuuming, and the default partition catches rows that fall outside declared ranges, preventing insert failures when new periods are not yet created.

Why this answer

Range partitioning on the timestamp column matches the dominant query predicate, enabling the planner to prune partitions and read only the months inside the requested window. Monthly granularity balances partition count against per-partition size, and the default partition preserves inserts until new ranges are declared. The other strategies either partition on the wrong column or distribute timestamps so pruning becomes impossible.

Exam trap

The trap here is assuming any partitioning scheme improves time-window query performance, when pruning only works when the partition key matches the predicate column.

42
MCQmedium

A DBA needs to automate the maintenance of database statistics in SQL Server. Which tool is the standard approach to manage this across all user databases?

A.Active Directory Users and Computers
B.SQL Server Configuration Manager
C.SQL Server Agent Maintenance Plans
D.Windows Task Scheduler
AnswerC

SQL Server Agent Maintenance Plans provide built-in tasks, including Update Statistics, that run across every user database without custom scripting. This satisfies the requirement to automate statistics maintenance centrally, unlike ad hoc T-SQL jobs or manual commands, and is the documented standard mechanism for scheduled administrative upkeep in SQL Server.

Why this answer

SQL Server Agent Maintenance Plans are the built-in, standard mechanism for scheduling recurring administrative tasks like updating statistics, rebuilding indexes, and running backups across all user databases. They integrate directly with SQL Server Agent jobs and provide a wizard-driven or T-SQL-driven way to target multiple databases in one plan. This is the canonical answer for automating statistics maintenance in SQL Server.

Exam trap

DS0-001 often tests the confusion between SQL Server Agent Maintenance Plans and Windows Task Scheduler — candidates pick Task Scheduler because it is a familiar automation tool, missing that the SQL Server-native standard is Maintenance Plans.

How to eliminate wrong answers

Option A is wrong because Active Directory Users and Computers is a Windows directory management tool with no database maintenance capability. Option B is wrong because SQL Server Configuration Manager manages services, protocols, and network configuration — not scheduled maintenance tasks. Option D is wrong because Windows Task Scheduler can launch scripts, but it is not the standard SQL Server-native approach and lacks integration with database objects, logging, and multi-database targeting.

43
Multi-Selecthard

Which TWO of the following are common risks associated with performing a direct 'DROP' operation on a large production table?

Select 2 answers
A.Automatic loss of database backup files
B.Corruption of the master database
C.Excessive transaction log growth
D.Immediate application errors due to missing objects
E.Permanent increase in database file size
AnswersC, D

Dropping a large table is logged row by row, so the transaction log must record every deleted row before commit. This unbounded log growth can exhaust disk space or stall the operation, directly matching the risk the stem asks about.

Why this answer

Option C is correct because dropping a large table is a fully logged DDL operation: SQL Server records the page deallocations and extent changes in the transaction log, so on a big table this can cause excessive transaction log growth and potentially fill the log drive if the log isn't sized or backed up appropriately. Option D is correct because a DROP TABLE removes the object immediately, so any application, view, stored procedure, or query referencing that table will fail with errors such as 'Invalid object name' as soon as it executes. Option A is wrong because DROP TABLE does not touch backup files; backups are separate media and are unaffected by dropping a table.

Option B is wrong because dropping a user table does not corrupt the master database, which stores server-level metadata rather than user table data. Option E is wrong because dropping a table releases its extents back for reuse, so the database file does not permanently increase in size; if anything, space is freed within the file.

Exam trap

DS0-001 often tests the misconception that DROP is a non-logged operation or that it affects backups, when in fact it is logged and can cause log growth and immediate application failures.

44
MCQmedium

A database administrator is planning a disaster recovery strategy for a critical SQL Server database. The business requires a recovery point objective (RPO) of 15 minutes and a recovery time objective (RTO) of 1 hour. The database is currently using the simple recovery model. Which backup strategy should the administrator implement to meet these objectives?

A.Keep the simple recovery model, perform a full backup daily, and differential backups every 2 hours.
B.Change the recovery model to full, perform a full backup weekly, differential backups daily, and transaction log backups every 15 minutes.
C.Keep the simple recovery model, perform a full backup every 4 hours, and use database snapshots every 15 minutes.
D.Change the recovery model to bulk-logged, perform a full backup daily, and transaction log backups every 30 minutes.
AnswerB

This strategy meets the RPO because transaction log backups every 15 minutes limit data loss to at most 15 minutes. The full and differential backups reduce restore time, helping meet the 1-hour RTO. The full recovery model is required for transaction log backups, so changing from simple to full is essential for point-in-time recovery.

Why this answer

To achieve a 15-minute RPO, transaction log backups must be taken at least every 15 minutes, which requires the full recovery model. Weekly full and daily differential backups minimize restore time, supporting a 1-hour RTO. The other options either use recovery models that do not support log backups or have insufficient backup frequency, failing to meet the objectives.

Exam trap

The trap here is assuming that database snapshots or differential backups alone can provide point-in-time recovery without transaction log backups.

45
MCQeasy

A database administrator is asked to create a new database that will store historical data and will not be updated frequently. The database will be read-only most of the time, and the administrator wants to minimize storage space and improve query performance for large scans. Which SQL Server feature should the administrator implement?

A.Nonclustered index
B.Columnstore index
C.Filtered index
D.Clustered index
AnswerB

Columnstore indexes store data in a columnar format, which provides high compression and improves performance for large scans and analytical queries. They are ideal for read-only or infrequently updated historical data. This feature reduces storage space and speeds up queries that scan large volumes of data, meeting the administrator's goals.

Why this answer

Columnstore indexes use columnar storage and compression, which significantly reduces storage space and improves performance for large scans and analytical queries. They are optimized for read-only or infrequently updated data, making them ideal for historical data. Clustered, nonclustered, and filtered indexes are row-based and do not offer the same compression and scan performance benefits.

Exam trap

The trap here is assuming that any index will improve performance and reduce storage, but only columnstore indexes provide the columnar compression and batch-mode processing suited for large analytical scans.

46
MCQmedium

A DBA is configuring an Always On Availability Group in SQL Server. To ensure that the secondary node can be used for read-only reporting tasks, which setting must be correctly configured in the Availability Group replica settings?

A.Readable Secondary
B.Automatic Failover
C.Synchronous Commit
D.Primary Role
AnswerA

Configuring Readable Secondary to "Read-intent only" or "Yes" lets the secondary replica accept read-only connections, satisfying the reporting requirement. Without it, the secondary remains non-readable regardless of the availability mode, so the DBA must set this replica-level option explicitly.

Why this answer

The Readable Secondary setting in the Availability Group replica configuration determines whether a secondary replica can accept read-only connections. Setting it to 'Read-intent only' or 'Yes' allows reporting queries to be routed to the secondary, offloading the primary. Without this setting, the secondary is not accessible for read-only workloads even if it is synchronized.

Exam trap

DS0-001 often tests the distinction between availability and readability settings; the trap is confusing failover-related options (Automatic Failover, Synchronous Commit) with the specific setting that enables read-only access.

How to eliminate wrong answers

Option B is wrong because Automatic Failover controls whether the replica can become primary automatically; it does not enable read-only access. Option C is wrong because Synchronous Commit is a durability mode that ensures the primary waits for the secondary to harden the log; it affects data loss potential and failover type, not read accessibility. Option D is wrong because Primary Role refers to the replica's current role, not a configuration setting for read-only access; the setting that matters is Readable Secondary.

47
MCQmedium

A junior DBA runs the following statement against a production table that contains millions of rows with an active workload: TRUNCATE TABLE Sales.Transactions; What is the most important characteristic of this operation that the junior DBA should have understood before executing it?

A.It automatically creates a full backup of the table before removing the rows, allowing point-in-time recovery of the truncated data.
B.It releases the table's clustered index and all nonclustered indexes, so any index must be recreated afterward.
C.It enforces all FOREIGN KEY constraints referencing the table, so it will always fail if child rows exist.
D.It removes all rows without firing DELETE triggers or logging individual row deletions, and the removal cannot normally be rolled back row by row.
AnswerD

TRUNCATE TABLE is a minimally logged bulk operation: it deallocates the data pages instead of deleting rows one at a time, so per-row DELETE triggers do not fire and the log does not contain individual row images. In a production table with millions of rows, this makes the operation fast but also means you cannot undo it selectively; recovery depends on the surrounding transaction or backup strategy. This is the key behavioral fact a junior DBA must grasp.

Why this answer

TRUNCATE TABLE removes all rows by deallocating data pages rather than deleting rows individually. This means it is minimally logged, does not fire DELETE triggers, and cannot be rolled back row by row. For a production table with millions of rows and concurrent activity, the DBA must understand that recovery depends on backups or the surrounding transaction, not on per-row undo.

The other options describe behaviors that belong to DROP TABLE, foreign key enforcement, or backup automation, none of which apply to TRUNCATE.

Exam trap

The trap here is assuming TRUNCATE TABLE behaves like DELETE with a WHERE clause, when it actually deallocates pages without firing DELETE triggers or logging per-row changes.

48
MCQhard

A database administrator is troubleshooting a query that runs slowly only when executed by a specific application login. The same query runs quickly when executed by the administrator's login. The administrator suspects parameter sniffing. Which action should the administrator take to resolve the issue while minimizing the impact on other queries?

A.Create a plan guide for the query using sp_create_plan_guide.
B.Disable parameter sniffing at the instance level using trace flag 4136.
C.Update statistics on all tables involved in the query.
D.Use the OPTION (RECOMPILE) query hint on the specific query.
AnswerD

The OPTION (RECOMPILE) hint forces the query optimizer to generate a new plan for each execution, using the current parameter values. This eliminates the parameter sniffing issue for that query without affecting other queries. It is a targeted solution that addresses the specific problematic query while leaving the rest of the workload unaffected. The trade-off is a slight increase in CPU for compilation.

Why this answer

The OPTION (RECOMPILE) query hint forces a new plan for each execution, using the current parameter values, which resolves parameter sniffing for that specific query without affecting other queries. Disabling parameter sniffing instance-wide is too broad, plan guides are complex, and updating statistics does not directly address the cached plan issue.

Exam trap

The trap here is thinking that updating statistics or creating a plan guide is the best fix, when a query-level recompile hint is the most targeted and least disruptive solution for parameter sniffing.

49
Multi-Selectmedium

A database administrator is implementing an auditing solution for a SQL Server database that must track both successful and failed logins, as well as data modification statements on a specific table. The solution must minimize performance overhead and store audit data in a secure, tamper-evident format. (Choose two.)

Select 2 answers
A.Use SQL Server Profiler to trace logins and data modifications, and save the trace to a file.
B.Create a SQL Server Audit with an audit specification at the server level to capture failed and successful logins.
C.Enable C2 audit mode to capture all successful and failed logins and data modifications.
D.Implement a DDL trigger that logs all login events and data modifications to a custom table.
E.Create a database-level audit specification to capture UPDATE, INSERT, and DELETE actions on the specific table.
AnswersB, E

A server-level audit specification can capture login events, including successful and failed logins, and write them to a target such as the Windows Security log or a file. This is the standard method for auditing authentication events. It is designed to be lightweight and can be configured to capture only the necessary actions, minimizing overhead.

Why this answer

SQL Server Audit with a server-level specification for logins and a database-level specification for table modifications provides granular, low-overhead auditing. It can write to a secure target like the Windows Security log or a file with restricted access, and it is designed for tamper-evidence. C2 audit mode is heavy and deprecated, Profiler is not an auditing tool, and DDL triggers do not capture logins or DML.

Exam trap

The trap here is thinking that C2 audit mode or SQL Server Profiler is a suitable modern auditing solution, when they are either deprecated or not designed for secure, granular auditing.

50
MCQhard

A database is configured with a high-availability cluster. During a planned maintenance window, you need to fail over to the secondary node manually. Which command or action is used in a Windows Server Failover Cluster (WSFC) environment?

A.SHUTDOWN WITH NOWAIT
B.ALTER SERVER ROLE
C.Move-ClusterGroup
D.RESTORE DATABASE
AnswerC

This PowerShell command or the Failover Cluster Manager GUI triggers the manual transition.

Why this answer

In a WSFC environment, the 'Move' command in the Failover Cluster Manager is used to manually move the role (including the database resource) to another node.

51
MCQmedium

A retail company's order-processing database runs on a single server with RAID 10 storage. The database is 800 GB, with a 20 GB transaction log. The recovery model is FULL, and log backups run every 15 minutes. During a power failure, the server shuts down unexpectedly. After restart, the database is marked as 'In Recovery' and takes 45 minutes to become available. The CIO wants to reduce this recovery time. Which action should the database administrator take first?

A.Change the recovery model to SIMPLE.
B.Shrink the transaction log file to 1 GB.
C.Enable indirect checkpoints with a low recovery interval.
D.Move the database to a faster RAID 0 array.
AnswerC

Indirect checkpoints allow you to specify a target recovery time at the database level. By enabling indirect checkpoints and setting a low target recovery interval, SQL Server flushes dirty pages more aggressively in the background, limiting the number of pages that must be recovered after a crash. This directly reduces the 45-minute recovery window without sacrificing the FULL recovery model or point-in-time restore capability.

Why this answer

Indirect checkpoints let you set a target recovery time per database, causing SQL Server to write dirty pages more frequently so that crash recovery completes within the specified interval. This preserves the FULL recovery model and point-in-time restore. Changing recovery models, shrinking the log, or altering RAID levels does not target the dirty-page backlog that determines recovery duration.

Exam trap

The trap here is assuming that a smaller transaction log or a faster disk automatically shortens crash recovery, when recovery time is actually governed by dirty pages and uncommitted transactions.

52
MCQeasy

A database administrator needs to perform a schema-only export of a database. Which tool parameter is typically used for this purpose in mysqldump?

A.--quick
B.--add-drop-table
C.--all-databases
D.--no-data
AnswerD

The --no-data flag suppresses row retrieval, dumping only the CREATE TABLE statements that define the schema. This satisfies the schema-only export constraint directly, unlike --no-create-info, which does the reverse, or a full dump that includes all table data.

Why this answer

The --no-data flag in mysqldump suppresses row data and exports only the table structures (CREATE TABLE statements), which is exactly a schema-only export. It is commonly used to replicate schema to a new environment without copying potentially sensitive or bulky data.

Exam trap

DS0-001 often tests whether candidates know the specific mysqldump flags, so the trap is choosing --quick or --add-drop-table because they sound like they control what data is exported when they actually control buffering and DDL wrapping.

How to eliminate wrong answers

Option A is wrong because --quick changes how rows are buffered during export (streaming row-by-row to reduce memory), not whether data is included. Option B is wrong because --add-drop-table prepends DROP TABLE IF EXISTS statements to the dump for clean re-imports; it does not exclude data. Option C is wrong because --all-databases exports every database on the server, which is the opposite of a schema-only, single-database export.

53
MCQhard

A production database server is running out of memory. Which setting in SQL Server limits the amount of memory the instance can consume from the OS?

A.max server memory
B.Query memory grant
C.Working set size
D.min server memory
AnswerA

max server memory caps the buffer pool and other instance allocations, preventing SQL Server from consuming all available OS memory. Setting it bounds instance consumption so the operating system retains memory for its own processes.

Why this answer

The 'max server memory' setting in SQL Server configures the upper limit of memory that the SQL Server instance can allocate from the operating system. Setting this value prevents SQL Server from consuming all available memory and starving the OS or other applications, which is critical on a production server.

Exam trap

DS0-001 often tests the confusion between 'max server memory' and 'min server memory', or between instance-level memory limits and per-query memory grants, so candidates must read carefully.

How to eliminate wrong answers

Option B is wrong because query memory grant is a per-query allocation for operations like sorts and hashes, not an instance-wide limit. Option C is wrong because working set size is the amount of physical memory currently used by the process, not a configurable limit. Option D is wrong because 'min server memory' sets the minimum memory that SQL Server will attempt to keep available, not the maximum.

Ready to test yourself?

Try a timed practice session using only Data Systems Management questions.