exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 59 discussion

Actual exam question from Microsoft's AZ-204
Question #: 59
Topic #: 4
[All AZ-204 Questions]

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?

  • A. Create a new container to include an encryption policy with the JSON properties to be encrypted.
  • B. Create a customer-managed key (CMK) and store the key in a new Azure Key Vault instance.
  • C. Create a data encryption key (DEK) by using the Azure Cosmos DB SDK and store the key in Azure Cosmos DB.
  • D. Create an Azure AD managed identity and assign the identity to a new Azure Key Vault instance.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
alexein74
Highly Voted 2 years, 4 months ago
Selected Answer: B
B. Create a customer-managed key (CMK) and store the key in a new Azure Key Vault instance. In order to configure Always Encrypted for the Java application, you need to first create a customer-managed key (CMK) using Azure Key Vault. This key will be used to encrypt and decrypt the sensitive data stored in Cosmos DB. After creating the key, you should store it in a new Azure Key Vault instance, which will be used to manage and secure the key. Once you have the key stored in Key vault, you can use Azure Cosmos DB SDK to encrypt the sensitive data and store it in Cosmos DB. It's important to note that Always Encrypted in Azure Cosmos DB is a client-side encryption feature that encrypts and decrypts sensitive data inside the application and not in the Azure Cosmos DB service.
upvoted 15 times
warchoon
2 years, 3 months ago
CMK does not encrypt the data. It wraps the DEK. But CMK is produced first. So the answer is correct, but the explanation is usual ChatGPT shit.
upvoted 7 times
...
warchoon
2 years, 3 months ago
Don't post ChatGPT answers here. They are not always correct, even if they look logical.
upvoted 11 times
...
...
Samueleghagha
Highly Voted 2 years, 4 months ago
Selected Answer: B
https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-always-encrypted?tabs=dotnet
upvoted 12 times
warchoon
2 years, 3 months ago
=> https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-always-encrypted?tabs=dotnet#setup-azure-key-vault
upvoted 2 times
...
...
Vichu_1607
Most Recent 7 months, 1 week ago
Selected Answer: B
B. Create a customer-managed key (CMK) and store the key in a new Azure Key Vault instance.
upvoted 1 times
...
Weam
1 year, 6 months ago
Selected Answer: B
Steps for always encrypted based on this link: https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-always-encrypted?tabs=dotn 1) create customer managed key stored in azure key vault 2) create a data encryption key from the SDK and wrap it with the key vault customer managed key 3) create a container with encryption policy 4) read and write encryption data
upvoted 2 times
...
dom271219
1 year, 8 months ago
A of course. Why do you talk about Azure Key Vault ? The statement of the question does not address that.
upvoted 3 times
1CY1
11 months ago
Answer B requires that a new Key Vault has been created.
upvoted 1 times
...
...
JH81
1 year, 11 months ago
Selected Answer: B
Got this on 6/28/2023 and passed with 850. Answer is correct.
upvoted 3 times
...
Tom111
2 years, 3 months ago
As the question asks what to do first I would select answer A. "This policy must be provided when the container is created and it is immutable. In the current release, you can't update the encryption policy." => https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-always-encrypted?tabs=dotnet#encryption-policy
upvoted 1 times
CarlosTheBoldest
1 year, 6 months ago
From your link: "Similar to an indexing policy, an encryption policy is a container-level specification describing how JSON properties should be encrypted. This policy must be provided when the container is created and it is immutable. In the current release, you can't update the encryption policy." No one cares about json properties but for the sensitive data stored on Cosmos DB, so A is a non sense
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...