正解:B
When deploying to Azure App Service, several authentication methods exist:
* App-level FTPS credentials: Common to all users, not tied to Azure AD.
* User-level FTPS credentials: Separate per user, but still not Azure AD integrated.
* Azure Role-Based Access Control (RBAC): Allows assigning permissions through Azure AD roles.
To allow developers to deploy code to an App Service (via Web Deploy, Git, or Visual Studio), the least privilege role that grants this capability is the Website Contributor role.
Role capabilities:
* The Website Contributor role allows a user to manage web apps (including deployment, restart, and configuration changes), but not delete or grant access.
* It uses Azure AD authentication through RBAC, satisfying the requirement that developers use their Azure AD credentials.
Other options:
* Owner: Grants excessive permissions (manage access and delete resources) #
* App-level/User-level FTPS credentials: Use username/password, not Azure AD identities # Therefore, the correct and least-privileged role for developers to deploy via Web Deploy is Website Contributor.
# Final Verified Answer: B. Assign the Website Contributor role to the developers