exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 14 question 2 discussion

Actual exam question from Microsoft's AZ-204
Question #: 2
Topic #: 14
[All AZ-204 Questions]

You need to ensure the security policies are met.
What code do you add at line CS07 of ConfigureSSE.ps1?

  • A. ג€"PermissionsToKeys create, encrypt, decrypt
  • B. ג€"PermissionsToCertificates create, encrypt, decrypt
  • C. ג€"PermissionsToCertificates wrapkey, unwrapkey, get
  • D. ג€"PermissionsToKeys wrapkey, unwrapkey, get
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Zsolt72
Highly Voted 3 years, 8 months ago
My opinion is that the answer is D. The policy should belong to a key. In the case study the code retrieve the key so the GET access policy is mandatory. The wrap/unwrap is used for symmetric encryption and in this case study the task is to encrypt the blobs.
upvoted 56 times
azurelearner666
3 years, 5 months ago
Yes! it's D PermissionsToKeys wrapkey, unwrapkey, get https://docs.microsoft.com/en-us/powershell/module/az.storage/set-azstorageaccount?view=azps-5.8.0#example-5--set-encryption-keysource-to-keyvault code example at line 7
upvoted 11 times
...
...
mlantonis
Highly Voted 3 years, 6 months ago
Correct Answer: D PS C:\>Set-AzKeyVaultAccessPolicy -VaultName "MyKeyVault" -ObjectId $account.Identity.PrincipalId -PermissionsToKeys wrapkey,unwrapkey,get Reference: https://docs.microsoft.com/en-us/powershell/module/az.storage/set-azstorageaccount?view=azps-5.8.0#example-5--set-encryption-keysource-to-keyvault
upvoted 12 times
...
james2033
Most Recent 9 months, 1 week ago
Selected Answer: D
PermissionsToKeys wrapkey, unwrapkey, get
upvoted 1 times
...
alejary
1 year, 7 months ago
What is ג€" ?
upvoted 6 times
...
adilkhan
1 year, 8 months ago
are these questions enough to pass the exam?
upvoted 3 times
dddddd111
1 year, 2 months ago
Some questions here appeared to the actual exam. But the problem is the answer here are not accurate. Same in some highly voted answers. I failed on my first attempt (646/1000) even though I have contributor access.
upvoted 5 times
...
...
uffuchsi
1 year, 10 months ago
Selected Answer: D
100% D - All certificates and secrets used to secure data must be stored in Azure Key Vault. You need to retrieve the keys so get permission is required. The wrapkey and unwrapkey will be used for symmetric encryption to encrypt the blobs. Below link contains an example of same scenario. https://docs.microsoft.com/en-us/powershell/module/az.storage/set-azstorageaccount?view=azps-8.0.0#example-5-set-encryption-keysource-to-keyvault https://docs.microsoft.com/en-us/azure/key-vault/keys/about-keys-details#key-access-control
upvoted 3 times
...
AlexeyG
1 year, 10 months ago
Got this in 16/02/2023
upvoted 1 times
mabdo
1 year, 10 months ago
same case study?
upvoted 1 times
...
...
OPT_001122
2 years, 1 month ago
Selected Answer: D
PermissionsToKeys wrapkey, unwrapkey, get
upvoted 1 times
...
gmishra88
2 years, 2 months ago
This page shows the example: https://learn.microsoft.com/en-us/powershell/module/azurerm.storage/set-azurermstorageaccount?view=azurermps-6.13.0#example-5-set-encryption-keysource-to-keyvault
upvoted 1 times
...
aruni_mishra
2 years, 5 months ago
Selected Answer: D
https://docs.microsoft.com/en-us/powershell/module/az.storage/set-azstorageaccount?view=azps-8.0.0&viewFallbackFrom=azps-5.8.0#example-5--set-encryption-keysource-to-keyvault:~:text=PS%20C%3A%5C%3E%20Set%2DAzKeyVaultAccessPolicy%20%2DVaultName%20%24keyvaultName%20%2DResourceGroupName%20%24resourceGroupName%20%2DObjectId%20%24userId.PrincipalId%20%2DPermissionsToKeys%20get%2Cwrapkey%2Cunwrapkey%20%2DBypassObjectIdValidation
upvoted 1 times
...
pandrer
2 years, 7 months ago
B and C wrong parameters
upvoted 1 times
...
Bogdan75
2 years, 9 months ago
Selected Answer: D
https://docs.microsoft.com/en-us/azure/key-vault/keys/about-keys-details#key-access-control
upvoted 1 times
...
leonidn
2 years, 10 months ago
Selected Answer: D
PermissionsToKeys wrapkey, unwrapkey, get
upvoted 4 times
...
edengoforit
2 years, 11 months ago
The Set-AzureRmKeyValutAccessPolicy parameter -PermissionsToKeys specifies an array of key operation permissions to grant to a user or service principal. According to the reference, the answer is D https://docs.microsoft.com/es-es/powershell/module/azurerm.storage/set-azurermstorageaccount?view=azurermps-6.13.0
upvoted 1 times
...
RajMasilamani
3 years, 3 months ago
Answer is D. Wrap,Unwrap,encrypt,decrypt available only for -PermissionsToKeys https://docs.microsoft.com/en-us/powershell/module/az.keyvault/set-azkeyvaultaccesspolicy?view=azps-6.4.0#parameters
upvoted 3 times
ReniRechner
2 years, 9 months ago
This site also clearly states that PermissionsToCertificates only has these options: all, get, list, delete, create, import, update, managecontacts, getissuers, listissuers, setissuers, deleteissuers, manageissuers, recover, purge, backup, restore So B and C are not even valid
upvoted 1 times
...
...
ning
3 years, 3 months ago
D is correct from https://docs.microsoft.com/es-es/powershell/module/azurerm.storage/set-azurermstorageaccount?view=azurermps-6.13.0
upvoted 2 times
...
anandhprakash
3 years, 7 months ago
Refer https://docs.microsoft.com/en-us/powershell/module/az.storage/set-azstorageaccount?view=azps-5.8.0#example-5--set-encryption-keysource-to-keyvault Example 5: Set Encryption KeySource to Keyvault Answer should be D: wrapkey,unwrapkey,get PS C:\>Set-AzKeyVaultAccessPolicy -VaultName "MyKeyVault" -ObjectId $account.Identity.PrincipalId -PermissionsToKeys wrapkey,unwrapkey,get
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 ...