Google Cloud Associate Cloud Engineer — Question 153
You are running a data warehouse on BigQuery. A partner company is offering a recommendation engine based on the data in your data warehouse. The partner company is also running their application on Google Cloud. They manage the resources in their own project, but they need access to the BigQuery dataset in your project. You want to provide the partner company with access to the dataset. What should you do?
Answer options
- A. Create a Service Account in your own project, and grant this Service Account access to BigQuery in your project.
- B. Create a Service Account in your own project, and ask the partner to grant this Service Account access to BigQuery in their project.
- C. Ask the partner to create a Service Account in their project, and have them give the Service Account access to BigQuery in their project.
- D. Ask the partner to create a Service Account in their project, and grant their Service Account access to the BigQuery dataset in your project.
Correct answer: D
Explanation
The correct answer is D because the partner needs access to your BigQuery dataset, which requires them to have a Service Account in their own project. This allows them to authenticate and access the dataset you control. Options A, B, and C do not provide the necessary access to your dataset as they either restrict permissions or incorrectly place the responsibility on your project instead of the partner's project.