Courseiva

CompTIA DataSys+ (DS0-001) (DS0-001) (DS0-001) — Questions 76–150

303 questions total · 5 pages · All types, answers revealed

Page 1

Page 2 of 5

Page 3
76
MCQeasy

A user wants to add a new column to an existing table named 'Employees'. Which SQL statement should be executed?

A.MODIFY TABLE
B.UPDATE TABLE
C.CREATE COLUMN
D.ALTER TABLE
AnswerD

ALTER TABLE modifies the structure of an existing table, so it adds the new column to Employees without dropping data. CREATE TABLE builds a new table and UPDATE changes row values, neither of which alters the schema.

Why this answer

The ALTER TABLE statement is the standard SQL DDL command used to modify the structure of an existing table, including adding, dropping, or modifying columns. To add a new column to 'Employees', the correct syntax is ALTER TABLE Employees ADD column_name data_type.

Exam trap

DS0-001 often tests the confusion between DDL and DML statements, causing candidates to select UPDATE (which modifies data) instead of ALTER TABLE (which modifies structure).

How to eliminate wrong answers

Option A is wrong because MODIFY TABLE is not a valid SQL statement; MODIFY is a clause used within ALTER TABLE in some dialects (e.g., MySQL) but not a standalone command. Option B is wrong because UPDATE TABLE is not valid SQL; UPDATE is a DML statement for modifying row data, not table structure. Option C is wrong because CREATE COLUMN is not a valid SQL statement; CREATE is used for creating tables, views, or other objects, not individual columns.

77
MCQeasy

A database administrator is preparing to deploy a new Oracle Database 19c instance that will store regulated financial data. The compliance team requires that all data at rest be encrypted and that encryption keys be managed outside the database to satisfy separation-of-duties controls. Which deployment approach should the administrator use?

A.Enable Transparent Data Encryption with a local wallet stored on the database server
B.Enable Data Redaction policies on all columns containing regulated financial data
C.Enable Transparent Data Encryption with an external key management system using PKCS#11
D.Enable database auditing and configure unified audit policies on all sensitive tables
AnswerC

Transparent Data Encryption encrypts tablespaces and credentials at rest, and integrating it with an external key management system via PKCS#11 moves master key custody to a separate hardware or software appliance. This satisfies both the encryption-at-rest requirement and the separation-of-duties control by keeping key management independent of the database server.

Why this answer

Transparent Data Encryption with an external key management system encrypts data at rest while delegating master key custody to a separate appliance through PKCS#11. This satisfies both the encryption requirement and the separation-of-duties control, because the database server never holds the master key locally.

Exam trap

The trap here is treating any encryption feature as sufficient, when the compliance requirement specifically demands that keys be managed outside the database to preserve separation of duties.

78
Multi-Selectmedium

Which TWO indicators should be monitored when testing a database deployment to ensure it is correctly sized for performance?

Select 2 answers
A.Total number of users on the network
B.Disk I/O latency
C.CPU utilization
D.Number of open database connections
E.Server uptime
AnswersB, C

Disk I/O latency reveals whether storage can sustain the database's read and write workload; rising latency indicates the deployment is undersized for its transaction volume. It satisfies the stem's requirement for an indicator proving correct sizing for performance.

Why this answer

Disk I/O latency (B) is a correct indicator because database performance is heavily bound by storage throughput and response time; high read/write latency directly signals that the deployment's disk subsystem is undersized for the workload. CPU utilization (C) is also correct because sustained high processor usage indicates the database engine is CPU-bound, meaning the instance is not correctly sized in terms of compute capacity. Together these two metrics reveal whether the storage and compute tiers meet the performance demands of the database.

The total number of network users (A) is not a direct measure of database sizing, since user count alone says nothing about query load or resource consumption. The number of open database connections (D) reflects concurrency but not whether the underlying resources are adequately provisioned. Server uptime (E) only indicates availability over time and has no bearing on performance sizing.

Exam trap

DS0-001 often tests whether candidates can separate true performance-sizing metrics from vanity or availability metrics, and the trap is selecting connection counts or uptime because they sound database-related.

79
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.

80
MCQhard

A report needs to identify the 'top 10' customers by total spend. In SQL, which clause would you use to return only the first 10 results after sorting by spend descending?

A.WHERE
B.LIMIT
C.OFFSET
D.HAVING
AnswerB

LIMIT restricts the result set to a specified number of rows after ORDER BY has sorted spend descending, satisfying the requirement to return only the first 10 customers. It applies after sorting, so the highest spenders are retained rather than an arbitrary subset.

Why this answer

The LIMIT clause restricts the number of rows returned by a query after the result set has been sorted. Combined with ORDER BY spend DESC, LIMIT 10 returns only the top 10 highest-spending customers. WHERE filters rows before aggregation/sorting, OFFSET skips rows, and HAVING filters grouped results — none of these cap the row count.

Exam trap

DS0-001 often tests whether candidates confuse row-filtering clauses (WHERE, HAVING) with result-set-limiting clauses (LIMIT, TOP, FETCH FIRST), so the trap is picking WHERE because it 'filters' results.

How to eliminate wrong answers

Option A is wrong because WHERE filters individual rows based on a condition before sorting or grouping occurs; it cannot restrict the result set to a fixed number of rows. Option C is wrong because OFFSET skips a specified number of rows at the start of the result set rather than limiting how many rows are returned. Option D is wrong because HAVING filters the output of GROUP BY aggregations (e.g., HAVING SUM(spend) > 1000), not the total row count of a sorted result.

81
MCQhard

An analyst is using a CTE (Common Table Expression) to pre-aggregate sales data before performing a join. What is the primary benefit of using a CTE instead of a subquery in this scenario?

A.Better readability and recursive capability
B.Automatic indexing of the result set
C.Performance is always superior to subqueries
D.Lower memory consumption during execution
AnswerA

A CTE names the pre-aggregated result set, separating it from the join logic so the query reads top-down and is easier to maintain. It also supports recursion, unlike a plain subquery, which satisfies the readability and recursive capability requirement.

Why this answer

CTEs (WITH clauses) improve query readability by naming intermediate result sets and, unlike most subqueries, support recursion via WITH RECURSIVE — essential for hierarchical data like org charts or bill-of-materials. In the pre-aggregation scenario, the CTE makes the aggregation step explicit and self-documenting, and it can be referenced multiple times in the outer query.

Exam trap

DS0-001 often tests the misconception that CTEs are always faster or auto-indexed, when their primary advantages are readability, reusability, and recursion — not guaranteed performance gains.

How to eliminate wrong answers

Option B is wrong because a CTE does not automatically create indexes on its result set — it is a named query, not a materialized table, and any indexing must be done on the underlying tables. Option C is wrong because performance is not always superior; many optimizers inline CTEs identically to subqueries, and in some engines (older PostgreSQL versions) CTEs were optimization fences that could hurt performance. Option D is wrong because memory consumption depends on the execution plan and engine — CTEs are not inherently more memory-efficient than subqueries.

82
Multi-Selectmedium

Which THREE of the following are benefits of implementing a standardized database schema migration process?

Select 3 answers
A.Version control for schema changes
B.Audit trails for all schema modifications
C.Faster hardware startup times
D.Automatic conversion of user passwords
E.Consistency of database structure across environments
AnswersA, B, E

Storing each migration script in a repository gives schema changes the same versioning as application code, so any environment can be rebuilt at a known revision. This directly satisfies the stem's benefit of traceable, repeatable schema evolution rather than ad-hoc manual alterations.

Why this answer

Option A (Version control for schema changes) is correct because a standardized migration process stores each schema change as a versioned, ordered script (e.g., in Git alongside application code), so the database's evolution can be tracked, reviewed, and rolled back to a known revision. Option B (Audit trails for all schema modifications) is correct because migrations are applied through a controlled, logged mechanism that records who ran which migration, when, and in what order, providing a reliable change history for compliance and troubleshooting. Option E (Consistency of database structure across environments) is correct because the same migration scripts are replayed identically on development, test, staging, and production, eliminating schema drift between environments.

Option C is incorrect because hardware startup time is a function of the OS, firmware, and services, not of how database schema changes are managed. Option D is incorrect because password conversion is an application-level authentication concern (e.g., rehashing credentials), not something a schema migration process performs automatically.

Exam trap

DS0-001 often tests whether candidates can distinguish schema migration benefits (version control, audit, consistency) from unrelated operational concerns like hardware performance or password management, which are distractors that sound plausible but are out of scope.

83
Multi-Selectmedium

Which THREE of the following are types of data joins in SQL?

Select 3 answers
A.INNER JOIN
B.UPPER JOIN
C.LEFT JOIN
D.RIGHT JOIN
E.FAST JOIN
AnswersA, C, D

INNER JOIN returns only rows with matching keys in both tables, making it one of SQL's core join types. The stem asks for join types, and INNER JOIN is a distinct, standard category alongside LEFT, RIGHT and FULL OUTER joins.

Why this answer

INNER JOIN (A) is a core SQL join type that returns only rows where the join condition matches in both tables, making it one of the standard join categories. LEFT JOIN (C) is also a standard SQL join that returns all rows from the left table plus matching rows from the right table, filling unmatched right-side columns with NULL. RIGHT JOIN (D) is the mirror of LEFT JOIN, returning all rows from the right table plus matches from the left, and is likewise a recognized SQL join type.

The other options are not valid SQL joins: UPPER JOIN (B) is not a SQL keyword (UPPER is a string function), and FAST JOIN (E) is not a defined join type in standard SQL or major RDBMS implementations.

Exam trap

DS0-001 often tests recognition of valid SQL join types versus fabricated ones like 'UPPER JOIN' or 'FAST JOIN', catching candidates who are unfamiliar with the standard join syntax.

84
MCQmedium

When planning database capacity, you calculate the projected growth of a table based on transaction volume and row size. What does 'database bloat' refer to in this context?

