Courseiva

CCNA Database Planning And Deployment Questions

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

1
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

Firewalls are the most common cause of connection failures after verifying the service is running.

Why this answer

Firewall rules frequently block the default ports (e.g., 3306 for MySQL, 1433 for SQL Server) by default upon OS deployment.

2
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 databases support flexible schemas, making them ideal for JSON-like data.

Why this answer

Document-oriented databases (NoSQL) are specifically designed to handle semi-structured data without the rigid schema requirements of relational databases.

3
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

The '1' represents an off-site, geographically isolated backup.

Why this answer

The '3-2-1' rule means 3 copies of data, 2 different media types, and 1 copy stored off-site to protect against local disasters.

4
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

This restricts network access to the database to trusted sources only.

Why this answer

Restricting host access and enforcing secure authentication methods are fundamental to database hardening.

5
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

RDBMS provides strong ACID consistency; NoSQL often settles for eventual consistency.

Why this answer

Data structure, scalability requirements, and ACID transaction needs are the primary drivers in this architectural decision.

6
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 load determines the necessary CPU and memory resources.

Why this answer

Capacity planning requires evaluating historical growth, current transactional load, and the data retention policies that dictate long-term storage needs.

7
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

IOPS measure the number of read/write operations per second, vital for random transaction workloads.

Why this answer

IOPS (Input/Output Operations Per Second) is the primary metric for random I/O performance, while throughput is for sequential operations.

8
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 involves the permanent removal of data from the system once it is no longer required.

Why this answer

Purging or deletion is the standard final step in the data lifecycle after data has been archived and passed its retention period.

9
MCQmedium

An organization is deploying a new SQL Server database. The storage administrator needs to ensure that the transaction logs are stored on a separate physical volume from the data files to improve performance and recoverability. Which configuration step accomplishes this?

A.Implementing a striped RAID 0 volume
B.Enabling FileStream on the target volume
C.Modifying the default file locations in SQL Server Management Studio (SSMS) Server Properties
D.Increasing the recovery model to Full
AnswerC

Setting default file locations in instance properties ensures that data and log files are routed to different volumes during database creation.

Why this answer

SQL Server allows specifying separate file paths for the primary data file (.mdf) and the transaction log (.ldf) during the initial database creation process.

10
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 ensures that users only have the permissions necessary to perform their jobs (least privilege).

Why this answer

Auditing, encryption, and granular access control (roles) are cornerstones of data security compliance.

11
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

GoldenGate provides real-time capture and delivery, enabling near-zero downtime migrations.

Why this answer

Oracle GoldenGate allows for real-time data replication, which is ideal for minimizing downtime during migrations.

12
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

Using the same service accounts ensures consistent operational behavior.

Why this answer

A consistent environment requires standardized OS settings, security policies, and database configurations.

13
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

Read-only replicas and proper indexing strategies are key to offloading work from the primary write instance.

14
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 rules restrict access at the network layer, preventing unauthorized IP connections.

Why this answer

Firewall rules (either host-based or network-based) are the primary way to restrict database access to only authorized application server IPs.

15
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 logs are write-intensive and impact performance if slow.

Why this answer

Separating data, logs, and backups across different physical drives reduces I/O contention and improves recovery speed.

16
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

High latency indicates that storage is a bottleneck for performance.

Why this answer

Monitoring CPU and I/O wait times helps identify if the hardware can support the current query volume.

17
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

Tracking changes in source control allows for easier rollbacks and audits.

Why this answer

Automation, version control, and auditability are the core benefits of a formal migration process.

18
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

Bloat occurs when pages are partially empty due to row deletions or updates.

Why this answer

Database bloat is the accumulation of unused space within data files, often caused by frequent updates and deletes that leave empty pages that aren't automatically reclaimed.

19
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 ensures that a local disaster doesn't destroy both sites.

Why this answer

RPO, RTO, and geographic location are the three pillars of a comprehensive disaster recovery strategy.

20
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 allows the query planner to make informed decisions about join types and access paths.

Why this answer

