In relation to Azure SQL Database, which of the following is true?

A) Additional database filegroups can be added via Transact-SQL statements.
B) The maximum size of a database is determined by its database Edition.
C) Additional database files can be added via Transact-SQL statements.
D) All databases on a server must be the same database Edition.

The correct answer is Option B: The maximum size of a database is determined by its database Edition.

Let us discuss each statement one by one to understand why the option B is the correct of all:

Statement 1: Additional database filegroups can be added via Transact-SQL statements

In Azure SQL Database, you can’t add extra filegroups using Transact-SQL like you can in on-premises SQL Server. Azure SQL Database automatically manages and scales storage. Users don’t need to create or manage filegroups, unlike on-premises SQL Server. This is why, this statement is not a correct statement.

Statement 2: The maximum size of a database is determined by its database Edition is True

Yes, it is the correct statement. In Azure SQL Database, the maximum database size depends on the edition you choose (e.g., Basic, Standard, Premium). Each edition has different size limits and performance features. Let’s see each of them.

1. Basic Edition

Maximum size of database is 2 GB and it is majorly used as a development database with minimal storage requirements.

2. Standard Edition

Maximum size of database is 1TB and it is used for a medium-sized application that requires more storage and better performance than the Basic edition.

3. Premium Edition

Maximum size of the database is 4TB and it is used for a large-scale application with high storage needs and demanding performance requirements.

Statement 3: Additional database files can be added via Transact-SQL statements

In Azure SQL Database, you can’t manually add more database files using Transact-SQL statements. This is similar to how you can’t add additional filegroups. Instead, the Azure SQL Database automatically manages and allocates storage for you.

This means Azure SQL Database automatically adjusts storage based on the service tier and performance level you choose. It scales efficiently and maintains performance without any manual setup. So, this is not a correct statement.

Statement 4: All databases on a server must be the same database Edition

In Azure SQL Database, all databases on a server don’t need to have the same edition or performance level. You can have different editions (like Basic, Standard, Premium) and performance levels for databases on the same server in Azure SQL Database. This lets you set each database according to its specific needs.

For example, you can use the Premium edition for high-performance needs and the Standard edition for less critical databases to save costs. This way, you can set up each database based on its specific needs and optimize resources and performance.

Conclusion

The maximum size of a database in Azure SQL database depends on its edition like Basic, Standard, or Premium. You can’t manually add filegroups or extra database files, the system handles it automatically. Different databases on the same server can have different editions and performance levels, so you can set them up based on their specific needs. Knowing these points helps you manage and improve database performance effectively.

About the Author

Senior Cloud Computing Associate

Rupinder is a distinguished Cloud Computing & DevOps associate with architect-level AWS, Azure, and GCP certifications. He has extensive experience in Cloud Architecture, Deployment and optimization, Cloud Security, and more. He advocates for knowledge sharing and in his free time trains and mentors working professionals who are interested in the Cloud & DevOps domain.

EPGC Cloud