A.The rapid growth of transaction logs
B.The accumulation of unused space in data pages
C.The degradation of query performance over time
D.The increase in the number of concurrent connections
AnswerB

Database bloat is wasted space within data pages left by deleted or updated rows that autovacuum has not yet reclaimed. It inflates table size beyond live row data, so capacity projections must account for it alongside transaction growth and row size.

Why this answer

Database bloat refers to the accumulation of unused or dead space inside data pages — space that was allocated for rows which have since been deleted or updated but not reclaimed. In MVCC engines like PostgreSQL and InnoDB, UPDATEs create new row versions and DELETE marks rows dead, leaving holes in pages that inflate the physical file size without adding usable data. This directly affects capacity planning because the on-disk footprint grows faster than the logical row count.

Exam trap

DS0-001 often tests whether candidates conflate bloat (physical dead space) with performance degradation or log growth — the trap is picking the symptom (slow queries) instead of the storage condition.

How to eliminate wrong answers

Option A is wrong because transaction log growth is a separate concern (WAL/binlog sizing) driven by write volume and checkpoint frequency, not by dead tuples in data pages. Option C is wrong because query performance degradation is a symptom that can result from bloat (more pages to scan) but is not the definition of bloat itself — bloat is a physical storage condition. Option D is wrong because concurrent connection count is a workload/configuration metric unrelated to how much dead space exists inside data pages.

85
MCQmedium

An application is experiencing deadlocks. Which strategy would effectively reduce the frequency of deadlocks?

A.Uniform access order
B.Enabling indexing
C.Using read-only databases
D.Increasing table size
AnswerA

Imposing a uniform access order means every transaction acquires locks in the same sequence, eliminating the circular-wait condition that produces deadlocks. This directly addresses the scenario's deadlock frequency by removing one of the four Coffman conditions rather than merely retrying after failure.

Why this answer

Accessing tables in the same order across different transactions is a primary method to prevent circular wait conditions that cause deadlocks.

86
MCQmedium

When working with time-series data, what does a 'lag' feature represent in an analysis?

A.The time taken to query the data
B.The difference between two time stamps
C.The value of a variable from a previous period
D.The sampling rate of the sensors
AnswerC

A lag feature shifts a variable's values backward by a defined number of time steps, so each observation carries the value from an earlier period. This exposes temporal dependence to the model, letting it learn autocorrelation and trends rather than treating each timestamp as independent.

Why this answer

In time-series analysis, a lag feature is a copy of a variable's value shifted back by one or more time periods, so the model can use past observations to predict current or future values. For example, lag-1 of daily sales is yesterday's sales value aligned to today's row. This is fundamental to autoregressive models and feature engineering for forecasting.

Exam trap

DS0-001 often tests the distinction between a lag (a shifted past value of the same variable) and a time delta (the difference between two timestamps), which sound similar but serve completely different modeling purposes.

How to eliminate wrong answers

Option A is wrong because query execution time is a performance metric, not a feature derived from the temporal structure of the data. Option B is wrong because the difference between two timestamps is a duration or delta (e.g., time since last event), which is a different engineered feature, not a lag. Option D is wrong because sampling rate describes how frequently sensor readings are captured (e.g., 1 Hz), which is metadata about collection frequency, not a shifted value of a variable.

87
MCQmedium

Which SQL command is used to permanently remove all rows from a table while keeping the table definition intact?

A.DELETE
B.DROP
C.REMOVE
D.TRUNCATE
AnswerD

TRUNCATE removes all rows by deallocating the table's data pages, a minimally logged operation that resets the table to empty while preserving its schema, columns, and indexes. This satisfies the stem's requirement to delete every row permanently yet keep the table definition intact, unlike DROP, which eliminates the structure itself.

Why this answer

TRUNCATE is a DDL operation that removes all rows from a table in a single transaction-efficient operation while preserving the table's structure, columns, constraints, and indexes. It deallocates the data pages rather than logging each row deletion, making it far faster than DELETE for clearing a table. The table definition remains intact and ready for new inserts.

Exam trap

DS0-001 often tests the DELETE vs TRUNCATE vs DROP distinction, catching candidates who forget that TRUNCATE preserves the table definition while DROP destroys it, or who assume DELETE is the fastest way to clear a table.

How to eliminate wrong answers

Option A is wrong because DELETE is a DML operation that removes rows one at a time, can be filtered with a WHERE clause, is fully logged, and can be rolled back — it does not 'permanently remove all rows' in the efficient, definition-preserving sense the question describes, and without a WHERE clause it is slower and more resource-intensive than TRUNCATE. Option B is wrong because DROP removes the entire table including its definition, indexes, constraints, and privileges — the table ceases to exist, which contradicts 'keeping the table definition intact'. Option C is wrong because REMOVE is not a valid SQL command; it is a common distractor that does not exist in standard SQL.

88
MCQmedium

An organization must ensure that PII in a legacy SQL Server database is masked before being accessed by the HR analytics team. Which SQL Server feature should the DBA implement to ensure the data is obscured at the query level without changing the underlying storage?

A.Transparent Data Encryption (TDE)
B.Row-Level Security (RLS)
C.Dynamic Data Masking (DDM)
D.Always Encrypted
AnswerC

Dynamic Data Masking applies masking rules at query execution, so the HR analytics team sees obfuscated values while the stored data remains unchanged on disk. This satisfies the stem's constraint of obscuring PII at the query level without altering underlying storage, unlike encryption or static masking, which modify data at rest.

Why this answer

Dynamic Data Masking (DDM) in SQL Server is designed to obscure sensitive data at the query level without altering the underlying storage. It applies masking rules to specific columns, so users without UNMASK permission see masked values (e.g., partial credit card numbers or email addresses) while the actual data remains intact in the database. This is ideal for scenarios like HR analytics teams accessing PII, where the data must be usable but not fully visible.

Exam trap

DS0-001 often tests the distinction between encryption (TDE, Always Encrypted) and masking (DDM), catching candidates who choose encryption when the requirement is query-level obscuration without storage changes.

How to eliminate wrong answers

Option A is wrong because Transparent Data Encryption (TDE) encrypts data at rest (data and log files) and protects against physical theft, but it does not mask data at query time — authorized users see full data. Option B is wrong because Row-Level Security (RLS) filters rows based on user identity, controlling which rows are visible, not masking column values within visible rows. Option D is wrong because Always Encrypted encrypts data at the client side and keeps it encrypted in memory and at rest, but it requires application changes and does not provide query-level masking for existing applications without modification.

89
Multi-Selecthard

Which THREE factors are critical to consider when configuring a database for disaster recovery (DR)?

Select 3 answers
A.The brand of the server hardware
B.Geographic distance between primary and DR sites
C.Recovery Time Objective (RTO)
D.Recovery Point Objective (RPO)
E.The database developer's IDE preference
AnswersB, C, D

Geographic separation determines whether a single regional outage can affect both sites simultaneously. Placing the DR replica far enough away avoids correlated failures from the same power grid, flood plain or network backbone, directly satisfying the DR requirement for site-independent resilience rather than merely duplicating data locally.

Why this answer

Geographic distance between primary and DR sites (B) is critical because it determines the latency and bandwidth available for replication and the site's exposure to the same regional failure; too close and a single disaster can take out both sites, too far and synchronous replication may become impractical. Recovery Time Objective (C) is essential because it defines the maximum acceptable downtime and therefore dictates the DR architecture — for example, whether you need hot standby with automatic failover or can tolerate restoring from backups. Recovery Point Objective (D) is equally essential because it defines the maximum tolerable data loss and drives the replication mode and frequency, such as synchronous vs. asynchronous replication or backup intervals.

The brand of the server hardware (A) is not a DR-critical factor since DR design depends on capabilities and compatibility, not vendor branding, and the database developer's IDE preference (E) is irrelevant to recovery architecture and objectives.

Exam trap

DS0-001 often tests whether candidates confuse RTO (downtime tolerance) with RPO (data loss tolerance), and whether they can filter out irrelevant factors like hardware brand or developer tooling.

90
Multi-Selecthard

Which THREE of the following are standard SQL aggregate functions?

Select 3 answers
A.AVG
B.SUM
C.SELECT
D.COUNT
E.DELETE
AnswersA, B, D

AVG is a standard SQL aggregate function that returns the arithmetic mean of a numeric column across rows, satisfying the stem's requirement. It collapses multiple rows into one value, distinguishing aggregates from scalar functions that operate per row.

Why this answer

AVG (option A) is a standard SQL aggregate function that returns the average value of a numeric column, making it correct. SUM (option B) is also a standard aggregate function that totals the values in a numeric column, so it is correct. COUNT (option D) is a standard aggregate function that returns the number of rows or non-NULL values, so it is correct.

SELECT (option C) is a data retrieval statement, not an aggregate function, and DELETE (option E) is a data manipulation statement used to remove rows, so neither belongs among aggregate functions.

Exam trap

DS0-001 often tests the confusion between SQL statements and aggregate functions — candidates pick SELECT or DELETE because they are familiar SQL keywords, missing that aggregates must summarize multiple rows into one value.

91
Multi-Selecthard

A database administrator is reviewing a schema and needs to ensure data integrity. Which TWO of the following are valid SQL constraints that can be applied to a column to enforce data integrity? (Choose two.)

Select 2 answers
A.VIEW
B.TRIGGER
C.FOREIGN KEY
D.PRIMARY KEY
E.INDEX
AnswersC, D

A FOREIGN KEY constraint establishes a link between data in two tables, ensuring that the value in one table matches a value in another. It enforces referential integrity, preventing orphaned records and maintaining consistent relationships. This is a key mechanism for data integrity across related tables.

Why this answer

PRIMARY KEY and FOREIGN KEY are both SQL constraints that enforce data integrity. PRIMARY KEY ensures unique and non-null identification of rows, while FOREIGN KEY enforces referential integrity between tables. These constraints are defined at the column or table level and are essential for maintaining consistent and reliable data.

Exam trap

The trap here is confusing database objects like INDEX, TRIGGER, and VIEW with actual constraints that enforce integrity.

92
MCQmedium

Which protocol should be enforced for all data-in-transit between application servers and database instances?

A.TLS (Transport Layer Security)
B.HTTP
C.SNMP
D.FTP
AnswerA

TLS provides secure, encrypted communication channels.

Why this answer

TLS is the standard cryptographic protocol for encrypting data in transit, providing confidentiality, integrity, and server authentication between application servers and database instances. It is the correct choice for protecting database traffic from eavesdropping and man-in-the-middle attacks.

Exam trap

DS0-001 often tests whether candidates confuse data-in-transit protections (TLS) with data-at-rest encryption or with unrelated protocols like SNMP and FTP that happen to be common acronyms.

How to eliminate wrong answers

Option B (HTTP) is wrong because HTTP is a plaintext application-layer protocol with no encryption — using it for database traffic would expose credentials and data. Option C (SNMP) is wrong because SNMP is a network management protocol for monitoring devices, not a transport security mechanism. Option D (FTP) is wrong because FTP transmits data and credentials in cleartext and is a file transfer protocol, not a security layer for database connections.

93
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.

94
MCQeasy

Which DML statement is used to update existing records in a database table?

A.ALTER
B.UPDATE
C.MODIFY
D.INSERT
AnswerB

UPDATE modifies existing rows in a table, setting new column values for records matched by the WHERE clause. This satisfies the stem's constraint of changing existing records, unlike INSERT, which adds new rows, or DELETE, which removes them.

Why this answer

The UPDATE statement modifies the data of existing rows in a table.

95
Multi-Selectmedium

Which TWO of the following are legitimate ways to optimize SQL query performance?

Select 2 answers
A.Using a single large table
B.Selecting all columns (SELECT *)
C.Creating indexes on frequently filtered columns
D.Replacing subqueries with JOINs where possible
E.Deleting all system statistics
AnswersC, D

Indexes on frequently filtered columns let the optimiser seek directly to matching rows instead of scanning the whole table, cutting I/O for WHERE, JOIN and ORDER BY predicates. This satisfies the stem's demand for a legitimate query-performance optimisation.

Why this answer

Option C is correct because creating indexes on frequently filtered columns (those used in WHERE, JOIN, and ORDER BY clauses) allows the database engine to locate rows via B-tree or hash lookups instead of full table scans, dramatically reducing I/O and query time. Option D is correct because replacing subqueries with JOINs where possible lets the optimizer build a single, more efficient execution plan, often avoiding repeated subquery evaluation (especially correlated subqueries) and enabling better use of indexes and join algorithms. Option A is wrong because consolidating data into a single large table increases scan costs, worsens contention, and prevents proper normalization and partitioning.

Option B is wrong because SELECT * retrieves unnecessary columns, increasing I/O, memory, and network overhead and preventing covering-index optimizations. Option E is wrong because deleting system statistics removes the optimizer's cardinality and distribution data, leading to poor execution plans and degraded performance.

Exam trap

DS0-001 often tests whether candidates recognize that SELECT * and denormalization are anti-patterns for performance, and that deleting statistics harms the optimizer — the trap is picking options that sound like simplifications but actually degrade query performance.

96
MCQhard

A company requires that all database backups be immutable for 7 years to meet regulatory audits. How can this be achieved?

A.Database Replication
B.Immutable WORM Storage Policies
C.Regular manual deletion
D.Standard RAID 10
AnswerB

WORM storage policies lock objects so they cannot be altered or deleted until the retention period expires, satisfying the seven-year immutability requirement. Object Lock in compliance mode enforces this even against privileged users, supporting regulatory audit.

Why this answer

Immutable WORM (Write Once, Read Many) storage policies enforce retention at the storage layer, preventing modification or deletion of backup objects for the configured period — commonly 7 years for regulatory compliance. This satisfies audit requirements because even administrators cannot alter or delete the data before the retention period expires.

Exam trap

DS0-001 often tests the misconception that replication or RAID provides immutability, when only WORM/object-lock policies enforce legal retention against deletion or modification.

How to eliminate wrong answers

Option A is wrong because database replication copies data to another system but does not prevent deletion or modification — a replicated backup can still be overwritten or removed. Option C is wrong because regular manual deletion is the opposite of immutability and would directly violate the 7-year retention requirement. Option D is wrong because RAID 10 provides disk-level redundancy against hardware failure, not retention enforcement or immutability — RAID arrays can be wiped at any time.

97
MCQmedium

A database administrator is planning the deployment of a new PostgreSQL 15 cluster that will support a high-volume web application. The application's workload is expected to be read-heavy, with a read-to-write ratio of approximately 10:1. The primary server has 64 GB of RAM, and the database size is estimated at 500 GB. To improve read performance and provide high availability, the administrator plans to implement streaming replication. Which configuration should the administrator implement to best meet these requirements?

A.Configure asynchronous streaming replication with one or more hot standby servers and use a load balancer to distribute read queries to the standbys.
B.Configure cascading streaming replication with a single synchronous standby and multiple asynchronous standbys.
C.Configure synchronous streaming replication with multiple hot standby servers and enable hot_standby_feedback on the standbys.
D.Configure logical replication with multiple subscribers and use a connection pooler to route read queries to the subscribers.
AnswerA

Asynchronous streaming replication allows the primary to commit transactions without waiting for standby acknowledgment, minimizing write latency. Hot standby servers can serve read-only queries, and a load balancer can distribute the read workload across them, improving read performance. This setup also provides high availability because a standby can be promoted if the primary fails. Given the 10:1 read-to-write ratio, this is the most efficient configuration.

Why this answer

For a read-heavy PostgreSQL workload requiring high availability, asynchronous streaming replication with hot standbys and read load balancing is optimal. It minimizes write latency because the primary does not wait for standby acknowledgment, while hot standbys serve read-only queries, distributing the load. This configuration also supports failover.

Synchronous replication would add write latency without benefit, logical replication is not suited for high-throughput read scaling, and cascading with synchronous standbys still incurs write overhead.

Exam trap

The trap here is assuming that synchronous replication is always better for high availability, ignoring that it introduces write latency that can harm performance in a read-heavy scenario.

98
MCQeasy

In Power BI, which visualization component is best suited to show the relationship between two numerical variables and identify potential trends or clusters?

A.Gauge Chart
B.Scatter Plot
C.Pie Chart
D.Clustered Column Chart
AnswerB

A scatter plot places one numerical variable on each axis, so each point represents a paired observation. This reveals correlation, trends, and clusters between the two measures, which bar, line, and pie charts cannot show because they plot a single measure against categories or time.

Why this answer

A scatter plot plots each data point on a two-dimensional plane using two numerical axes, making it the ideal visualization to reveal correlation, trends, clusters, and outliers between two numerical variables. Power BI's scatter chart also supports a category/legend field and a size field for bubble charts, extending its analytical power.

Exam trap

DS0-001 often tests whether candidates can match visualization types to analytical intent — scatter plots for correlation between two numerical variables, versus pie/column charts for categorical composition, which are common distractors.

How to eliminate wrong answers

Option A is wrong because a gauge chart displays a single value against a target range (e.g., KPI progress) and cannot show relationships between two variables. Option C is wrong because a pie chart shows part-to-whole proportions of a single categorical measure and cannot represent two numerical axes. Option D is wrong because a clustered column chart compares categorical values across groups, not the correlation between two continuous numerical variables.

99
MCQeasy

Which operator is used to search for a pattern in a string column?

A.IN
B.CONTAINS
C.LIKE
D.MATCH
AnswerC

LIKE performs pattern matching on string columns using wildcards such as % and _, satisfying the requirement to search for a pattern rather than an exact value. Equality operators match whole values only, so LIKE is the operator that filters rows by substring or pattern.

Why this answer

The LIKE operator is used in a WHERE clause to search for a specified pattern in a column.

100
MCQmedium

During database testing, a developer finds that a specific query is performing poorly due to a lack of statistics. What action should be taken to update the database optimizer's knowledge of the table data distribution?

A.Update statistics
B.Run a database consistency check (DBCC)
C.Clear the plan cache
D.Rebuild the table indexes
AnswerA

Updating statistics refreshes the optimizer's metadata about column value distribution and cardinality, letting it choose a more efficient plan. Stale or missing statistics cause poor cardinality estimates, so refreshing them directly addresses the poor query performance.

Why this answer

When a query performs poorly due to outdated or missing statistics, the optimizer lacks accurate information about data distribution and may choose a suboptimal execution plan. Running UPDATE STATISTICS refreshes the optimizer's knowledge of column value distributions, enabling better cardinality estimates and plan selection.

Exam trap

DS0-001 often tests the distinction between statistics maintenance and index maintenance, and the trap is selecting 'rebuild indexes' because it sounds like the more thorough fix when the question specifically calls out statistics.

How to eliminate wrong answers

Option B is wrong because DBCC (Database Console Commands) checks are for consistency and integrity verification (e.g., DBCC CHECKDB), not for updating optimizer statistics. Option C is wrong because clearing the plan cache removes cached execution plans but does not update the underlying statistics — the optimizer would still generate poor plans from stale data. Option D is wrong because rebuilding indexes is a physical storage operation that improves fragmentation and can indirectly refresh statistics, but it is not the targeted action for a statistics problem and is far more resource-intensive than necessary.

101
MCQmedium

To improve read performance on a table frequently queried by a specific column, which database object should be created?

A.Index
B.View
C.Stored Procedure
D.Trigger
AnswerA

An index maintains a sorted structure on the queried column, letting the database locate matching rows without scanning the entire table. This directly satisfies the stem's read-performance constraint, trading additional storage and slower writes for faster lookups on that column.

Why this answer

An index on the frequently queried column allows the database engine to locate rows without scanning the entire table, dramatically improving read performance for SELECT queries filtering or joining on that column. Indexes create a sorted structure (B-tree) that enables fast seeks and range scans.

Exam trap

The trap is confusing objects that encapsulate logic (views, stored procedures, triggers) with the object that actually accelerates data retrieval — only an index changes the physical access path.

How to eliminate wrong answers

Option B is wrong because a view is a saved query that does not store data or provide faster access by itself; it only simplifies query writing unless indexed (indexed views are a special case). Option C is wrong because a stored procedure encapsulates logic but does not inherently speed up reads on a column. Option D is wrong because a trigger fires automatically on DML events and adds overhead rather than improving read performance.

102
MCQmedium

A company needs to implement centralized identity management for all database administrators. Which service is appropriate?

A.Snapshotting
B.Database Aliases
C.LDAP/Active Directory Integration
D.Local Database Users
AnswerC

LDAP/Active Directory Integration provides the centralised directory service the company requires, letting database administrators authenticate against one authoritative store rather than separate local accounts. It satisfies the stem's centralised identity management constraint by consolidating administrator credentials, group membership and authentication policy into a single directory that databases can query directly.

Why this answer

LDAP/Active Directory Integration is appropriate for centralized identity management because it allows database administrators to authenticate using directory services, enabling single sign-on, centralized password policies, and role-based access across multiple databases. This centralizes administration and improves security compared to local accounts.

Exam trap

The trap is selecting local database users for simplicity, but the question emphasizes 'centralized'—candidates must recognize that only directory integration provides centralized identity management across multiple systems.

How to eliminate wrong answers

Option A is wrong because snapshotting is a backup/recovery mechanism, not identity management. Option B is wrong because database aliases are shortcuts for connection strings, not authentication or identity services. Option D is wrong because local database users are decentralized, requiring separate credentials per database, which contradicts the goal of centralized management.

103
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.

104
MCQmedium

A database developer needs to combine the results of two different SELECT queries into a single result set. Which operator should be used?

A.JOIN
B.CONCAT
C.UNION
D.MERGE
AnswerC

UNION concatenates the row sets from two SELECT statements into one result set, eliminating duplicate rows by default. It satisfies the stem's requirement to combine results from two different queries, provided both have matching column counts and compatible data types in corresponding positions.

Why this answer

UNION combines the row sets of two SELECT statements into one result set, stacking rows vertically and removing duplicates (UNION ALL keeps them). It requires the same number of columns and compatible data types in matching positions. JOIN, by contrast, combines columns horizontally based on a join condition.

Exam trap

The trap is conflating horizontal combination (JOIN) with vertical combination (UNION); candidates who see 'combine two queries' often reflexively pick JOIN.

How to eliminate wrong answers

Option A is wrong because JOIN merges columns from two tables side by side based on a matching key, not stacking the rows of two independent queries. Option B is wrong because CONCAT is a string function that appends character values, not a set operator for combining result sets. Option D is wrong because MERGE is a DML statement (upsert) that inserts, updates, or deletes rows in a target table based on a source, not a query-combining operator.

105
MCQhard

A financial analyst runs a query that joins a 500-million-row transactions table to a 200-row currency table on a non-indexed currency code column. The optimizer chooses a nested loop join and the query runs for hours. Which execution strategy should the analyst encourage to improve performance most effectively?

A.Cross join followed by a WHERE filter on matching currency codes
B.Merge join, requiring both inputs to be sorted on currency code
C.Hash join, building a hash table on the small currency table
D.Nested loop join with a larger sort area allocated to the session
AnswerC

A hash join reads the smaller currency table once, builds an in-memory hash table on the currency code, then probes it for each transaction row. This converts the nested loop's repeated scans of the large table into a single pass, which is far more efficient when the join column is not indexed and the large table dominates the cost.

Why this answer

When one input is very small and the join column on the large input is unindexed, a hash join avoids repeated scans by building an in-memory hash table from the small table and probing it once per large-table row. Merge joins need sorted inputs, nested loops repeat inner scans, and cross joins explode the result set, so the hash join is the most effective strategy here.

Exam trap

The trap here is assuming that increasing memory or sort area will fix a nested loop join when the real issue is the join algorithm's repeated scanning of the large table.

106
MCQeasy

Which SQL keyword is used to eliminate duplicate values from a query result set?

A.UNIQUE
B.GROUP BY
C.FILTER
D.DISTINCT
AnswerD

DISTINCT filters the result set so each unique combination of selected column values appears only once, directly satisfying the requirement to eliminate duplicate rows. It operates on the full SELECT list rather than a single column, unlike GROUP BY, which aggregates rows and is intended for summary calculations.

Why this answer

The DISTINCT keyword is used in a SELECT statement to return only unique values.

107
MCQmedium

A database administrator is deploying a new online transaction processing (OLTP) database on a four-socket server with 512 GB of RAM and a storage area network (SAN) that uses solid-state drives. The application performs many small, random reads and writes. The administrator needs to configure the database instance to minimize physical I/O and improve response time. Which configuration should the administrator implement?

A.Increase the database buffer pool size to cache frequently accessed data pages in memory.
B.Enable table compression on all tables to reduce the storage footprint on the SAN.
C.Configure a larger sort area to allow all ORDER BY operations to complete in memory.
D.Set the database to use asynchronous I/O and increase the number of writer processes.
AnswerA

For an OLTP workload dominated by small random reads, the buffer pool is the primary mechanism for reducing physical I/O. With 512 GB of RAM, allocating a large portion to the buffer pool allows frequently accessed pages to remain in memory, dramatically lowering disk reads and improving response time. This is the standard tuning step for this scenario.

Why this answer

The buffer pool caches data pages in memory, so frequently accessed rows are served without touching the SAN. With 512 GB of RAM and a random-access OLTP workload, a large buffer pool directly reduces physical I/O and response time. Other options address write throughput, sorting, or storage size, none of which target the primary random-read bottleneck.

Exam trap

The trap here is assuming that any I/O-reduction feature, such as compression or asynchronous writes, will solve random-read latency, when memory caching is the primary lever for OLTP.

108
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.

109
MCQhard

A data engineer is configuring an S3 bucket to comply with GDPR requirements regarding the 'Right to be Forgotten.' Which combination of configuration settings best automates the lifecycle of user-specific data objects that have reached the end of their retention period?

A.S3 Object Lock with legal hold
B.S3 Lifecycle configuration with expiration rules
C.Cross-Region Replication (CRR)
D.Bucket policies with IAM conditions
E.S3 Inventory reports
AnswerB

S3 Lifecycle expiration rules automatically delete objects once a defined retention period elapses, satisfying GDPR erasure without manual intervention. This directly enforces the Right to be Forgotten at the object level, unlike replication or versioning settings, which retain data.

Why this answer

S3 Lifecycle configuration with expiration rules is the correct answer because it allows automated deletion of objects after a defined retention period, directly supporting GDPR's 'Right to be Forgotten' by ensuring user-specific data is removed without manual intervention. Lifecycle rules can be scoped by prefix or tag to target only the relevant user data, and expiration actions permanently delete objects, satisfying the regulatory requirement for timely erasure.

Exam trap

The trap here is confusing S3 Object Lock (which enforces retention/immutability) with Lifecycle expiration (which enforces deletion)—candidates often pick Object Lock thinking it manages retention periods, but it actually prevents deletion.

How to eliminate wrong answers

Option A is wrong because S3 Object Lock with legal hold prevents deletion and is designed for retention/compliance immutability, the opposite of automated erasure. Option C is wrong because Cross-Region Replication copies objects to another region for durability/availability, not for lifecycle deletion. Option D is wrong because bucket policies with IAM conditions control access permissions, not object lifecycle or automatic deletion.

Option E is wrong because S3 Inventory reports only provide metadata listings for auditing, not automated deletion.

110
MCQhard

A database administrator is reviewing a query that joins a large Sales table with a small Regions table. The query filters on a column in the Regions table and returns only matching rows from both tables. The administrator notices that the query plan shows a nested loop join. Which factor most likely influenced the optimizer's choice of this join method?

A.The query lacks a WHERE clause, causing the optimizer to default to a nested loop join for all rows.
B.The join condition uses an inequality, which is only supported by nested loop joins.
C.The Regions table is small and has an index on the join column, making it efficient to probe for each row of the Sales table.
D.The Sales table is large and has no indexes, forcing a full table scan for each iteration of the outer loop.
AnswerC

A nested loop join is often chosen when one input is small and can be efficiently probed, especially if an index exists on the join column of the inner table. Here, the Regions table is small, and if it has an index on the join column, the optimizer can quickly find matching rows for each row of the larger Sales table. This is a classic scenario for nested loop joins.

Why this answer

The optimizer likely chose a nested loop join because the Regions table is small and, with an index on the join column, can be efficiently probed for each row of the larger Sales table. This access pattern minimizes I/O and is well-suited for joining a large table with a small, indexed table. Other join methods would be less efficient in this context.

Exam trap

The trap here is assuming that a nested loop join is always inefficient for large tables, when in fact it can be optimal when the inner table is small and indexed.

111
MCQhard

When decommissioning a legacy server, what is the most secure way to handle the hard drives containing sensitive data?

A.Physical Destruction or Cryptographic Erasure
B.Quick Format
C.Moving drives to a dev environment
D.Deleting the Database Files
AnswerA

Physical destruction renders platters unrecoverable, while cryptographic erasure destroys the key protecting encrypted data, making it permanently inaccessible. Both defeat forensic recovery, unlike overwriting or degaussing, satisfying the requirement for the most secure handling of sensitive drives.

Why this answer

Physical destruction (shredding, degaussing, incineration) renders the platters unreadable, while cryptographic erasure destroys the encryption key so the ciphertext on the drive becomes permanently unrecoverable. Both are recognized by standards such as NIST SP 800-88 as acceptable sanitization methods for media leaving organizational control. They guarantee sensitive data cannot be reconstructed even with advanced forensic recovery tools.

