exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 5 question 58 discussion

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

HOTSPOT
-

You have an Azure subscription that contains the key vaults shown in the following table.



The subscription contains the users shown in the following table.



On June 1, you perform the following actions:

• Delete a key named key1 from KeyVault1.
• Delete a secret named secret1 from KeyVault2.

For each of the following statements, select Yes If the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
AzureJobsTillRetire
Highly Voted 2 years, 4 months ago
I thought that it would be Yes No No Box1: Yes Admin1 is Key Vault Contributor on KeyVault1, in which has 10 days to retain deleted vaults, and Key1 from KeyVault1 was deleted on Jun 1st. Hence on Jun 5th, Admin1 can recover Key1 Box2: No On Jun 1st, secret1 has already been deleted. Hence it cannot be purged again on Jun 12th Box3: No KeyVault1 has 10 days to retain deleted vaults, and Key1 from KeyVault1 was deleted on Jun 1st. Hence on Jun 17th it cannot be recovered
upvoted 23 times
Hot_156
3 months ago
WRONG! Y - This one is right Y - This one is wrong - Purge protection is just to protect items to be purged while they are in the soft-delete state. RBAC is managing the key vault and the role has the permissions. N - This one is right
upvoted 1 times
...
AzureJobsTillRetire
2 years, 4 months ago
For some further clarification on Box2. It is still No but my previous reasoning was wrong. Seret1 can be purged after deletion since it is not purge-protected. But Microsoft states in the doc as below that To purge a secret in the soft-deleted state, a service principal must be granted an additional "purge" access policy permission. The purge access policy permission is not granted by default to any service principal including key vault and subscription owners and must be deliberately set. By requiring an elevated access policy permission to purge a soft-deleted secret, it reduces the probability of accidentally deleting a secret. https://learn.microsoft.com/en-us/azure/key-vault/general/soft-delete-overview
upvoted 7 times
AzureJobsTillRetire
2 years, 4 months ago
This is regardless of if purge protection is enabled or not.
upvoted 4 times
...
zellck
2 years ago
https://learn.microsoft.com/en-us/azure/key-vault/general/key-vault-recovery?tabs=azure-powershell#prerequisites The user will need the following permissions (at subscription level) to perform operations on soft-deleted vaults: - Microsoft.KeyVault/locations/deletedVaults/purge/action Purge a soft deleted key vault
upvoted 2 times
...
...
skr123
2 years, 4 months ago
i agree box 3 should be No - based on only 10 days of retention.
upvoted 1 times
...
Nickname01
2 years, 4 months ago
Box 2 No indeed but it is because of the secret officer not having rights to recover just to view. Microsoft.KeyVault/deletedVaults/read
upvoted 1 times
Spades91
2 years, 3 months ago
Secrets officer has all permissions except to manage permissions
upvoted 2 times
...
AzureJobsTillRetire
2 years, 4 months ago
You are correct. Thanks for pointing that out.
upvoted 1 times
...
...
...
Ajdlfasudfo0
Highly Voted 2 years, 4 months ago
Y - within 10 days N - purge protection enabled so no, also Secrets officer has not enough permission N - more than 15 days have passed, so already deleted and not possible to recover anymore
upvoted 11 times
Ajdlfasudfo0
2 years, 4 months ago
correction to 2) purge protection is not enabled, still not enough permission tho
upvoted 2 times
Ajdlfasudfo0
2 years, 4 months ago
nvm 2 is Y, Keyvault secrets officer is able to purge a secret
upvoted 3 times
...
...
...
randy0077
Most Recent 1 month, 3 weeks ago
YYN: Box 2: https://learn.microsoft.com/en-us/azure/key-vault/general/rbac-guide?tabs=azure-cli#:~:text=Key%20Vault%20Secrets%20Officer,access%20control%27%20permission%20model.
upvoted 1 times
...
pentium75
9 months, 4 weeks ago
No - Key vault Contributor could recover deleted key vaults (management plane) but not deleted secrets within a key vault (data plane) No - purging keys requires an explicit permission which is not part of any predefined role No - protection period is over
upvoted 3 times
...
Jimmy500
10 months, 4 weeks ago
For Azure Key vault by Default Soft delete is enabled, for the first statement Admin1 has Key Vault contributor role which is for management plane that is why this role is not enough for recover key from vault, answer is No for the first option. Admin2 is officer he/she can do whatever wants and here purge protection is disabled that is why Admin2 will be abele to purge but if it would be enabled then this would be No as well, however now this is Yes for option 2. For the option 3rd we have Admin3 who is Key Vault Admin and can work with data plane operations, admin3 recover keys until 11th of June as retention is 10 days and we have deleted on June 1 so this will be the NO as well. All in all, answer is No, Yes, No.
upvoted 1 times
...
bxlin
1 year ago
Y N N Helpdesk Administrator Can reset passwords for non-administrators and Helpdesk Administrators. Password Administrator Can reset passwords for non-administrators and Password Administrators.
upvoted 1 times
...
Strive_for_greatness_kc
1 year, 4 months ago
By default Soft delete is enabled 1. No : The key1 is still in the recyvcle bin but Admin1 is Key vault Contributor (Perform only management operations and can't manage permissions) he can't recover the key 2. Yes, the Secret1 is still in the recycle bin, Admin2 is Key Vault Secret Officers (can manage all data operation about secrets) and Purge protection is disabled so yes he can delete the secret, if purge protection was enabled on key Vault2, he will not be able to purge the secrets 3. Key1 is no more in the recycle bin because the period of retention was only 10 days after the deletion and we are at the 17 of June, so nobody can recover this key at this date
upvoted 4 times
Strive_for_greatness_kc
1 year, 4 months ago
3. is No (forgot to mention it)
upvoted 2 times
...
...
husam421
1 year, 4 months ago
NO NO NO The Key Vault Contributor role is for management plane operations only to manage key vaults. It does not allow access to keys, secrets and certificates.
upvoted 2 times
...
epomatti
1 year, 4 months ago
You're all wrong. Box 1: No Key Vault Contributor does NOT have data plane permissions. Box 2: Yes Purge protection is disabled. Box 3: No Retention period has passed. Retention period applies to BOTH the vault and the objects.
upvoted 8 times
...
xxavimr
1 year, 6 months ago
NO YES NO 1- Key Vault Contributor has only permissions on management plane not data plane 2- secret officer has total control on secrets. Do not confuse with "to purge we need an elevation of permissions", it is true but it is for access policy model. We are in RBAC model 3- It is already deleted, nothing to recover
upvoted 3 times
...
wardy1983
1 year, 6 months ago
Explanation: Box1: Yes Admin1 is Key Vault Contributor on KeyVault1, in which has 10 days to retain deleted vaults, and Key1 from KeyVault1 was deleted on Jun 1st. Hence on Jun 5th, Admin1 can recover Key1 Box2: No On Jun 1st, secret1 has already been deleted. Hence it cannot be purged again on Jun 12th Box3: No KeyVault1 has 10 days to retain deleted vaults, and Key1 from KeyVault1 was deleted on Jun 1st. Hence on Jun 17th it cannot be recovered
upvoted 1 times
...
[Removed]
1 year, 7 months ago
Key Vault Contributor Lets you manage key vaults, but not access to them. 1st option NO Key Vault Secrets Officer Perform any action on the secrets of a key vault, except manage permissions. it's within the timeframe so Yes (tested in lab Key Vault Secrets Officer can recover secrets only) Key Key Vault Administrator Perform all data plane operations on a key vault and all objects in it, including certificates, keys, and secrets Purge protection keeps the key in recovery state for 90 days (tested in lab) so Yes
upvoted 1 times
[Removed]
1 year, 5 months ago
NYN Key Vault Administrator Perform all data plane operations on a key vault and all objects in it, including certificates, keys, and secrets Purge protection keeps the key in recovery state for 90 days (tested in lab) so No Editing this
upvoted 1 times
...
...
azure_2563
1 year, 7 months ago
Tested it And Result is: NO YES NO. While testing make sure only mentioned role you assign not less not more.
upvoted 1 times
...
_punky_
1 year, 7 months ago
YNN, 2nd box is No cuz no enough permissions to do purge
upvoted 1 times
...
BigShot0
1 year, 8 months ago
1. When soft-delete is enabled, resources marked as deleted resources are retained for a specified period (90 days by default). 2. Purge protection is an optional Key Vault behavior and is not enabled by default. Purge protection can only be enabled once soft-delete is enabled. Therefore the third option is Yes. The key can be recovered for 90 days. The question says that key1 was deleted. Not that it was purged after the purge protection period. https://learn.microsoft.com/en-us/azure/key-vault/general/soft-delete-overview
upvoted 1 times
...
heatfan900
1 year, 8 months ago
y, y, n is correct Admin 1 can recover KEY 1 on June 5 because they are a KEY VAULT CONTRIBUTOR, who is allowed to recover keys, and the date falls within the 10 day retention period for that KEY VAULT1. Admin 2 can PURGE Secret1 on June 12 from KEY VAULT2 because the secret will still be in SOFT-DELETE state until June 15. The retention period for it is 15 days. To PURGE is not to DELETE. Delete is deleting the secret from the key vault and putting it in SOFT-DELETE state. Purging is equivalent to emptying a recycle bin in Windows. A KEY VAULT SECRETS OFFICER can delete and purge secrets. Admin 3, although a KEY VAULT ADMIN, cannot recover KEY1 on June 17th because it is past the 10 day Retention period for for Key Vault1.
upvoted 7 times
[Removed]
1 year, 7 months ago
Contributors have no access to the data plane go and test it lab please
upvoted 1 times
...
...
ESAJRR
1 year, 8 months ago
Y - within 10 days N - purge protection enabled so no, also Secrets officer has not enough permission N - more than 15 days have passed, so already deleted and not possible to recover anymore
upvoted 1 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 ...