exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 2 question 86 discussion

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

HOTSPOT
-

You have an Azure Storage account named storage1 that uses Azure Blob storage and Azure File storage.

You need to use AzCopy to copy data to the blob storage and file storage in storage1.

Which authentication method should you use for each type of storage? To answer, select the appropriate options in the answer area.

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
Vokuhila
Highly Voted 1 year, 6 months ago
First: Azure AD & SAS Second: SAS Source: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10#authorize-azcopy
upvoted 35 times
hank00r
1 year, 2 months ago
The link you provided states: "You can provide authorization credentials by using Microsoft Entra ID, or by using a Shared Access Signature (SAS) token". So it should be Azure AD & SAS for both Questions. Am I getting it wrong?
upvoted 22 times
Bravo_Dravel
1 month, 3 weeks ago
True, both you can use either SAS (Shared Access Signature) or Azure AD (Azure Active Directory) for authorization
upvoted 1 times
...
ggogel
1 year, 1 month ago
Yes, this must have been changed. The following doc clearly states that Entra ID can be used to authorize access to file shares when using azcopy. https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory
upvoted 8 times
SDiwan
1 year, 1 month ago
No, if you are targetting copy to the whole "file share" then SAS is the only option. Entra ID can be used , if you are copying a fileor files to a specific folder inside file file share. So, SAS only is correct for 2nd question
upvoted 2 times
tableton
11 months ago
But I think the whole file share is not mentioned in the question: "You need to use AzCopy to copy data to the blob storage and file storage in storage1." So EntraID could be used to azcopy to file share
upvoted 5 times
suddin1
9 months, 2 weeks ago
I agree, this is what microsoft says here, " Note The examples in this article show the use of a SAS token to authorize access. However, for commands that target files and directories, you can now provide authorization credentials by using Microsoft Entra ID and omit the SAS token from those commands. You'll still have to use a SAS token in any command that targets only the file share or the account (For example: 'azcopy make https://mystorageaccount.file.core.windows.net/myfileshare' or 'azcopy copy 'https://mystorageaccount.file.core.windows.net'." https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-files
upvoted 6 times
...
...
...
...
...
Sameer9371
1 year, 5 months ago
you are absolutely right
upvoted 3 times
...
...
[Removed]
Highly Voted 1 year, 2 months ago
Currently supported method of authorization Blob storage: Microsoft Entra ID & SAS Blob storage (hierarchical namespace): Microsoft Entra ID & SAS File storage: SAS only
upvoted 11 times
heartfilia42
1 year, 1 month ago
Sorry, but with the official doc :https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory I don't see anywhere taht you cannot use Azure AD to access File Storage as well as Blob Storage ?
upvoted 4 times
Thisisacat
7 months, 1 week ago
I think for both the answer is 3rd option
upvoted 2 times
...
...
...
Jakub4444
Most Recent 4 days, 15 hours ago
As of February 2025, according to the latest official Microsoft documentation, AzCopy supports the following authentication methods for Azure Blob Storage and Azure File Storage: 1. Azure Blob Storage: Supported Authentication Methods: Microsoft Entra ID (formerly Azure Active Directory or Azure AD): Allows for secure, role-based access control. Shared Access Signature (SAS) Tokens: Provide time-limited and permission-specific access. 2. Azure File Storage: Supported Authentication Methods: Microsoft Entra ID: Enables secure access with role-based permissions. Storage Account Key: Utilizes the account key for authentication. SAS Tokens are not supported for Azure File Storage with AzCopy. https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-files
upvoted 2 times
...
sca88
3 months, 3 weeks ago
https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-files "The examples in this article show the use of a SAS token to authorize access. However, for commands that target files and directories, you can now provide authorization credentials by using Microsoft Entra ID and omit the SAS token from those commands. You'll still have to use a SAS token in any command that targets only the file share or the account (For example: 'azcopy make https://mystorageaccount.file.core.windows.net/myfileshare' or 'azcopy copy 'https://mystorageaccount.file.core.windows.net'." So because the question doesn't talk about specific file or folder the answer provided is correct: 1) AD & SAS 2) ONLY SAS
upvoted 1 times
...
JPA210
4 months ago
this kind of questions are tricky, because it is not explicit if it is going to copy only some fiiles or the entire share. The examples in this article show the use of a SAS token to authorize access. However, for commands that target files and directories, you can now provide authorization credentials by using Microsoft Entra ID and omit the SAS token from those commands. You'll still have to use a SAS token in any command that targets only the file share or the account.
upvoted 1 times
...
jamesf
4 months, 2 weeks ago
The answer is incorrect now because File storage supports Microsoft Entra ID after 11 Jun 2024. The correct answer is SAS and Microsoft Entra ID for both blob storage and file storage. There is a registration process to follow to use MS Entra ID for File with AzCopy. https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory
upvoted 7 times
...
155e6a0
5 months ago
The answer is incorrect now because File storage supports Microsoft Entra ID after 6/12/2024. The correct answer is SAS and Microsoft Entra ID for both blob storage and file storage. There is a registration process to follow to use MS Entra ID for File with AzCopy. https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory
upvoted 3 times
...
[Removed]
6 months ago
CORRECT
upvoted 2 times
...
OpOmOp
7 months, 3 weeks ago
It can be authorized with credentials for FileShare as well.. The examples in this article show the use of a SAS token to authorize access. However, for commands that target files and directories, you can now provide authorization credentials by using Microsoft Entra ID and omit the SAS token from those commands. You'll still have to use a SAS token in any command that targets only the file share or the account (For example: 'azcopy make https://mystorageaccount.file.core.windows.net/myfileshare' or 'azcopy copy 'https://mystorageaccount.file.core.windows.net'.
upvoted 3 times
...
varinder82
9 months, 3 weeks ago
Final Answer: First: Azure AD & SAS Second: SAS
upvoted 2 times
...
3c5adce
9 months, 4 weeks ago
Validated by ChatGPT 4 - Blob Storage: Azure AD and Shared Access Signatures (SAS) File Storage: Shared Access Signatures (SAS) only
upvoted 1 times
3c5adce
9 months, 3 weeks ago
Changing my answer Blob storage: Azure AD and shared access signatures (SAS) File storage: Azure AD only
upvoted 2 times
...
...
ssky
10 months ago
for commands that target files and directories, you can now provide authorization credentials by using Microsoft Entra ID and omit the SAS token from those commands. You'll still have to use a SAS token in any command that targets only the file share or the account
upvoted 4 times
...
tashakori
1 year ago
Correct
upvoted 1 times
...
Ziolupo
1 year ago
Entra ID is now available to authorize Azcopy on Azure file share.
upvoted 5 times
...
allyou
1 year ago
https://learn.microsoft.com/fr-fr/azure/storage/common/storage-ref-azcopy-copy
upvoted 2 times
allyou
1 year ago
https://learn.microsoft.com/en-us/training/modules/configure-storage-tools/4-use-azcopy
upvoted 1 times
...
...
edurakhan
1 year ago
This link: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory clearly states: "You can provide AzCopy with authorization credentials by using Microsoft Entra ID. That way, you won't have to append a shared access signature (SAS) token to each command." The question is kind of confusing - "which SHOULD you use". You COULD use both, but I am assuming Microsoft Entra ID (Azure AD) SHOULD be the right way for both.
upvoted 1 times
...
RockyChak
1 year ago
Authorize access to blobs and files with AzCopy and Microsoft Entra ID https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory Both Blob and File storage can be authenticated with Entra ID and SAS
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago