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:

Sarah
4 days 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
...
Amie
5 days 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
5 days 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
6 days 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
10 days 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
11 days 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