Soru

Zorluk: OrtaManage Data Movement using AzCopy and Storage Explorer

An administrator needs to synchronize a local directory named C:\Logs to a blob container named applogs in an Azure storage account. Shared key access is disabled on the storage account. The storage account firewall is configured to allow access only from selected networks, and the administrator's workstation public IP address is allowed. The synchronization must meet the following requirements:
- Only files with the .log extension must be synchronized.
- Any files in the destination container that do not exist in the source directory must be deleted automatically.

Which two actions or parameters should the administrator use? (Select two.)

  1. Include the --include-pattern "*.log" parameter in the azcopy sync command.Cevap
  2. Include the --delete-destination "true" parameter in the azcopy sync command.Cevap
  3. C
    Assign the Owner role to the administrator's Microsoft Entra ID account at the storage account level.
  4. D
    Authenticate by appending a Shared Access Signature (SAS) token with a 365-day expiration window to the destination URL.
  5. E
    Configure the storage account firewall to disable the 'Allow trusted Microsoft services to access this storage account' setting.

Cevap

Include the --include-pattern "*.log" and --delete-destination "true" parameters in the azcopy sync command.
To synchronize the directory while filtering by extension and deleting orphaned files at the destination, the command must use the --include-pattern "*.log" flag to isolate log files, and the --delete-destination "true" flag to remove non-existent files. Because shared key access is disabled, the administrator must authenticate using Microsoft Entra ID.

Adım Adım Çözüm

1
Identify the required file filtering parameter.
Use the --include-pattern "*.log" parameter to restrict the synchronization to files with the .log extension.
The requirement specifies that only .log files should be synchronized.
2
Identify the required deletion parameter.
Use the --delete-destination "true" parameter.
This automatically removes files from the destination that are not present in the source directory, without prompting the user.
3
Verify authentication requirements under disabled shared key access.
Use Microsoft Entra ID authentication (via azcopy login) with the Storage Blob Data Contributor role.
Since shared key access is disabled, access keys and standard SAS tokens cannot be used.

Anahtar Kavram

Synchronizing files to Azure Blob Storage using AzCopy with file filters, destination cleanup, and Microsoft Entra ID authorization.
Bu soruyu puanla