exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 165 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 165
Topic #: 1
[All Associate Cloud Engineer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GCP_Student1
Highly Voted 3 years, 5 months ago
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.
upvoted 36 times
...
pondai
Highly Voted 3 years, 5 months ago
BigQuery is in our project,so we need to create a service account and grant it access BigQuery role.That can make partner company to use this account to use it to access our project's BigQuery.So I vote A.
upvoted 14 times
tavva_prudhvi
3 years, 5 months ago
See, the ones who want our access needs to create a service account(in our case it's the partner company), then we give access to the service account with the user permissions. Clearly, D says the same thing!
upvoted 11 times
...
akshaychavan7
2 years, 3 months ago
Your understanding is bit wrong here, my friend!
upvoted 3 times
...
...
PiperMe
Most Recent 6 months, 1 week ago
Selected Answer: D
D is the best answer: - By having the partner create a Service Account and you granting access to it, you maintain ownership and control over your BigQuery data. - You can specifically grant the partner's Service Account the necessary BigQuery permissions (e.g., "BigQuery Data Viewer"), avoiding overly broad access. - Each company manages Service Accounts within their own projects, maintaining a separation of concerns. Why Others Aren't as Ideal: A & B: Creating a Service Account in your project and sharing it with the partner (or vice versa) introduces potential management complexities and blurs the lines of responsibility for that Service Account. C: Giving the partner company full control to grant their own service accounts access to your dataset could open up broader access than intended.
upvoted 3 times
...
scanner2
12 months ago
Selected Answer: D
Cross project access. Application in Project A want to access a service in project B. 1. Create a service account in project A. 2. Give the required permission to access the services in project B.
upvoted 5 times
...
N_A
1 year, 3 months ago
Selected Answer: D
A. Useless if the private key of the Service Account is not shared with the partner (this would not be a good practice in terms of security) B. Not possible. C. Useless as the won't have access to the data in our data warehouse on BigQuery. D. Is the correct answer and follow best practices.
upvoted 1 times
...
hiromi
1 year, 9 months ago
Selected Answer: D
Should be D
upvoted 2 times
...
Aninina
1 year, 10 months ago
Selected Answer: D
"Service accounts are both identities and resources. Because service accounts are identities, you can let a service account access resources in your project by granting it a role, just like you would for any other principal."
upvoted 1 times
...
Cornholio_LMC
1 year, 11 months ago
had this one today
upvoted 2 times
...
AzureDP900
2 years, 2 months ago
D is right
upvoted 1 times
...
somenick
2 years, 5 months ago
Selected Answer: D
https://gtseres.medium.com/using-service-accounts-across-projects-in-gcp-cf9473fef8f0#:~:text=Go%20to%20the%20destination%20project,Voila!
upvoted 2 times
...
mk1708
2 years, 6 months ago
I thought it was A. But when I quickly did some research I found this: "Service accounts are both identities and resources. Because service accounts are identities, you can let a service account access resources in your project by granting it a role, just like you would for any other principal." Thus, the answer is D.
upvoted 4 times
...
wh1t4k3r
2 years, 8 months ago
D per my understanding: if the need is to authenticate the application to access your dataset, it's the application's serice account that will be provided during the authentication, so the service account is to be created at their side to run the application, not the other way around.
upvoted 4 times
wh1t4k3r
2 years, 8 months ago
Another insight: A is to broad. The question states: "provide the partner company with access to the dataset" A states: "grant this Service Account access to BigQuery in your project" I think D is a more granular option, given that A would give access to all datasets in your bigquery data warehousing.
upvoted 2 times
...
...
jabrrJ68w02ond1
2 years, 9 months ago
How is it D? I want to give access to my BigQuery data, so I need to provide the ServiceAccount. I create it, put some decent predefined roles on it, and whenever I stop working with the other company, I either invalidate the JSON key of the SA or I simply delete the SA. For me, it is A.
upvoted 4 times
JelloMan
2 years, 4 months ago
Righ but how will the other project ever gain access to resources on YOUR project? Key thing here is that your sharing ACROSS different projects so you need a bridge between them. D provides that bridge by connecting THEIR service account with YOUR resource (big query)
upvoted 2 times
...
...
AD_0525
3 years, 2 months ago
Answer should be D, as the other company project needs access in your project.
upvoted 6 times
...
EmreA
3 years, 3 months ago
It|s A
upvoted 4 times
...
kopper2019
3 years, 4 months ago
D is the answer
upvoted 6 times
...
TAvenger
3 years, 5 months ago
I think it is "D" but I have not found such usecase when you share dataset with another organization via service account
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago