exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 3 question 4 discussion

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

HOTSPOT -
You have an Azure Storage account named storage1.
You have an Azure App Service app named App1 and an app named App2 that runs in an Azure container instance. Each app uses a managed identity.
You need to ensure that App1 and App2 can read blobs from storage1. The solution must meet the following requirements:
✑ Minimize the number of secrets used.
✑ Ensure that App2 can only read from storage1 for the next 30 days.
What should you configure in storage1 for each app? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
App1: Access keys -
App2: Shared access signature (SAS)
A shared access signature (SAS) provides secure delegated access to resources in your storage account without compromising the security of your data. With a
SAS, you have granular control over how a client can access your data. You can control what resources the client may access, what permissions they have on those resources, and how long the SAS is valid, among other parameters.
Reference:
https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview

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
mlantonis
Highly Voted 3 years, 9 months ago
Correct Answer: Box 1: Access Control (IAM) Since the App1 uses Managed Identity, App1 can access the Storage Account via IAM. As per requirement, we need to minimize the number of secrets used, so Access keys is not ideal. Box 2: Shared access signatures (SAS) We need temp access for App2, so we need to use SAS. Reference: https://docs.microsoft.com/en-us/azure/storage/common/storage-auth
upvoted 496 times
Tayhull2023
1 year, 4 months ago
I am starting to think mlantonis is a super computer =O
upvoted 19 times
Mentalfloss
7 months, 1 week ago
If mlantonis was hired to research and post as he or she does, I approve of how my fees are used. :)
upvoted 5 times
...
...
sreekan
3 years, 6 months ago
this is absolute!!!
upvoted 5 times
...
nahte
2 years, 7 months ago
totally agree of using MI+IAM
upvoted 3 times
...
go4adil
1 year, 1 month ago
Agreed. Below link clearly maps the situation mentioned in the question. https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-access-storage?tabs=azure-portal
upvoted 2 times
...
...
Andersonalm
Highly Voted 4 years, 2 months ago
I think App1 should access storage1 over IAM with managed identity. The requirement is minimize the number of secrets used...
upvoted 121 times
Abhi92
4 years, 2 months ago
Yes Correct
upvoted 3 times
pieronegri
4 years, 2 months ago
that was my thought as well.
upvoted 3 times
...
...
prashantjoge
4 years, 2 months ago
That's what I thought too
upvoted 3 times
...
diligent176
4 years, 2 months ago
Yes, and especially since they say "apps can read blobs from storage1"... So, IAM is supported in that case and requires no secrets to keep. App1 = IAM / RBAC and App2 = SAS https://docs.microsoft.com/en-us/azure/storage/common/storage-auth
upvoted 20 times
...
Tranquillo1811
3 years, 9 months ago
If you use IAM then for each access request a new token is requested by the service account. Hence for each access request a new token (a new secret) is used. if you use the access keys though, it is always the very same secret is used. Hence I'd say that "Access Keys" is the correct choice for App1...
upvoted 10 times
RamanAgarwal
3 years, 9 months ago
You can use managed identity to access storage so this way you dont have to create a token anytime you want to access the storage account.
upvoted 6 times
...
...
...
Nepton
Most Recent 1 day, 16 hours ago
Box 1: Access Control (IAM) Since the App1 uses Managed Identity, App1 can access the Storage Account via IAM. As per requirement, we need to minimize the number of secrets used, so Access keys is not ideal. Box 2: Shared access signatures (SAS) We need temp access for App2, so we need to use SAS. A shared access signature (SAS) provides secure delegated access to resources in your storage account without compromising the security of your data. With a SAS, you have granular control over how a client can access your data. You can control what resources the client may access, what permissions they have on those resources, and how long the SAS is valid, among other parameters. Reference: https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview https://docs.microsoft.com/en-us/azure/storage/common/storage-auth
upvoted 1 times
...
Bravo_Dravel
1 month, 1 week ago
Correct Answer: BOX 1:Access Conntrol(IAM) pp1 has a managed identity, and you can assign a Storage Blob Data Reader role to the managed identity of App1 in the access control (IAM) settings for storage1. This approach eliminates the need for secrets and allows App1 to read blobs securely Box 2: Shared access siganture(SAS) Use a Shared access signature (SAS). This allows you to create a time-limited access token that grants read permissions to App2 for the next 30 days.
upvoted 2 times
...
[Removed]
5 months, 3 weeks ago
WRONG App1: Access control (IAM) App2: Shared access signatures (SAS)
upvoted 3 times
...
[Removed]
6 months ago
WRONG App1: Access Control (IAM) App2: Shared Access Signatures (SAS)
upvoted 1 times
...
ajay01avhad
7 months, 1 week ago
App1: Access control (IAM) App2: Shared access signatures (SAS)
upvoted 1 times
...
Amir1909
1 year ago
- Access keys (IAM) - shared access signatures (SAS)
upvoted 1 times
...
iamchoy
1 year, 5 months ago
To ensure that App1 and App2 can read blobs from storage1 while meeting the given requirements, you would use the following: 1. **App1**: Since App1 uses a managed identity and there's no mention of time restrictions for its access, you should grant its managed identity the necessary permissions using Azure RBAC (Role-Based Access Control). Thus, for App1, the answer would be: - **Access control (IAM)**: You should assign the managed identity of App1 the necessary role (e.g., "Storage Blob Data Reader") at the appropriate scope. 2. **App2**: For App2, it's specified that the access should only last for the next 30 days. Shared Access Signatures (SAS) are best for providing time-limited access to resources in Azure Storage. Thus, for App2, the answer would be: - **Shared access signatures (SAS)**: Generate an SAS token with read permissions on the blob service and set its expiration to 30 days in the future. Summary: - App1: Access control (IAM) - App2: Shared access signatures (SAS)
upvoted 5 times
...
az11q
1 year, 6 months ago
It would be immensely appreciated if someone with "Contributor Access" could kindly share all the questions, answers, and associated discussions in a PDF format. Your invaluable support holds immense significance for me, and I earnestly seek your assistance in this journey. Any help extended is deeply appreciated.
upvoted 1 times
...
oopspruu
1 year, 6 months ago
Since App1 uses managed identity, it means it can be given access through IAM. Doing it through Access Keys would make use of additional secret. Answer to first should be IAM.
upvoted 1 times
...
Mehedi007
1 year, 7 months ago
IAM & SAS. IAM because of managed identity. SAS because of time limited access.
upvoted 4 times
...
JWS80
1 year, 7 months ago
For App1, you should configure Access control (IAM) in storage1. This will allow you to grant the managed identity used by App1 the necessary permissions to read blobs from storage1 using role-based access control (RBAC). This approach minimizes the number of secrets used, as it does not require the use of access keys or shared access signatures. For App2, you should configure Shared access signatures (SAS) in storage1. This will allow you to create a shared access signature with an expiry time of 30 days, which will grant App2 temporary read access to blobs in storage1. After 30 days, the shared access signature will expire and App2 will no longer be able to read from storage1.
upvoted 1 times
...
Teroristo
1 year, 7 months ago
Box 1: Access Control (IAM) Since the App1 uses Managed Identity, App1 can access the Storage Account via IAM. As per requirement, we need to minimize the number of secrets used, so Access keys is not ideal. Box 2: Shared access signatures (SAS) We need temp access for App2, so we need to use SAS. A shared access signature (SAS) provides secure delegated access to resources in your storage account without compromising the security of your data. With a SAS, you have granular control over how a client can access your data. You can control what resources the client may access, what permissions they have on those resources, and how long the SAS is valid, among other parameters. Reference: https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview https://docs.microsoft.com/en-us/azure/storage/common/storage-auth
upvoted 1 times
...
NYTK
1 year, 7 months ago
Came in exams on 21/7/2023. I selected Access control and SAS
upvoted 7 times
...
itguyeu
1 year, 8 months ago
I used free version access for this site and it helped me pass the exam. Some questions that I had on the exams, I took the exam more than once, are not available under the free tier access, but 80% of the questions came from here. I do recommend investing a bit of money and getting full access to this site. I didn't memorise answers but analysed them and studied as Microsoft does tweak them a bit. This Q was on the exam.
upvoted 5 times
...
xRiot007
1 year, 9 months ago
Box 1 : IAM - you want least amount of secrets used Box 2 : SAS - you want this because you are able to set a duration
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