0% found this document useful (0 votes)
4 views3 pages

SQL Server Intelligent Data Management MCQs

The document consists of multiple-choice questions (MCQs) focused on intelligent data management with SQL Server. Topics covered include properties of transactions, error types, Azure SQL Database features, SQL syntax, and database management functions. It serves as a knowledge assessment tool for individuals familiar with SQL Server concepts and operations.

Uploaded by

Daud
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

SQL Server Intelligent Data Management MCQs

The document consists of multiple-choice questions (MCQs) focused on intelligent data management with SQL Server. Topics covered include properties of transactions, error types, Azure SQL Database features, SQL syntax, and database management functions. It serves as a knowledge assessment tool for individuals familiar with SQL Server concepts and operations.

Uploaded by

Daud
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

**Intelligent Data Management with SQL Server – A672 (MCQs)**

**1. Identify the properties of a logical unit of work:**


A. Atomicity
B. Consistency
C. Efficiency
D. Durability

---

**2. \_\_\_\_\_\_\_\_\_\_\_ marks an end of a successful implicit or explicit


transaction:**
A. BEGIN TRANSACTION
B. COMMIT TRANSACTION
C. FIRST TRANSACTION
D. LAST TRANSACTION

---

**3. What are the type of errors that occur when code cannot be parsed by SQL
Server?**
A. Syntax Errors
B. Transact Error
C. Information Error
D. Run-time Error

---

**4. Identify the instances where run-time errors occur:**


A. Performing a calculation such as division by 0
B. Trying to execute code that is not defined clearly
C. Performing a calculation such as multiplication with zero
D. Keyword is used in a wrong way

---

**5. Vulnerability Assessment is a \_\_\_\_\_\_\_\_\_\_\_\_\_ service built into


Azure SQL Database:**
A. Visibility
B. Error Identification
C. Scanning
D. Security

---

**6. \_\_\_\_\_\_\_\_\_\_\_ is an open source container orchestration platform


that automates many of the manual processes involved in deploying, managing, and
scaling containerized applications:**
A. Kubernetes
B. Spark
C. Hadoop Distributed File System
D. SQL Server

---

**7. You can determine the number of summary rows in the result set by using
\_\_\_\_\_\_\_\_ clause:**
A. WHERE
B. SELECT
C. GROUP BY
D. SELECT with WHERE

---
**8. The wildcard character \_\_\_\_\_\_\_\_\_\_\_\_ displays any single
character not within the range enclosed in the brackets of the expression:**
A. --
B. %
C. \[]
D. \[^]

---

**9. The primary default filegroup can be changed using the


\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ statement:**
A. CHANGE DATABASE
B. ALTER DATABASE
C. MODIFY DATABASE
D. DELETE DATABASE

---

**10. \_\_\_\_\_\_\_\_\_\_\_\_\_ is used only with SELECT statement to specify a


search condition for a group:**
A. HAVING
B. GROUP BY
C. WHERE
D. LIKE

---

**11. There are many logical database components. You can use
\_\_\_\_\_\_\_\_\_\_ to enforce the uniqueness of rows in a table:**
A. Function
B. Stored Procedure
C. View
D. Index

---

**12. The \_\_\_\_\_\_\_\_ statement is not supported by SQL Azure due to which
the user cannot switch between databases in SQL Azure:**
A. UPDATE
B. USE
C. INSERT
D. ALTER

---

**13. Identify the features of explicit transactions:**


A. These transactions are defined by programmers.
B. DML statements are included to execute as a unit.
C. SELECT Statements are not included as they do not modify data.
D. SQL Server will roll back the entire statement.

---

**14. \_\_\_\_\_\_\_\_\_\_\_\_ system function returns a number of BEGIN


TRANSACTION statements that occur in the current connection:**
A. BEGIN
B. ROLLBACK
C. SAVE TRANSACTION
D. @@TRANCOUNT

---

**15. Identify the code snippet that shrinks the database:**


A. ALTER DATABASE CUST\_DB SET AUTO\_SHRINK OFF
B. ALTER DATABASE CUST\_DB AUTO\_SHRINK ON
C. DROP DATABASE CUST\_DB SHRINK ON
D. ALTER DATABASE CUST\_DB SET AUTO\_SHRINK ON

---

**16. Which of the following code snippets adds a filegroup to an existing


database, called EMP\_DB?**
A. ALTER DATABASE EMP\_DB SELECT FILEGROUP FG\_ReadOnly
B. ALTER DATABASE EMP\_DB ADD FILEGROUP FG\_ReadOnly
C. ALTER DATABASE EMP\_DB INSERT FILEGROUP FG\_ReadOnly
D. ALTER DATABASE EMP\_DB FILEGROUP FG\_ReadOnly