Exam trap

DS0-001 often tests the misconception that logical deletion (format, delete, or moving media) equals secure sanitization, when only physical destruction or key-based cryptographic erasure actually renders data unrecoverable.

How to eliminate wrong answers

Option B is wrong because a quick format only rewrites the file system metadata and leaves the underlying data blocks intact, so recovery tools like PhotoRec or TestDisk can easily reconstruct the files. Option C is wrong because moving drives to a dev environment does not sanitize them at all — it actually increases exposure by placing sensitive production data in a less-controlled environment. Option D is wrong because deleting database files removes logical references but leaves the raw data on disk until overwritten, making it recoverable via forensic analysis.

112
MCQhard

A database is configured with an 'Asynchronous Commit' replication mode. What is the potential risk during a primary server failure?

A.Potential data loss
B.Increased latency on the primary server
C.Deadlocks on the primary
D.Inability to perform reads on the secondary
AnswerA

Asynchronous commit acknowledges transactions before the standby confirms receipt, so a primary failure can lose recently committed transactions not yet replicated. The risk is data loss, not corruption or split-brain, because the standby simply lacks those final writes.

Why this answer

In asynchronous commit replication, the primary acknowledges a transaction to the client before the standby has confirmed receipt or applied it. If the primary fails before the WAL/binlog is shipped and replayed on the standby, those acknowledged transactions are lost when failover occurs — this is the classic RPO > 0 trade-off. The risk is data loss, not latency or locking.

Exam trap

DS0-001 often tests whether candidates confuse the latency benefit of async commit with its durability cost — the trap is picking 'increased latency' when async actually reduces it, or missing that the real risk is data loss (RPO).

How to eliminate wrong answers

Option B is wrong because asynchronous commit actually reduces latency on the primary — the whole point of async mode is to avoid waiting for standby acknowledgment, so latency is lower, not higher. Option C is wrong because deadlocks are caused by conflicting lock acquisition orders within transactions, not by replication mode; async commit has no bearing on lock contention. Option D is wrong because reads on the secondary are typically allowed in async replication (and often in sync too, depending on configuration) — replication mode governs durability, not read availability.

113
MCQmedium

When creating an ETL pipeline, which stage involves validating that the data meets business rules (e.g., age must be positive)?

A.Extraction
B.Loading
C.Reporting
D.Transformation
AnswerD

Transformation applies business rules, cleansing and validation to extracted data before it is loaded, so checks such as age being positive are enforced here. Extraction only retrieves source data and loading writes it to the target, neither of which validates business rules.

Why this answer

The Transformation stage is where data is cleansed, standardized, and validated against business rules before loading into the target system. Checking that age is positive, that dates fall within valid ranges, or that codes match a reference list are all transformation-layer validations. Extraction only pulls raw data, and Loading only writes it to the destination.

Exam trap

DS0-001 often tests confusion between structural validation (schema/type checks at extract or load) and semantic business-rule validation, which belongs to the Transformation stage.

How to eliminate wrong answers

Option A is wrong because Extraction is purely about reading data from source systems (databases, APIs, flat files) — no business rules are applied at this stage. Option B is wrong because Loading writes already-transformed data into the target warehouse or data store; validation has already occurred upstream. Option C is wrong because Reporting is a downstream consumption activity that queries the loaded data, not a pipeline stage that enforces business rules.

114
Multi-Selecthard

Which TWO controls are necessary to maintain the integrity of a data warehouse?

Select 2 answers
A.Enforcing referential integrity constraints
B.Increasing the number of database replicas
C.Implementing data validation logic in ETL
D.Running backups every hour
E.Using a specific naming convention for servers
AnswersA, C

Referential integrity constraints ensure foreign keys in fact and dimension tables always match a valid primary key, preventing orphaned records. This blocks inconsistent relationships entering the warehouse, directly satisfying the integrity control the question demands.

Why this answer

Enforcing referential integrity constraints (A) is correct because it ensures that foreign keys in fact and dimension tables always reference valid primary keys, preventing orphaned or inconsistent records that would corrupt warehouse relationships and analytical results. Implementing data validation logic in ETL (C) is correct because validating, cleansing, and rejecting malformed or out-of-range data during extraction, transformation, and load stops bad data from entering the warehouse, directly preserving its accuracy and consistency. Increasing the number of database replicas (B) improves availability and read scalability, not data integrity, since replicas copy whatever data exists, including errors.

Running backups every hour (D) supports recoverability and durability but does not prevent or detect inaccurate data. Using a specific naming convention for servers (E) is an administrative standardization that has no effect on the correctness or consistency of stored data.

Exam trap

DS0-001 often tests the difference between availability controls (replicas, backups) and integrity controls (constraints, validation), catching candidates who equate 'more copies' or 'more backups' with 'better data quality'.

115
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.

116
MCQhard

A database administrator is designing a schema for a new order processing system. The system must enforce that every order is associated with exactly one customer, and that a customer can place many orders. Which relationship type and implementation should be used?

A.One-to-many relationship, implemented by placing a foreign key in the Orders table that references the primary key of the Customers table.
B.Many-to-many relationship, implemented by creating a junction table containing foreign keys to both Customers and Orders.
C.One-to-many relationship, implemented by placing a foreign key in the Customers table that references the primary key of the Orders table.
D.One-to-one relationship, implemented by placing a foreign key in the Orders table that references the Customers table and adding a unique constraint on the foreign key column.
AnswerA

This design places a foreign key in the Orders table pointing to the Customers table. Each order references exactly one customer, and a customer can be referenced by many orders. This precisely implements the one-to-many relationship required by the scenario, with no unnecessary constraints.

Why this answer

The correct implementation is a one-to-many relationship with a foreign key in the Orders table referencing the Customers table. This allows each order to be linked to exactly one customer while enabling a customer to have multiple orders. It enforces the business rule without over-constraining the data.

Exam trap

The trap here is confusing the direction of the foreign key, placing it on the wrong side of the relationship.

117
Multi-Selectmedium

Which TWO of the following are common types of NoSQL databases?

Select 2 answers
A.Relational
B.Key-Value
C.Document
D.Hierarchical
E.Network
AnswersB, C

Key-value stores are a core NoSQL category, pairing each key with an opaque value and offering simple lookups without a fixed relational schema. This satisfies the question's demand for a common NoSQL database type, alongside document, column-family and graph stores.

Why this answer

Document and Key-Value stores are two primary categories of NoSQL databases.

118
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.

119
Multi-Selectmedium

Which THREE of the following SQL aggregate functions are commonly supported in most relational databases?

Select 3 answers
A.SUM
B.CONCAT
C.AVG
D.SUBSTR
E.COUNT
AnswersA, C, E

SUM totals numeric values across rows, satisfying the stem's requirement for a widely supported aggregate. It is part of the SQL standard and implemented across virtually all relational databases, including SQL Server, Oracle, PostgreSQL and MySQL. This ubiquity confirms it as one of the three commonly supported functions the question demands.

Why this answer

SUM, COUNT, and AVG are fundamental aggregate functions supported across virtually all SQL standards.

120
Multi-Selectmedium

A database administrator is reviewing a schema for a reporting database. The team needs to ensure that queries against a large 'Sales' table return consistent results even if a long-running report is executing while new sales are being inserted. Which TWO of the following techniques help provide a consistent snapshot of data for the report? (Choose two.)

Select 2 answers
A.Add a NOLOCK hint to every table in the report query
B.Query a read-only replica that is synchronized through log shipping
C.Set the transaction isolation level to READ UNCOMMITTED for the report
D.Increase the database transaction log size to reduce checkpoint frequency
E.Use a transaction with an isolation level that provides snapshot or repeatable read semantics
AnswersB, E

A read-only replica receiving log-shipped changes provides a separate copy of the data that can be queried without interfering with the primary. If the replica is consistent at a point in time, the report sees a stable dataset even while the primary continues to accept inserts, which supports consistent reporting without blocking writers.

Why this answer

Snapshot or repeatable-read isolation and querying a synchronized read-only replica both give the report a stable view of the data while writers continue. Dirty-read techniques such as READ UNCOMMITTED or NOLOCK sacrifice consistency, and log sizing affects recovery rather than read consistency.

Exam trap

The trap here is equating reduced blocking with consistency, leading to selection of dirty-read options that actually undermine report accuracy.

121
MCQeasy

Which dashboarding practice helps prevent users from being overwhelmed by too much data at once?

A.Removing all tooltips
B.Using interactive filters
C.Adding more charts per page
D.Increasing font size
AnswerB

Interactive filters let users narrow the displayed dataset to the dimensions and ranges they need, so the dashboard presents only relevant subsets rather than every record at once. This directly reduces cognitive overload while preserving access to the full underlying data.

Why this answer

Interactive filters let users narrow the dataset to what is relevant to them, reducing cognitive overload and preventing the dashboard from displaying every metric at once. This is a core dashboard design principle: progressive disclosure through filtering, slicing, and drill-down. It keeps the initial view clean while still giving access to detail on demand.

Exam trap

DS0-001 often tests dashboard usability principles, so the trap is choosing options that sound like 'improvements' (more charts, bigger fonts) but actually increase cognitive load.

How to eliminate wrong answers

Option A is wrong because removing all tooltips reduces the ability to get contextual detail on hover, which can actually increase confusion rather than reduce data overload. Option C is wrong because adding more charts per page increases visual clutter and cognitive load, the opposite of the goal. Option D is wrong because increasing font size does not reduce the amount of data shown; it may even crowd the layout and make the dashboard harder to scan.

122
Multi-Selecthard

Which THREE actions should be performed during a data incident response procedure involving a potential PII leak?

Select 3 answers
A.Analyze access logs for suspicious activity
B.Update the database schema
C.Notify the relevant regulatory bodies
D.Isolate the affected data nodes
E.Delete all historical backups
AnswersA, C, D

Analysing access logs reveals which accounts, IP addresses and queries touched the affected data, establishing breach scope and root cause. This forensic step is essential during PII incident response to determine exposure extent and guide containment.

Why this answer

Option A is correct because analyzing access logs for suspicious activity is a core containment and investigation step that helps determine the scope, source, and timeline of a potential PII leak, which is essential for both remediation and breach-notification obligations. Option C is correct because PII leaks typically trigger mandatory breach-notification requirements under regulations such as GDPR, HIPAA, or CCPA, so notifying the relevant regulatory bodies within required timeframes is a required part of the incident response procedure. Option D is correct because isolating the affected data nodes limits the blast radius, prevents further exfiltration or lateral movement, and preserves the environment for forensic analysis.

Option B is not appropriate because altering the database schema is a change-management task unrelated to containing or investigating a PII leak and could destroy evidence. Option E is not appropriate because deleting all historical backups destroys forensic evidence and may violate data-retention and legal-hold requirements, and backups are needed for recovery rather than deletion during an incident.

Exam trap

DS0-001 often tests incident response by including destructive or irrelevant actions like deleting backups or updating schemas, catching candidates who prioritize recovery over containment and compliance.

123
MCQeasy

A municipal government agency must publish an open dataset of building permits. The governance policy requires that individual applicants not be re-identifiable from the published file, while aggregate statistics remain accurate. Which technique should the data steward apply before publication?

A.Remove the applicant name column only
B.Apply k-anonymity generalization and suppression to quasi-identifiers
C.Encrypt the applicant name column with AES-256
D.Hash applicant names with SHA-256 before publication
AnswerB

Generalizing fields such as postal code and age into broader ranges, and suppressing rare combinations, ensures each record is indistinguishable from at least k-1 others. This reduces re-identification risk from quasi-identifier combinations while leaving counts and distributions usable for aggregate statistics, matching the policy's dual requirement for the published permit dataset.

Why this answer

Re-identification risk in public releases stems from combinations of quasi-identifiers, not only direct identifiers. Generalizing and suppressing quasi-identifiers to satisfy k-anonymity makes each published record indistinguishable from others in its group, preserving aggregate accuracy while protecting individuals. Encryption, hashing, and simple column removal leave linkable patterns or residual attributes that still permit re-identification.

Exam trap

The trap here is assuming that deleting or scrambling a direct identifier like the name is enough, when quasi-identifiers such as address and date can still single out individuals.

124
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.

125
Multi-Selecteasy

When assessing data privacy compliance, which THREE categories of data are typically protected under laws like CCPA or GDPR?

Select 3 answers
A.Publicly listed company stock prices
B.Biometric data
C.Personally Identifiable Information (PII)
D.Financial account numbers
E.Internal server IP addresses
AnswersB, C, D

Biometric data is a special category under GDPR and protected personal information under CCPA because it uniquely identifies a person through physical or behavioural characteristics. This satisfies the scenario's requirement to name a data category covered by privacy legislation.

Why this answer

Biometric data (B) is explicitly classified as sensitive personal data under GDPR Article 9 and is protected under CCPA/CPRA as a sensitive personal information category, so it is a correct answer. Personally Identifiable Information (C) is the core category of protected data under both GDPR (personal data) and CCPA (personal information), covering identifiers like names, addresses, and email addresses. Financial account numbers (D) are protected under both regimes—GDPR treats financial data as personal data, and CCPA/CPRA specifically lists account numbers and financial information as protected personal information.

Publicly listed company stock prices (A) are public market data, not personal data tied to an identifiable individual, so they fall outside these privacy laws. Internal server IP addresses (E) are not a protected data category per se; while an IP address can be personal data when linked to an individual, internal server IPs alone are infrastructure identifiers, not a regulated category under CCPA or GDPR.

Exam trap

DS0-001 often tests whether candidates can separate genuinely regulated personal-data categories from public or infrastructure data, so the trap is including internal IP addresses because they 'look technical' or excluding biometrics because they seem niche.

126
MCQhard

A data engineer is profiling a customer table and finds that the 'email' column contains 12% NULL values, while the 'customer_id' column is fully populated and unique. The business rule states that every customer record must have a valid email address. Which action should the engineer take to enforce this rule in the pipeline?

A.Drop the email column from the customer table and rely on customer_id for identification.
B.Implement a validation rule that quarantines records with NULL or malformed email addresses for remediation.
C.Replace NULL email values with a default placeholder such as 'unknown@example.com' and load the rows.
D.Add a NOT NULL constraint to the email column and reject rows that fail the constraint.
AnswerB

Quarantining records with NULL or malformed emails enforces the business rule by preventing invalid customer records from entering the trusted dataset while preserving them for correction. This approach handles both missing and invalid values and supports data quality remediation rather than silent data loss, which aligns with the requirement that every customer record must have a valid email.

Why this answer

The business rule requires every customer record to have a valid email address. Quarantining records with NULL or malformed emails prevents invalid data from entering the trusted dataset while keeping those records for remediation. This enforces the rule without discarding data or fabricating values, and it handles both missing and invalid formats.

Exam trap

The trap here is treating a data quality rule as a simple NOT NULL constraint, which would reject rows instead of remediating them and would not catch malformed but non-NULL email addresses.

127
Multi-Selecthard

Which THREE of the following are valid methods for securing cloud-based data storage?

Select 3 answers
A.Configuring Virtual Private Cloud (VPC) endpoints
B.Enabling server-side encryption
C.Sharing storage URLs publicly
D.Enforcing IAM roles for storage access
E.Using a password for the root cloud account
AnswersA, B, D

VPC endpoints let workloads reach storage services over private addresses inside the VPC, bypassing the public internet entirely. This satisfies the securing-storage requirement by removing internet exposure, and endpoint policies can further restrict which buckets or resources are reachable.

Why this answer

Option A is correct because configuring VPC endpoints (e.g., AWS PrivateLink gateway or interface endpoints for S3) keeps traffic to cloud storage on the private AWS network instead of traversing the public internet, reducing exposure and enabling endpoint policies. Option B is correct because enabling server-side encryption (SSE-S3, SSE-KMS, or SSE-C) ensures data at rest in the storage service is encrypted, protecting confidentiality if the underlying media is accessed. Option D is correct because enforcing IAM roles for storage access applies least-privilege, identity-based policies and temporary credentials, eliminating long-lived static keys and tightly scoping who can read or write objects.

Option C is not valid because sharing storage URLs publicly exposes objects to anonymous access and is the opposite of securing storage. Option E is not valid because using a password for the root cloud account is a weak, non-scalable practice; root accounts should use MFA and be locked away, with IAM roles/users handling storage access instead.

Exam trap

DS0-001 often tests cloud security by including obviously insecure options like public URLs or root passwords, catching candidates who overlook the principle of least privilege and shared responsibility.

128
Multi-Selecthard

A database administrator is planning a new SQL Server 2022 deployment that must support a read-only reporting workload without impacting the primary OLTP workload. The reporting queries are long-running and scan large tables. Which two features should the administrator implement to meet this requirement? (Choose two.)

Select 2 answers
A.Configure an Always On availability group with a readable secondary replica.
B.Enable snapshot isolation on the primary database to reduce blocking.
C.Create a columnstore index on the large fact tables used by reporting.
D.Configure transactional replication to push data to a separate reporting server.
E.Enable Resource Governor to cap CPU usage for reporting sessions.
AnswersA, C

An Always On availability group can host a secondary replica configured to allow read-only connections, offloading reporting queries from the primary. Long-running scans then execute on the secondary, preserving primary CPU and I/O for OLTP transactions. This directly satisfies the requirement to isolate reporting from the transactional workload without additional licensing for a separate reporting server.

Why this answer

A readable secondary replica in an Always On availability group moves reporting queries off the primary instance, and a columnstore index makes the large scans those queries perform far more efficient through columnar storage and compression. Together they isolate the reporting workload while accelerating it, which is exactly what the scenario demands.

Exam trap

The trap here is selecting snapshot isolation or Resource Governor because they reduce contention, when the requirement is to move the workload entirely off the primary instance.

129
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.

130
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.

131
Multi-Selecthard

A database team is designing a new table to store employee data. They need to ensure that the table structure supports efficient queries and maintains data integrity. Which two of the following statements about primary keys and indexes are true? (Choose two.)

Select 2 answers
A.A unique index can be created on a column that allows NULL values, and multiple NULLs are permitted in some DBMSs.
B.Indexes always improve the performance of INSERT, UPDATE, and DELETE operations.
C.A foreign key constraint automatically creates an index on the foreign key column(s) in all DBMSs.
D.A table can have multiple primary keys to improve query performance.
E.A primary key constraint automatically creates a unique index on the key column(s).
AnswersA, E

A unique index enforces uniqueness but does not necessarily prohibit NULLs. In many database systems, such as SQL Server and PostgreSQL, multiple NULLs are allowed in a unique index because NULL is considered distinct from other NULLs. This allows flexibility while still preventing duplicate non-NULL values. However, behavior varies, so it's important to check the specific DBMS documentation.

Why this answer

The true statements are that a primary key automatically creates a unique index, and that a unique index can allow multiple NULLs in some DBMSs. These reflect standard behaviors that affect both data integrity and query performance. The other statements are false because a table can have only one primary key, indexes can slow down data modifications, and foreign key indexing is not automatic in all systems.

Exam trap

The trap here is assuming that all DBMSs behave the same regarding automatic indexing of foreign keys and handling of NULLs in unique indexes, when in fact these behaviors vary by vendor.

132
MCQmedium

A database developer is writing a query that must return the product_name and the total quantity sold for each product from a Sales table. The Sales table contains product_id, quantity, and sale_date. The Products table contains product_id and product_name. The query should include only products that have total sales quantity greater than 100. Which SQL statement is correct?

