Your company pushes batches of sensitive transaction data from its application server VMs to Cloud Pub/Sub for processing and storage. What is the Google-recommended way for your application to authenticate to the required Google Cloud services?
Suggested Answer: B
Get Premium Professional Cloud Architect Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
34 comments · newest first
CA
Cathern
1 year ago
I’m surprised there’s even an option to use OAuth tokens for this!
LE
Leota
1 year ago
C sounds overly complicated for just accessing Pub/Sub.
VI
Vi
1 year ago
Wait, why would you not give the VM access in B? That sounds risky.
ER
Ernest
1 year ago
I think D could work too, but A seems simpler.
AD
Adaline
1 year ago
A is definitely the way to go!
LI
Lino
1 year ago
I vaguely recall something about using Cloud Functions as a gateway, but I’m not certain if that’s the best approach for this scenario.
LU
Luisa
1 year ago
I’m a bit confused about option C; I thought generating an OAuth2 token was more complex than just using service accounts directly.
SI
Simona
1 year ago
I think option A sounds familiar because we practiced a similar question about IAM roles and service accounts in our last session.
LA
Lavonda
1 year ago
I remember we discussed the importance of using service accounts for authentication, but I'm not sure if they should have direct access to Cloud Pub/Sub or not.
BE
Bette
1 year ago
I'm pretty confident that option A is the correct answer. Granting the appropriate IAM roles to the VM service accounts is the recommended way to authenticate to Cloud Pub/Sub, as it avoids the need for additional complexity like a gateway or storing encrypted tokens.
BR
Britt
1 year ago
Hmm, I'm a bit confused on the difference between using the VM service account directly versus creating a gateway with a Cloud Function. I'll need to review the documentation on the recommended practices for this scenario.
MI
Micheline
1 year ago
This looks like a straightforward question about authentication best practices for Google Cloud services. I think the key is to understand the recommended approach for granting the appropriate IAM roles to the VM service accounts.
CH
Cheryl
1 year ago
Ah, I see. The question is asking about the Google-recommended way, so I should focus on that rather than trying to come up with my own solution. I think option A is the right approach, but I'll double-check the details to make sure.
VA
Vanna
1 year ago
I'm a bit confused on how exactly the control limits and process capability are connected. I'll have to carefully consider the wording of the statement to decide if it's true or false.
BL
Blair
1 year ago
Hmm, I'm a bit unsure about this one. The options seem to cover a range of different functionalities, so I'll have to think it through carefully.
MA
Maddie
2 years ago
Encrypt an OAuth token and store it in Cloud Storage? That's a recipe for disaster. Option A is the clear winner here.
SA
Sabra
1 year ago
C) Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.
NG
Ngoc
1 year ago
B) Encrypt an OAuth token and store it in Cloud Storage? That's a recipe for disaster. Option A is the clear winner here.
YU
Yuriko
1 year ago
A) Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.
PA
Patti
2 years ago
A gateway using a Cloud Function? That's like using a sledgehammer to crack a nut. Option A all the way!
ST
Stephane
2 years ago
I was a bit confused by the options, but after reading them carefully, I agree that Option A is the correct answer. Seems like the most secure and efficient approach.
ST
Stanford
1 year ago
Definitely, security is key when dealing with sensitive data.
GL
Glenna
2 years ago
It's important to ensure that only the necessary permissions are granted.
HE
Herminia
2 years ago
I agree, granting the appropriate IAM roles to VM service accounts is the way to go.
BR
Brittani
2 years ago
I think Option A is the best choice.
AL
Aleshia
2 years ago
I was thinking the same thing as Georgeanna. Option A is the way to go. Much simpler than trying to manage OAuth tokens or creating a gateway.
GE
Georgeanna
2 years ago
Option A seems like the straightforward choice here. Granting the appropriate IAM roles to the VM service accounts is the Google-recommended way to authenticate to the required services.
PH
Phung
1 year ago
D) Creating a gateway using a Cloud Function and granting the Cloud Function service account the IAM roles could also work.
VA
Vallie
2 years ago
A) But the Google-recommended way is to grant the IAM roles directly to the VM service accounts.
BR
Breana
2 years ago
B) I think using VM access scopes to grant the appropriate Cloud Pub/Sub IAM roles is a better option.
DE
Demetra
2 years ago
A) Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.
LI
Lindsey
2 years ago
I'm not sure, but I think option C) Generate an OAuth2 access token and store it in Cloud Storage could also be a valid approach.
PE
Percy
2 years ago
I agree with Alica. It makes sense to grant the necessary IAM roles to the VM service accounts for authentication.
AL
Alica
2 years ago
I think the answer is A) Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.