AZ-204 Azure Storage & Data Solutions 2 — Questions and Answers
Question 1: Which Azure Cosmos DB API is most suitable when migrating an existing MongoDB application to Azure?
- Core (SQL) API
- Cassandra API
- MongoDB API (Correct answer)
- Gremlin API
Correct answer: MongoDB API
The MongoDB API in Cosmos DB is wire-protocol compatible with MongoDB, allowing applications to connect with minimal code changes.
Question 2: What Azure Blob Storage lifecycle management rule action moves blobs to the Archive tier after 90 days?
- tierToArchive (Correct answer)
- deleteBlob
- tierToCool
- rehydrateBlob
Correct answer: tierToArchive
The `tierToArchive` action in a lifecycle management policy moves blobs to the Archive access tier after the specified number of days.
Question 3: Which Azure Table Storage property uniquely identifies each entity within a partition?
- PartitionKey
- RowKey (Correct answer)
- ETag
- Timestamp
Correct answer: RowKey
The RowKey, combined with the PartitionKey, forms the unique composite key that identifies each entity in Azure Table Storage.
Question 4: What is the default maximum size for a single Azure Blob Storage block blob?
- 4.75 TB (Correct answer)
- 200 GB
- 5 TB
- 500 GB
Correct answer: 4.75 TB
A block blob can be up to 4.75 TB in size, composed of up to 50,000 blocks each up to 100 MB.
Question 5: Which Cosmos DB consistency level provides the best read performance for a single-region account?
- Strong
- Bounded Staleness
- Session
- Eventual (Correct answer)
Correct answer: Eventual
Eventual consistency offers the lowest latency and highest throughput by allowing reads to return any replica's data without ordering guarantees.
Question 6: How do you enable soft delete for Azure Blob Storage to protect against accidental deletion?
- Set a lifecycle management rule with deleteBlob action disabled
- Enable soft delete on the storage account Data Protection blade and set a retention period (Correct answer)
- Apply a WORM immutability policy
- Configure Azure Backup for the storage account
Correct answer: Enable soft delete on the storage account Data Protection blade and set a retention period
Enabling soft delete on the storage account's Data Protection settings retains deleted blobs for a configurable number of days before permanent removal.
Which Azure Cosmos DB API is most suitable when migrating an existing MongoDB application to Azure?