exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 3 question 13 discussion

Actual exam question from Microsoft's AZ-301
Question #: 13
Topic #: 3
[All AZ-301 Questions]

HOTSPOT -
You plan to deploy logical Azure SQL Database servers to the East US Azure region and the West US Azure region. Each server will contain 20 databases. Each database will be accessed by a different user who resides in a different on-premises location. The databases will be configured to use active geo-replication.
You need to recommend a solution that meets the following requirements:
✑ Restricts user access to each database
✑ Restricts network access to each database based on each user's respective location
✑ Ensures that the databases remain accessible from client applications if the local Azure region fails
What should you include in the recommendation? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AzureGC
Highly Voted 5 years, 5 months ago
Based on reading the "database" level firewall rules, the correct answer for both should be "Transact SQL". Reference: https://docs.microsoft.com/en-us/azure/sql-database/sql-database-firewall-configure Description: You can only create and manage database-level IP firewall rules for master and user databases by using Transact-SQL statements and only after you configure the first server-level firewall.
upvoted 43 times
manhattan
4 years, 10 months ago
The link above shows you can configure Firewall rules via Web, Transact-SQL and Powershell
upvoted 1 times
azlopaz
4 years, 9 months ago
pls read carefully, what you reference is for the server level.
upvoted 1 times
tartar
4 years, 7 months ago
Transact SQL Transact SQL
upvoted 4 times
...
...
...
Kaawa
4 years, 9 months ago
it's cleared stated that database-level is recommended
upvoted 2 times
...
...
shandy
Highly Voted 5 years, 2 months ago
For 1: T-SQL and Power shell both are possible but T-SQL is possible only if you login as Server PRincipal or AD Admin.So that would make Power shell as the right option since it requires only one step. For 2: It is T-SQL since that is only mode firewall can be set at the DB level The answers are exactly opposite. Powershell for 1 and T-SQL for 2
upvoted 30 times
Daren
5 years ago
Done some reasearch and seems like you are correct. Thanks!
upvoted 5 times
...
kosu0203
4 years, 9 months ago
You are correct! Thanks!
upvoted 1 times
...
azurecert2021
4 years, 2 months ago
but for given requirement do we really need a Server firewall rules.
upvoted 1 times
...
...
AKumar
Most Recent 4 years, 1 month ago
Wondering why so many users have discrepancies in the second answer. By the justification shared by AzureGC, the Answer is pretty clear. There is no doubt at all, Based on reading the "database" level firewall rules, the correct answer for both should be "Transact SQL".
upvoted 1 times
AKumar
4 years, 1 month ago
Here is a comparison of Server-level IP firewall rules vs. Database-level IP firewall rules: https://docs.microsoft.com/en-us/azure/azure-sql/database/firewall-configure#server-level-ip-firewall-rules https://docs.microsoft.com/en-us/azure/azure-sql/database/firewall-configure#database-level-ip-firewall-rules
upvoted 1 times
...
...
azurecert2021
4 years, 2 months ago
we all know for server level we have 4 option but for DB level we have only 1 option T SQL so here we need to undestand for 3 requirement which firewall rule we need. for first requirement as we need to resrtic user at each db it means we need to allow whitelisted user to each db which can not be done at server level as it is less likely each DB user list is same. for second requirement here we also need for each DB hence DB fire wall rules applicable here we need geo replication for failover case which is also DB fire wall rule so after understanding the above requirement i dont see any requirement to set server level IP rule accept it has to be set before setting the DB firewall rule and in order To use Transact-SQL for server level ip, we must connect to the master database as the server-level principal login or as the Azure Active Directory administrator.which info is not avaialable but i assume we are doing all this setup so we should be position to setup the same. so for the option answer should be TSQL as all 3 requirements lead to DB firewall rule there is no single reason to use server firewall rule.
upvoted 2 times
azurecert2021
4 years, 2 months ago
You create the first server-level firewall setting by using the Azure portal or programmatically by using Azure PowerShell, Azure CLI, or an Azure REST API. You create and manage additional server-level IP firewall rules by using these methods or Transact-SQL. Database-level IP firewall rules can only be created and managed by using Transact-SQL. You can only create and manage database-level IP firewall rules for master and user databases by using Transact-SQL statements and only after you configure the first server-level firewall. To use Transact-SQL, you must connect to the master database as the server-level principal login or as the Azure Active Directory administrator. (A server-level IP firewall rule must first be created by a user who has Azure-level permissions.)
upvoted 1 times
azurecert2021
4 years, 2 months ago
We recommend using database-level IP firewall rules for geo-replicated databases so these rules can be replicated with the database to ensure all secondary databases have the same IP firewall rules as the primary. This approach eliminates the need for customers to manually configure and maintain firewall rules on servers hosting both the primary and secondary databases. https://docs.microsoft.com/en-us/azure/azure-sql/database/active-geo-replication-overview
upvoted 1 times
azurecert2021
4 years, 2 months ago
Should users of one database be fully isolated from another database? If yes, use database-level IP firewall rules to grant access. This method avoids using server-level IP firewall rules, which permit access through the firewall to all databases. That would reduce the depth of your defenses. for our case it is yes
upvoted 1 times
azurecert2021
4 years, 2 months ago
following case is no for our case so mostly we are inclined to DB IP firewall rule or Do users at the IP addresses need access to all databases? If yes, use server-level IP firewall rules to reduce the number of times that you have to configure IP firewall rules. Does the person or team who configures the IP firewall rules only have access through the Azure portal, PowerShell, or the REST API? If so, you must use server-level IP firewall rules. Database-level IP firewall rules can only be configured through Transact-SQL. Is the person or team who configures the IP firewall rules prohibited from having high-level permission at the database level? If so, use server-level IP firewall rules. You need at least CONTROL DATABASE permission at the database level to configure database-level IP firewall rules through Transact-SQL. Does the person or team who configures or audits the IP firewall rules centrally manage IP firewall rules for many (perhaps hundreds) of databases?
upvoted 1 times
...
...
...
...
...
glam
4 years, 3 months ago
Transact SQL Transact SQL
upvoted 2 times
...
sanketshah
4 years, 4 months ago
Both the option should be Transact -SQL
upvoted 3 times
...
Arulkumar_Subramaniam
4 years, 7 months ago
You can only create and manage database-level IP firewall rules for master and user databases by using Transact-SQL statements and only after you configure the first server-level firewall. Ref : docs.microsoft.com/en-us/azure/azure-sql/database/firewall-configure So for box 2 , the correct answer is T-SQL
upvoted 2 times
...
Ivandrago
4 years, 7 months ago
T-SQL for user access management within Database Powershell for Desired State configuration so answer is T-SQL Powershell
upvoted 1 times
...
Rooh
4 years, 7 months ago
Both answer should we Transact SQL
upvoted 2 times
...
[Removed]
4 years, 8 months ago
Configure user access by using: > T-SQL As the databases will be configured to use active geo-replication we should prefer "contained user accounts", which can be configured via T-SQL. https://docs.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-configure?tabs=azure-powershell#create-contained-users-mapped-to-azure-ad-identities Configure database-level firewall rules by using: > T-SQL Quote from: https://docs.microsoft.com/en-us/azure/azure-sql/database/firewall-configure "You can only create and manage database-level IP firewall rules for master and user databases by using Transact-SQL statements and only after you configure the first server-level firewall."
upvoted 9 times
...
ThanosKataras
4 years, 8 months ago
https://docs.microsoft.com/en-us/azure/azure-sql/database/secure-database-tutorial Database-level firewall rules can only be configured using Transact-SQL (T-SQL) statements, and only after you've configured a server-level firewall rule.
upvoted 2 times
...
aelhalawany
4 years, 10 months ago
1- T-SQL 2- T-SQL
upvoted 2 times
...
wardy
4 years, 10 months ago
Setup database firewall rules Database-level firewall rules only apply to individual databases. The database will retain these rules during a server failover. Database-level firewall rules can only be configured using Transact-SQL (T-SQL) statements, and only after you've configured a server-level firewall rule. https://docs.microsoft.com/en-us/azure/azure-sql/database/secure-database-tutorial
upvoted 1 times
...
DeveshSolanki
4 years, 10 months ago
Both box should be "Transact SQL"
upvoted 1 times
...
P0d
4 years, 11 months ago
User access level can be done via REST api and T-SQL DBA level firewall can be done via T-SQL
upvoted 1 times
...
akamal
4 years, 11 months ago
From below links: https://docs.microsoft.com/en-us/azure/azure-sql/database/logical-servers https://docs.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage https://docs.microsoft.com/en-us/sql/t-sql/statements/create-user-transact-sql?view=sql-server-ver15#examples https://docs.microsoft.com/en-us/azure/azure-sql/database/secure-database-tutorial you can create server level firewall using all three mentioned methods but you can create database level firewall using only "Transact SQL" Because the databases are using active geo replication, you need to create "contained users" to access the databases and this also is done through "Transact SQL" So the right answer is" 1) T-SQL 2) T-SQL
upvoted 13 times
...
corona2020
4 years, 11 months ago
I will go with 1) Powershell 2)T-SQL
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago