exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 40 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 40
Topic #: 1
[All AWS Certified Developer Associate Questions]

A Developer is working on an application that handles 10MB documents that contain highly-sensitive data. The application will use AWS KMS to perform client- side encryption.
What steps must be followed?

  • A. Invoke the Encrypt API passing the plaintext data that must be encrypted, then reference the customer managed key ARN in the KeyId parameter
  • B. Invoke the GenerateRandom API to get a data encryption key, then use the data encryption key to encrypt the data
  • C. Invoke the GenerateDataKey API to retrieve the encrypted version of the data encryption key to encrypt the data
  • D. Invoke the GenerateDataKey API to retrieve the plaintext version of the data encryption key to encrypt the data
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
awscertified
Highly Voted 3 years, 4 months ago
D. Invoke the GenerateDataKey API to retrieve the plaintext version of the data encryption key to encrypt the data #> https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html #> When uploading an object—Using the customer master key (CMK) ID, the client first sends a request to AWS KMS for a CMK that it can use to encrypt your object data. AWS KMS returns two versions of a randomly generated data key: #> 1. A plaintext version of the data key that the client uses to encrypt the object data #> 2. A cipher blob of the same data key that the client uploads to Amazon S3 as object metadata #> Note: The client obtains a unique data key for each object that it uploads.
upvoted 22 times
...
michaelaws
Highly Voted 3 years, 4 months ago
D. Invoke the GenerateDataKey API to retrieve the plaintext version of the data encryption key to encrypt the data
upvoted 17 times
...
sumanshu
Most Recent 1 month, 3 weeks ago
Selected Answer: C
C) - Correct - When you invoke GenerateDataKey, AWS KMS gives you two keys: Plaintext DEK: This is the key you use to encrypt the actual data (in your case, the 10MB documents). Encrypted DEK: This key is the encrypted version of the plaintext DEK, and it is what you will store alongside your encrypted data (not the plaintext version).
upvoted 1 times
sumanshu
1 month, 3 weeks ago
D) - D says: "Invoke the GenerateDataKey API to retrieve the plaintext version of the data encryption key to encrypt the data." Yes, you do use the plaintext DEK to encrypt the data, but D doesn’t mention that you also need to store the encrypted version of the DEK (which is critical for securely managing the encryption key). Without storing the encrypted version of the DEK, you would not be able to decrypt the data properly later. So, D doesn't fully cover the entire client-side encryption process, whereas C does.
upvoted 1 times
sumanshu
2 weeks, 3 days ago
Sorry "D" - The encrypted version of the key is not usable directly for encrypting the document. To encrypt the document, you need the plaintext version of the data encryption key. The encrypted key is useful for secure storage, but not for actual encryption.
upvoted 1 times
...
...
...
SD_CS
1 year ago
Selected Answer: D
Get the plaintext data key and use it to encrypt the data client side
upvoted 1 times
...
AsmaZoheb
1 year ago
Selected Answer: D
i will go with D
upvoted 1 times
...
a_win
1 year, 1 month ago
Selected Answer: D
out of what is other available options. The client application can run the following steps: A request is made under a KMS key for a new data key. An encrypted data key and a plaintext version of the data key are returned. Within the AWS Encryption SDK, the plaintext data key is used to encrypt the message. The plaintext data key is then deleted from memory. The encrypted data key and encrypted message are combined into a single ciphertext byte array.
upvoted 1 times
...
sara_exam_topics
1 year, 4 months ago
Selected Answer: D
Generate a Data Encryption Key (DEK): The client should use the GenerateDataKey API from AWS KMS to generate a DEK. This API call returns both the plaintext DEK and an encrypted version of the DEK.
upvoted 1 times
...
rcaliandro
1 year, 7 months ago
Selected Answer: D
The correct answer is D. Since it is a client-side encryption and the data is more than 1MB, we have the possibility to ask for a paintext version of the data encryption key by using the GenerateDataKey API. We can use this key to encrypt our data and then send the encrypted file to the Cloud
upvoted 2 times
...
Simran_07
1 year, 8 months ago
Selected Answer: D
D is the right answer.
upvoted 1 times
...
Simran_07
1 year, 8 months ago
Selected Answer: D
D is the write answer
upvoted 1 times
...
Syre
1 year, 9 months ago
Selected Answer: C
Correct answer is C here. Option D is incorrect because retrieving the plaintext version of the data encryption key defeats the purpose of encrypting the data in the first place. Storing plaintext data encryption keys creates a vulnerability and exposes sensitive data.
upvoted 2 times
...
GD_ZH
1 year, 11 months ago
correct answer should be D.
upvoted 1 times
...
michele_scar
2 years ago
Selected Answer: D
Correct is D The answer A is incorrect because you have to do CLIENT-SIDE encryption, but calling an "API" you will send the data unencrypted.
upvoted 1 times
...
fabriciollf
2 years, 1 month ago
Selected Answer: D
https://docs.aws.amazon.com/kms/latest/cryptographic-details/client-side-encryption.html
upvoted 2 times
...
AWSEXPERT42069
2 years, 6 months ago
Selected Answer: D
answer is D
upvoted 3 times
...
Ivanyan
2 years, 9 months ago
Selected Answer: D
D. Invoke the GenerateDataKey API to retrieve the plaintext version of the data encryption key to encrypt the data
upvoted 4 times
...
mevlt
3 years, 1 month ago
Selected Answer: D
The answer is D
upvoted 3 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