nerdexam
Microsoft

AZ-204 · Question #579

You manage an Azure Storage account named storage1. You plan to load 1 million blobs into storage1. You must assign key-value pairs to blobs so that both keys and their values are automatically…

The correct answer is B. Set-AzStorageBlobTag. The Set-AzStorageBlobTag command is used to assign key-value pairs (tags) to blobs in Azure Blob Storage. These tags are automatically indexed and searchable, allowing you to manage and search blobs based on their assigned metadata using the built-in indexing services in Azure…

Submitted by noor.lb· Mar 30, 2026Develop for Azure storage

Question

You manage an Azure Storage account named storage1. You plan to load 1 million blobs into storage1. You must assign key-value pairs to blobs so that both keys and their values are automatically indexed and searchable by using the built-in services of storage1. You need to run the command to assign key-value pairs. Which command should you run?

Options

  • AUpdate -AzStorageBobServiceProperty
  • BSet-AzStorageBlobTag
  • Caz storage blob service-properties update
  • DSet-AzStorageBlobContent

How the community answered

(31 responses)
  • A
    10% (3)
  • B
    81% (25)
  • C
    3% (1)
  • D
    6% (2)

Explanation

The Set-AzStorageBlobTag command is used to assign key-value pairs (tags) to blobs in Azure Blob Storage. These tags are automatically indexed and searchable, allowing you to manage and search blobs based on their assigned metadata using the built-in indexing services in Azure Update -AzStorageBobServiceProperty is used to update service-level properties, not blob- specific metadata or tags. az storage blob service-properties update updates service-level properties for the blob service (such as CORS rules or logging), but does not assign key-value pairs to individual blobs. Set-AzStorageBlobContent uploads a blob to a storage container, but it is not used to set tags or key-value pairs.

Topics

#blob index tags#Set-AzStorageBlobTag#blob indexing#key-value pairs

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice