Courseiva

CCNA Database Planning And Deployment Questions

63 questions · Database Planning And Deployment · All types, answers revealed

1
MCQhard

A database administrator is deploying a new Microsoft SQL Server 2022 instance that will host a mission-critical OLTP database. The business requires zero data loss and automatic failover to a secondary server in a different subnet within the same data center. The administrator needs to configure a high-availability solution that supports automatic failover and synchronous commit. Which solution should the administrator implement?

A.Configure a failover cluster instance (FCI) with shared storage between the two servers.
B.Configure database mirroring in high-safety mode with automatic failover.
C.Configure log shipping with a short transaction log backup interval and automatic failover.
D.Configure an Always On availability group with synchronous-commit mode and automatic failover.
AnswerD

Always On availability groups support synchronous-commit mode, which ensures zero data loss, and can be configured for automatic failover. They do not require shared storage, and they support replicas on different subnets within the same data center. This solution meets the zero data loss and automatic failover requirements.

Why this answer

The requirement for zero data loss and automatic failover in SQL Server 2022 points to Always On availability groups with synchronous-commit mode. This feature supports automatic failover without shared storage and works across different subnets. Failover cluster instances require shared storage, log shipping is manual, and database mirroring is deprecated.

Exam trap

The trap here is selecting a deprecated or manual failover technology like database mirroring or log shipping, which cannot meet the automatic failover and zero data loss requirements in SQL Server 2022.

2
MCQeasy

During the testing phase of a database deployment, you discover that the database is not accepting external connections. You have verified that the database service is running. What is the most likely culprit?

A.The backup agent is running.
B.The host firewall is blocking the database port.
C.The database schema is not fully migrated.
D.The database is in Single User mode.
AnswerB

A running service that refuses external connections typically means the port is filtered before reaching it. The host firewall dropping inbound traffic on the database port satisfies the verified-running-service constraint, since the listener itself is healthy but packets never arrive.

Why this answer

If the database service is confirmed running but external connections are refused, the most likely cause is a host firewall blocking the database's listening port (e.g., 1433 for SQL Server, 3306 for MySQL, 5432 for PostgreSQL). The firewall operates at the network layer and silently drops or rejects inbound traffic before it ever reaches the database engine, producing exactly this symptom.

Exam trap

DS0-001 often tests layered troubleshooting, and the trap is jumping to database-internal causes like Single User mode or schema issues when the symptom (service running but no external connections) points to a network-layer block.

How to eliminate wrong answers

Option A is wrong because a running backup agent consumes resources but does not prevent the database from accepting external connections — it operates independently of the listener. Option C is wrong because an incomplete schema migration would cause application-level errors (missing tables, columns) after a successful connection, not a connection refusal. Option D is wrong because Single User mode would typically allow one connection (often the admin) and reject others with a specific error, but the question states the service is running and external connections are refused entirely — a firewall block is more consistent with a total refusal.

3
MCQhard

A database architect is tasked with choosing a database model for a system that requires highly variable, semi-structured data storage (e.g., JSON documents). Which model provides the best flexibility for this requirement?

A.Key-Value
B.Relational (RDBMS)
C.Document-oriented
D.Graph
AnswerC

Document-oriented databases store each record as a self-describing JSON-like document, so fields can vary between records without schema migrations. This directly satisfies the stem's requirement for highly variable, semi-structured data, unlike relational tables with fixed columns or key-value stores that lack queryable nested structure.

Why this answer

Document-oriented databases store data in flexible, semi-structured formats like JSON or XML, allowing for schema-less design and easy evolution of data structures. This makes them ideal for highly variable data such as JSON documents.

Exam trap

DS0-001 often tests the appropriate database model for specific data characteristics, and candidates may confuse document-oriented with key-value or graph databases.

How to eliminate wrong answers

Option A is wrong because Key-Value stores are simple and efficient for basic key-based retrieval but do not support complex queries or indexing on document contents, making them less flexible for semi-structured data. Option B is wrong because Relational databases require a fixed schema and are not well-suited for highly variable, semi-structured data. Option D is wrong because Graph databases are optimized for relationships between entities, not for storing and querying semi-structured documents.

4
MCQhard

A database administrator is deploying a new database that will store sensitive customer data. The organization requires that all data at rest be encrypted using AES-256. The database supports Transparent Data Encryption (TDE). After enabling TDE, what additional step must be performed to ensure that the encryption keys are protected and can be recovered in case of a disaster?

A.Configure a Database Master Key (DMK) for the master database.
B.Enable encryption of the tempdb system database.
C.Back up the TDE certificate and its private key to a secure location.
D.Back up the database master key and the service master key to a secure location.
AnswerC

TDE encrypts the database encryption key (DEK) with a certificate stored in the master database. To recover an encrypted database on a different server or after a disaster, you must have a backup of the certificate and its private key. Without it, the database cannot be decrypted, resulting in permanent data loss.

Why this answer

When using Transparent Data Encryption, the database encryption key is protected by a certificate. To ensure recoverability, you must back up the certificate and its private key. This backup allows you to restore the encrypted database on another server or after a disaster.

Without it, the data is irrecoverable.

Exam trap

The trap here is focusing on master keys or tempdb encryption while overlooking the specific certificate and private key backup required for TDE recovery.

5
MCQmedium

An administrator is deploying a new database and needs to ensure that the backup strategy complies with the '3-2-1' backup rule. What does the '1' in this rule represent?

A.One recovery point objective (RPO) of zero
B.One local copy
C.One full backup per day
D.One off-site copy
AnswerD

One copy must be stored off-site, physically separate from the primary and secondary copies. This satisfies the geographic separation constraint of the 3-2-1 rule, protecting backups against site-level disasters such as fire, flood or theft that would otherwise destroy every local copy simultaneously.

Why this answer

The 3-2-1 backup rule states: keep at least 3 copies of data, on 2 different media types, with 1 copy stored off-site. The '1' specifically refers to the off-site copy, which protects against site-wide disasters such as fire, flood, or ransomware that could destroy all local copies simultaneously.

Exam trap

DS0-001 often tests the 3-2-1 rule by swapping in adjacent backup concepts like RPO, frequency, or local copies, and the trap is confusing the off-site requirement with other backup terminology.

How to eliminate wrong answers

Option A is wrong because RPO (Recovery Point Objective) is a separate concept defining acceptable data loss measured in time, not part of the 3-2-1 rule. Option B is wrong because 'one local copy' inverts the rule — the rule requires copies to be distributed, with at least one off-site, not consolidated locally. Option C is wrong because backup frequency (one full backup per day) is a scheduling decision, not what the '1' in 3-2-1 represents.

6
Multi-Selecthard

An administrator needs to improve the security posture of a newly deployed PostgreSQL database. Which TWO actions should be performed to harden the environment?

Select 2 answers
A.Enable the 'trust' authentication method for all users.
B.Modify pg_hba.conf to allow only specific IP addresses to connect.
C.Grant 'superuser' privileges to all application service accounts.
D.Change the default database port to a random high number for security through obscurity.
E.Set the password_encryption parameter to 'scram-sha-256'.
AnswersB, E

Restricting connections in pg_hba.conf to specific IP addresses enforces network-level access control at the database layer, satisfying the hardening requirement by rejecting connections from unauthorised hosts before authentication. This limits the attack surface of the newly deployed PostgreSQL instance, complementing credential and encryption controls.

Why this answer

Option B is correct because editing pg_hba.conf to restrict connections to specific IP addresses enforces host-based access control, ensuring only trusted hosts can reach the PostgreSQL instance and reducing the attack surface. Option E is correct because setting password_encryption to 'scram-sha-256' ensures stored passwords use SCRAM-SHA-256, a salted challenge-response mechanism that is far stronger than md5 and protects credentials against replay and offline cracking. Option A is wrong because the 'trust' method allows connections without any password, completely undermining authentication.

Option C is wrong because granting superuser to all application service accounts violates least privilege and magnifies the impact of any compromise. Option D is wrong because changing the port to a random high number is only security through obscurity and does not provide real protection against determined attackers.

Exam trap

DS0-001 often tests the misconception that changing a default port or enabling 'trust' improves security, when in fact obscurity is not a control and trust removes authentication entirely.

7
MCQeasy

A database administrator is deploying a new database server and needs to ensure that the database software starts automatically when the operating system boots. On a Linux system, which of the following should the administrator use to manage the database service?

A.service
B.systemctl
C.cron
D.init
AnswerB

systemctl is the command-line utility for controlling the systemd system and service manager. It is used to start, stop, enable, and manage services, including database services. To ensure the database starts at boot, the administrator would use systemctl enable <service>. This is the standard method on modern Linux distributions that use systemd.

Why this answer

On modern Linux systems, systemd is the default init system, and systemctl is the command used to manage services. To ensure a database service starts automatically at boot, the administrator should use systemctl enable <service>. This creates the necessary symlinks for the service to be started during the boot process.

Exam trap

The trap here is assuming that legacy tools like service or cron are the standard for managing service startup, when systemctl is the correct tool on systemd-based systems.

8
MCQhard

A database administrator is deploying a new PostgreSQL database cluster that must support a read-intensive reporting workload. The reporting queries are long-running and scan large tables. The administrator wants to avoid blocking write transactions on the primary server. Which deployment approach should the administrator use?

A.Enable parallel query execution on the primary server to speed up reporting queries.
B.Configure synchronous replication to a standby server and direct reporting queries to the standby.
C.Implement table partitioning on the large tables and run reports against the primary server.
D.Set up streaming replication with hot standby and route reporting queries to the standby server.
AnswerD

PostgreSQL streaming replication with hot standby allows a standby server to accept read-only queries while continuously applying WAL changes from the primary. This offloads long-running reporting queries to the standby, preventing them from consuming resources on the primary and blocking write transactions. It is the standard PostgreSQL approach for read scaling and reporting isolation.

Why this answer

Streaming replication with hot standby allows a PostgreSQL standby to serve read-only queries, so long-running reports run on a separate server. This keeps the primary free to handle write transactions without competition from reporting queries. Synchronous replication would add write latency, while parallel query and partitioning keep the load on the primary.

Exam trap

The trap here is thinking that speeding up reporting queries on the primary solves the blocking problem, when the real solution is to move those queries to a separate standby server.

9
Multi-Selecthard

Which THREE factors should be considered when choosing between a traditional RDBMS and a NoSQL database for a new project?

Select 3 answers
A.Consistency requirements (ACID vs BASE)
B.The developer's preferred operating system
C.Data structure (Structured vs Semi-structured)
D.Scalability requirements (Vertical vs Horizontal)
E.The color of the database console UI
AnswersA, C, D

Consistency requirements determine the appropriate data model: ACID transactions suit relational integrity, while BASE prioritises availability and partition tolerance. This directly addresses the stem's demand for selection factors, since the required consistency guarantee dictates whether a traditional RDBMS or a NoSQL database fits the project's distributed, scalability and correctness needs.

Why this answer

Option A is correct because consistency requirements directly drive the choice: a traditional RDBMS enforces ACID transactions (atomicity, consistency, isolation, durability) with strong consistency, whereas many NoSQL databases follow BASE (basically available, soft state, eventual consistency), so the project's tolerance for stale reads and need for multi-row transactions must be evaluated. Option C is correct because data structure determines fit: RDBMSs use fixed schemas with tables, rows, and joins suited to structured data, while NoSQL stores (document, key-value, column-family, graph) handle semi-structured or unstructured data with flexible, evolving schemas. Option D is correct because scalability requirements differ fundamentally: RDBMSs typically scale vertically by adding CPU/RAM to a single node and are harder to shard, while NoSQL systems are designed for horizontal scaling via partitioning/replication across commodity nodes.

Option B does not belong because the developer's preferred operating system is irrelevant—both RDBMS and NoSQL databases run on Windows, Linux, and macOS, and the choice is driven by data and workload needs, not the developer's desktop OS. Option E does not belong because the color of the database console UI is a cosmetic preference with no bearing on data modeling, consistency, scalability, or performance.

Exam trap

DS0-001 often tests whether candidates can distinguish architectural decision factors (consistency, data model, scalability) from irrelevant operational or cosmetic preferences that are deliberately inserted as distractors.

10
Multi-Selectmedium

When preparing a database deployment plan, what THREE factors must be considered to ensure successful capacity planning?

Select 3 answers
A.Peak transactional throughput (transactions per second).
B.The chosen color scheme for the database management dashboard.
C.Projected data growth rates over the next 12 to 24 months.
D.Data retention and archival policies.
E.The total number of users currently registered in the company's Active Directory.
AnswersA, C, D

Peak transactional throughput in transactions per second defines the maximum concurrent workload the database must sustain. This satisfies the stem's capacity planning requirement by sizing CPU, memory and IOPS against worst-case demand rather than average load.

Why this answer

Option A (peak transactional throughput in transactions per second) is correct because capacity planning must size CPU, memory, and I/O to handle the busiest workload period, not just average load, since peak TPS drives the required IOPS and connection limits. Option C (projected data growth rates over the next 12 to 24 months) is correct because storage, backup windows, and index maintenance scale with data volume, so forecasting growth prevents premature exhaustion of disk and memory resources. Option D (data retention and archival policies) is correct because retention periods determine how long data stays in primary storage versus being archived or purged, directly affecting total storage requirements, backup size, and query performance.

Option B is incorrect because dashboard color scheme is a cosmetic UI preference with no bearing on resource sizing or performance. Option E is incorrect because the total count of registered Active Directory users does not indicate concurrent database connections or workload; only active, concurrent sessions and their query patterns matter for capacity planning.

Exam trap

DS0-001 often tests whether candidates can identify genuine capacity-planning inputs versus irrelevant organizational or cosmetic factors, and the trap is selecting user counts from directories as a proxy for database load.

11
MCQhard

A database administrator is evaluating storage subsystems for a mission-critical database. The database uses random I/O patterns for most operations. Which storage performance metric is most critical for this workload?

A.Cache hit ratio
B.Sequential throughput
C.IOPS
D.Latency variation
AnswerC

Random I/O patterns issue many small, non-sequential reads and writes, so the storage subsystem's throughput is bounded by how many discrete operations it can complete each second. IOPS directly measures that operation rate, making it the decisive metric for this workload rather than sequential transfer speed.

Why this answer

IOPS (Input/Output Operations Per Second) measures the number of read/write operations a storage subsystem can handle per second. For a database with random I/O patterns, each operation targets a different block, so the ability to service many small, scattered I/Os concurrently is the limiting factor. IOPS is therefore the most critical metric for random I/O workloads, directly determining transaction throughput and query responsiveness.

Exam trap

DS0-001 often tests whether candidates confuse IOPS with throughput — the trap is selecting sequential throughput for a random I/O workload, when IOPS is the correct metric for scattered, small-block operations.

How to eliminate wrong answers

Option A is wrong because cache hit ratio measures how often data is served from cache rather than disk — it is a useful efficiency indicator but not a storage subsystem performance metric for random I/O, and a high hit ratio can mask underlying IOPS limitations. Option B is wrong because sequential throughput (MB/s) is critical for large sequential reads/writes such as backups or table scans, not for random I/O patterns where operations are scattered across the disk. Option D is wrong because latency variation (jitter) affects predictability and tail latency, which matters for SLA-sensitive workloads, but IOPS is the primary capacity metric that determines whether the subsystem can sustain the required random I/O rate at all.

12
MCQeasy

A database administrator is defining the data lifecycle policy for a new deployment. What is the final step in the data lifecycle for records that have exceeded their retention period and are no longer required for regulatory compliance?

A.Purging
B.Encryption
C.Migration
D.Archiving
AnswerA

Purging permanently removes records that have passed their retention period and hold no regulatory obligation, satisfying the policy's terminal stage. Unlike archiving, which retains data in secondary storage, or anonymisation, which preserves the dataset minus identifiers, purging eliminates the data entirely, ensuring compliance and reclaiming storage.

Why this answer

Purging is the final step in the data lifecycle, where records that have exceeded retention and are no longer needed for compliance are permanently deleted from all storage systems. It ensures data is irrecoverably removed, satisfying regulatory and privacy requirements. Archiving, migration, and encryption occur earlier in the lifecycle.

Exam trap

DS0-001 often tests the confusion between archiving (long-term retention) and purging (permanent deletion) — candidates pick archiving because it sounds like the end of the data lifecycle.

How to eliminate wrong answers

Option B is wrong because encryption protects data confidentiality but does not remove it at end of life; encrypted data still consumes storage and may be subject to retention rules. Option C is wrong because migration moves data between systems or formats but does not finalize its lifecycle; migrated data still exists. Option D is wrong because archiving moves data to long-term, lower-cost storage for retention, but the data still exists and has not reached end of life.

13
MCQmedium

A database administrator is deploying a new PostgreSQL 16 cluster for an online transaction processing (OLTP) application. The application must survive the loss of any single server in the primary data center without manual intervention, and the administrator wants the cluster to automatically promote a standby if the primary fails. The administrator has three servers available and wants to minimize the risk of split-brain. Which deployment approach should the administrator use?

A.Configure streaming replication with a single synchronous standby and a manual failover script triggered by a monitoring alert.
B.Use pg_basebackup to create a physical standby, configure WAL shipping, and rely on the operating system cluster software to restart PostgreSQL on the standby.
C.Configure logical replication from the primary to three subscribers and use a load balancer to route writes to the first subscriber that responds.
D.Deploy a three-node cluster managed by Patroni with etcd as the distributed configuration store to elect a leader and promote a standby automatically.
AnswerD

Patroni uses a distributed consensus store such as etcd to hold the cluster leader lock. With three nodes, a quorum can elect a new leader and promote a standby automatically when the primary fails. The consensus store prevents split-brain by ensuring only one node holds the leader lock. This directly satisfies the automatic failover and split-brain minimization requirements.

Why this answer

Patroni with a three-node etcd cluster provides distributed consensus for leader election, automatic promotion of a standby, and protection against split-brain. A single synchronous standby with manual scripts does not automate failover. Logical replication and WAL shipping without a cluster manager do not promote a standby or elect a leader, so they cannot meet the automatic failover requirement.

Exam trap

The trap here is assuming that streaming replication or WAL shipping alone provides automatic failover, when promotion and leader election require a cluster manager such as Patroni.

14
Multi-Selecthard

Which THREE database configuration settings help ensure data security and regulatory compliance?

Select 3 answers
A.Role-Based Access Control (RBAC)
B.Transparent Data Encryption (TDE)
C.Audit logging of DDL and DML operations
D.Disabling transaction log backups
E.Automatic plan cache clearing
AnswersA, B, C

RBAC enforces least-privilege access by assigning permissions through roles rather than to individuals, directly satisfying the stem's data security and regulatory compliance requirement. It restricts which users and service principals can read or modify data, providing the access-governance control auditors expect.

Why this answer

Role-Based Access Control (RBAC) is correct because it enforces least-privilege access by granting permissions to roles rather than individual users, which is a core requirement of security frameworks and regulatory mandates such as SOX, HIPAA, and PCI DSS. Transparent Data Encryption (TDE) is correct because it encrypts data at rest (data files, log files, and backups) using a database encryption key protected by a certificate or asymmetric key, satisfying compliance requirements for protecting stored sensitive data. Audit logging of DDL and DML operations is correct because it creates a tamper-evident trail of who changed what schema objects and data and when, which is explicitly required for regulatory audits and forensic investigation.

Disabling transaction log backups is not correct because it breaks the log chain, eliminates point-in-time recovery, and increases data-loss risk, which harms rather than helps compliance. Automatic plan cache clearing is not correct because it is a performance-tuning behavior that has no bearing on access control, encryption, or auditability.

Exam trap

DS0-001 often tests whether candidates can distinguish security/compliance controls (RBAC, TDE, auditing) from operational/performance settings (log backup policy, plan cache management) that are planted as plausible-sounding distractors.

15
MCQmedium

You are migrating an on-premises Oracle database to Oracle Cloud Infrastructure (OCI) using a tool that requires the least amount of downtime while keeping the source and destination databases in sync. Which method should you select?

A.Perform a cold backup and restore to an OCI block storage volume.
B.Use Data Pump Export/Import with manual application of incremental backups.
C.Implement Oracle GoldenGate for continuous logical replication.
D.Use SQL Developer to manually generate and execute insert scripts for all tables.
AnswerC

Oracle GoldenGate performs continuous logical replication, applying ongoing changes from source to target so both stay synchronised. This keeps downtime to a brief cutover rather than a full export/import, directly meeting the minimal-downtime, in-sync constraint.

Why this answer

Oracle GoldenGate performs continuous logical replication by mining redo/archive logs on the source and applying changes to the target, keeping both databases in sync with minimal downtime. This makes it the standard choice for near-zero-downtime migrations where the source must remain available until cutover.

Exam trap

The trap is picking a backup/restore or export/import method that sounds thorough but requires downtime; the question's 'least downtime while keeping in sync' signals continuous replication.

How to eliminate wrong answers

Option A is wrong because a cold backup requires shutting down the source database, causing full downtime for the duration of the backup and restore. Option B is wrong because Data Pump export/import is a point-in-time operation; manually applying incremental backups is error-prone, not continuous, and cannot keep source and target in sync in real time. Option D is wrong because generating and executing insert scripts manually is impractical for large databases, does not capture ongoing changes, and is not a viable migration method.

16
Multi-Selecteasy

Which THREE items should be included in a standard database deployment checklist to ensure consistency across environments?

Select 3 answers
A.Standardized service account permissions
B.Application codebase version
C.Database instance configuration parameters
D.The name of the database lead developer
E.Security access policies
AnswersA, C, E

Standardised service account permissions define the exact database principals and privileges the application uses. Documenting them on the checklist guarantees the same least-privilege grants are recreated in each environment, directly satisfying the consistency requirement across deployments.

Why this answer

A standardized database deployment checklist must capture the security and configuration elements that make environments behave identically. Option A (Standardized service account permissions) is correct because the database service account must have the same OS-level and DB-level privileges in every environment, otherwise the instance may fail to start or access files differently. Option C (Database instance configuration parameters) is correct because settings such as memory allocation, max_connections, and compatibility level directly affect performance and behavior, so they must be documented and applied consistently.

Option E (Security access policies) is correct because authentication rules, roles, grants, and network access controls must be replicated to avoid privilege drift or exposure between environments. Option B (Application codebase version) is not a database deployment checklist item—it belongs to application release management, even though the DB may support it. Option D (The name of the database lead developer) is irrelevant operational metadata and has no bearing on environment consistency.

Exam trap

DS0-001 often tests the distinction between database-scoped deployment controls and application-scoped or personnel details, tempting candidates to include the app version or a person's name.

17
Multi-Selectmedium

Which TWO settings should be configured in a database deployment to improve performance for heavy read-intensive reporting workloads?

Select 2 answers
A.Increasing the number of transaction logs
B.Columnstore indexes
C.Dropping primary key constraints
D.Asynchronous commit mode
E.Read-only secondary replicas
AnswersB, E

Columnstore indexes are highly optimized for large-scale analytical and reporting queries.

Why this answer

B is correct because columnstore indexes store data in a column-oriented, compressed format with batch-mode execution, which dramatically speeds up the large scans and aggregations typical of read-intensive reporting workloads. E is correct because read-only secondary replicas offload reporting queries from the primary, letting the primary handle transactional traffic while secondaries serve reads, improving overall read throughput and scalability. A is wrong because adding transaction logs does not improve read performance and mainly affects write durability/recovery.

C is wrong because dropping primary key constraints harms data integrity and removes useful indexes rather than helping reads. D is wrong because asynchronous commit mode is a write-side durability trade-off and does not accelerate read-intensive reporting.

Exam trap

DS0-001 often tests whether candidates can distinguish write-path optimizations (logs, async commit) from read-path optimizations, so the trap is selecting options that sound like general performance improvements but only affect writes.

18
MCQmedium

A database administrator is deploying a production environment and needs to restrict network access to the database server. Which tool or setting is the first line of defense at the network layer?

A.Firewall access control lists
B.SSL/TLS certificates
C.Database user permissions
D.Database proxy authentication
AnswerA

Firewall access control lists filter traffic by source IP, port and protocol before any connection reaches the database engine, satisfying the requirement for network-layer restriction. Unlike authentication controls, which operate after a session is established, ACLs drop unauthorised packets at the perimeter, making them the first line of defence.

Why this answer

Firewall access control lists (ACLs) operate at the network layer and are the first line of defense for restricting which hosts or subnets can reach the database server's listening port. They filter traffic before it reaches the database engine, providing the outermost boundary of protection.

Exam trap

DS0-001 often tests the OSI layer at which each control operates, and the trap is selecting encryption or authentication mechanisms that sound security-related but do not actually restrict network reachability.

How to eliminate wrong answers

Option B is wrong because SSL/TLS certificates encrypt data in transit and authenticate endpoints, but they do not restrict which network sources can connect — an attacker with a valid certificate path can still reach the port. Option C is wrong because database user permissions operate at the application layer inside the database, after a connection is established — they are a second line of defense, not the network-layer first line. Option D is wrong because database proxy authentication is an application-layer access control mechanism that also operates after network connectivity is established, not at the network boundary.

19
MCQmedium

A database administrator is deploying a new Oracle 19c database and needs to ensure that if the production server's power fails, no committed transactions are lost. The storage array has a write-back cache with a battery-backed unit. Which configuration should the administrator verify?

A.Verify that the storage array's write-back cache is protected by the battery and that the operating system does not disable write caching flush.
B.Increase the size of the redo log buffer to reduce the frequency of log writer flushes.
C.Set the database to ARCHIVELOG mode and enable automatic archival.
D.Enable FORCE LOGGING at the tablespace level to guarantee redo is generated for all changes.
AnswerA

Committed transactions are durable only when redo records reach nonvolatile storage. A battery-backed write-back cache preserves cached writes across a power failure, and the operating system must honor flush commands so that commits are not left in volatile cache. This combination ensures that a commit acknowledged to the application survives a power loss.

Why this answer

Commit durability requires that redo records reach nonvolatile storage before the commit is acknowledged. A battery-backed write-back cache keeps cached writes safe across a power failure, and the operating system must pass flush commands to the array so commits are not stranded in volatile memory. Verifying both conditions directly addresses the requirement.

Exam trap

The trap here is assuming ARCHIVELOG mode or FORCE LOGGING guarantees durability, when those features govern recoverability and redo completeness rather than commit-time flushing.

20
Multi-Selectmedium

You are planning the disk layout for a SQL Server production database. Which THREE best practices should you follow to optimize storage performance?

Select 3 answers
A.Place data files (.mdf) and transaction log files (.ldf) on the same physical drive.
B.Place transaction log files on high-speed, low-latency storage.
C.Place backup files on the same drive as the database data files.
D.Use separate physical volumes for data files and backups.
E.Store data files on a separate physical volume from the operating system.
AnswersB, D, E

Transaction log writes are sequential and latency-sensitive, so placing log files on high-speed, low-latency storage (such as NVMe SSD) minimises write-ahead logging delay and commit time. This satisfies the stem's storage-performance constraint, since slow log I/O throttles every transaction regardless of data file speed.

Why this answer

Option B is correct because transaction log files (.ldf) are written sequentially and are highly latency-sensitive, so placing them on high-speed, low-latency storage (e.g., SSD/NVMe or a dedicated RAID 10 array) minimizes log write waits and improves transaction throughput. Option D is correct because keeping backups on separate physical volumes from the data files prevents a single disk failure from destroying both the database and its backups, and it avoids backup I/O competing with production data I/O. Option E is correct because isolating data files from the OS volume prevents OS paging, updates, and system I/O from contending with database reads/writes, and it also protects the database from OS volume corruption or reinstallation.

Option A is incorrect because co-locating .mdf and .ldf on the same physical drive creates I/O contention between random data access and sequential log writes and removes fault isolation. Option C is incorrect because storing backups on the same drive as the data files means a single drive failure can destroy both the live database and its backups, and backup writes will degrade production performance.

Exam trap

DS0-001 often tests whether candidates confuse 'separate volumes' with 'separate files' — the trap is thinking that putting .mdf and .ldf on the same drive but in different folders is sufficient, when the physical spindle/LUN separation is what actually matters.

21
MCQhard

A database administrator is deploying a PostgreSQL 15 cluster that will serve a global application with users in North America, Europe, and Asia. The requirement is that reads be served with low latency from each region while writes are accepted in only one region. Which deployment architecture should the administrator choose?

A.A single primary in North America with cascading streaming replicas in Europe and Asia.
B.A single primary in North America with synchronous replication to a standby in Europe.
C.A primary in North America with physical streaming replicas in Europe and Asia, plus a connection router that directs reads to the nearest replica.
D.Multi-master logical replication with writable nodes in all three regions.
AnswerC

Physical streaming replication ships WAL to replicas that continuously apply it, so each region holds a full copy of the data. A connection router such as Pgpool-II or a proxy directs read queries to the closest replica, cutting read latency for each region. Writes still go to the single primary, satisfying the single-write-region requirement.

Why this answer

Streaming physical replicas in each region place a full copy of the data close to local users, and a connection router sends read queries to the nearest replica, minimizing read latency. Writes continue to flow to the single primary, so the single-write-region constraint is preserved while read performance improves globally.

Exam trap

The trap here is choosing multi-master replication for global writes, which violates the single-write-region requirement and introduces conflict resolution problems.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

39
Multi-Selecteasy

Which TWO tasks are critical before performing a major database schema upgrade?

Select 2 answers
A.Full database backup
B.Adding more memory to the server
C.Migration script validation in a staging environment
D.Deleting all stored procedures
E.Updating the OS kernel version
AnswersA, C

A full database backup captures a restorable copy of all data and schema objects before any structural change. If the upgrade fails or corrupts objects, this backup provides the rollback point, satisfying the pre-upgrade requirement for recoverability.

Why this answer

Option A (Full database backup) is correct because a complete, restorable backup (e.g., a full backup plus any needed transaction log backups, or a snapshot) is the only reliable rollback path if the schema upgrade fails or corrupts data, so it must be taken immediately before the change. Option C (Migration script validation in a staging environment) is correct because rehearsing the DDL/DML migration scripts against a staging copy that mirrors production schema, data volume, and dependencies exposes syntax errors, lock contention, and constraint or index conflicts before touching production. Option B (Adding more memory) is not a prerequisite for a schema upgrade; memory sizing is a capacity-tuning activity and does not protect data or validate the migration.

Option D (Deleting all stored procedures) is destructive and unnecessary, since procedures should be reviewed for dependency compatibility, not removed. Option E (Updating the OS kernel version) is unrelated to schema migration readiness and introduces additional change risk rather than mitigating it.

Exam trap

DS0-001 often tests the distinction between operational prerequisites (backup, staging validation) and unrelated infrastructure changes (memory, OS kernel) — candidates who equate 'preparation' with 'performance tuning' pick the wrong options.

40
MCQmedium

During a database deployment, the administrator needs to ensure that audit logs are captured for all privileged user actions. Which component should be configured?

A.Row-Level Security
B.Database Audit Specification
C.Data Masking
D.Query Store
AnswerB

A Database Audit Specification defines which auditable events, such as privileged user actions, are captured at the database level. Configuring it satisfies the requirement to log all privileged activity, since it binds specific actions to an audit target and records them for later review.

Why this answer

To ensure audit logs are captured for all privileged user actions, the administrator should configure a Database Audit Specification. This feature in SQL Server allows auditing of specific database-level actions, such as SELECT, INSERT, UPDATE, DELETE, and EXECUTE by privileged users. It captures these actions to the audit log for compliance and monitoring.

Exam trap

DS0-001 often tests the confusion between security features like Row-Level Security and auditing, leading candidates to select features that restrict access rather than log actions.

How to eliminate wrong answers

Option A is wrong because Row-Level Security restricts data access based on user identity but does not capture audit logs. Option C is wrong because Data Masking obscures sensitive data in query results but does not log privileged actions. Option D is wrong because Query Store captures query execution plans and runtime statistics, not audit logs of user actions.

41
Multi-Selectmedium

A database administrator is preparing the deployment plan for a new transactional database that must support point-in-time recovery and minimize data loss after a storage failure. The organization has approved additional storage for this purpose. Which TWO deployment measures best meet these requirements? (Choose two.)

Select 2 answers
A.Enable archive logging so completed transaction log files are copied to a separate volume.
B.Enable automatic growth on the data files with a small increment so the database never runs out of space.
C.Place the transaction log on the same volume as the data files to reduce write latency.
D.Configure the database to run in full recovery model and schedule regular transaction log backups.
E.Schedule a full backup once per week and rely on the database's automatic crash recovery for the intervening days.
AnswersA, D

Archive logging preserves the sequence of log files after they are filled, so a base backup plus the archived logs can be replayed to any moment before the failure. Without archived logs, only the most recent backup can be restored and all transactions since then are lost. Copying the archives to a separate volume protects them from the same storage failure that destroys the data files.

Why this answer

Point-in-time recovery depends on a continuous log chain, which requires the full recovery model plus scheduled log backups, and on protecting those logs from the same failure that destroys the data. Archiving completed log files to a separate volume keeps the chain available after a media failure. Weekly full backups alone, co-located logs, and autogrowth do not provide the ability to restore to a chosen moment.

Exam trap

The trap here is treating a frequent full backup or automatic crash recovery as equivalent to point-in-time recovery, which actually requires an unbroken chain of log backups.

42
MCQmedium

Before finalizing a database deployment, the team must ensure high availability. Which configuration allows for automatic failover to a standby server with zero data loss in a SQL Server environment?

A.Database Mirroring in High Performance mode
B.Synchronous-commit Availability Group
C.Log Shipping
D.Asynchronous-commit Availability Group
AnswerB

Synchronous-commit Availability Group commits on the secondary before acknowledging the primary, so failover to the standby loses no committed transactions. This satisfies the stem's zero-data-loss requirement, unlike asynchronous-commit mode, which permits potential data loss during failover.

Why this answer

A Synchronous-commit Availability Group in SQL Server ensures zero data loss by committing transactions on the primary replica only after they are hardened on at least one synchronous secondary replica. This provides automatic failover with no data loss, meeting the high availability requirement. It is the correct choice for zero data loss with automatic failover.

Exam trap

DS0-001 often tests the distinction between synchronous and asynchronous commit modes — candidates may assume any Availability Group provides zero data loss, but only synchronous-commit mode guarantees it, and only synchronous mode supports automatic failover without data loss.

How to eliminate wrong answers

Option A is wrong because Database Mirroring in High Performance mode uses asynchronous commit, which can result in data loss during failover. Option C is wrong because Log Shipping is not automatic failover — it requires manual intervention and can incur data loss (depending on backup frequency). Option D is wrong because an Asynchronous-commit Availability Group allows data loss during failover, as the secondary may not have received all transactions.

43
Multi-Selecthard

Which TWO database features are best used to handle massive volumes of data while maintaining fast query speeds for historical analytics?

Select 2 answers
A.Clustered indexes on random UUIDs
B.Table partitioning
C.Columnstore indexes
D.Row-level triggers
E.Database mirroring
AnswersB, C

Partitioning allows for 'partition elimination', which significantly speeds up queries on large datasets.

Why this answer

Table partitioning (B) is correct because splitting a large table into smaller, manageable partitions—typically by date or range—lets the query engine scan only the relevant partitions (partition elimination), dramatically reducing I/O for historical analytics workloads. Columnstore indexes (C) are correct because they store data column-wise with compression and batch-mode processing, which is purpose-built for large-scale analytical scans and aggregations, delivering fast query speeds over massive data volumes. Clustered indexes on random UUIDs (A) are wrong because random values cause page splits and fragmentation, hurting write and read performance.

Row-level triggers (D) add per-row procedural overhead and do nothing to accelerate analytical queries. Database mirroring (E) is a high-availability/DR feature that duplicates a database but provides no query-performance or analytical-scan benefit.

Exam trap

DS0-001 often tests the misconception that any index improves performance — candidates pick clustered indexes on UUIDs, not realizing random keys cause fragmentation and page splits.

44
MCQmedium

A company is planning to migrate a legacy on-premises database to the cloud. Which assessment should be conducted to ensure the application compatibility with the target managed database service?

A.Network throughput analysis
B.Database compatibility assessment
C.Capacity planning report
D.Data integrity audit
AnswerB

A database compatibility assessment evaluates schema objects, data types, stored procedures and vendor-specific SQL against the target managed service's engine version, directly satisfying the stem's requirement to confirm application compatibility before migration. It exposes unsupported features and deprecated syntax that would otherwise break the application once cutover occurs.

Why this answer

A database compatibility assessment evaluates whether the legacy database's schema, data types, stored procedures, triggers, and application dependencies will work on the target managed service. Managed cloud databases often lack certain features (e.g., SQL Server Agent, cross-database queries, CLR, or specific system stored procedures), so this assessment identifies incompatibilities before migration and informs remediation planning.

Exam trap

DS0-001 often tests whether candidates can distinguish migration-phase activities — the trap is selecting capacity planning or network analysis because they are legitimate migration concerns, when the question specifically asks about application compatibility with the target service.

How to eliminate wrong answers

Option A is wrong because network throughput analysis measures bandwidth and latency between source and target, which is relevant to migration speed but does not assess whether the application's SQL and schema will function on the target platform. Option C is wrong because capacity planning determines sizing (CPU, memory, storage, IOPS) for the target, not application compatibility — a correctly sized target can still fail if the application uses unsupported features. Option D is wrong because a data integrity audit verifies that data is accurate and consistent, which is a data-quality concern, not a compatibility concern; it does not reveal whether stored procedures or data types are supported.

45
MCQmedium

You are deploying a database that requires compliance with FIPS 140-2. What must be configured to ensure the database meets this security standard?

A.Database hardening scripts
B.User password rotation policies
C.FIPS-mode encryption
D.Multi-factor authentication (MFA)
AnswerC

FIPS-mode encryption enforces FIPS 140-2 validated cryptographic modules and algorithms for data at rest and in transit, satisfying the stem's compliance requirement. Enabling this mode ensures the database's cryptographic operations meet the mandated federal standard.

Why this answer

FIPS 140-2 is a U.S. government standard for cryptographic modules, so compliance requires that the database use FIPS-validated cryptographic modules — typically enabled via a FIPS mode setting that forces all encryption operations through validated algorithms and libraries. Without FIPS-mode encryption, the database may use non-validated ciphers even if encryption is otherwise enabled.

Exam trap

DS0-001 often tests the misconception that any encryption or authentication control satisfies FIPS 140-2, when the standard specifically requires FIPS-validated cryptographic modules enabled via FIPS mode.

How to eliminate wrong answers

Option A is wrong because hardening scripts address configuration baselines and attack surface reduction, not cryptographic module validation. Option B is wrong because password rotation is an authentication hygiene control and does not satisfy FIPS 140-2's cryptographic module requirements. Option D is wrong because MFA strengthens authentication but is unrelated to the cryptographic validation FIPS 140-2 mandates for encryption modules.

46
Multi-Selecteasy

Which TWO of the following are examples of logical database design tasks?

Select 2 answers
A.Choosing the RAID level for storage
B.Selecting the database file path
C.Normalizing the data schema
D.Configuring the database buffer pool size
E.Defining entity-relationship models
AnswersC, E

Normalising the data schema is a logical design task because it restructures relations and attributes—resolving partial and transitive dependencies—without altering physical storage. This satisfies the stem's requirement for logical, not physical, design work, since normalisation operates on the conceptual schema independently of indexes, filegroups or disk layout.

Why this answer

Normalizing the data schema (C) is a logical design task because it organizes tables and relationships to eliminate redundancy and anomalies without regard to physical storage. Defining entity-relationship models (E) is also logical design, as ER modeling captures entities, attributes, and relationships at a conceptual/logical level before implementation. The other options are physical design or operational tasks: choosing a RAID level (A) and selecting a database file path (B) concern storage layout, while configuring the buffer pool size (D) tunes memory allocation for performance.

Exam trap

DS0-001 often tests the boundary between logical and physical design, and candidates frequently misclassify storage and performance-tuning tasks (RAID, file paths, buffer pools) as logical when they are strictly physical concerns.

47
MCQmedium

You are deploying a database to a cloud environment and need to ensure that data at rest is encrypted according to organizational security policy. Which deployment configuration ensures transparent encryption of the database files?

A.Implementing Transparent Data Encryption (TDE)
B.Applying column-level encryption
C.Using a Virtual Private Cloud (VPC) endpoint
D.Enabling SSL/TLS on the connection string
AnswerA

Transparent Data Encryption encrypts database files and backups at the page level, with the Database Encryption Key protected by a certificate stored in the master database. This satisfies the policy for data-at-rest encryption without application changes, since SQL Server decrypts data transparently during queries.

Why this answer

Transparent Data Encryption (TDE) encrypts the database files at rest — the data and log files on disk — without requiring changes to the application. It is transparent to the application because encryption and decryption happen at the storage engine level, and it satisfies organizational policies requiring encryption of data at rest. TDE is the standard mechanism for encrypting database files in SQL Server, Oracle, and Azure SQL.

Exam trap

DS0-001 often tests whether candidates confuse encryption at rest with encryption in transit — the trap is selecting SSL/TLS or VPC endpoints, which secure data in transit or network access, instead of TDE, which encrypts the database files on disk.

How to eliminate wrong answers

Option B is wrong because column-level encryption encrypts specific columns' data within the database, not the database files at rest — it protects sensitive fields but does not encrypt the entire database file, and it requires application changes to encrypt/decrypt. Option C is wrong because a VPC endpoint controls network access to cloud services; it secures data in transit and network isolation, not data at rest. Option D is wrong because SSL/TLS on the connection string encrypts data in transit between the client and the database server, not the database files stored on disk.

48
Multi-Selectmedium

A database administrator is deploying a new database instance that will store sensitive customer information. The organization must comply with PCI DSS requirements for encryption of data at rest and in transit. Which TWO configurations should the administrator implement to meet these requirements? (Choose two.)

Select 2 answers
A.Configure SSL/TLS for all client connections to the database.
B.Enable database auditing to track all SELECT statements on customer tables.
C.Enable Transparent Data Encryption (TDE) on the database to encrypt data files at rest.
D.Configure the database to use only strong password hashing for authentication.
E.Implement column-level encryption for all columns in the database.
AnswersA, C

SSL/TLS encrypts data in transit between clients and the database server, preventing eavesdropping and man-in-the-middle attacks. PCI DSS requires strong cryptography for data transmission over open networks. Enabling SSL/TLS on the database listener ensures that sensitive customer information is protected while moving across the network.

Why this answer

TDE encrypts data files at rest, and SSL/TLS encrypts data in transit, directly addressing PCI DSS encryption requirements. Column-level encryption for all columns is impractical, auditing does not encrypt data, and password hashing only protects credentials, not the data itself.

Exam trap

The trap here is confusing authentication security, such as password hashing or auditing, with encryption of the data itself, which requires TDE and SSL/TLS.

49
MCQmedium

A database administrator is deploying a new PostgreSQL 15 instance that will store customer PII. The security policy requires that all data at rest be encrypted, and the platform team wants encryption tied to the host's Trusted Platform Module without managing passphrases. Which deployment approach best satisfies this requirement?

A.Set the ssl=on and ssl_cert_file parameters in postgresql.conf so that client connections and stored data are both encrypted.
B.Rely on the operating system's full-disk encryption configured with TPM-backed key sealing, and leave PostgreSQL's own storage unencrypted.
C.Enable the pgcrypto extension and encrypt individual PII columns with pgp_sym_encrypt using a key stored in the application config.
D.Configure data_checksums=on during initdb so that every page is checksummed and therefore protected against unauthorized reads.
AnswerB

Sealing the volume encryption key to the host TPM means the disk is transparently decrypted at boot without an operator-supplied passphrase, and PostgreSQL's data directory, WAL, and temporary files all reside inside that encrypted volume. This satisfies the blanket data-at-rest requirement while removing passphrase management, which is exactly what the platform team requested.

Why this answer

Storing PII at rest requires confidentiality for every byte the database writes, including WAL, temporary files, and indexes. TPM-sealed full-disk encryption delivers that transparently and removes the operational burden of passphrase entry, because the key is unsealed only by the specific host. Application-layer column encryption and TLS protect narrower scopes, and checksums address integrity rather than secrecy.

Exam trap

The trap here is assuming that TLS or column-level encryption satisfies a data-at-rest requirement, when only storage-level encryption covers every file the database writes.

50
MCQhard

A data warehouse team is deploying a partitioned fact table in SQL Server 2022 that will hold seven years of sales data. Most queries filter on the order date, and the team wants the oldest year moved to cheaper storage while remaining queryable. Which deployment design best meets these goals?

A.Create seven separate tables, one per year, and build a UNION ALL view across them for reporting queries.
B.Enable table compression on the fact table and archive the oldest year to a separate database that is restored on demand.
C.Create a single unpartitioned table with a clustered columnstore index and rely on column elimination to skip the oldest year.
D.Create a partitioned table with a partition function on the order date, map each year to its own filegroup, and place the oldest filegroup on cheaper storage with a read-only filegroup setting.
AnswerD

Partitioning on the order date gives the optimizer partition elimination for date-filtered queries and places each year's rows in a separate filegroup. Because the oldest year occupies its own read-only filegroup on lower-cost media, it stays queryable while consuming cheaper storage. This design satisfies both the query-performance and storage-tiering goals without rewriting the fact table.

Why this answer

Native partitioning on the date column provides two things at once: the optimizer eliminates partitions that cannot match a date predicate, and each partition lives in its own filegroup so it can be placed on a different storage tier. Marking the oldest filegroup read-only prevents accidental modification while keeping the data available to the same queries.

Exam trap

The trap here is assuming that compression or a columnstore index can move old data to cheaper storage, when only partition-to-filegroup mapping changes where rows physically live.

51
MCQhard

A company is designing a distributed NoSQL database deployment using MongoDB. They need to ensure high availability and automatic failover in the event that a primary node becomes unreachable. What must the architect configure to achieve this?

A.Implement database mirroring using the primary-secondary synchronous replication setting.
B.Increase the write concern to 'all' to force nodes to write simultaneously.
C.Configure a sharded cluster with a single mongos instance.
D.Deploy a MongoDB Replica Set with at least three nodes.
AnswerD

A MongoDB replica set with at least three nodes provides automatic failover: members hold an election and promote a secondary to primary when the current primary becomes unreachable. Three nodes allow a majority quorum to elect a new primary, satisfying the high availability and automatic failover requirements.

Why this answer

MongoDB achieves high availability and automatic failover through replica sets, which require a minimum of three nodes to maintain a majority for elections. Deploying a replica set with at least three nodes (option D) ensures that if the primary becomes unreachable, the remaining nodes can elect a new primary automatically, providing both redundancy and failover. This is the standard MongoDB architecture for HA.

Exam trap

DS0-001 often tests whether candidates confuse replication features from other databases (like SQL Server mirroring) or scaling features (sharding) with MongoDB's actual HA mechanism, which is the replica set with a majority of voting nodes.

How to eliminate wrong answers

Option A is wrong because MongoDB does not use 'database mirroring' with primary-secondary synchronous replication as a feature — that terminology belongs to SQL Server, and MongoDB's replication model is based on replica sets with oplog-based asynchronous replication. Option B is wrong because increasing write concern to 'all' only controls how many nodes must acknowledge a write before it returns; it does not provide failover capability and can actually reduce availability by requiring all nodes to be up. Option C is wrong because a sharded cluster with a single mongos instance addresses horizontal scaling and routing, not high availability — a single mongos is itself a single point of failure, and sharding does not provide automatic primary failover.

52
MCQhard

A data architect is designing a schema for a high-concurrency e-commerce system. They decide to use a surrogate key instead of a natural key for the Orders table to ensure join performance and data integrity. What is the primary advantage of this design choice?

A.It reduces the storage size of the index compared to a string-based natural key
B.It prevents the insertion of duplicate records
C.It ensures that the database complies with ACID requirements
D.It automatically creates a clustered index on the table
AnswerA

Integer-based surrogate keys are highly efficient for indexing and foreign key joins.

Why this answer

A surrogate key (e.g., an auto-incrementing integer or GUID) is typically much smaller than a natural key such as a string-based order number or composite business key. Because the surrogate key is used in indexes and foreign key relationships, the smaller key size reduces index page size, allowing more index entries per page, which improves join performance and reduces I/O. This is the primary advantage in a high-concurrency e-commerce system where Orders is joined frequently.

Exam trap

DS0-001 often tests whether candidates conflate the benefits of a surrogate key (performance, narrow index) with the benefits of a primary key constraint (uniqueness) or ACID properties, which are unrelated to key type selection.

How to eliminate wrong answers

Option B is wrong because preventing duplicate records is the job of a unique constraint or primary key, not the surrogate key itself — a surrogate key is unique by construction but does not prevent duplicate business data unless a separate unique constraint is applied to the natural key. Option C is wrong because ACID compliance is a property of the database engine's transaction management, not of the key type chosen; surrogate keys do not ensure atomicity, consistency, isolation, or durability. Option D is wrong because creating a clustered index is a separate DDL decision — a surrogate primary key is often clustered by default in SQL Server, but this is a configuration behaviour, not an automatic guarantee, and it is not the primary advantage of using a surrogate key.

53
MCQeasy

In the context of database deployment, what is the primary purpose of a staging environment?

A.To test the deployment and migration process
B.To develop new features in isolation
C.To handle production workload during maintenance
D.To perform unit testing on code
AnswerA

A staging environment mirrors production so the deployment and migration scripts can be rehearsed against realistic data and schema before release. This validates the process itself, catching failures in migration order, dependencies and rollback, satisfying the stem's requirement to test deployment and migration safely.

Why this answer

A staging environment is designed to mirror the production environment as closely as possible, allowing teams to test the deployment and migration process before it goes live. This includes validating scripts, configurations, and data migrations to catch issues that might not appear in development. The primary purpose is to ensure a smooth transition to production by rehearsing the actual deployment steps.

Exam trap

The trap here is confusing staging with development or testing environments; candidates might think staging is for feature development or unit testing, but it is specifically for deployment and migration validation.

How to eliminate wrong answers

Option B is wrong because developing new features in isolation is typically done in a development environment, not a staging environment. Option C is wrong because handling production workload during maintenance is the role of a high-availability or disaster recovery environment, not staging. Option D is wrong because unit testing is performed in development or test environments, not staging, which focuses on integration and deployment testing.

54
MCQhard

A database administrator is deploying a new database on a cloud platform. The organization requires that the database automatically scale storage capacity as data grows, without manual intervention, and that it maintain high availability across multiple availability zones. Which cloud database deployment option should the administrator choose?

A.A NoSQL database deployed on a cluster of VMs across multiple zones with manual sharding.
B.A data warehouse service with columnar storage and automatic scaling of compute nodes.
C.A managed relational database service configured with a multi-AZ deployment and storage auto-scaling enabled.
D.A single virtual machine running a self-managed database instance with attached SSD storage.
AnswerC

Managed relational database services, such as Amazon RDS or Azure SQL Database, offer multi-AZ deployments for high availability and storage auto-scaling that automatically increases storage as data grows. These features meet the requirements without manual intervention. The service handles replication and failover, ensuring high availability across availability zones.

Why this answer

A managed relational database service with multi-AZ deployment and storage auto-scaling automatically increases storage and maintains a standby replica in another availability zone for failover. This satisfies both automatic scaling and high availability. Self-managed, NoSQL with manual sharding, and data warehouse options do not meet these specific requirements.

Exam trap

The trap here is assuming that any cloud database with replication or scaling features will meet both requirements, when only a managed service with multi-AZ and storage auto-scaling does so automatically.

55
MCQmedium

A data engineer is deploying a new MySQL 8.0 instance that will store customer records for users in the European Union. The compliance team requires that all data at rest be encrypted and that encryption keys be managed separately from the database server. Which action should the engineer take?

A.Enable binary log encryption and rotate the binary log encryption key every 30 days.
B.Configure SSL/TLS for all client connections and require X.509 certificates for authentication.
C.Enable InnoDB tablespace encryption using a keyring plugin backed by a remote key management service.
D.Enable Transparent Data Encryption at the operating system level using eCryptfs on the data directory.
AnswerC

InnoDB tablespace encryption encrypts data files, redo logs, and undo logs at rest. Using a keyring plugin such as keyring_okv or a component that integrates with a remote key management service keeps the master encryption key off the database host, satisfying the requirement that keys be managed separately. This is the standard MySQL approach for encryption at rest with external key custody.

Why this answer

InnoDB tablespace encryption with a keyring plugin connected to a remote key management service encrypts the tablespaces, redo logs, and undo logs while keeping the master key outside the database host. This directly meets both the at-rest encryption mandate and the separation-of-key-custody requirement, unlike transport encryption or filesystem-level encryption.

Exam trap

The trap here is confusing encryption in transit with encryption at rest, so a candidate may select TLS configuration when the requirement is about stored data.

56
MCQeasy

An organization is deploying a new MySQL 8.0 database for an order-entry application. The team needs the database to enforce referential integrity so that an order row cannot reference a customer that does not exist. Which deployment step accomplishes this?

A.Add a CHECK constraint on orders.customer_id that verifies the value is greater than zero.
B.Grant the application account only SELECT and INSERT privileges on the orders table.
C.Create the orders table with an InnoDB FOREIGN KEY constraint referencing the customers table primary key.
D.Create a unique index on the customer_id column of the orders table so duplicate references are impossible.
AnswerC

A FOREIGN KEY constraint on the orders table referencing the customers primary key makes the storage engine reject any insert or update whose customer identifier has no matching parent row, and it also blocks deletion of a parent that still has children. This is declarative referential integrity enforced by the database itself, which is precisely what the order-entry deployment requires.

Why this answer

Referential integrity is enforced when the child table carries a foreign key that names the parent table and column. The engine then validates every write against the parent and applies the configured action on parent deletion or update. Uniqueness, privileges, and range checks each constrain a different aspect of the data and none of them can detect a reference to a missing customer.

Exam trap

The trap here is confusing a constraint that limits duplicate values with one that guarantees the referenced row actually exists.

57
MCQhard

An organization is deploying a database that requires a Recovery Time Objective (RTO) of less than one minute. Which backup and recovery strategy is most appropriate?

A.Transaction log shipping to a standby server
B.Tape-based full backups
C.Daily incremental backups
D.High-availability clustering
AnswerD

High-availability clustering satisfies the sub-one-minute RTO through automatic failover to a synchronised standby node, typically completing in seconds without data restoration. Unlike backup-and-restore approaches, which require replaying data and cannot meet such tight recovery windows, clustering keeps a live replica continuously ready, ensuring near-instant service resumption.

Why this answer

An RTO under one minute demands near-instantaneous failover with minimal or zero data loss, which high-availability clustering provides by keeping a synchronized standby node ready to take over automatically. Clustering solutions such as SQL Server Always On availability groups or Oracle RAC detect failure and redirect workloads within seconds, satisfying sub-minute recovery. Log shipping, tape, and daily incrementals all involve longer recovery windows.

Exam trap

DS0-001 often tests whether candidates equate log shipping with automatic failover, so the trap is choosing transaction log shipping because it sounds like continuous replication when its RTO is actually minutes, not seconds.

How to eliminate wrong answers

