exam questions

Exam AZ-120 All Questions

View all questions & answers for the AZ-120 exam

Exam AZ-120 topic 5 question 18 discussion

Actual exam question from Microsoft's AZ-120
Question #: 18
Topic #: 5
[All AZ-120 Questions]

You have an Azure subscription. The subscription contains a virtual machine named VM1 that runs SAP HANA and a user named User1. User1 is assigned the Virtual Machine Contributor role for VM1.

You need to prevent User1 from placing VM1 in the Stopped (deallocated) state. User1 must be able to restart the operating system on VM1.

What should you do?

  • A. Create a resource lock on VM1.
  • B. Assign an Azure Policy definition to the resource group that contains VM1.
  • C. Assign User1 the Virtual Machine User Login role for VM1.
  • D. Configure the Desired State Configuration (DSC) extension on VM1.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Examdumps2023
8 months, 1 week ago
No anwer is right - Create a custom role with Azure RBAC
upvoted 1 times
...
dnt91
1 year, 6 months ago
Selected Answer: C
Read-only lock prevent stopping the VM but also restarting the VM
upvoted 1 times
...
fenth7
1 year, 6 months ago
I believe the answer is wrong: A read-only lock on a resource group that contains a virtual machine prevents all users from starting or restarting a virtual machine. These operations require a POST method request. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
upvoted 1 times
fenth7
1 year, 6 months ago
on the other hand the question is about OS, not about VM itself. OK, it is A
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago