Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 242 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 242
Topic #: 1
[All Professional Cloud Developer Questions]

Your application stores customers’ content in a Cloud Storage bucket, with each object being encrypted with the customer's encryption key. The key for each object in Cloud Storage is entered into your application by the customer. You discover that your application is receiving an HTTP 4xx error when reading the object from Cloud Storage. What is a possible cause of this error?

  • A. You attempted the read operation on the object with the customer's base64-encoded key.
  • B. You attempted the read operation without the base64-encoded SHA256 hash of the encryption key.
  • C. You entered the same encryption algorithm specified by the customer when attempting the read operation.
  • D. You attempted the read operation on the object with the base64-encoded SHA256 hash of the customer's key.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
molntamas
Highly Voted 1 year, 9 months ago
Selected Answer: B
According to the documentation the SHA256 is needed in the REST API -> B https://cloud.google.com/storage/docs/encryption/using-customer-supplied-keys#rest-csek-download-object
upvoted 5 times
...
mrgarfield
Most Recent 2 months, 2 weeks ago
Selected Answer: A
Base64-encoded SHA256 hash vs. Raw Encryption Key: The Google Cloud Storage documentation you linked mentions two approaches for customer-managed encryption keys: Base64-encoded SHA256 hash: This is primarily used for verification purposes and access control. not for reading Option A: Correct. Using the base64-encoded encryption key instead of the raw key bytes for reading will likely lead to a 4xx error. Option B: Incorrect. You don't directly use the base64-encoded SHA256 hash for reading the object, but it might be required for authentication purposes. Option C: Incorrect. Entering the correct encryption algorithm shouldn't lead to a 4xx error if everything else is configured correctly. Option D: Incorrect. Similar to option B, using the base64-encoded SHA256 hash for reading the object is not the correct approach.
upvoted 1 times
...
Kadhem
11 months ago
Selected Answer: B
as some guys said, in the link https://cloud.google.com/storage/docs/encryption/customer-supplied-keys#response we understand why B is correct
upvoted 1 times
...
mohammeddigital
11 months, 1 week ago
Selected Answer: B
B is correct.
upvoted 1 times
...
__rajan__
1 year, 2 months ago
Selected Answer: B
B is correct.
upvoted 1 times
...
purushi
1 year, 3 months ago
Selected Answer: B
4xx is for Bad request, resource forbidden, not found and many more. If we want to read the object of Cloud storage bucket programmatically, then we need to pass the same customer key that was used for encrypting the object. The request we need to send with Base64Encode ( SHA256 Hash (customer-key ) ) The key set for object is SHA256 Hash (customer-key ) and while reading the Base64decode of the key will happen and comparing the Hash of the keys. If Hash are equal, then read access is permitted.
upvoted 2 times
...
Pime13
1 year, 8 months ago
took my exam yesterday (01-03-2023) and this question was there
upvoted 2 times
markware
1 year, 5 months ago
what was the answer? did you pass?
upvoted 1 times
markware
1 year, 5 months ago
I think its A
upvoted 1 times
...
...
...
anukulk
1 year, 9 months ago
https://cloud.google.com/storage/docs/encryption/customer-supplied-keys
upvoted 3 times
...
mrvergara
1 year, 9 months ago
Selected Answer: D
Option D is a possible cause of an HTTP 4xx error when reading an object from Cloud Storage because it is incorrect to use the base64-encoded SHA256 hash of the customer's encryption key to read an encrypted object. To read an encrypted object, you need to use the original encryption key, not its hash. The HTTP 4xx error could be a result of an incorrect or unsupported key format, or a key mismatch. On the other hand, using the base64-encoded key (Option A), the encryption algorithm (Option C), or the base64-encoded SHA256 hash of the encryption key (Option B) without the original encryption key would not allow the object to be decrypted and read.
upvoted 2 times
mrvergara
1 year, 9 months ago
The Google Cloud Storage documentation explains how to access objects in a bucket, including the use of an encryption key. The encryption key must be base64-encoded, and it is recommended to use the base64-encoded SHA256 hash of the encryption key for secure access to the objects. Here's the link to the Google Cloud Storage documentation: https://cloud.google.com/storage/docs/access-control/using-encryption-keys#using-base64-encoded-sha256-hashes-to-authenticate
upvoted 1 times
Pime13
1 year, 9 months ago
link do not exists :/
upvoted 1 times
...
...
...
TNT87
1 year, 9 months ago
Selected Answer: B
Answer B, made a mistsake
upvoted 2 times
...
TNT87
1 year, 9 months ago
Selected Answer: C
You receive an HTTP 400 error in the following cases: 1.You upload an object using a customer-supplied encryption key, and you attempt to perform another operation on the object (other than requesting or updating most metadata or deleting the object) without providing the key. 2.You upload an object using a customer-supplied encryption key, and you attempt to perform another operation on the object with an incorrect key. 3.You upload an object without providing a customer-supplied encryption key, and you attempt to perform another operation on the object with a customer-supplied encryption key. 4.You specify an encryption algorithm, key, or SHA256 hash that is not valid. Point number 2 has the answer https://cloud.google.com/storage/docs/encryption/customer-supplied-keys#response
upvoted 4 times
TNT87
1 year, 9 months ago
typo , its B not C
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 ...