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

Exam Professional Data Engineer All Questions

View all questions & answers for the Professional Data Engineer exam

Exam Professional Data Engineer topic 1 question 274 discussion

Actual exam question from Google's Professional Data Engineer
Question #: 274
Topic #: 1
[All Professional Data Engineer Questions]

You have a BigQuery table that ingests data directly from a Pub/Sub subscription. The ingested data is encrypted with a Google-managed encryption key. You need to meet a new organization policy that requires you to use keys from a centralized Cloud Key Management Service (Cloud KMS) project to encrypt data at rest. What should you do?

  • A. Use Cloud KMS encryption key with Dataflow to ingest the existing Pub/Sub subscription to the existing BigQuery table.
  • B. Create a new BigQuery table by using customer-managed encryption keys (CMEK), and migrate the data from the old BigQuery table.
  • C. Create a new Pub/Sub topic with CMEK and use the existing BigQuery table by using Google-managed encryption key.
  • D. Create a new BigQuery table and Pub/Sub topic by using customer-managed encryption keys (CMEK), and migrate the data from the old BigQuery table.
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
raaad
Highly Voted 10 months, 2 weeks ago
Selected Answer: B
- New BigQuery Table with CMEK: This option involves creating a new BigQuery table configured to use a CMEK from Cloud KMS. It directly addresses the need to use a CMEK for data at rest in BigQuery. - Migrate Data: Migrating data from the old table (encrypted with a Google-managed key) to the new table (encrypted with CMEK) ensures that all existing data complies with the new policy.
upvoted 9 times
Matt_108
10 months, 2 weeks ago
But also pub/sub has some data at rest, e.g. messages with retention period. To comply with the organisation policy, we need to adapt also pub/sub
upvoted 4 times
AllenChen123
10 months, 1 week ago
No, "The ingested data is encrypted with a Google-managed encryption key", target is ingested data in BigQuery.
upvoted 2 times
ML6
9 months, 1 week ago
Correct, but the question states 'use keys from a centralized Cloud KMS project', so only D is correct.
upvoted 3 times
...
...
...
...
SamuelTsch
Most Recent 3 weeks, 2 days ago
Selected Answer: B
should be B. Pub/Sub is not designed for storing data at rest.
upvoted 1 times
...
gr3yWind
4 weeks, 1 day ago
Selected Answer: B
Agree with raaad
upvoted 1 times
...
shanks_t
3 months ago
Selected Answer: D
Requirement for Cloud KMS keys: The new organization policy requires using keys from a centralized Cloud KMS project for encrypting data at rest. This necessitates the use of customer-managed encryption keys (CMEK). BigQuery table encryption: The existing BigQuery table is encrypted with a Google-managed key. To meet the new policy, a new table needs to be created with CMEK. Pub/Sub topic encryption: Since the data is ingested directly from a Pub/Sub subscription, the Pub/Sub topic also needs to use CMEK to ensure end-to-end encryption with customer-managed keys. Data migration: The existing data in the old BigQuery table needs to be migrated to the new CMEK-encrypted table to ensure all data complies with the new policy
upvoted 1 times
...
carmltekai
4 months, 1 week ago
Selected Answer: B
"The best solution here is B. Create a new BigQuery table by using customer-managed encryption keys (CMEK), and migrate the data from the old BigQuery table. Here's why: Customer-Managed Encryption Keys (CMEK): CMEKs allow you to have granular control over your encryption keys, complying with the organization's policy to use keys from a centralized Cloud KMS project. Data Migration: Since the data in the existing table is already encrypted with a Google-managed key, you cannot retroactively change the encryption key for that table. Migrating the data to a new table with the correct encryption is the most efficient way to meet compliance.
upvoted 1 times
carmltekai
4 months, 1 week ago
Why other options aren't suitable: A: Dataflow can't retroactively change the encryption of data that's already in BigQuery. C: Creating a new Pub/Sub topic with CMEK wouldn't address the data that's already in BigQuery. D: While creating a new Pub/Sub topic might be useful in the long run, it's not necessary for solving the immediate compliance issue with the existing data."
upvoted 1 times
iooj
3 months, 3 weeks ago
You have some data in Pub/Sub at rest as well which is immediate compliance issue.
upvoted 1 times
...
...
...
Anudeep58
5 months, 1 week ago
Selected Answer: D
D. Create a new BigQuery table and Pub/Sub topic by using customer-managed encryption keys (CMEK), and migrate the data from the old BigQuery table. This approach comprehensively addresses the requirement to use CMEK from a centralized Cloud KMS project for encrypting data at rest: Create a new Pub/Sub topic configured to use CMEK from the centralized Cloud KMS project. Create a new BigQuery table with CMEK enabled, using the same centralized Cloud KMS project. Update the ingestion process to use the new Pub/Sub topic to feed data into the new BigQuery table. Migrate existing data from the old BigQuery table to the new BigQuery table to ensure all data complies with the new encryption policy.
upvoted 2 times
...
AlizCert
5 months, 3 weeks ago
Selected Answer: B
B, been there, done that...
upvoted 1 times
AlizCert
5 months, 3 weeks ago
sry, I mean D
upvoted 2 times
...
...
josech
6 months ago
Selected Answer: D
BigQuery and Pub/Sub shall be encrypted using CMEK using new versions of each one. https://cloud.google.com/pubsub/docs/encryption#using-cmek
upvoted 2 times
...
chrissamharris
6 months, 1 week ago
Selected Answer: B
Data at rest in requirement = Big Query ONLY. Pub/Sub is data in movement - overkill for the solution
upvoted 1 times
...
f74ca0c
6 months, 1 week ago
Selected Answer: D
D- BigQuery and Pub/sub are automatically encrypted but here we need to apply a more secured policy by using CMEK so we need to use it for bigquery and pub/sub to meet this policy
upvoted 1 times
...
LaxmanTiwari
7 months ago
Selected Answer: B
B. Create a new BigQuery table by using customer-managed encryption keys (CMEK), and migrate the data from the old BigQuery table. Most Voted
upvoted 2 times
LaxmanTiwari
7 months ago
it should be B as the data in pub sub is already encrypted , please read it carefully and use Copilot or chat gpt to have confirmation.
upvoted 1 times
...
...
amanbawa96
7 months, 3 weeks ago
Selected Answer: B
BigQuery allows you to encrypt data at rest using either Google-managed encryption keys or customer-managed encryption keys (CMEK) from Cloud KMS. Since the new policy requires using keys from a centralized Cloud KMS project, you need to create a new BigQuery table that is configured to use CMEK for encryption. After creating the new table with CMEK, you can migrate the data from the old table (encrypted with Google-managed keys) to the new table (encrypted with CMEK). This approach ensures that the data in the BigQuery table is encrypted using the required CMEK while preserving the existing data. Creating a new BigQuery table and Pub/Sub topic with CMEK is not necessary because the focus is on encrypting the data at rest in BigQuery. The existing Pub/Sub subscription can still be used to ingest data into the new BigQuery table.
upvoted 1 times
...
Izzyt99
8 months ago
D - 'as new organization policy that requires you to use keys from a centralized Cloud Key Management Service (Cloud KMS) project to encrypt data at rest.' Therefore, the Pub/Sub default Google-managed encryption key is not sufficient as the organization requires it's own CMEK that is to be generated from a centralized Cloud KMS project.
upvoted 3 times
...
cuadradobertolinisebastiancami
8 months, 4 weeks ago
Selected Answer: D
Agree with ML6 and Smakyel. To encrypt data at rest we should encrypt the data in PubSub and BigQuery
upvoted 1 times
...
ML6
9 months, 1 week ago
Only option D complies with the organisation policy: - By creating a new Pub/Sub topic with customer-managed encryption keys (CMEK), any new data ingested into Pub/Sub will be encrypted with the (!) organization's desired encryption keys (!). - Creating a new BigQuery table with CMEK ensures that all data stored in BigQuery, both newly ingested and migrated historical data, is encrypted according to organizational policies. - Migrating the data from the old BigQuery table to the new one ensures that historical data is also encrypted with the new keys, thus meeting the organization's requirements for encryption at rest for both Pub/Sub and BigQuery.
upvoted 3 times
...
Matt_108
10 months, 2 weeks ago
Selected Answer: D
Option D - I get the discussion about B and D, but also pub/sub has some data at rest, e.g. messages with retention period. To comply with the organisation policy, we need to adapt also pub/sub
upvoted 4 times
...
GCP001
10 months, 2 weeks ago
D. We should use new CMSK for both pubsub topic and BQ tables along with migrating old data.
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 ...