exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 76 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 76
Topic #: 1
[All Professional Cloud Architect Questions]

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?

  • A. Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.
  • B. Ensure that VM service accounts do not have access to Cloud Pub/Sub, and use VM access scopes to grant the appropriate Cloud Pub/Sub IAM roles.
  • C. Generate an OAuth2 access token for accessing Cloud Pub/Sub, encrypt it, and store it in Cloud Storage for access from each VM.
  • D. Create a gateway to Cloud Pub/Sub using a Cloud Function, and grant the Cloud Function service account the appropriate Cloud Pub/Sub IAM roles.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
AWS56
Highly Voted 4 years, 10 months ago
Agree A
upvoted 26 times
nitinz
3 years, 8 months ago
A is correct
upvoted 2 times
...
kumarp6
4 years ago
Yes A it is
upvoted 2 times
...
...
JustJack21
Highly Voted 3 years, 2 months ago
It's because of questions like these that I do not feel guilty about using question banks :D In what world would you accept value requirements like this from your user? Wouldn't you ask "Do you want to just authenticate? or the data to be encrypted on its way to pub/sub?" I'll ignore the first part of the question and assume all data is sensitive, and focus on "What is the Google- recommended way for your application to authenticate to the required Google Cloud services?" -- The answer then is A. Use encryption and defense-in-depth for the first part.
upvoted 13 times
bandegg
10 months, 1 week ago
> It's because of questions like these that I do not feel guilty about using question banks :D Same. To me, it wasn't clear whether the servers were in google or not due to the question about accessing google cloud. It was asked as if the VMs were outside of google
upvoted 3 times
...
AMEJack
2 years, 1 month ago
Service accounts use keys
upvoted 1 times
...
...
red_panda
Most Recent 1 year, 5 months ago
Selected Answer: A
A is correct for me. It's batch, so no cloud function
upvoted 2 times
...
omermahgoub
1 year, 10 months ago
A. Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles. The Google-recommended way for your application to authenticate to Cloud Pub/Sub and other Google Cloud services when running on Compute Engine VMs is to use VM service accounts. VM service accounts are automatically created when you create a Compute Engine VM, and they are associated with the VM instance. To authenticate to Cloud Pub/Sub and other Google Cloud services, you should ensure that the VM service accounts are granted the appropriate IAM roles.
upvoted 8 times
omermahgoub
1 year, 10 months ago
Option B, ensuring that VM service accounts do not have access to Cloud Pub/Sub and using VM access scopes to grant the appropriate Cloud Pub/Sub IAM roles, would not be a suitable solution because VM service accounts are required for authentication to Google Cloud services. Option C, generating an OAuth2 access token for accessing Cloud Pub/Sub, encrypting it, and storing it in Cloud Storage for access from each VM, would not be a suitable solution because it would require manual management of access tokens, which can be error-prone and insecure. Option D, creating a gateway to Cloud Pub/Sub using a Cloud Function and granting the Cloud Function service account the appropriate Cloud Pub/Sub IAM roles, would not be a suitable solution because it would not allow the application to directly authenticate to Cloud Pub/Sub.
upvoted 3 times
Sur_Nikki
1 year, 6 months ago
Great way of explanation..By removing/elimination approach
upvoted 1 times
...
...
...
megumin
2 years ago
Selected Answer: A
A is ok
upvoted 1 times
...
Mahmoud_E
2 years ago
Selected Answer: A
A is the correct answer
upvoted 1 times
...
DrishaS4
2 years, 3 months ago
Selected Answer: A
https://cloud.google.com/iam/docs/understanding-service-accounts
upvoted 1 times
...
Pazzooo
2 years, 9 months ago
Selected Answer: A
The combination of Roles assigned to Service accounts granted to VMs is the way to go. :)
upvoted 2 times
...
elenamatay
2 years, 10 months ago
Service accounts are recommended for almost all cases in Pub/Sub (see https://cloud.google.com/pubsub/docs/authentication#service-accounts)
upvoted 3 times
...
haroldbenites
2 years, 11 months ago
Go for A.
upvoted 2 times
...
vincy2202
2 years, 11 months ago
A is the correct answer
upvoted 1 times
...
MaxNRG
3 years ago
A – ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles. Check Migrating Data to GCP section of this page: https://cloud.google.com/iam/docs/understanding-service-accounts You will create a service account key and use it from an external process to call Cloud Platform APIs.
upvoted 3 times
...
Bakili
3 years ago
A is very correct
upvoted 1 times
...
MamthaSJ
3 years, 4 months ago
Answer is A
upvoted 2 times
...
victory108
3 years, 5 months ago
A. Ensure that VM service accounts are granted the appropriate Cloud Pub/Sub IAM roles.
upvoted 3 times
AzureDP900
2 years ago
Agreed with A
upvoted 1 times
...
...
un
3 years, 5 months ago
A is correct
upvoted 1 times
...
kartikjena31
3 years, 7 months ago
Ans. A
upvoted 1 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