---

**17. Which of these are deterministic built-in functions?**


A. POWER
B. CAST
C. LOG
D. ISDATE

Common questions

Powered by AI

The GROUP BY clause in SQL Server offers significant advantages by allowing for aggregation of data based on column values, which simplifies data analysis . It segments query results into distinct groups, enabling operations like COUNT, MAX, MIN, AVG, etc., to be applied to each group effectively. This impacts data retrieval by converting a potentially large dataset into meaningful summaries, improving both understanding and reporting of data . The clause plays a crucial role in summarizing large datasets efficiently, enhancing performance and comprehensibility of query results.

Wildcard characters enhance search flexibility in SQL queries by allowing pattern matching, thereby enabling more refined data retrieval options. For instance, the % wildcard matches any sequence of characters, while the _ wildcard matches a single character . To match any single character not within a specified range, the [^] wildcard is used, enabling negative selection within search patterns . These tools are crucial for handling complex search queries where exact matches are not feasible or when exploring data through pattern-based filters.

Reliability in database transactions is ensured through the ACID properties: Atomicity, Consistency, Isolation, and Durability. Atomicity ensures that all parts of a transaction are completed; if any part fails, the entire transaction is rolled back . Consistency ensures that transactions transform the database from one valid state to another, maintaining data integrity . Isolation ensures that transactions do not interfere with each other, maintaining data accuracy . Durability guarantees that once a transaction is committed, it will remain so, even in the event of a system failure . These properties work together to provide a reliable framework for database management.

Kubernetes facilitates the deployment and management of containerized applications by automating many of the manual processes, such as scaling, networking, and resource allocation . It provides a robust framework for deploying containers in clusters, offering services like automatic scaling, load balancing, and container self-healing. The advantages include increased operational efficiency, reduced deployment errors, and the ability to manage infrastructure declaratively, thus simplifying the orchestration of complex, distributed applications . Kubernetes enhances scalability and reliability, making it a preferred choice for modern cloud-native applications.

Run-time errors in SQL Server typically arise from situations such as performing mathematical calculations like division by zero or executing code snippets that are not clearly defined . Developers can mitigate these errors by using error-handling constructs such as TRY...CATCH blocks to gracefully manage exceptions and avoid abrupt transaction terminations . Additionally, implementing thorough testing and validation routines can preemptively catch common run-time issues, while careful schema and constraint design can prevent logically invalid operations in databases.

Deterministic functions are important in SQL because they always produce the same result given the same input, ensuring consistency and predictability in query results . This makes them vital for query optimization and indexing. Examples of deterministic functions include POWER, which performs exponentiation, and LOG, which computes logarithms . These functions facilitate consistent data transformations and are crucial in scenarios requiring reliable computation, such as data aggregation and transformation in queries.

There are several ways to modify or extend a SQL Server database. Adding filegroups is one way, which can improve data management and access by organizing large databases into distinct storage blocks . ALTER DATABASE commands can also be used to adjust settings and modify the database structure, such as enabling the AUTO_SHRINK setting for handling space dynamically . These actions impact database performance, management, and storage efficiency, and must be carefully managed to align with database policies and growth expectations, avoiding excessive fragmentation or performance bottlenecks.

Explicit transactions in SQL provide control over data modifications by allowing programmers to define transaction boundaries explicitly. They are characterized by their inclusion of Data Manipulation Language (DML) statements that are executed as a unit . This ensures that all modifications in a transaction either complete together or are rolled back together in case of failure. Explicit transactions do not include SELECT statements since these do not modify data . By specifying transaction start and end points, programmers gain precise control over transaction execution and error handling.

SQL Server handles errors during code execution by categorizing them into different types. Syntax errors occur when code cannot be parsed by SQL Server, indicating that there is an issue with the SQL code structure . These errors must be corrected before code execution can proceed. Run-time errors occur during execution, such as a division by zero or executing undefined code . SQL Server processes these errors by rolling back transactions and alerting users about the error, allowing them to handle it appropriately.

The Vulnerability Assessment service enhances database security on Azure SQL Database by identifying potential weaknesses and misconfigurations in the database setup. It performs regular scans and provides insights into vulnerabilities, helping administrators to apply recommended practices for improving security . By focusing on error identification and mitigation strategies, the service enables proactive management of security threats and ensures compliance with defined security standards . This in turn minimizes the risk posed by potential security breaches.

You might also like