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 Professional Data Engineer Exam - Topic 5 Question 90 Discussion

Posted by Tiera on Aug 03, 2024 at 05:19 AM

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?

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

Get Premium Professional Data Engineer Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
32 comments · newest first
BR
Britt 11 months ago
I agree with B, but isn't it a hassle to copy everything over?
TO
Tomoko 11 months ago
Option D sounds risky, not specifying a key could lead to issues.
ME
Melvin 11 months ago
Wait, why would you create a new bucket if you can just rotate the key?
MA
Malinda 11 months ago
I think option C is better, a new bucket adds extra security.
TR
Tresa 12 months ago
Definitely go with option B, it's the safest way to handle it.
KI
Kimberely 12 months ago
I'm a bit confused about whether we need a new bucket at all. Option D seems to suggest we can just copy without specifying a key, but that feels risky.
RU
Ruby 1 year ago
I practiced a similar question where we had to copy objects to a new bucket. I feel like option C might be the safest way to ensure everything is re-encrypted properly.
SH
Shonda 1 year ago
I think creating a new Cloud KMS key and setting it as the default for the existing bucket makes sense, but I wonder if that really protects against future risks.
AZ
Azalee 1 year ago
I remember we discussed the importance of rotating keys, but I'm not sure if just rotating the key version is enough in this case.
HA
Haydee 1 year ago
Creating a new bucket and copying the data seems like the most thorough approach to address the issue. I'll probably go with that option.
TY
Tyra 1 year ago
I like the idea of creating a new bucket and copying the data over. That way, I can be sure the new key is being used for everything going forward.
RO
Rosita 1 year ago
I'm a bit confused on the difference between rotating the key version and creating a new key. I'll need to review the details on those options more closely.
MI
Mitsue 1 year ago
This seems like a tricky one. I'll need to carefully consider the options and think through the implications of each approach.
LU
Luke 1 year ago
Okay, let's see. I think the key here is to create a new CMEK key and then re-encrypt the data using that new key. That should help reduce the risk of future exposure.
IV
Ivette 1 year ago
This looks like a straightforward multiple-choice question about Truffle. I'm pretty confident I know the answer - Truffle is a framework for developing and deploying smart contracts, so I'll go with option A.
CO
Cory 2 years 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?
AD
Adell 2 years ago
↳ replying to Cory
In this case, speed might be more important to minimize the risk of exposure.
PR
Precious 2 years ago
↳ replying to Cory
That's true, but it would take more time and effort to copy everything over.
SH
Shawnee 2 years ago
↳ replying to Cory
But wouldn't it be safer to create a new bucket and copy all the objects with the new key?
VE
Verlene 2 years ago
↳ replying to Cory
I agree, option B seems like the most efficient solution.
AM
Amie 2 years ago
Haha, I bet the guy who exposed the key is sweating right now! Anyway, I agree with Alethea, C is the safest choice.
AR
Arletta 2 years ago
↳ replying to Amie
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.
PE
Pearline 2 years ago
↳ replying to Amie
I think we should go with option C, it seems like the safest choice.
TR
Tracey 2 years 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.
TW
Twana 2 years 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.
AL
Alethea 2 years 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.
ME
Meghan 2 years ago
↳ replying to Alethea
I think creating a new bucket with a new key is the best way to ensure security.
JE
Jesusita 2 years ago
↳ replying to Alethea
But wouldn't it be easier to just rotate the key with option A?
AN
Annita 2 years ago
↳ replying to Alethea
I agree, option C seems like the safest choice.
DA
Daniela 2 years 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?
OW
Owen 2 years ago
I agree with Twana. It's important to rotate the compromised key and update the default CMEK key to ensure security.
TW
Twana 2 years 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.
0/2000 characters

Save Cancel