Microsoft AZ-204 BOARD EVALUATION
2026 GUARANTEED PASS ANSWERS
GRADED A+
● You are developer for a company named Company1.
Company1 has an application that uses Azure Cosmos DB configured
with Azure Cosmos DB SQL API.
The database contains millions of documents without distinct values for
partitioning.
You need to implement a scaling strategy for the database to scale
individual containers.
The database must meet the performance requirements of the application
by spreading the workload evenly across all partitions over time.
You need to select a partition key.
Which two partition keys can you use? Answer: Explanation
The goal is to distribute your data and workload evenly across the items
associated with these partition key values. If such a property doesn't
exist in your data, you can construct a synthetic partition key.
You can form a partition key by concatenating multiple property values
into a single artificial partition Key property. These keys are referred to
as synthetic keys.
Another possible strategy to distribute the workload more evenly is to
append a random number at the end of the partition key value. When you
,distribute items in this way, you can perform parallel write operations
across partitions.
https://docs.microsoft.com/en-us/azure/cosmos-db/synthetic-partition-
keys
● You developing an application named Application1 that uses Azure
Blob storage named Storage1.
For audit purposes, Application1 must read the transaction logs of all
changes that occur to the blobs and blob metadata in Storage1.
The changes must be in the order in which they occurred.
You need to process the logs asynchronously and should include only
create, update, delete and copy operations.
What should you do to implement audit requirement? Answer:
Explanation
Enable Change feed on the storage account and process all changes for
available events.
Change feed provides transaction logs of all the changes that occur to
the blobs and the blob metadata in your storage account.
The change feed provides ordered, guaranteed, durable, immutable,
read-only log of these changes. Client applications can read these logs at
any time, either in streaming or in batch mode.
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-
change-feed?tabs=azure-portal
,● You are a developer for a company that publishes APIs using Azure
API Management. You need to strip AspNet-Version from the response
of the APIs.
What should you implement? Answer: Explanation
A new policy.
You need to transform your API so it does not reveal info about the
private backend. To delete the following headers in the HTTP response,
you need to set a transformation policy.
X-Powered-By
X-AspNet-Version
https://docs.microsoft.com/en-us/azure/api-management/transform-
api#transform-an-api-to-strip-response-headers
● You need to consume messages from a messaging component that is
developed using Azure Service Bus publish-subscribe model.
You have initialized a subscription client object using correct details to
process messages. However, the subscription application is still not
consuming the messages.
Which of the below code segment should you use? Answer:
subscriptionClient.RegisterMessageHandler(ProcessMessageAsync,
messageHandlerOptions)
Explanation
, RegisterMessageHandler handles messages one by one and completes
them in the end.
https://docs.azure.cn/en-
us/dotnet/api/microsoft.azure.servicebus.queueclient.registermessagehan
dler?view=azure-dotnet
● You have an Azure Storage account named StorageAccount1.
You plan to store data that is rarely accessed in StorageAccount1 for
several years.
You must ensure that the data in Blob storage is always available for
immediate access.
The solution must minimize storage costs.
Which storage tier should you use? Answer: Explanation
Cool.
The cool access tier has lower storage costs and higher access costs
compared to hot storage. This tier is intended for data that will remain in
the cool tier for at least 30 days. Example usage scenarios for the cool
access tier include:
Short-term backup and disaster recovery datasets.
Older media content not viewed frequently anymore but is expected to
be available immediately when accessed.
2026 GUARANTEED PASS ANSWERS
GRADED A+
● You are developer for a company named Company1.
Company1 has an application that uses Azure Cosmos DB configured
with Azure Cosmos DB SQL API.
The database contains millions of documents without distinct values for
partitioning.
You need to implement a scaling strategy for the database to scale
individual containers.
The database must meet the performance requirements of the application
by spreading the workload evenly across all partitions over time.
You need to select a partition key.
Which two partition keys can you use? Answer: Explanation
The goal is to distribute your data and workload evenly across the items
associated with these partition key values. If such a property doesn't
exist in your data, you can construct a synthetic partition key.
You can form a partition key by concatenating multiple property values
into a single artificial partition Key property. These keys are referred to
as synthetic keys.
Another possible strategy to distribute the workload more evenly is to
append a random number at the end of the partition key value. When you
,distribute items in this way, you can perform parallel write operations
across partitions.
https://docs.microsoft.com/en-us/azure/cosmos-db/synthetic-partition-
keys
● You developing an application named Application1 that uses Azure
Blob storage named Storage1.
For audit purposes, Application1 must read the transaction logs of all
changes that occur to the blobs and blob metadata in Storage1.
The changes must be in the order in which they occurred.
You need to process the logs asynchronously and should include only
create, update, delete and copy operations.
What should you do to implement audit requirement? Answer:
Explanation
Enable Change feed on the storage account and process all changes for
available events.
Change feed provides transaction logs of all the changes that occur to
the blobs and the blob metadata in your storage account.
The change feed provides ordered, guaranteed, durable, immutable,
read-only log of these changes. Client applications can read these logs at
any time, either in streaming or in batch mode.
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-
change-feed?tabs=azure-portal
,● You are a developer for a company that publishes APIs using Azure
API Management. You need to strip AspNet-Version from the response
of the APIs.
What should you implement? Answer: Explanation
A new policy.
You need to transform your API so it does not reveal info about the
private backend. To delete the following headers in the HTTP response,
you need to set a transformation policy.
X-Powered-By
X-AspNet-Version
https://docs.microsoft.com/en-us/azure/api-management/transform-
api#transform-an-api-to-strip-response-headers
● You need to consume messages from a messaging component that is
developed using Azure Service Bus publish-subscribe model.
You have initialized a subscription client object using correct details to
process messages. However, the subscription application is still not
consuming the messages.
Which of the below code segment should you use? Answer:
subscriptionClient.RegisterMessageHandler(ProcessMessageAsync,
messageHandlerOptions)
Explanation
, RegisterMessageHandler handles messages one by one and completes
them in the end.
https://docs.azure.cn/en-
us/dotnet/api/microsoft.azure.servicebus.queueclient.registermessagehan
dler?view=azure-dotnet
● You have an Azure Storage account named StorageAccount1.
You plan to store data that is rarely accessed in StorageAccount1 for
several years.
You must ensure that the data in Blob storage is always available for
immediate access.
The solution must minimize storage costs.
Which storage tier should you use? Answer: Explanation
Cool.
The cool access tier has lower storage costs and higher access costs
compared to hot storage. This tier is intended for data that will remain in
the cool tier for at least 30 days. Example usage scenarios for the cool
access tier include:
Short-term backup and disaster recovery datasets.
Older media content not viewed frequently anymore but is expected to
be available immediately when accessed.