exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 29 discussion

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

You develop a REST API. You implement a user delegation SAS token to communicate with Azure Blob storage.
The token is compromised.
You need to revoke the token.
What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Revoke the delegation key.
  • B. Delete the stored access policy.
  • C. Regenerate the account key.
  • D. Remove the role assignment for the security principle.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

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
jay158
Highly Voted 3 years, 10 months ago
Given answer is incorrect. Correct answers are A , D https://docs.microsoft.com/en-us/rest/api/storageservices/create-user-delegation-sas#revoke-a-user-delegation-sas
upvoted 113 times
jkes80
3 years, 9 months ago
Your link literally says you're correct it should be A and D. "If you believe that a SAS has been compromised, then you should revoke the SAS. You can revoke a user delegation SAS either by revoking the user delegation key, or by changing or removing RBAC role assignments for the security principal used to create the SAS."
upvoted 22 times
...
Esward
2 years, 3 months ago
I greed with A, D
upvoted 2 times
...
maukaba
3 years, 4 months ago
There're two ways to create a SAS: (1). The "standard" way to generate a SAS token is to use the storage account key. (2). by using "managed identities" with a technique is called a "user delegation" SAS, and it allows you to sign the signature with Azure AD credentials instead of with the storage account key. This question is (2) hence A, D is correct REF: https://markheath.net/post/user-delegation-sas
upvoted 3 times
...
ML333
2 years, 10 months ago
Answer definitely A, D as per provided link - All exam questions answers should be as straightforward as this Microsoft! So much ambiguity in 90% of the questions.
upvoted 3 times
...
...
mlantonis
Highly Voted 3 years, 10 months ago
Answer seems correct. A: Use az storage account revoke-delegation-keys command. B: To revoke a stored access policy, you can either delete it, or rename it by changing the signed identifier. Reference: https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/storage/blobs/storage-blob-user-delegation-sas-create-cli.md https://docs.microsoft.com/en-us/rest/api/storageservices/define-stored-access-policy#modifying-or-revoking-a-stored-access-policy https://docs.microsoft.com/en-us/cli/azure/storage/account?view=azure-cli-latest#az_storage_account_revoke_delegation_keys
upvoted 16 times
No . Note that user delegation SAS token used in the scenario does not support Stored Access Policy so B is wrong and D is NOT valid too : The role assignments are not directly linked to SAS (Shared Access Signature) tokens in Blob Storage. Revoking a role wouldn't invalidate a SAS token. So correct Answers are A and C.
upvoted 1 times
...
Azprep
3 years ago
Answers should be A& D
upvoted 1 times
...
Jurgen1234
3 years, 9 months ago
Incorrect it should be D not B, see https://docs.microsoft.com/en-us/rest/api/storageservices/define-stored-access-policy Stored access policies are not supported for the user delegation SAS or the account SAS..
upvoted 3 times
...
...
Vichu_1607
Most Recent 5 months, 4 weeks ago
Selected Answer: AD
If you believe that a SAS has been compromised, you should revoke it. You can revoke a user delegation SAS either by revoking the user delegation key, or by changing or removing RBAC role assignments for the security principal that's used to create the SAS.
upvoted 1 times
...
4bd3116
8 months ago
Selected Answer: AC
Revoke, Regenerate
upvoted 1 times
...
prabhjot
8 months, 2 weeks ago
May be A and C
upvoted 1 times
...
Guis A and C . The role assignments are not directly linked to SAS (Shared Access Signature) tokens in Blob Storage. Removing a role wouldn't invalidate a SAS token
upvoted 1 times
...
manopeydakon
1 year, 3 months ago
A,C When dealing with a compromised user delegation SAS token in Azure Blob storage, you can take the following actions: A. Revoke the delegation key: User delegation SAS tokens are generated based on a delegation key. Revoking the delegation key would invalidate any tokens generated with that key. C. Regenerate the account key: Regenerating the account key would effectively invalidate all SAS tokens, including user delegation SAS tokens, associated with the storage account. This is a more drastic measure and should be carefully considered, as it affects all tokens, not just the compromised one. Therefore, the correct answers are A (Revoke the delegation key) and C (Regenerate the account key).
upvoted 4 times
...
FeriAZ
1 year, 3 months ago
A. Revoke the Delegation Key Approach: By revoking the user delegation key used to create the SAS token, you can effectively invalidate the SAS token. Feasibility: Azure Blob Storage allows you to revoke user delegation keys, which will invalidate any SAS tokens created with them. Effectiveness: This is a direct way to revoke a compromised User Delegation SAS token. D. Remove the Role Assignment for the Security Principle Approach: This involves removing the Azure AD role assignment that grants permissions to the user or service principal associated with the SAS token. Feasibility: By removing or altering the role assignment in Azure AD, you can effectively revoke access permissions that the SAS token grants. Effectiveness: This can be an effective way to revoke access, though it may be broader than just invalidating a specific SAS token.
upvoted 1 times
...
manopeydakon
1 year, 3 months ago
A and D!
upvoted 1 times
...
nikipediaa
1 year, 7 months ago
Question was on exam 2023-09-26
upvoted 1 times
...
Teit_examptopics
1 year, 7 months ago
If you believe that a SAS has been compromised, you should revoke it. You can revoke a user delegation SAS either by revoking the user delegation key, or by changing or removing RBAC role assignments for the security principal that's used to create the SAS. https://learn.microsoft.com/en-us/rest/api/storageservices/create-user-delegation-sas
upvoted 1 times
...
IvanIco
1 year, 8 months ago
C By regenerating the you make the prevues key unusable why isn't that right
upvoted 1 times
...
RKyawal
1 year, 9 months ago
https://learn.microsoft.com/en-us/rest/api/storageservices/define-stored-access-policy cannot be B as per this link..not supporeted
upvoted 1 times
...
DP_Bhatt
2 years, 2 months ago
Selected Answer: AD
Correct answers A and D
upvoted 1 times
...
rosa_0617
2 years, 8 months ago
Selected Answer: AD
If you believe that a SAS has been compromised, then you should revoke the SAS. You can revoke a user delegation SAS either by revoking the user delegation key, or by changing or removing RBAC role assignments for the security principal used to create the SAS.
upvoted 4 times
...
nuiowmokka
2 years, 8 months ago
Can we pass the exam just by studying questions tilll Page 22? I don't have contributor access and can't afford right now.
upvoted 5 times
...
ASAAAAS2
2 years, 9 months ago
Selected Answer: AD
A & D for sure
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