GCP PCA · Question 34 · Technical Processes
You are managing a fleet of Compute Engine instances in a Managed Instance Group (MIG). The application processes messages from a Cloud Pub/Sub topic. Traffic is highly variable. You want the MIG to scale out when there is a backlog of messages and scale in when the queue is empty. How should you configure the autoscaler?
You are managing a fleet of Compute Engine instances in a Managed Instance Group (MIG). The application processes messages from a Cloud Pub/Sub topic. Traffic is highly variable. You want the MIG to scale out when there is a backlog of messages and scale in when the queue is empty. How should you configure the autoscaler?
Answer options:
Configure the autoscaler to scale based on CPU utilization.
Configure the autoscaler to scale based on HTTP load balancing capacity.
Configure the autoscaler to scale based on the Cloud Monitoring metric for Pub/Sub unacknowledged messages.
Write a custom script that runs on a cron job to check the queue size and manually adjust the MIG size.
How to approach this question
Full Answer
Common mistakes
Practice the full GCP Professional Cloud Architect Practice Exam 1
50 questions · hints · full answers · grading
Expert