A.SELECT p.product_name, SUM(s.quantity) AS total_qty FROM Sales s JOIN Products p ON s.product_id = p.product_id GROUP BY p.product_name HAVING SUM(s.quantity) > 100;
B.SELECT p.product_name, SUM(s.quantity) AS total_qty FROM Sales s JOIN Products p ON s.product_id = p.product_id WHERE SUM(s.quantity) > 100 GROUP BY p.product_name;
C.SELECT p.product_name, SUM(s.quantity) AS total_qty FROM Sales s JOIN Products p ON s.product_id = p.product_id GROUP BY p.product_name, s.quantity HAVING s.quantity > 100;
D.SELECT p.product_name, SUM(s.quantity) AS total_qty FROM Sales s, Products p WHERE s.product_id = p.product_id GROUP BY p.product_name HAVING total_qty > 100;
AnswerA

This query joins Sales and Products, groups by product_name, and sums the quantity. The HAVING clause filters groups where the sum exceeds 100. It correctly returns only products meeting the sales threshold, with the required columns. This is the proper use of GROUP BY and HAVING.

Why this answer

The correct query joins the two tables, groups by product_name, and uses HAVING to filter on the aggregate sum. This ensures that only products with total quantity sold greater than 100 are returned. The HAVING clause is essential for filtering grouped results based on aggregate conditions.

Exam trap

The trap here is using WHERE instead of HAVING to filter on an aggregate function, which is invalid SQL.

133
MCQhard

A multinational retailer stores customer loyalty data in a PostgreSQL cluster. Privacy counsel requires that EU customer records be purged automatically 30 days after account closure, while US records must be retained for seven years for tax purposes. Which data governance control best satisfies this requirement?

A.A scheduled job that deletes rows where region = 'EU' and closed_date is older than 30 days, with an audit log of each deletion.
B.Partition the table by region and detach the EU partition after 30 days, retaining the detached partition on cheaper storage.
C.A row-level security policy that hides EU records from analysts after 30 days while keeping them in the table for audit.
D.Encrypt EU records with a per-customer key and destroy the key after 30 days, rendering the ciphertext unreadable.
AnswerA

This control directly enforces the jurisdiction-specific retention rule by scoping deletion to EU records past the 30-day threshold, and the audit log provides evidence of compliance. It leaves US records untouched for the seven-year tax retention period, satisfying both obligations with one deterministic mechanism.

Why this answer

Jurisdiction-specific retention requires an automated rule that deletes EU records past the 30-day window while preserving US records for the full tax period. A scheduled deletion scoped by region and closure date, plus an immutable audit trail, enforces the erasure obligation and produces the evidence auditors expect without disturbing the separate retention mandate.

Exam trap

The trap here is treating visibility controls such as row-level security or partition detachment as equivalent to erasure, when the requirement is actual deletion of EU records.

134
MCQeasy

Which SQL command is used to add new records to an existing table?

A.UPDATE
B.SELECT
C.ALTER
D.INSERT
AnswerD

INSERT appends new rows to an existing table, specifying target columns and values. UPDATE modifies existing rows, DELETE removes them, and CREATE TABLE defines structure, so INSERT is the only command that adds records as the question requires.

Why this answer

INSERT INTO is the standard command for adding new rows to a database table.

135
MCQeasy

What is the primary role of a Data Dictionary in a database management system?

A.To manage physical storage allocation
B.To execute complex queries
C.To store the actual user data
D.To store metadata about the database structure
AnswerD

A data dictionary stores metadata — table names, column definitions, data types, constraints and relationships — describing the database structure. This metadata repository lets DBAs and applications understand schema layout, supporting consistent design, documentation and change management across the DBMS.

Why this answer

A Data Dictionary is the repository of metadata — the 'data about data' — describing the database's structure: table names, column names, data types, constraints, relationships, indexes, and often business definitions. It does not hold user data itself; it describes how that data is organized. This is why the correct answer is 'to store metadata about the database structure.'

Exam trap

DS0-001 often tests the confusion between the Data Dictionary (metadata) and the actual data store — candidates who conflate 'dictionary' with 'data repository' pick the option about storing user data.

How to eliminate wrong answers

Option A is wrong because physical storage allocation (data files, extents, pages) is managed by the storage engine and described in system catalogs, not by the Data Dictionary's primary role. Option B is wrong because query execution is performed by the query processor/optimizer, not the Data Dictionary — the dictionary may be consulted for statistics but does not execute queries. Option C is wrong because actual user data is stored in tables and indexes, not in the Data Dictionary, which holds only descriptive metadata.

136
MCQeasy

Which of the following activities is performed during the 'Testing' phase of a database deployment to ensure the system meets its performance targets?

A.User acceptance testing (UAT)
B.Unit testing
C.Security patching
D.Load testing
AnswerD

Load testing subjects the deployed database to concurrent user volumes and transaction rates, revealing throughput, latency and resource bottlenecks. It directly verifies whether the system meets its stated performance targets, which is the Testing phase objective named in the stem.

Why this answer

Load testing is performed during the Testing phase to ensure the database system meets its performance targets under expected and peak loads. It simulates concurrent user activity and measures response times, throughput, and resource utilization, directly validating performance requirements. This makes it the correct activity for verifying performance targets.

Exam trap

DS0-001 often tests the distinction between testing types, and the trap is confusing performance-focused load testing with functional testing like UAT or unit testing.

How to eliminate wrong answers

Option A is wrong because User Acceptance Testing (UAT) validates that the system meets business requirements from the user's perspective, not specifically performance targets. Option B is wrong because Unit testing verifies individual components or modules in isolation, not system-wide performance under load. Option C is wrong because Security patching is a maintenance activity that addresses vulnerabilities, not a performance validation activity during the Testing phase.

137
MCQeasy

An administrator is verifying the storage requirements for a new PostgreSQL database installation. Which configuration parameter in the postgresql.conf file directly impacts the amount of memory allocated for shared buffers?

A.maintenance_work_mem
B.max_connections
C.shared_buffers
D.work_mem
AnswerC

The `shared_buffers` parameter in `postgresql.conf` explicitly sets the memory PostgreSQL dedicates to caching data pages, directly satisfying the stem's requirement for the shared buffer allocation. Other parameters govern different memory areas, such as per-connection work memory or the OS page cache, so none controls this specific allocation.

Why this answer

In PostgreSQL, the shared_buffers parameter in postgresql.conf defines the amount of memory the database server uses for shared memory buffers — the cache of data pages shared across all connections. It directly controls how much RAM PostgreSQL allocates for caching table and index data, and tuning it is one of the most impactful performance settings.

Exam trap

DS0-001 often tests whether candidates confuse the various PostgreSQL memory parameters — the trap is selecting work_mem or maintenance_work_mem, which control per-operation memory, instead of shared_buffers, which controls the shared page cache.

How to eliminate wrong answers

Option A is wrong because maintenance_work_mem controls memory used for maintenance operations such as VACUUM, CREATE INDEX, and ALTER TABLE ADD FOREIGN KEY — it does not allocate shared buffers. Option B is wrong because max_connections sets the maximum number of concurrent client connections, which affects memory consumption per connection but not the shared buffer pool. Option D is wrong because work_mem defines memory per sort or hash operation within a query (per operation, not per connection), and it is unrelated to shared buffer allocation.

138
MCQeasy

A data analyst needs to retrieve the average order value for each region from a sales table. The table has columns region, order_id, and order_total. Which SQL statement correctly returns one row per region with its average order value?

A.SELECT region, AVG(order_total) FROM sales GROUP BY region;
B.SELECT region, SUM(order_total)/COUNT(*) FROM sales;
C.SELECT region, AVG(order_total) FROM sales;
D.SELECT DISTINCT region, AVG(order_total) FROM sales;
AnswerA

GROUP BY region collapses rows into one per region, and AVG(order_total) computes the average order value for each group. This returns exactly one row per region with the average, which is the required output. It is the standard and most efficient way to produce per-group aggregates in SQL.

Why this answer

Per-region averages require grouping rows by region and applying AVG to order_total within each group. The GROUP BY clause creates one result row per distinct region, and AVG computes the mean for that region. Omitting GROUP BY yields a single overall aggregate, and using DISTINCT does not substitute for grouping because it operates on the final result set rather than partitioning rows for aggregation.

Exam trap

The trap here is thinking DISTINCT can replace GROUP BY for per-category aggregates, when DISTINCT only removes duplicate rows from the result set.

139
MCQhard

A developer needs to calculate the running total of sales. Which SQL feature is most appropriate?

A.GROUP BY
B.Trigger
C.Window Function
D.Recursive CTE
AnswerC

Window functions compute aggregates across a set of rows while retaining each individual row, so `SUM(sales) OVER (ORDER BY date)` returns a running total without collapsing detail. This directly satisfies the developer's requirement for cumulative sales, unlike GROUP BY, which reduces rows and cannot produce per-row running values.

Why this answer

A window function computes an aggregate or ranking value across a set of rows related to the current row without collapsing them, which is exactly what a running total requires. Using SUM(sales) OVER (ORDER BY date) produces a cumulative sum that grows row by row while preserving every detail row. This is the canonical use case for window functions such as SUM, AVG, RANK, and ROW_NUMBER with an OVER clause.

Exam trap

DS0-001 often tests the GROUP BY vs window function distinction, catching candidates who pick GROUP BY for cumulative calculations and forget that GROUP BY collapses rows while window functions preserve them.

How to eliminate wrong answers

Option A is wrong because GROUP BY collapses rows into aggregated groups, so you lose the individual sales rows and cannot produce a row-by-row running total — it gives one total per group, not a cumulative sequence. Option B is wrong because a trigger is a procedural event handler that fires on INSERT/UPDATE/DELETE, not a query feature for calculating running totals. Option D is wrong because a recursive CTE is used for hierarchical or graph traversal (e.g., org charts, bill of materials), not for cumulative aggregation over an ordered set — it is overkill and the wrong tool for a running total.

140
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.

141
MCQmedium

