AZ-104 practice question 1 of 35

You have an Azure App Services web app named App1. You plan to deploy App1 by using Web Deploy. You need to ensure that the developers of App1 can use their Azure AD credentials to deploy content to App1. The solution must use the principle of least privilege. What should you do?

Full set: 569 questions

Domain Deploy and manage Azure compute resources

Answer options
A: Assign the Owner role to the developers
B: Configure app-level credentials for FTPS
C: Assign the Website Contributor role to the developers Correct answer
D: Configure user-level credentials for FTPS
Correct Answer:
C. Assign the Website Contributor role to the developers
Explanation

The Website Contributor role is the built-in Azure role designed with the principle of least privilege for this specific task. It grants permissions to manage the web app's settings and content, including the necessary Microsoft.Web/sites/publish/action permission required for Web Deploy. Assigning this role allows developers to authenticate using their Azure AD credentials for deployment without granting excessive permissions, such as managing the App Service Plan, virtual networks, or assigning roles to other users, which roles like Contributor or Owner would provide.

Why Incorrect

A. Assign the Owner role to the developers This role grants full access to all resources, including permission management, which violates the principle of least privilege.
B. Configure app-level credentials for FTPS These are shared credentials specific to the app, not individual Azure AD credentials, failing a key requirement of the question.
D. Configure user-level credentials for FTPS These are deployment credentials set at the Azure account level for FTP/S, and they are separate from Azure AD credentials. ---

References

1. Microsoft Learn | Azure built-in roles: The documentation lists the Website Contributor role and its purpose. The role definition includes the Microsoft.Web/sites/publish/action permission

which is essential for deploying code. This role is more constrained than Owner or Contributor.

Source: Microsoft Docs

"Azure built-in roles

" under the "Website Contributor" section.

Reference: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#website-contributor

2. Microsoft Learn | Configure deployment credentials for Azure App Service: This document explains the different types of credentials for deployment. It distinguishes between account-level credentials and app-level credentials for FTP/S and Web Deploy

which are separate from Azure AD-based authentication provided by RBAC.

Source: Microsoft Docs

"Configure deployment credentials for Azure App Service

" sections "User-scope credentials" and "App-scope credentials."

Reference: https://learn.microsoft.com/en-us/azure/app-service/deploy-ftp?tabs=portal#deployment-credentials

3. Microsoft Learn | Role-based access control: This document outlines the principle of least privilege as a security best practice

which involves granting users only the permissions they need to perform their jobs. The Website Contributor role aligns with this principle for the described task.

Source: Microsoft Docs

"What is Azure role-based access control (Azure RBAC)?"

section "Best practices for Azure RBAC."

Reference: https://learn.microsoft.com/en-us/azure/role-based-access-control/overview#best-practices-for-azure-rbac

Question breakdown

Tests
Configure deployment access for Azure App Service
Difficulty
Medium

Key idea: Web Deploy through the Kudu/SCM endpoint can authenticate Microsoft Entra ID (Azure AD) users who hold an RBAC role with write access to the web app, and Website Contributor is the narrowest built-in role that grants this.

How to reach the answer

  1. The clue 'use their Azure AD credentials' rules out FTPS deployment credentials, which are separate username/password pairs.
  2. Web Deploy targets the SCM (Kudu) endpoint, which accepts Entra ID tokens for users with suitable RBAC permissions on the site.
  3. The clue 'principle of least privilege' means picking the narrowest role that can still write site content.
  4. Owner works but is far broader than needed. Website Contributor manages web apps without granting access management or plan control, so it fits.

Each option

  • AIncorrect. Owner allows deployment but also grants full resource management and role assignment rights, which breaks least privilege.
  • BIncorrect. App-level credentials are auto-generated publishing credentials tied to the app, not the developers' Azure AD identities.
  • CCorrect. Website Contributor lets developers authenticate with Azure AD and deploy to the web app without unnecessary extra permissions.
  • DIncorrect. User-level deployment credentials are a separate username and password defined for deployment, not the developers' Azure AD sign-in.

Common trap: 'User-level credentials' sounds like personal identity, but these are standalone deployment credentials and are not Azure AD accounts.

In practice: Teams often turn off basic publishing credentials (SCM/FTP basic auth) for security. They then give developers Website Contributor on specific apps so deployments use Entra ID identities and leave an audit trail.

Remember: Azure AD-based deployment to App Service means granting an RBAC role, and Website Contributor is the least-privilege choice for one web app.

Drafted with AI assistance and checked against the answer key.

Keep practicing

Take the free AZ-104 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other AZ-104 practice questions

Scroll to Top