Updating statistics (e.g., ANALYZE TABLE or UPDATE STATISTICS) provides the query optimizer with the necessary information to choose the most efficient execution plan.

21
MCQeasy

A database administrator is planning to normalize a flat-file database containing customer orders. The administrator identifies that customer contact information is repeated for every order record. Which normalization form should the administrator implement to move this contact information to a separate table?

A.First Normal Form (1NF)
B.Second Normal Form (2NF)
C.Boyce-Codd Normal Form (BCNF)
D.Third Normal Form (3NF)
AnswerB

2NF removes partial functional dependencies by separating data into distinct tables.

Why this answer

Moving repeating groups or redundant data into separate tables to eliminate partial dependencies is the goal of Second Normal Form (2NF).

22
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

Because the secondary may lag, failover can result in lost transactions.

Why this answer

Asynchronous replication acknowledges transactions on the primary before they reach the secondary, meaning some committed data might not have been replicated, leading to data loss upon failover.

23
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

The data dictionary is the centralized source of truth for the database schema.

Why this answer

The data dictionary contains metadata about the database, such as table definitions, column types, and constraints, acting as the central repository for database structure.

24
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 validates performance under realistic workload conditions.

Why this answer

Load testing simulates expected user traffic to determine if the database and hardware can handle the production workload without bottlenecking.

25
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

shared_buffers determines how much memory PostgreSQL uses for caching data.

Why this answer

shared_buffers is the primary parameter that defines how much memory the database server uses for caching data.

26
Multi-Selectmedium

Which TWO database deployment configurations help mitigate the impact of a hardware failure on the primary storage controller?

Select 2 answers
A.Full recovery model enabled
B.Multi-path I/O (MPIO) configuration
C.RAID 10 configuration for data volumes
D.SQL Server Always On
E.Database partitioning
AnswersB, C

MPIO provides redundant paths between the server and storage, protecting against controller failure.

Why this answer

Redundancy at the hardware/storage layer is achieved through RAID configurations and multi-path I/O (MPIO).

27
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

Database Replay allows for accurate capacity planning by replaying captured workloads on new hardware.

Why this answer

Oracle Real Application Testing (RAT) and its sub-feature Database Replay are specifically designed to capture production workloads and replay them in a test environment to forecast hardware needs.

28
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

SQL Server best practices recommend creating multiple tempdb files to reduce contention on system tables.

Why this answer

In SQL Server, tempdb contention is often mitigated by increasing the number of data files based on the number of logical processors.

29
MCQhard

A database administrator needs to implement Row-Level Security (RLS) to ensure that users can only view records belonging to their specific department. Which database component must be created to enforce this logic?

A.A database trigger
B.A stored procedure
C.A database view
D.A security predicate function
AnswerD

A predicate function defines the logic used by the security policy to filter rows.

Why this answer

RLS in SQL Server requires a security predicate function (a table-valued function) that returns a filter condition applied by a security policy.

30
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 backup is the last line of defense if the migration fails.

Why this answer

Backing up the data and testing the migration script in a non-production environment are standard safety practices.

31
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

This component links specific actions to the audit logs, ensuring visibility into privileged activity.

Why this answer

A SQL Server Audit or similar database-level auditing feature allows the tracking of specific actions (like ALTER or DROP) performed by privileged accounts.

32
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 ensures the secondary is fully up to date, providing zero data loss failover.

Why this answer

Synchronous-commit Availability Groups ensure that transactions are committed on the secondary replica before the primary acknowledges the transaction, preventing data loss.

33
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

Partitioning and columnstore indexing are the two primary technologies for managing and querying large, historical datasets.

34
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

This identifies potential breaking changes between the legacy version and the target managed service.

Why this answer

A compatibility assessment tool evaluates features, syntax, and dependencies to identify what needs to be changed before moving to a managed service like Azure SQL or AWS RDS.

35
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 forces the database to use only validated cryptographic algorithms.

Why this answer

Enabling FIPS-compliant encryption modules ensures that all cryptographic operations performed by the database meet the federal security standard.

36
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

Normalization is a logical design process to reduce data redundancy.

Why this answer

Logical design focuses on the structure of the data itself (entities, attributes, relationships) rather than physical storage details.

37
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

TDE encrypts the database, log files, and backups at rest without requiring application code changes.

Why this answer

Transparent Data Encryption (TDE) provides encryption for the entire database file at the storage level, which is a standard deployment requirement for cloud databases.

38
MCQmedium

You are reviewing a deployment plan for a multi-tenant database. To ensure security, you want to ensure that each tenant's data is logically isolated. Which strategy is most effective for this?

A.Using a shared table with a TenantID column
B.Creating separate database instances for every tenant
C.Implementing row-level security on all tables
D.Using separate schemas for each tenant
AnswerD

Schema isolation provides a robust logical boundary between tenant datasets.

Why this answer

Implementing separate schemas for each tenant provides a logical separation that allows for efficient management while keeping data isolated within the same instance.

39
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 replica set provides redundancy and automatic election of a new primary node.

Why this answer

A Replica Set provides automatic failover by electing a new primary when the existing primary fails.

40
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

Surrogate keys are immutable, integer-based identifiers that remain stable even if the underlying natural business data (like an order number) changes.

41
MCQhard

A database is experiencing high lock contention on a specific table during batch update processes. What is the most effective way to resolve this issue without changing the application code?

A.Switching to an asynchronous commit model
B.Increasing the memory allocation for the buffer pool
C.Enabling snapshot isolation
D.Dropping all non-clustered indexes
AnswerC

Snapshot isolation uses row versioning to allow reads to proceed without waiting for write locks.

Why this answer

Implementing snapshot isolation (or read-committed snapshot isolation) allows readers to access the versioned data without blocking writers, significantly reducing contention.

42
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

Staging allows for the verification of the actual installation and upgrade steps.

Why this answer

A staging environment is a mirror of production designed to test deployment scripts, configurations, and data migration processes before the final production rollout.

43
Multi-Selecteasy

Which TWO of the following are essential components of a robust database backup plan?

Select 2 answers
A.Testing of backup restoration procedures
B.Automatic database schema updates
C.Periodic full and incremental backups
D.Installation of the latest OS patches
E.Off-site storage of backup media
AnswersC, E

Regular backups are the foundation of data recovery.

Why this answer

A complete backup plan must account for both the schedule (frequency) and the location (off-site storage for disaster recovery).

44
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

HA clusters offer automatic failover, typically achieving RTOs within seconds.

Why this answer

Always-On availability groups or high-availability clusters allow for near-instant failover, meeting very aggressive RTOs.

45
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 is ideal for time-series data, allowing for efficient partition dropping or archiving.

Why this answer

Range partitioning allows the database to group data by specific values such as dates, making it very simple to drop an entire partition when data reaches its archival age.

46
MCQhard

A database architect is setting up an Always On Availability Group in SQL Server. To ensure that the secondary replica can be used for read-only workloads without impacting the primary node's performance, how should the 'Readable Secondary' property be configured?

A.Set the synchronous commit mode to 'Asynchronous' on all nodes.
B.Set to 'Yes' and force all writes through the secondary replica.
C.Set to 'Read-intent only' to allow access based on application connection strings.
D.Set to 'No' and route traffic via a secondary listener.
AnswerC

This allows offloading read-only traffic to the secondary replica effectively.

Why this answer

The Readable Secondary property allows you to designate which replicas accept read-only connections. Setting this to 'Read-intent only' is a common practice for offloading read-only reporting queries.

47
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 location of the database data files.

Why this answer

The datadir variable in the [mysqld] section of the my.cnf file specifies the location where database files are stored.

48
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

Foreign keys link tables and enforce referential integrity.

Why this answer

A Foreign Key constraint is the standard relational database mechanism for enforcing referential integrity between tables.

49
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

This document captures all business, technical, and performance needs for the deployment.

Why this answer

A Database Requirements Specification (DRS) serves as the roadmap for the database build, ensuring all stakeholders agree on the system scope.

Ready to test yourself?

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