Option A is wrong because transaction log shipping typically has a lag measured in minutes and requires manual or scripted failover, so it rarely meets a sub-minute RTO. Option B is wrong because tape-based full backups require physically locating, mounting, and restoring tapes, which takes hours to days. Option C is wrong because daily incremental backups only capture changes once per day, so recovery requires restoring a full backup plus incrementals, far exceeding one minute.

58
MCQhard

A database developer is implementing a partitioning strategy for a large table containing historical financial records. The requirement is to allow for efficient archival of data older than five years. Which partitioning strategy should be chosen?

A.Range partitioning
B.Composite partitioning
C.List partitioning
D.Hash partitioning
E.Round-robin partitioning
AnswerA

Range partitioning divides rows by contiguous key values such as date, so records older than five years occupy distinct partitions that can be archived or dropped as a unit. This directly satisfies the efficient archival requirement, unlike hash or list partitioning, which scatter chronological data across partitions.

Why this answer

Range partitioning divides data by contiguous value ranges of a column — for historical financial records, partitioning by date range (e.g., yearly or monthly) places each period's rows in its own partition. Archiving data older than five years then becomes a simple partition switch or drop, which is a metadata operation rather than a row-by-row DELETE. This makes range partitioning the natural fit for time-based archival.

Exam trap

DS0-001 often tests the confusion between partitioning strategies — candidates who focus on even distribution pick hash partitioning, missing that time-based archival requires range partitioning to preserve chronological boundaries.

How to eliminate wrong answers

Option B is wrong because composite partitioning combines two strategies (e.g., range then hash) and adds complexity without benefit when a single date range suffices for archival. Option C is wrong because list partitioning assigns rows to partitions based on discrete enumerated values (e.g., region codes), which does not map cleanly to a continuous age threshold like 'older than five years.' Option D is wrong because hash partitioning distributes rows evenly across partitions for load balancing, destroying the chronological ordering needed for efficient archival. Option E is wrong because round-robin partitioning (not supported in most major RDBMSs) also scatters rows without preserving time order.

59
MCQeasy

A database administrator is deploying a new PostgreSQL 15 cluster on Linux and wants to protect against data loss if a single disk in the data volume fails. The server has four identical 1 TB SSDs available. Which RAID level should the administrator configure for the PostgreSQL data directory?

A.RAID 0
B.RAID 10
C.RAID 5
D.RAID 1
AnswerB

RAID 10 combines mirroring and striping, providing both fault tolerance and high performance. With four 1 TB SSDs, it yields a 2 TB usable volume that survives one disk failure per mirrored pair. This matches the requirement to protect against a single disk failure while maintaining the I/O throughput PostgreSQL needs for transaction processing.

Why this answer

RAID 10 mirrors data across pairs of disks and then stripes across those pairs, delivering redundancy plus the high random I/O throughput a PostgreSQL data directory requires. It tolerates at least one disk failure and often more, depending on which disks fail, while avoiding the parity write penalty of RAID 5 and the total lack of protection in RAID 0.

Exam trap

The trap here is assuming any redundant RAID level is equally suitable for a database, when parity-based RAID 5 imposes a write penalty that harms transaction performance.

60
MCQmedium

A database administrator is deploying a new MongoDB 6.0 replica set to store product catalog data. The business requires that the database remain available for reads and writes even if a single data center becomes unreachable, and that writes be acknowledged by a majority of replica set members before returning success. Which deployment topology and write concern should the administrator configure?

A.Deploy a three-member replica set in a single data center and set the write concern to w:majority.
B.Deploy a three-member replica set with members distributed across two data centers, and set the write concern to w:1.
C.Deploy a five-member replica set with members distributed across three data centers, and set the write concern to w:majority.
D.Deploy a four-member replica set with two members in each of two data centers and set the write concern to w:2.
AnswerC

A five-member replica set spread across three data centers can tolerate the loss of any single data center while still maintaining a majority of three members to elect a primary. The w:majority write concern ensures each write is acknowledged by a majority of voting members before success is returned, meeting both availability and durability requirements.

Why this answer

The requirement for continued reads and writes after a single data center failure means the replica set must retain a majority of voting members even when one site is lost. A five-member set across three data centers keeps a majority of three after losing one site. Using w:majority ensures writes are acknowledged by a majority of members, satisfying the durability requirement.

Exam trap

The trap here is assuming that any multi-member replica set with majority write concern automatically survives a data center outage, without verifying that the remaining members still form a majority.

61
MCQmedium

You are deploying a MySQL database on Linux and want to ensure that the database files are isolated from system logs for performance reasons. Which MySQL configuration variable should you modify to specify the data directory location?

A.tmpdir
B.log_error
C.basedir
D.datadir
AnswerD

datadir defines the filesystem path where MySQL stores its data files, letting you place them on separate storage from system logs. That directly satisfies the isolation-for-performance constraint; other variables govern logging, connections or caching, not data file location.

Why this answer

The datadir variable in MySQL specifies the directory where the database files (such as .frm, .ibd, and ibdata files) are stored. By modifying datadir, you can isolate these files from system logs, improving I/O performance by placing them on separate storage. This is the correct variable for changing the data directory location.

Exam trap

The trap here is confusing basedir with datadir: basedir is for binaries, datadir is for data files. Candidates often mix these up, especially when thinking about installation versus data storage.

How to eliminate wrong answers

Option A is wrong because tmpdir specifies the directory for temporary files, not the persistent database files. Option B is wrong because log_error defines the location of the error log, which is a system log, not the data directory. Option C is wrong because basedir sets the installation directory for MySQL binaries and shared libraries, not the data storage location.

62
MCQeasy

Which database feature is used to automatically maintain data integrity by ensuring that a value in a child table exists as a primary key in a parent table?

A.Foreign key constraint
B.Check constraint
C.Unique constraint
D.Default constraint
AnswerA

A foreign key constraint enforces referential integrity by rejecting any child-row insert or update whose value lacks a matching primary key in the parent table, satisfying the stem's requirement for automatic integrity maintenance. Unlike triggers or application checks, enforcement occurs at the database engine level, so no application code is needed.

Why this answer

A foreign key constraint enforces referential integrity by requiring that values in a child table's foreign key column match existing primary key (or unique key) values in the parent table. This automatically prevents orphaned records and maintains data consistency across related tables. It is the standard mechanism for parent-child integrity.

Exam trap

DS0-001 often tests the confusion between constraints — candidates pick unique or check constraints because they sound like they enforce integrity, but only foreign keys enforce cross-table referential integrity.

How to eliminate wrong answers

Option B is wrong because a check constraint validates that column values meet a Boolean condition (e.g., age > 0) within a single table; it does not enforce cross-table relationships. Option C is wrong because a unique constraint ensures no duplicate values in a column or set of columns but does not reference another table. Option D is wrong because a default constraint supplies a value when none is specified; it has no role in referential integrity.

63
MCQeasy

Which document is essential to create during the database planning phase to define the specific requirements, constraints, and business rules of the proposed system?

A.Database Requirements Specification
B.User Access Policy
C.Disaster Recovery Plan
D.Database Schema Diagram
AnswerA

The Database Requirements Specification captures functional and non-functional requirements, constraints and business rules before design begins, giving developers and stakeholders an agreed baseline. It directly satisfies the planning-phase need to define the proposed system's specific requirements, constraints and business rules.

Why this answer

The Database Requirements Specification is the planning-phase document that captures functional requirements, constraints, business rules, and assumptions for the proposed database. It is the authoritative input for later design, schema, and deployment decisions. Without it, designers lack a baseline to validate the schema against.

Exam trap

DS0-001 often tests the confusion between requirements-phase artifacts and design-phase artifacts, tempting candidates to pick the schema diagram because it sounds more 'database-specific'.

How to eliminate wrong answers

Option B is wrong because a User Access Policy is a security artifact produced later (or in parallel) and covers authorization rules, not the full set of system requirements and business rules. Option C is wrong because a Disaster Recovery Plan addresses availability and recovery objectives, not the functional and business requirements of the system. Option D is wrong because a Database Schema Diagram is a design artifact created after requirements are gathered — it represents the solution, not the requirements.

Ready to test yourself?

Try a timed practice session using only Database Planning And Deployment questions.