exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 2 question 72 discussion

Actual exam question from Microsoft's AZ-500
Question #: 72
Topic #: 2
[All AZ-500 Questions]

HOTSPOT -
You have an Azure subscription that contains an Azure SQL database named SQL1.
You plan to deploy a web app named App1.
You need to provide App1 with read and write access to SQL1. The solution must meet the following requirements:
✑ Provide App1 with access to SQL1 without storing a password.
✑ Use the principle of least privilege.
✑ Minimize administrative effort.
Which type of account should App1 use to access SQL1, and which database roles should you assign to App1? 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:
Reference:
https://docs.microsoft.com/en-us/azure/app-service/tutorial-connect-msi-sql-database?tabs=windowsclient%2Cdotnet

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
zellck
Highly Voted 1 year, 11 months ago
1. Managed identity 2. db_datareader and db_datawriter https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview A common challenge for developers is the management of secrets, credentials, certificates, and keys used to secure communication between services. Managed identities eliminate the need for developers to manage these credentials. While developers can securely store the secrets in Azure Key Vault, services need a way to access Azure Key Vault. Managed identities provide an automatically managed identity in Azure Active Directory (Azure AD) for applications to use when connecting to resources that support Azure AD authentication. Applications can use managed identities to obtain Azure AD tokens without having to manage any credentials.
upvoted 15 times
zellck
1 year, 11 months ago
https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/database-level-roles?view=sql-server-ver16#fixed-database-roles - db_datawriter Members of the db_datawriter fixed database role can add, delete, or change data in all user tables. In most use cases this role will be combined with db_datareader membership to allow reading the data that is to be modified. - db_datareader Members of the db_datareader fixed database role can read all data from all user tables and views. User objects can exist in any schema except sys and INFORMATION_SCHEMA.
upvoted 5 times
...
...
flafernan
Highly Voted 1 year, 5 months ago
You can use a Service Principal to grant an application access to Azure resources, including SQL databases. However, when granting read and write access to a SQL database, it is generally safer to use Managed Identities when the application is running on a virtual machine or an Azure service. Managed Identities are an easier and more secure way to grant access to Azure resources because they don't require you to manually manage secrets or credentials. Service Principals are typically used when you need to grant access to external applications or services that are not hosted in Azure. When it comes to internal Azure applications and services, Managed Identities are a more direct and secure option. Therefore, using a Managed Identity would be the most appropriate option to meet the criteria of not storing passwords, using the principle of least privilege, and minimizing administrative effort in the context of internal Azure resources.
upvoted 11 times
...
Sabr_
Most Recent 20 hours, 31 minutes ago
Exam question 6th April 2025
upvoted 1 times
...
subrat10
9 months, 3 weeks ago
The answer of question 1 should be "Service principal" as the question explicitly says Minimize administrative effort.
upvoted 1 times
xRiot007
8 months, 3 weeks ago
FYI, managed identity is a type of service principal used when we don't want to pass credentials around, so question 1 is MI.
upvoted 3 times
...
...
brooklyn510
1 year, 3 months ago
On exam 1/2/24
upvoted 7 times
...
Troublemaker
1 year, 8 months ago
In Exam - 28/7/2023
upvoted 8 times
...
Johnvic
1 year, 11 months ago
Exam.6 case studies. 3 true/false questions. 47 multiple questions and no simulations. Alot of new questions thats not up here
upvoted 2 times
...
icebw22
2 years ago
Correct, Managed identity because db need to see who is the request coming from. Managed identity = identity for the app
upvoted 1 times
...
majstor86
2 years, 1 month ago
Account Type = Managed Identity Roles = db_datareader and db_datawriter
upvoted 2 times
...
sofieejo
2 years, 2 months ago
In exam 29/01/2023 + many questions about Microsoft Sentinel
upvoted 3 times
...
AzureJobsTillRetire
2 years, 2 months ago
Members of the db_datawriter fixed database role can add, delete, or change data in all user tables. In most use cases this role will be combined with db_datareader membership to allow reading the data that is to be modified. https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/database-level-roles?view=sql-server-ver16
upvoted 1 times
...
F117A_Stealth
2 years, 4 months ago
Correct! Account Type = Managed Identity Roles = db_datareader and db_datawriter
upvoted 2 times
...
Kelly8023
2 years, 6 months ago
Correct answers
upvoted 1 times
...
Siblark
2 years, 6 months ago
In Exam Oct 05, 2022
upvoted 2 times
...
Amit3
2 years, 6 months ago
# In EXAM - 01-Oct-2022
upvoted 2 times
...
Mic8888
2 years, 11 months ago
correct answers
upvoted 2 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