Courseiva

CompTIA DataSys+ (DS0-001) (DS0-001) (DS0-001) — Questions 175

216 questions total · 3pages · All types, answers revealed

Page 1 of 3

Page 2
1
MCQmedium

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

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

Existing data must be migrated to be stored with the new collation.

Why this answer

Changing a database collation is a destructive operation. It requires re-creating the database or recreating all tables, as column-level collations are not automatically updated for existing data.

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

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.

3
MCQhard

A developer needs to ensure that a 'Customer_ID' field in a 'Orders' table always references a valid ID in the 'Customers' table. Which constraint should be applied?

A.PRIMARY KEY
B.UNIQUE
C.CHECK
D.FOREIGN KEY
AnswerD

FOREIGN KEY enforces referential integrity between tables.

Why this answer

A foreign key constraint ensures referential integrity between two tables by requiring that the value in the child table exists in the parent table.

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

5
MCQeasy

Which SQL function is used to convert a NULL value in a query result into a default value, such as 0?

A.NVL
B.COALESCE
C.IFNULL
D.ISNULL
AnswerB

COALESCE is the standard ANSI SQL function for handling NULLs.

Why this answer

COALESCE is a standard function used to return the first non-null value in a list, often used to replace NULLs.

6
MCQmedium

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

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

This system view displays information about current backend processes and their active queries.

Why this answer

pg_stat_activity provides information about the current state of each backend process, including the query being executed.

7
MCQeasy

Which SQL statement is used to remove a table entirely from the database?

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

DROP TABLE deletes the entire structure.

Why this answer

The DROP TABLE statement removes the definition and all data within the table permanently.

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

9
MCQeasy

Which access control model should be implemented to ensure that a user can only access files based on their specific job role?

A.Discretionary Access Control (DAC)
B.Role-Based Access Control (RBAC)
C.Mandatory Access Control (MAC)
D.Network Access Control (NAC)
AnswerB

RBAC is the standard for role-centric access management.

Why this answer

Role-Based Access Control (RBAC) maps permissions to job functions rather than individual users.

10
Multi-Selectmedium

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

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

Offloads read traffic from the primary node.

Why this answer

Adding read-replicas, implementing caching, and creating appropriate indexes are all standard methods to offload and accelerate read operations.

11
MCQmedium

A transaction involves multiple updates that must either all succeed or all fail. Which command ensures this behavior?

A.GRANT
B.SAVEPOINT
C.BEGIN
D.COMMIT
AnswerD

COMMIT is the command that confirms and saves a transaction.

Why this answer

COMMIT finalizes the transaction, while ROLLBACK reverts it; together they ensure atomicity.

12
MCQmedium

A developer wants to use a subset of production data for testing. Which method ensures the test data retains its structure while protecting privacy?

A.Database Snapshotting
B.Database Migration
C.Data Masking/De-identification
D.Full Database Clone
AnswerC

Masking creates safe data for testing that looks like real data.

Why this answer

Data masking or de-identification replaces real values with realistic but fake values, maintaining schema integrity.

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

14
MCQhard

Which of the following is a limitation of the 'Star Schema' design compared to a fully normalized schema?

A.Inability to store large data volumes
B.Slower query performance
C.Increased data redundancy
D.Difficulty in writing joins
AnswerC

Denormalization in dimensions introduces redundancy.

Why this answer

Star schemas increase redundancy by duplicating attributes in dimension tables, which can lead to larger storage footprints.

15
MCQmedium

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

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

Copy-only backups are designed to not affect the standard backup and restore sequence.

Why this answer

A 'Copy-only' backup creates a copy of the database or log without affecting the differential or log backup sequence.

16
MCQhard

Your organization uses Azure Active Directory for access management. You need to ensure that database administrators can only access a specific production Azure SQL instance during a scheduled 4-hour maintenance window. Which control is most appropriate?

A.Azure AD Privileged Identity Management (PIM)
B.IP Firewall rules on the SQL Server
C.Service Principals with managed identity
D.Azure RBAC with Conditional Access policies
E.SQL Server Audit logs
AnswerA

PIM allows for time-bound and approval-based access elevation.

Why this answer

Privileged Identity Management (PIM) provides just-in-time access, which is ideal for time-bound administrative access.

17
Multi-Selecthard

