AZ-104 Question 84
Select 2You manage two standard General Purpose v2 storage accounts named sourceacc (East US) and destacc (West US). You need to automatically replicate newly uploaded blobs from the 'logs' container in sourceacc to the 'archive' container in destacc. Which of the following steps must you complete to configure object replication successfully?
- A
Enable blob versioning on sourceacc
- B
Enable hierarchical namespace on both storage accounts
- C
Create an object replication policy in sourceacc that references destacc
- D
Create an object replication policy in destacc that references sourceacc
Show answer and explanation
Correct answers: A, C
Explanation
To replicate blobs from a source storage account to a destination storage account, you must ensure that blob versioning is enabled in the source account and define an object replication policy within that source account to map the source container to the destination container. This configuration tracks new uploads and automatically replicates them to the designated destination.
- A. Correct.
Object replication requires enabling blob versioning on the source account to track changes and replicate new objects.
- B. Incorrect.
Hierarchical namespace is used for Azure Data Lake Storage Gen2 and is not required for standard GPv2 storage accounts when setting up object replication.
- C. Correct.
Creating an object replication policy in the source account referencing the destination container is a valid way to configure replication from sourceacc to destacc.
- D. Incorrect.
You do not need a separate object replication policy in the destination account if you already created a policy in the source account. A single policy configured in either the source or the destination storage account is sufficient.