Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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.
References:
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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
hertino
Highly Voted 3 years, 8 months ago
Today I got 900, I had this question, my answer: az role assignment create New-AzureRmRoleAssignment
upvoted 25 times
MyLife
3 years, 5 months ago
Answer with justification is more appropriate than your marks here. No body cares.
upvoted 12 times
...
NajamKhan
3 years, 5 months ago
Even getting 900 doesn't mean, your answer is correct.
upvoted 9 times
...
...
SidSadhu
Highly Voted 3 years, 8 months ago
Correct answer
upvoted 5 times
...
exam_taker_1
Most Recent 3 months, 1 week ago
Answer is correct. You want to assign existing role, not create a new custom role
upvoted 1 times
...
SidSadhu
3 years, 8 months ago
Correct
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...