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 4 Question 102 Discussion

Actual exam question for Google's Professional Data Engineer exam
Question #: 102
Topic #: 4
[All 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:

Adela
4 hours ago
Haha, forget the keys, I'm just worried about the storage costs of all this copying! Gotta keep an eye on that budget.
upvoted 0 times
...
Emilio
3 days ago
Hmm, D seems tempting, but I'm worried about not specifying the key during the copy. Better to be explicit with C and be sure everything is re-encrypted.
upvoted 0 times
...
Ahmed
8 days ago
That's a good point, Vannessa. It might be worth considering creating a new bucket to ensure a clean slate.
upvoted 0 times
...
Vannessa
10 days 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
...
Mitzie
10 days ago
I'd go with B. Rotating the key and updating the existing bucket is a lot more straightforward than creating a whole new bucket.
upvoted 0 times
...
Vincent
12 days ago
I agree with Ahmed. It's important to rotate the compromised key and update the default CMEK key to prevent future risks.
upvoted 0 times
...
Ahmed
24 days 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
...
Magdalene
29 days ago
Option C seems like the safest bet. Creating a new bucket and moving the data over with the new key ensures maximum protection.
upvoted 0 times
Rodrigo
10 days ago
C) Create a new Cloud KMS key. Create a new Cloud Storage bucket. Copy all objects from the old bucket to the new one bucket while specifying the new Cloud KMS key in the copy command.
upvoted 0 times
...
Shaun
21 days ago
B) Create a new Cloud KMS key. Set the default CMEK key on the existing Cloud Storage bucket to the new one.
upvoted 0 times
...
...

Save Cancel