When cleaning a dataset, you notice that column names contain inconsistent casing (e.g., 'Name', 'NAME', 'name'). Which transformation step should be prioritized to facilitate join operations?

A.String Normalization
B.One-hot encoding
C.Data Binning
D.Data deduplication
AnswerA

Normalizing casing ensures consistency for joins.

Why this answer

Inconsistent casing in column names (e.g., 'Name', 'NAME', 'name') is a string-formatting issue that must be resolved before joins, because most databases treat identifiers as case-sensitive (or case-insensitive depending on collation) and mismatched casing causes join failures or duplicate columns. String Normalization standardises casing, whitespace, and formatting across the dataset.

Exam trap

DS0-001 often tests the confusion between string normalization (formatting consistency) and deduplication (removing duplicate records) — candidates see 'inconsistent' and jump to deduplication without reading that the issue is casing in column names.

How to eliminate wrong answers

Option B is wrong because one-hot encoding converts categorical variables into binary indicator columns — it addresses categorical encoding for machine learning, not column-name consistency for joins. Option C is wrong because data binning groups continuous values into discrete buckets (e.g., age ranges), which is unrelated to fixing casing in identifiers. Option D is wrong because data deduplication removes duplicate rows, not inconsistent column-name formatting; deduplication would not resolve a join failure caused by 'Name' vs 'name'.

142
MCQmedium

A database administrator is planning the deployment of a new database server. The organization requires that the database be able to recover from a failure with minimal data loss, and the Recovery Point Objective (RPO) is 5 minutes. Which backup strategy should the administrator implement?

A.Differential backups taken every 6 hours.
B.Full backups taken once per day plus transaction log backups every 5 minutes.
C.Full backups taken once per day.
D.Snapshot backups taken every hour.
AnswerB

Combining daily full backups with transaction log backups every 5 minutes allows point-in-time recovery to within 5 minutes of a failure. This strategy meets the RPO by minimizing data loss, as the log backups capture all transactions since the last backup. It is a standard approach for databases requiring low RPO.

Why this answer

To achieve an RPO of 5 minutes, transaction log backups must be taken at intervals no greater than 5 minutes, combined with periodic full backups. This allows recovery to a point in time just before the failure, minimizing data loss. Daily full backups alone are insufficient, and differential or snapshot backups at longer intervals do not meet the requirement.

Exam trap

The trap here is assuming that frequent full or differential backups alone can meet a low RPO, when transaction log backups are essential for point-in-time recovery.

143
MCQhard

To implement a secure 'Multi-Tenant' architecture, which design approach is most effective for data separation?

A.Shared columns
B.Separate schemas
C.Indexing
D.Stored procedures
AnswerB

Separate schemas give each tenant its own tables and namespace within a shared database instance, so queries and permissions are scoped per tenant. This provides stronger logical isolation than shared tables with tenant-ID columns, satisfying the requirement for effective data separation in a multi-tenant architecture.

Why this answer

Separate schemas provide strong logical isolation by giving each tenant its own namespace of objects, enabling independent permission management and reducing cross-tenant data exposure. This approach balances security and manageability better than sharing columns, which risks accidental data leakage between tenants.

Exam trap

DS0-001 often tests whether candidates confuse performance features (indexing, stored procedures) with isolation mechanisms, so choose the option that actually separates tenant data at a structural level.

How to eliminate wrong answers

Option A is wrong because shared columns (e.g., a TenantID column in a shared table) require every query to filter correctly; a single missing WHERE clause can expose another tenant's data, and it complicates per-tenant customization. Option C is wrong because indexing is a performance optimization, not a data-separation mechanism — it does nothing to isolate tenants. Option D is wrong because stored procedures encapsulate logic but do not by themselves segregate tenant data; they still operate on whatever tables exist.

144
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'.

145
MCQhard

A database administrator is planning the deployment of a new Microsoft SQL Server 2022 instance for a financial application. The application requires that committed transactions survive a power loss and that the storage subsystem provide the lowest possible write latency. The administrator must choose the appropriate recovery model and disk configuration. Which combination best meets these requirements?

A.Set the database to the full recovery model and place data and log files on the same RAID 6 array to maximize fault tolerance.
B.Set the database to the simple recovery model and place data and log files on the same RAID 5 array.
C.Set the database to the full recovery model and place data files on RAID 10 and transaction log files on a separate RAID 10 array.
D.Set the database to the bulk-logged recovery model and place all files on a single RAID 0 array for maximum throughput.
AnswerC

The full recovery model preserves the transaction log and supports point-in-time recovery, which is essential for financial data. RAID 10 provides both mirroring and striping without parity overhead, giving low write latency and redundancy. Separating data and log files on distinct RAID 10 arrays isolates I/O and improves performance. This combination satisfies durability and low write latency requirements.

Why this answer

The full recovery model preserves the transaction log for point-in-time recovery, which is required for financial data. RAID 10 provides low-latency writes through mirroring and striping without parity overhead. Separating data and log files onto distinct RAID 10 arrays isolates I/O patterns and further reduces contention, meeting both durability and write latency requirements.

Exam trap

The trap here is choosing RAID 5 or RAID 6 for fault tolerance while ignoring the write penalty that parity calculation introduces, which conflicts with the lowest write latency requirement.

146
MCQhard

A multinational bank must demonstrate that its data processing activities are lawful and documented. An auditor requests evidence that each processing purpose has a documented legal basis, defined retention, and identified data subjects. Which artifact should the data governance team produce?

A.A network diagram showing where personal data flows between systems.
B.A data classification matrix that labels each column as public, internal, or confidential.
C.A Record of Processing Activities (ROPA) maintained under GDPR Article 30.
D.A business continuity plan describing recovery time objectives for core systems.
AnswerC

A ROPA documents each processing activity with its purpose, legal basis, categories of data subjects and personal data, recipients, retention periods, and security measures. It is precisely the artifact an auditor examines to verify that lawful basis and retention are defined per purpose, making it the correct evidence for the bank's compliance demonstration.

Why this answer

The auditor wants per-purpose evidence of lawful basis, retention, and data-subject categories. That is the definition of a Record of Processing Activities, which governance teams maintain as the authoritative register for accountability. Diagrams, classification matrices, and continuity plans support related controls but do not contain the specific legal and retention attributes the auditor requested.

Exam trap

The trap here is choosing any documentation artifact that mentions data, when the request specifically maps to the statutory record of processing activities with legal basis and retention fields.

147
MCQeasy

During the pre-deployment phase, a team needs to estimate the hardware resources required for a new Oracle Database installation. Which tool should be used to simulate database workload and forecast resource consumption?

A.Automatic Workload Repository (AWR)
B.Oracle Database Replay
C.Oracle Enterprise Manager Performance Hub
D.SQL Tuning Advisor
AnswerB

Oracle Database Replay captures a production workload and replays it against a test system, reproducing realistic concurrency and transaction mix. This satisfies the pre-deployment requirement to simulate workload and forecast hardware consumption, unlike capacity-planning spreadsheets or static benchmarks that cannot replicate actual Oracle session behaviour.

Why this answer

Oracle Database Replay captures a production workload and replays it on a test system, allowing DBAs to measure resource consumption and forecast hardware requirements before deployment. It is specifically designed for workload simulation and capacity planning. This makes it the correct tool for pre-deployment resource estimation.

Exam trap

DS0-001 often tests the confusion between monitoring tools (AWR, Performance Hub) and simulation tools (Database Replay) — candidates pick AWR because it is the most familiar performance tool.

How to eliminate wrong answers

Option A is wrong because AWR is a repository of historical performance statistics collected on a running database; it reports past activity but does not simulate workloads. Option C is wrong because Performance Hub is a real-time and historical monitoring UI within Enterprise Manager, not a workload simulation tool. Option D is wrong because SQL Tuning Advisor analyzes individual SQL statements and recommends tuning actions; it does not simulate workloads or forecast hardware needs.

148
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.

149
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.

150
MCQmedium

A database administrator is planning a new SQL Server deployment and needs to ensure that the tempdb system database does not become a bottleneck during high-concurrency operations. Which configuration step should be performed during the initial setup?

A.Move the tempdb database to a network attached storage (NAS) share for high availability.
B.Create multiple tempdb data files of equal size to distribute I/O contention across multiple threads.
C.Set the recovery model of tempdb to Full to ensure point-in-time recovery.
D.Configure the tempdb database to use a single large file on a compressed volume.
AnswerB

Multiple tempdb data files of equal size let SQL Server spread allocation and I/O across several files, each served by separate threads. This reduces allocation latch and page contention, preventing tempdb becoming a bottleneck under high concurrency.

Why this answer

Creating multiple tempdb data files of equal size is the standard SQL Server best practice for high-concurrency workloads. SQL Server uses proportional fill across data files in a filegroup, and multiple tempdb files allow allocation pages (PFS, GAM, SGAM) and I/O to be spread across files, reducing latch contention on allocation structures and distributing I/O across CPUs and storage queues. Equal sizing is essential so proportional fill distributes writes evenly rather than favouring the largest file.

Exam trap

DS0-001 often tests whether candidates know tempdb's unique constraints — the trap is choosing Full recovery or NAS storage because they sound like standard high-availability or recoverability practices, when tempdb is non-recoverable and must stay on fast local storage.

How to eliminate wrong answers

Option A is wrong because placing tempdb on a NAS share introduces network latency and is unsupported for tempdb, which is recreated at every SQL Server restart and requires low-latency local storage — NAS also undermines the high-availability goal since tempdb is not a persisted, recoverable database. Option C is wrong because tempdb only supports the Simple recovery model; it cannot be set to Full, and point-in-time recovery is meaningless for a database whose contents are discarded on restart. Option D is wrong because a single large file on a compressed volume concentrates contention on one file's allocation pages and adds CPU overhead for compression, worsening rather than relieving the bottleneck.

Page 1

Page 2 of 5

Page 3

All pages