exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 8 question 6 discussion

Actual exam question from Microsoft's AZ-203
Question #: 6
Topic #: 8
[All AZ-203 Questions]

HOTSPOT -
You need to ensure that security policies are met.
What code should you add at line PC26?
To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
Box 1: var key = await Resolver.ResolveKeyAsyn(keyBundle,KeyIdentifier.CancellationToken.None);
Box 2: var x = new BlobEncryptionPolicy(key,resolver);
Example:
// We begin with cloudKey1, and a resolver capable of resolving and caching Key Vault secrets.
BlobEncryptionPolicy encryptionPolicy = new BlobEncryptionPolicy(cloudKey1, cachingResolver); client.DefaultRequestOptions.EncryptionPolicy = encryptionPolicy;
Box 3: cloudblobClient. DefaultRequestOptions.EncryptionPolicy = x;
References:
https://github.com/Azure/azure-storage-net/blob/master/Samples/GettingStarted/EncryptionSamples/KeyRotation/Program.cs

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
Daltonic75
Highly Voted 5 years, 1 month ago
Options: https://www.sharetotest.com/images/AZ-202.files/image010.jpg
upvoted 12 times
...
t8203
Highly Voted 4 years, 9 months ago
options: https://vceguide.com/wp-content/uploads/2020/05/Microsoft-AZ-203-date-05-08-2020_Page_165_Image_0001.jpg
upvoted 9 times
...
gunencali
Most Recent 4 years, 4 months ago
Answer is correct. Box 1: var key = await Resolver.ResolveKeyAsyn(keyBundle,KeyIdentifier.CancellationToken.None); Box 2: var x = new BlobEncryptionPolicy(key,resolver); Box 3: cloudblobClient. DefaultRequestOptions.EncryptionPolicy = x; Reference: https://github.com/Azure/azure-storage-net/blob/b0d47bfd4c1c0dcbe60eaf373e2977cd7405aa5f/Samples/GettingStarted/EncryptionSamples/KeyRotation/Program.cs#L48 Line Numbers: [48,52,57,60,64,65]
upvoted 2 times
gunencali
4 years, 4 months ago
Edit: Typo with comma and dot which makes Box 1: var key = await Resolver.ResolveKeyAsyn(keyBundle.KeyIdentifier, CancellationToken.None); https://vceguide.com/wp-content/uploads/2020/05/Microsoft-AZ-203-date-05-08-2020_Page_165_Image_0001.jpg
upvoted 1 times
...
...
aroravibhu
4 years, 5 months ago
First should be KeyBundle.key as GetKeyAsync(IKeyVaultClient, String, CancellationToken) retrieves the public portion of a key plus its attributes. https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.keyvault.keyvaultclientextensions.getkeyasync?view=azure-dotnet-legacy
upvoted 1 times
ahadjithoma
4 years, 4 months ago
but what you sent is for KeyVaultClientExtensions.GetKeyAsyn In the options is KeyVaultKeyResolver, not KeyVaultClientExtensions
upvoted 2 times
...
...
TEMPKAKAM
4 years, 5 months ago
Correct Answer is: Var key=KeyBundle.Key Var x= new BlobEncryptionPolicy(Key,Resolver) CloudBlobClient.DefaultRequestOptions.EncryptionPolicy=x
upvoted 2 times
Cornholioz
4 years, 4 months ago
Wrong on 1. Given answer is correct. 1. You are adding the keyID [ https://csharp.hotexamples.com/examples/Microsoft.Azure.KeyVault/CachingKeyResolver/ResolveKeyAsync/php-cachingkeyresolver-resolvekeyasync-method-examples.html ] 2. Setting the BlobEncryption 3. Setting the EncryptionPolicy
upvoted 2 times
...
...
Junsui
5 years, 1 month ago
- ResolveKeyAsync part has typo with comma and dot which makes it hard to read. Should be : await Resolver.ResolveKeyAsyn(keyBundle.KeyIdentifier , CancellationToken.None); because parameters of method are: ResolveKeyAsync (string kid, System.Threading.CancellationToken token);
upvoted 2 times
Avadhut01
4 years, 10 months ago
correct. Given answer is correct
upvoted 1 times
...
...
purav1009
5 years, 2 months ago
Options please!
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago