Skip to content

AZ-104 · Domain 2: Implement and manage storage · 19% of the exam

Task 2.2: Configure and manage storage accounts

Creating storage accounts, choosing and changing redundancy, object replication, encryption, and moving data with Storage Explorer and AzCopy.

Study it

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

An app's storage account must survive the loss of an availability zone in the primary region, and the app must be able to read its data from the secondary region during a regional outage without waiting for a failover. Which redundancy should you choose?

  1. AGeo-zone-redundant storage (GZRS)
  2. BRead-access geo-redundant storage (RA-GRS)
  3. CZone-redundant storage (ZRS)
  4. DRead-access geo-zone-redundant storage (RA-GZRS)
Show the answer and why
  • AGeo-zone-redundant storage (GZRS)

    Incorrect

    GZRS copies to the secondary region, but the secondary isn't readable until a failover.

  • BRead-access geo-redundant storage (RA-GRS)

    Incorrect

    RA-GRS keeps the primary copies in one zone with LRS, so a zone loss isn't covered.

  • CZone-redundant storage (ZRS)

    Incorrect

    ZRS spreads copies across zones in one region only; there's no secondary region to read from.

  • DRead-access geo-zone-redundant storage (RA-GZRS)

    Correct

    RA-GZRS replicates across zones in the primary region and to a secondary region that is readable at all times.

GZRS combines ZRS in the primary region with geo-replication; the RA variant adds read access to the secondary region without a failover. RA-GRS has read access but uses LRS in the primary region.

Question 2 · choose 2

You plan object replication from container Src in account StorA to container Dst in account StorB. Both are general-purpose v2 accounts without a hierarchical namespace. Which two settings must be in place? (Choose TWO.)

  1. ABlob versioning on StorA and on StorB
  2. BPoint-in-time restore on StorA
  3. CGeo-redundant storage on StorB
  4. DContainer soft delete on StorB
  5. EChange feed on StorA
Show the answer and why
  • ABlob versioning on StorA and on StorB

    Correct

    Object replication requires blob versioning enabled on both the source and the destination accounts.

  • BPoint-in-time restore on StorA

    Incorrect

    Point-in-time restore is a data protection feature; object replication doesn't depend on it.

  • CGeo-redundant storage on StorB

    Incorrect

    Object replication lists no redundancy requirement; it depends on versioning and change feed, not on GRS.

  • DContainer soft delete on StorB

    Incorrect

    Container soft delete protects containers from deletion; it isn't a prerequisite for replication.

  • EChange feed on StorA

    Correct

    Azure Storage reads the source account's change feed to find writes and deletes to replicate, so it must be enabled there.

Object replication copies block blobs asynchronously between accounts. It needs blob versioning on both accounts and change feed on the source, and it isn't supported on accounts with a hierarchical namespace.

Question 3 · choose 1

You must make container web in account stweb an exact mirror of the local folder D:\site, including removing blobs whose files were deleted locally. The job runs unattended. Which command should you run?

  1. Aazcopy copy 'D:\site' 'https://stweb.blob.core.windows.net/web' --recursive
  2. Bazcopy sync 'D:\site' 'https://stweb.blob.core.windows.net/web' --recursive
  3. Cazcopy sync 'D:\site' 'https://stweb.blob.core.windows.net/web' --recursive --delete-destination=true
  4. Dazcopy sync 'D:\site' 'https://stweb.blob.core.windows.net/web' --recursive --delete-destination=prompt
Show the answer and why
  • Aazcopy copy 'D:\site' 'https://stweb.blob.core.windows.net/web' --recursive

    Incorrect

    copy uploads files but never removes blobs that no longer exist in the source folder.

  • Bazcopy sync 'D:\site' 'https://stweb.blob.core.windows.net/web' --recursive

    Incorrect

    By default sync doesn't delete anything at the destination, so blobs for removed files would remain.

  • Cazcopy sync 'D:\site' 'https://stweb.blob.core.windows.net/web' --recursive --delete-destination=true

    Correct

    With --delete-destination=true, sync deletes destination blobs that aren't in the source, without prompting.

  • Dazcopy sync 'D:\site' 'https://stweb.blob.core.windows.net/web' --recursive --delete-destination=prompt

    Incorrect

    prompt asks before each deletion, which stalls an unattended job.

azcopy sync compares names and last-modified times and copies what changed. Deleting extra files at the destination needs --delete-destination, and true deletes without a prompt; enabling soft delete first protects against mistakes.

Question 4 · choose 1

Which name is valid for a new storage account?

  1. Acontosologs01
  2. Bcl
  3. Ccontoso_logs_01
  4. DContoso-Logs-01
Show the answer and why
  • Acontosologs01

    Correct

    Lowercase letters and numbers, between 3 and 24 characters, and unique across Azure.

  • Bcl

    Incorrect

    Two characters is shorter than the 3-character minimum.

  • Ccontoso_logs_01

    Incorrect

    Underscores aren't allowed.

  • DContoso-Logs-01

    Incorrect

    Uppercase letters and hyphens aren't allowed in storage account names.

Storage account names are 3 to 24 characters of lowercase letters and numbers, and must be unique across Azure because they form the endpoint URLs.

Question 5 · choose 1

Security wants a storage account to reject requests from clients that use TLS 1.0 or 1.1. Which setting should you change?

  1. AAllow storage account key access
  2. BMinimum TLS version, set to 1.2
  3. CInfrastructure encryption
  4. DSecure transfer required
Show the answer and why
  • AAllow storage account key access

    Incorrect

    Key access is about authorization, not the transport protocol.

  • BMinimum TLS version, set to 1.2

    Correct

    The minimum TLS version makes the account reject requests that use older versions.

  • CInfrastructure encryption

    Incorrect

    Infrastructure encryption protects data at rest, not connections.

  • DSecure transfer required

    Incorrect

    Secure transfer requires HTTPS but doesn't set which TLS version is accepted.

The minimum TLS version setting rejects requests below the chosen version. Secure transfer separately forces HTTPS.

Question 6 · choose 1

A contractor must browse one blob container with Azure Storage Explorer but has no account in your tenant. You can give a SAS URL for the container. How should the contractor connect?

  1. AConnect to the storage account with Microsoft Entra ID
  2. BAttach to the container with the SAS URL
  3. CConnect with the storage account's connection string from you
  4. DSign in to Azure with a personal Microsoft account
Show the answer and why
  • AConnect to the storage account with Microsoft Entra ID

    Incorrect

    An Entra connection still needs an identity with access in your tenant, which the contractor doesn't have.

  • BAttach to the container with the SAS URL

    Correct

    Storage Explorer can attach to an individual resource using a SAS, without signing in to Azure.

  • CConnect with the storage account's connection string from you

    Incorrect

    A connection string with the account key would expose the whole account.

  • DSign in to Azure with a personal Microsoft account

    Incorrect

    Signing in shows resources the account can access; a personal account has no access to your tenant.

Storage Explorer can sign in to Azure, which needs management and data permissions, or attach to an individual resource using a SAS, connection string or other method. A container SAS limits the contractor to that container.

Question 7 · choose 1

You must copy a container from account stold to account stnew. Both accept SAS tokens. Which approach copies the data server to server?

  1. Aazcopy copy between the two container URLs
  2. BSet object replication and then delete the policy
  3. CDownload the container with Storage Explorer, then upload it
  4. Dazcopy sync with the local folder as the destination
Show the answer and why
  • Aazcopy copy between the two container URLs

    Correct

    AzCopy copies between accounts using the service's server-to-server copy, without routing data through your machine.

  • BSet object replication and then delete the policy

    Incorrect

    Object replication is ongoing asynchronous replication, not a one-time copy tool.

  • CDownload the container with Storage Explorer, then upload it

    Incorrect

    Downloading and uploading moves the data through your machine.

  • Dazcopy sync with the local folder as the destination

    Incorrect

    Syncing to a local folder downloads the data instead of copying it between accounts.

azcopy copy accepts two blob URLs, each with a SAS or Microsoft Entra authorization, and copies between accounts server to server.

Practise domain 2 →Practise all domains →