exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 2 question 1 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure subscription named Sub1.
You have an Azure Storage account named sa1 in a resource group named RG1.
Users and applications access the blob service and the file service in sa1 by using several shared access signatures (SASs) and stored access policies.
You discover that unauthorized users accessed both the file service and the blob service.
You need to revoke all access to sa1.
Solution: You create a new stored access policy.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
JohnCrawford
Highly Voted 5 years, 6 months ago
I believe the correct answer to this is "No". You can up to 5 access policies on an object. Creating a new one doesn't revoke the old one. To revoke a stored access policy, you can delete it, rename it by changing the signed identifier, or change the expiry time to a value in the past. Nowhere in the documentation does it say creating a new one revokes the old one.
upvoted 72 times
awssecuritynewbie
4 years, 7 months ago
i agree, it just says create a new policy not " delete" or revoke the existing one that has caused this issue
upvoted 5 times
...
Globetrotter
3 years, 7 months ago
answer is no here , as creating a new access policy won't cancel existing shared access signature . we just need to update or delete existing access policy for the same.
upvoted 3 times
...
...
S_Khan
Highly Voted 5 years, 1 month ago
Answer "Yes" is correct. You can find explanation in the article: https://docs.microsoft.com/en-us/rest/api/storageservices/define-stored-access-policy "A stored access policy provides an additional level of control over service-level shared access signatures (SAS) on the server side. Establishing a stored access policy serves to group shared access signatures and to provide additional restrictions for signatures that are bound by the policy. You can use a stored access policy to change the start time, expiry time, or permissions for a signature, or to revoke it after it has been issued."
upvoted 21 times
pentium75
9 months ago
Deleting the existing stored access policy would help, but just creating a new (additional) one does not.
upvoted 1 times
...
bxlin
11 months, 1 week ago
stored access policy is only available for blob not for file share. hence No.
upvoted 1 times
...
obaali1990
2 years ago
Your explanation is not accurate. It doesnt explain the question. The answer to the question is NO
upvoted 2 times
...
peacegrace
4 years ago
NO . Becaz .....Creating a new (additional) stored access policy with have no effect on the existing policy or the SASג€™s linked to it. To revoke a stored access policy, you can either delete it, or rename it by changing the signed identifier. Changing the signed identifier breaks the associations between any existing signatures and the stored access policy. Deleting or renaming the stored access policy immediately effects all of the shared access signatures associated with it.
upvoted 9 times
gchristina
4 years ago
I agree: https://docs.microsoft.com/en-us/rest/api/storageservices/create-user-delegation-sas#revoke-a-user-delegation-sas https://docs.microsoft.com/en-us/rest/api/storageservices/create-service-sas#revocation-of-a-sas
upvoted 2 times
...
...
...
stonwall12
Most Recent 2 months, 2 weeks ago
Selected Answer: B
Answer: B, No Reason: Creating a new stored access policy doesn't revoke existing SAS tokens or access. To revoke all access, you need to regenerate the storage account keys, which will invalidate all existing SAS tokens regardless of their policies. Reference: https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage
upvoted 1 times
...
Ruffyit
5 months, 4 weeks ago
I believe the correct answer to this is "No". You can up to 5 access policies on an object. Creating a new one doesn't revoke the old one. To revoke a stored access policy, you can delete it, rename it by changing the signed identifier, or change the expiry time to a value in the past. Nowhere in the documentation does it say creating a new one revokes the old one.
upvoted 1 times
...
codeunit
6 months, 2 weeks ago
No, creating a new stored access policy alone does not meet the goal. To revoke all access to the storage account (sa1), you need to delete or modify the existing stored access policies associated with the shared access signatures (SAS). When you delete or change an existing stored access policy, all SAS tokens associated with that policy will be immediately invalidated, effectively revoking access. Creating a new stored access policy does not impact existing SAS tokens, so it will not revoke access for unauthorized users who have valid SAS tokens linked to the current policies. To revoke all access effectively, you should either: Delete the existing stored access policies linked to the SAS tokens, or Rotate the account keys for sa1, which will invalidate all SAS tokens associated with those keys. Therefore, the correct action would be to delete or modify the existing stored access policies or rotate the storage account keys.
upvoted 1 times
...
saira23
9 months ago
this question was in exam 19/07/2024
upvoted 1 times
...
Ivan80
1 year, 2 months ago
In exam 1/28/24
upvoted 3 times
...
trashbox
1 year, 6 months ago
Selected Answer: B
The question was given on the October 9, 2023 exam.
upvoted 3 times
...
ESAJRR
1 year, 9 months ago
Selected Answer: B
B is correct answer.
upvoted 1 times
...
Andre369
1 year, 11 months ago
Selected Answer: B
No, creating a new stored access policy does not meet the goal of revoking all access to the Azure Storage account. A stored access policy is used to define a set of constraints and permissions for shared access signatures (SAS) to the resources in the storage account. Creating a new stored access policy does not automatically revoke existing access.
upvoted 1 times
...
zellck
1 year, 11 months ago
Selected Answer: B
B is the answer. https://learn.microsoft.com/en-us/rest/api/storageservices/define-stored-access-policy#modify-or-revoke-a-stored-access-policy To revoke a stored access policy, you can delete it, rename it by changing the signed identifier, or change the expiry time to a value in the past. Changing the signed identifier breaks the associations between any existing signatures and the stored access policy. Changing the expiry time to a value in the past causes any associated signatures to expire. Deleting or modifying the stored access policy immediately affects all of the shared access signatures associated with it.
upvoted 2 times
...
Johnvic
2 years ago
Exam.6 case studies. 3 true/false questions. 47 multiple questions and no simulations. Alot of new questions thats not up here
upvoted 1 times
...
Gesbie
2 years ago
In exam April 11, 2023
upvoted 4 times
...
majstor86
2 years, 1 month ago
Selected Answer: B
B. NO is correct answer
upvoted 2 times
...
Diallo18
2 years, 6 months ago
In Exam 10/18/2022. One case study, no lab.
upvoted 1 times
...
Amit3
2 years, 7 months ago
# In EXAM - 01-Oct-2022
upvoted 1 times
...
exampracticeemail
2 years, 8 months ago
In Exam 08/29/22
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