Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Associate Cloud Engineer Topic 3 Question 93 Discussion

Actual exam question for Google's Associate Cloud Engineer exam
Question #: 93
Topic #: 3
[All Associate Cloud Engineer Questions]

You want to deploy an application on Cloud Run that processes messages from a Cloud Pub/Sub topic. You want to follow Google-recommended practices. What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: D

Instance groups are collections of virtual machine (VM) instances that you can manage as a single entity. Instance groups can help you simplify the management of multiple instances, reduce operational costs, and improve the availability and performance of your applications. Instance groups support autoscaling, which automatically adds or removes instances from the group based on increases or decreases in load. Autoscaling helps your applications gracefully handle increases in traffic and reduces cost when the need for resources is lower. You can set the autoscaling policy based on CPU utilization, load balancing capacity, Cloud Monitoring metrics, or a queue-based workload. In this case, since the video encoding software is CPU-intensive, setting the autoscaling based on CPU utilization is the best option to ensure high availability and optimal performance.Reference:

Instance groups

Autoscaling groups of instances


Contribute your Thoughts:

Wilson
20 days ago
D, huh? Might as well throw in a kubernetes cluster, a few microservices, and a serverless function or two, just to be safe. Why keep it simple when you can make it complicated?
upvoted 0 times
...
Maia
29 days ago
B all the way! Keeping things simple and following Google's recommendations - can't go wrong with that.
upvoted 0 times
Detra
16 days ago
B) 1. Grant the Pub/Sub Subscriber role to the service account used by Cloud Run.2. Create a Cloud Pub/Sub subscription for that topic.3. Make your application pull messages from that subscription.
upvoted 0 times
...
...
Tammara
1 months ago
A? Really? Calling Cloud Run from a Cloud Function for every message? That's just adding an extra hop and potential failure point. Not a fan.
upvoted 0 times
Maybelle
8 days ago
B) 1. Grant the Pub/Sub Subscriber role to the service account used by Cloud Run.2. Create a Cloud Pub/Sub subscription for that topic.3. Make your application pull messages from that subscription.
upvoted 0 times
...
Elly
14 days ago
C) 1. Create a service account.2. Give the Cloud Run Invoker role to that service account for your Cloud Run application.3. Create a Cloud Pub/Sub subscription that uses that service account and uses your Cloud Run application as the push endpoint.
upvoted 0 times
...
Mari
23 days ago
B) 1. Grant the Pub/Sub Subscriber role to the service account used by Cloud Run.2. Create a Cloud Pub/Sub subscription for that topic.3. Make your application pull messages from that subscription.
upvoted 0 times
...
...
Sarah
2 months ago
D seems a bit overkill, don't you think? Why bring in a whole GKE cluster just to connect Pub/Sub to Cloud Run? B or C are cleaner options.
upvoted 0 times
Tasia
20 days ago
Yeah, B or C would be simpler and more straightforward to implement.
upvoted 0 times
...
Bronwyn
1 months ago
I agree, D does seem like overkill. B or C are definitely cleaner options.
upvoted 0 times
...
...
Amie
2 months ago
I'm not sure, but option C also sounds like a good approach. Creating a service account and giving the Cloud Run Invoker role seems like a valid method.
upvoted 0 times
...
Kristian
2 months ago
I like C - using a service account to connect Cloud Run and Pub/Sub is a nice touch. Keeps things secure and manageable.
upvoted 0 times
...
Leota
2 months ago
B sounds like the way to go. Keeping the Pub/Sub subscription and Cloud Run application separate is a good practice.
upvoted 0 times
...
Dacia
2 months ago
I agree with Catarina. Option B seems like the most straightforward and secure way to deploy the application on Cloud Run.
upvoted 0 times
...
Catarina
2 months ago
I think option B is the best choice. It follows Google-recommended practices by granting the Pub/Sub Subscriber role to the service account used by Cloud Run.
upvoted 0 times
...

Save Cancel