Which TWO of the following actions are considered best practices for maintaining data integrity in a data pipeline?

Select 2 answers
A.Automated schema validation
B.Using only manual entry
C.Hardcoding credentials in scripts
D.Ignoring error logs
E.Logging data quality metrics
AnswersA, E

Ensures data matches expected structure.

Why this answer

Implementing automated schema validation and logging data quality metrics are critical for identifying and fixing issues early.

18
Multi-Selecthard

Which THREE of the following represent common data transformation tasks in a preparation workflow?

Select 3 answers
A.Data cleaning
B.Renaming columns
C.Database deletion
D.Data filtering
E.Hardware installation
AnswersA, B, D

Fixing errors or missing values.

Why this answer

Data cleaning, data filtering, and column renaming are standard tasks to ready data for analysis.

19
MCQhard

A company subject to GDPR needs to ensure that user data is deleted upon request across all distributed nodes in a NoSQL cluster. Which process is most critical to demonstrate compliance?

A.Snapshotting
B.Database Sharding
C.Cache clearing
D.Automated Data Lineage and Lifecycle Tracking
AnswerD

Data lineage ensures the organization knows where all copies of PII reside.

Why this answer

Data lifecycle management, specifically mapping data lineage and retention policies, is required to prove that data was effectively purged from all replicas.

20
Multi-Selectmedium

Which TWO of the following actions can a DBA take to reduce the size of a database data file?

Select 2 answers
A.Reorganize or rebuild fragmented indexes
B.Execute DBCC SHRINKFILE
C.Create a new database user
D.Perform a full database backup
E.Clear the SQL Server error log
AnswersA, B

This can help defragment space, allowing for shrinkage.

Why this answer

Shrinking the database and reorganizing/rebuilding tables to reclaim space are valid ways to reduce the footprint of a data file.

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

22
Multi-Selectmedium

Which TWO of the following are recognized components of a mature Data Governance framework? (Select TWO)

Select 2 answers
A.Data Quality Standards
B.Office Security Badge Access
C.Data Cataloging
D.Hardware Procurement Policy
E.Network Throughput Monitoring
AnswersA, C

Ensuring data is accurate and consistent is a core pillar.

Why this answer

Data Cataloging and Data Quality standards are fundamental components of a governance framework.

23
Multi-Selecteasy

Which TWO of the following are benefits of using a data warehouse?

Select 2 answers
A.Complete replacement of all source systems
B.Optimization for complex analytical queries
C.Centralized data storage
D.Automated AI decision making
E.Low cost for real-time transactional updates
AnswersB, C

Designed for heavy analytical loads.

Why this answer

Data warehouses provide a centralized source of truth and are optimized for complex query performance.

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

25
MCQhard

An organization is migrating sensitive financial records to a cloud environment. Which security control ensures that only authorized applications can decrypt the data?

A.Database Replication
B.Cloud Hardware Security Module (Cloud HSM)
C.Database Triggers
D.Shared Responsibility Model
AnswerB

Cloud HSMs provide high-assurance storage for keys used by authorized applications.

Why this answer

Hardware Security Modules (HSM) provide the root of trust for encryption keys required by applications to decrypt data.

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

27
MCQmedium

When performing sentiment analysis on customer feedback, which preprocessing step is most critical to ensure words like 'Running' and 'run' are treated as the same base concept?

A.Stop-word removal
B.Tokenization
C.Feature scaling
D.Lemmatization
AnswerD

Lemmatization maps variations of a word to a root lemma.

Why this answer

Lemmatization or stemming reduces words to their root or base form.

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

29
Multi-Selecteasy

A company is conducting a data governance audit. Which TWO of the following items should be verified to ensure proper data security?

Select 2 answers
A.The breakroom refrigerator is energy efficient
B.The database server has a secondary monitor
C.The office printer is connected to a UPS
D.User access rights are reviewed periodically
E.Encryption-at-rest is enabled on all databases
AnswersD, E

Regular reviews ensure the principle of least privilege.

Why this answer

Audits verify the implementation of technical controls like encryption and the existence of administrative processes like access reviews.

30
MCQeasy

Which regulatory act specifically governs the protection of healthcare-related data?

A.SOX
B.PCI DSS
C.HIPAA
D.GDPR
AnswerC

HIPAA is the primary regulation for healthcare data privacy.

Why this answer

