Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Professional-Data-Engineer Topic 5 Question 90 Discussion

Actual exam question for Google's Google Cloud Certified Professional Data Engineer exam
Question #: 90
Topic #: 5
[All Google Cloud Certified Professional Data Engineer Questions]

One of your encryption keys stored in Cloud Key Management Service (Cloud KMS) was exposed. You need to re-encrypt all of your CMEK-protected Cloud Storage data that used that key. and then delete the compromised key. You also want to reduce the risk of objects getting written without customer-managed encryption key (CMEK protection in the future. What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: C

To re-encrypt all of your CMEK-protected Cloud Storage data after a key has been exposed, and to ensure future writes are protected with a new key, creating a new Cloud KMS key and a new Cloud Storage bucket is the best approach. Here's why option C is the best choice:

Re-encryption of Data:

By creating a new Cloud Storage bucket and copying all objects from the old bucket to the new bucket while specifying the new Cloud KMS key, you ensure that all data is re-encrypted with the new key.

This process effectively re-encrypts the data, removing any dependency on the compromised key.

Ensuring CMEK Protection:

Creating a new bucket and setting the new CMEK as the default ensures that all future objects written to the bucket are automatically protected with the new key.

This reduces the risk of objects being written without CMEK protection.

Deletion of Compromised Key:

Once the data has been copied and re-encrypted, the old key can be safely deleted from Cloud KMS, eliminating the risk associated with the compromised key.

Steps to Implement:

Create a New Cloud KMS Key:

Create a new encryption key in Cloud KMS to replace the compromised key.

Create a New Cloud Storage Bucket:

Create a new Cloud Storage bucket and set the default CMEK to the new key.

Copy and Re-encrypt Data:

Use the gsutil tool to copy data from the old bucket to the new bucket while specifying the new CMEK key:

gsutil -o 'GSUtil:gs_json_api_version=2' cp -r gs://old-bucket/* gs://new-bucket/

Delete the Old Key:

After ensuring all data is copied and re-encrypted, delete the compromised key from Cloud KMS.


Cloud KMS Documentation

Cloud Storage Encryption

Re-encrypting Data in Cloud Storage

Contribute your Thoughts:

Cory
2 months ago
I'm with Tracey on this one. Option B is the quickest way to get things back on track. Who has time to copy all that data, am I right?
upvoted 0 times
Adell
7 days ago
In this case, speed might be more important to minimize the risk of exposure.
upvoted 0 times
...
Precious
18 days ago
That's true, but it would take more time and effort to copy everything over.
upvoted 0 times
...
Shawnee
26 days ago
But wouldn't it be safer to create a new bucket and copy all the objects with the new key?
upvoted 0 times
...
Verlene
26 days ago
I agree, option B seems like the most efficient solution.
upvoted 0 times
...
...
Amie
2 months ago
Haha, I bet the guy who exposed the key is sweating right now! Anyway, I agree with Alethea, C is the safest choice.
upvoted 0 times
Arletta
1 months ago
Yeah, creating a new Cloud KMS key and a new Cloud Storage bucket while copying all objects with the new key sounds like the best way to go.
upvoted 0 times
...
Pearline
2 months ago
I think we should go with option C, it seems like the safest choice.
upvoted 0 times
...
...
Tracey
2 months ago
Option B seems simpler, just update the default CMEK key on the existing bucket. But I guess that doesn't address the risk of future objects being written without CMEK.
upvoted 0 times
...
Twana
2 months ago
That's a good point, Daniela. It might be worth considering creating a new bucket to reduce the risk of objects being written without CMEK protection in the future.
upvoted 0 times
...
Alethea
2 months ago
I think option C is the way to go. It's the most secure approach by creating a new bucket and re-encrypting the data with the new key.
upvoted 0 times
Meghan
1 months ago
I think creating a new bucket with a new key is the best way to ensure security.
upvoted 0 times
...
Jesusita
2 months ago
But wouldn't it be easier to just rotate the key with option A?
upvoted 0 times
...
Annita
2 months ago
I agree, option C seems like the safest choice.
upvoted 0 times
...
...
Daniela
2 months ago
But wouldn't it be safer to create a new Cloud Storage bucket and copy all objects with the new Cloud KMS key specified?
upvoted 0 times
...
Owen
2 months ago
I agree with Twana. It's important to rotate the compromised key and update the default CMEK key to ensure security.
upvoted 0 times
...
Twana
2 months ago
I think we should create a new Cloud KMS key and set it as the default CMEK key on the existing Cloud Storage bucket.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77