nerdexam
Microsoft

AZ-204 · Question #485

You are developing a Java application to be deployed in Azure. The application stores sensitive data in Azure Cosmos DB. You need to configure Always Encrypted to encrypt the sensitive data inside the

The correct answer is B. Create a customer-managed key (CMK) and store the key in a new Azure Key Vault instance.. https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-always-encrypted?tabs=dotnet

Submitted by kavita_s· Mar 30, 2026Implement Azure security

Question

You are developing a Java application to be deployed in Azure. The application stores sensitive data in Azure Cosmos DB. You need to configure Always Encrypted to encrypt the sensitive data inside the application. What should you do first?

Options

  • ACreate a new container to include an encryption policy with the JSON properties to be encrypted.
  • BCreate a customer-managed key (CMK) and store the key in a new Azure Key Vault instance.
  • CCreate a data encryption key (DEK) by using the Azure Cosmos DB SDK and store the key in
  • DCreate an Azure AD managed identity and assign the identity to a new Azure Key Vault instance.

How the community answered

(34 responses)
  • A
    6% (2)
  • B
    76% (26)
  • C
    3% (1)
  • D
    15% (5)

Explanation

https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-always-encrypted?tabs=dotnet

Topics

#Always Encrypted#customer-managed key#Azure Key Vault#Cosmos DB encryption

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice