Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
Location Chicago IL, USA

Exam AZ-203 topic 4 question 6 discussion

Actual exam question from Microsoft's AZ-203
Question #: 6
Topic #: 4
[All AZ-203 Questions]

You have an Azure App Services Web App Azure SQL Database instance Azure Storage Account, and an Azure Redis Cache instance in a resource group.
A developer must be able to publish code to the web app. You must grant the developer the Contribute role to the web app.
You need to grant the role.
Which two commands can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. az role assignment create
  • B. az role definition create
  • C. New-AzureRmRoleAssignment
  • D. New-AzureRmRoleDefinition
Show Suggested Answer Hide Answer

Suggested Answer: AC
A: The az role assignment create command creates a new role assignment for a user, group, or service principal.
Example: Create role assignment for an assignee.
az role assignment create --assignee sp_name --role a_role
C: The New-AzureRmRoleAssignment command assigns the specified RBAC role to the specified principal, at the specified scope.
Incorrect Answers:
B, D: Creates a custom role in Azure RBAC.
https://docs.microsoft.com/en-us/cli/azure/role/assignment?view=azure-cli-latest#az-role-assignment-create https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/new-azurermroleassignment?view=azurermps-6.13.0


3 months, 3 weeks ago
Today I got 900, I had this question, my answer: az role assignment create New-AzureRmRoleAssignment
upvoted 7 times
3 weeks, 2 days ago
Even getting 900 doesn't mean, your answer is correct.
upvoted 2 times
1 week, 4 days ago
Answer with justification is more appropriate than your marks here. No body cares.
upvoted 4 times
3 months, 2 weeks ago
Correct answer
upvoted 1 times
3 months, 1 week ago
upvoted 1 times