SQL Server Table Basics
What is the primary key constraint used for in a SQL Server table?
- A. To ensure that a column contains only unique values and cannot contain null values.
- B. To define a foreign key relationship with another table.
- C. To automatically populate a column with a default value.
- D. To limit the range of values that can be stored in a column.
- a. to unsure that a colum contains only uniqe values and can't contain null values
Simple SQL Query
Which SQL statement is used to retrieve data from a database table?
- A. UPDATE
- B. DELETE
- C. SELECT
- D. INSERT
- c. cellect
SQL Join Operations
Which type of join returns all rows from the left table, and the matching rows from the right table? If there's no match, NULL values are returned for the right table.
- A. INNER JOIN
- B. RIGHT JOIN
- C. FULL OUTER JOIN
- D. LEFT JOIN
- d. left joinn
T-SQL Function
Which T-SQL function is used to convert a date value to a character string?
- A. DATEADD()
- B. DATEDIFF()
- C. CONVERT()
- D. GETDATE()
- c. convert
Stored Procedure
What is the main benefit of using stored procedures?
- A. They allow you to directly access server hardware.
- B. They reduce network traffic and improve performance by encapsulating multiple SQL statements.
- C. They automatically back up your database.
- D. They primarily manage user permissions.
- b. they reduce network trafic and improve perfomance by encapsulating multiple SQL statements
Azure SQL Database
Which service tier in Azure SQL Database is generally the most cost-effective option for development and testing environments?
- A. Business Critical
- B. General Purpose
- C. Hyperscale
- D. Serverless
- d. serveless
Azure Resource Manager
What is the purpose of Azure Resource Manager (ARM) templates?
- A. To create and manage virtual machines.
- B. To automate the deployment and management of Azure resources as code.
- C. To monitor the performance of Azure SQL databases.
- D. To create SQL Server indexes.
- b. too automate the deployment and managment of Azure resources as code
Azure SQL Security
What is the primary purpose of firewall rules in Azure SQL Database?
- A. To control access to the database server from specific IP addresses or ranges.
- B. To encrypt data at rest.
- C. To implement multi-factor authentication.
- D. To manage user roles and permissions within the database.
- a. to control access to the database server from specific ip addresses or ranges
Azure Data Studio
Which of the following is a key feature of Azure Data Studio compared to SSMS?
- A. It supports only SQL Server on-premises.
- B. It is a lightweight, cross-platform tool designed for data professionals.
- C. It provides comprehensive server management capabilities.
- D. It is only available on Windows.
- b. it is a lightweight, cross platform tool designed for data professionals
Azure SQL Backups
How are automatic backups handled in Azure SQL Database by default?
- A. They are disabled by default and must be manually configured.
- B. They are performed automatically, and the retention period is configurable.
- C. They are only available for the Business Critical service tier.
- D. They are stored locally on the database server.
- b. they are performed automatically, and the retenton period is configurable