AZ-500 Exam QuestionsBrowse all questions from this exam

AZ-500 Exam - Question 114


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 Answer
Correct Answer:

Reference:

https://docs.microsoft.com/en-us/azure/app-service/tutorial-connect-msi-sql-database?tabs=windowsclient%2Cdotnet

Discussion

15 comments
Sign in to comment
zellck
May 6, 2023

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.

zellck
May 6, 2023

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.

Troublemaker
Jul 24, 2023

In Exam - 28/7/2023

flafernan
Nov 6, 2023

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.

brooklyn510
Jan 6, 2024

On exam 1/2/24

sofieejo
Jan 30, 2023

In exam 29/01/2023 + many questions about Microsoft Sentinel

Mic8888
Apr 24, 2022

correct answers

Amit3
Oct 1, 2022

# In EXAM - 01-Oct-2022

Siblark
Oct 5, 2022

In Exam Oct 05, 2022

F117A_Stealth
Nov 10, 2022

Correct! Account Type = Managed Identity Roles = db_datareader and db_datawriter

majstor86
Mar 2, 2023

Account Type = Managed Identity Roles = db_datareader and db_datawriter

Johnvic
Apr 22, 2023

Exam.6 case studies. 3 true/false questions. 47 multiple questions and no simulations. Alot of new questions thats not up here

Kelly8023
Oct 6, 2022

Correct answers

AzureJobsTillRetire
Jan 11, 2023

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

icebw22
Mar 15, 2023

Correct, Managed identity because db need to see who is the request coming from. Managed identity = identity for the app

subrat10
Jun 18, 2024

The answer of question 1 should be "Service principal" as the question explicitly says Minimize administrative effort.

xRiot007
Jul 17, 2024

FYI, managed identity is a type of service principal used when we don't want to pass credentials around, so question 1 is MI.