HIPAA sets the standard for protecting sensitive patient health information in the United States.

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

32
Multi-Selecthard

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

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

Indicates wasted space within the data pages.

Why this answer

High scan latency, decreased query performance, and low page density are all common signs that indexes need maintenance.

33
MCQhard

An application requires an automatic timestamp for every row inserted into an 'Audit' table. Which feature should the developer implement?

A.Index
B.Constraint
C.Trigger
D.View
AnswerC

A trigger can automatically inject a timestamp during an INSERT.

Why this answer

A trigger is a database object that automatically executes code when a specific event (like INSERT) occurs on a table.

34
Multi-Selecteasy

Which TWO of the following are DDL (Data Definition Language) commands?

Select 2 answers
A.DROP
B.INSERT
C.CREATE
D.SELECT
E.UPDATE
AnswersA, C

Used to remove objects.

Why this answer

CREATE and DROP are DDL commands used to define or modify database structures.

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

36
Multi-Selectmedium

Which THREE of the following are considered ACID properties in database transactions?

Select 3 answers
A.Atomicity
B.Scalability
C.Consistency
D.Availability
E.Isolation
AnswersA, C, E

All or nothing operation.

Why this answer

ACID stands for Atomicity, Consistency, Isolation, and Durability.

37
MCQmedium

A database administrator wants to move a heavily accessed table to a different physical storage tier to improve performance. In SQL Server, what is the best way to move the table data while retaining the clustered index?

A.Use the Move-Item cmdlet
B.Shrink the database
C.DROP and RECREATE index on a new filegroup
D.Disable the index
AnswerC

Moving the clustered index to a different filegroup physically moves the base table data.

Why this answer

Moving the clustered index to a new filegroup moves the data pages of the table to that filegroup, effectively changing the physical storage location.

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

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

40
Multi-Selecteasy

Which THREE of the following are common data types in relational databases?

Select 3 answers
A.BOOLEAN
B.PIVOT
C.DASHBOARD
D.VARCHAR
E.INTEGER
AnswersA, D, E

Stores true/false values.

Why this answer

Integer, Varchar, and Boolean are foundational data types in most database systems.

41
MCQeasy

You are implementing a data governance framework. Which role is primarily responsible for ensuring that the data quality, security, and lifecycle policies are defined and adhered to for a specific business domain?

A.Data Steward
B.Database Administrator
C.Chief Data Officer
D.Data Architect
AnswerA

Data Stewards act as the bridge between governance policy and data application.

Why this answer

A Data Steward is responsible for the day-to-day management and quality of data within a business domain.

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

43
Multi-Selecteasy

Which TWO of the following statements about SQL are true?

Select 2 answers
A.SQL is for relational databases
B.SQL is only for Linux systems
C.DDL is used for modifying rows
D.DML includes INSERT and UPDATE
E.NoSQL cannot use SQL
AnswersA, D

It is the standard for RDBMS.

Why this answer

SQL is a standard language for relational databases, and DML is used for data manipulation.

44
MCQmedium

An administrator needs to restrict a user's ability to see only rows where the 'Region' column is 'North'. What feature should be used?

A.View creation
B.Row-Level Security (RLS)
C.Stored Procedures
D.Column Masking
AnswerB

RLS dynamically filters rows based on a defined policy.

Why this answer

Row-Level Security (RLS) allows for the definition of predicates that filter query results based on user metadata.

45
MCQeasy

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

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

Restoring from multiple backup files concurrently increases IO throughput and reduces restore time.

Why this answer

Using the 'WITH MOVE' and 'FILE=' options is standard, but using multiple backup files ('striped backups') allows for parallel reading and writing during the restore process, significantly increasing speed.

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

47
MCQhard

A query is slow due to excessive scanning of a large table. The execution plan shows a 'Table Scan'. What is the most likely missing element?

A.A view
B.An index
C.A stored procedure
D.A trigger
AnswerB

An index provides a direct path to the data.

Why this answer

A Table Scan occurs when the database must read every row; an index would allow it to find data more efficiently.

48
Multi-Selectmedium

Which THREE of the following are examples of descriptive statistics?

Select 3 answers
A.Standard deviation
B.Mean
C.Machine learning
D.Median
E.Linear regression
AnswersA, B, D

Measures variability.

Why this answer

Mean, median, and standard deviation describe the central tendency and spread of a dataset.

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

50
MCQeasy

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

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

ALTER TABLE is the correct command to add a column.

Why this answer

The ALTER TABLE command is used to modify the structure of an existing table, such as adding a new column.

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

52
MCQeasy

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

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

Backing up every 10 minutes ensures the data loss is limited to 10 minutes, satisfying the 15-minute RPO.

Why this answer

An RPO of 15 minutes implies that the maximum amount of data loss acceptable is 15 minutes. Therefore, transaction log backups must occur at least every 15 minutes.

53
MCQhard

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

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

LIMIT is commonly used to restrict the number of rows returned.

Why this answer

The LIMIT clause (or TOP/FETCH FIRST depending on dialect) restricts the result set to the specified number of rows.

54
MCQhard

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

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

CTEs provide logical structure and allow for recursive self-referencing queries.

Why this answer

CTEs improve readability and maintainability of complex queries by allowing the logic to be defined in a named temporary result set.

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

56
Multi-Selectmedium

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

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

Standard intersection join.

Why this answer

INNER, LEFT, and RIGHT joins are all standard SQL join types.

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

58
MCQmedium

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

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

Consistent locking order prevents deadlocks.

Why this answer

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

59
MCQmedium

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

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

Lags are used to compare current values with past values.

Why this answer

A lag feature represents the value of a variable at a previous time step, which is useful for trend analysis.

60
MCQmedium

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

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

TRUNCATE effectively clears all data in a table.

Why this answer

TRUNCATE is a DDL operation that removes all records from a table and is generally faster than DELETE because it does not log individual row deletions.

61
MCQmedium

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

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

DDM provides a non-permanent way to obscure sensitive data for specific users.

Why this answer

Dynamic Data Masking (DDM) limits sensitive data exposure by masking it to non-privileged users in the result set of a query.

62
MCQmedium

You are managing a MariaDB cluster. You notice that nodes are falling out of sync. Which status variable should you check to verify the replication lag between the primary and the replica?

A.Innodb_buffer_pool_reads
B.Seconds_Behind_Master
C.Slave_IO_Running
D.Threads_connected
AnswerB

This indicates the number of seconds the replica is lagging behind the primary.

Why this answer

Seconds_Behind_Master is the standard variable to check the replication delay in a traditional MariaDB replication setup.

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

64
Multi-Selecthard

Which THREE of the following are standard SQL aggregate functions?

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

Calculates the average of values.

Why this answer

SUM, AVG, and COUNT are standard aggregate functions used in SQL.

65
MCQmedium

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

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

TLS provides secure, encrypted communication channels.

Why this answer

TLS (Transport Layer Security) is the industry standard for encrypting data while it travels over the network.

66
Multi-Selectmedium

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

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

The database cannot log more changes if the space is exhausted.

Why this answer

Frequent auto-growth events and failed transactions (due to log full errors) are the primary indicators of an undersized log.

67
MCQeasy

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

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

UPDATE is the correct DML statement for editing records.

Why this answer

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

68
Multi-Selectmedium

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

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

Indexes speed up data retrieval.

Why this answer

Creating appropriate indexes and avoiding redundant subqueries significantly improve query efficiency.

69
MCQhard

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

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

WORM policies ensure data cannot be tampered with.

Why this answer

WORM (Write Once, Read Many) storage policies prevent files from being altered or deleted until the retention period expires.

70
MCQeasy

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

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

Scatter plots effectively reveal relationships between two numerical dimensions.

Why this answer

A Scatter Plot is specifically designed to plot two numerical variables to show correlations.

71
MCQeasy

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

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

LIKE supports pattern matching with wildcards.

Why this answer

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

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

73
MCQmedium

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

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

An index is specifically designed to accelerate data retrieval.

Why this answer

An index allows the database engine to find specific rows without scanning the entire table, significantly improving read performance.

74
MCQmedium

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

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

Centralized directories simplify identity lifecycle management.

Why this answer

LDAP or Active Directory integration allows for centralized management of authentication and authorization across multiple database instances.

75
MCQmedium

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

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

Extended Events is the preferred, lightweight way to capture query execution details and plans.

Why this answer

SQL Server Profiler or Extended Events are the standard tools for tracing and capturing execution plans, especially for identifying expensive queries.

Page 1 of 3

Page 2

All pages