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…

Choose your answer, then check it against the explanation and the full breakdown below.

Domain Deploy and manage Azure compute resources

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?
Answer options
Question 1 of 35

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