0
0
GCPcloud~20 mins

Managed instance groups in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Managed Instance Group Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
How does a Managed Instance Group handle instance updates?

You have a Managed Instance Group (MIG) with 5 instances running a web application. You want to update the application version on all instances with minimal downtime.

Which behavior best describes how the MIG handles rolling updates?

AIt deletes all instances and creates new ones with the updated version at the same time.
BIt updates all instances simultaneously, causing downtime during the update.
CIt updates instances one at a time, ensuring some instances remain available during the update.
DIt requires manual deletion of instances before creating updated ones.
Attempts:
2 left
💡 Hint

Think about how to keep the service available during updates.

service_behavior
intermediate
2:00remaining
What happens when an instance in a Managed Instance Group becomes unhealthy?

You have a Managed Instance Group with health checks configured. One instance fails the health check.

What does the Managed Instance Group do automatically?

AIt marks the instance as unhealthy and recreates it after a grace period.
BIt ignores the unhealthy instance and continues running it.
CIt stops the instance but does not replace it automatically.
DIt immediately deletes the unhealthy instance and creates a new one.
Attempts:
2 left
💡 Hint

Consider how MIGs maintain the desired number of healthy instances.

security
advanced
2:00remaining
Which IAM role is required to create and manage Managed Instance Groups securely?

You want to grant a team member permissions to create and manage Managed Instance Groups without giving full project access.

Which IAM role should you assign?

Aroles/compute.instanceAdmin.v1
Broles/compute.instanceGroupManager
Croles/compute.networkAdmin
Droles/owner
Attempts:
2 left
💡 Hint

Look for the role specific to Managed Instance Groups.

Configuration
advanced
2:00remaining
What is the effect of setting the 'autohealing' policy in a Managed Instance Group?

You configure an autohealing policy with a health check on a Managed Instance Group.

What happens when an instance fails the health check under this policy?

AThe instance is automatically recreated to replace the unhealthy one.
BThe instance is stopped but not replaced automatically.
CThe instance continues running despite failing the health check.
DThe entire Managed Instance Group is deleted and recreated.
Attempts:
2 left
💡 Hint

Think about how autohealing maintains instance health.

Best Practice
expert
3:00remaining
How should you configure a Managed Instance Group to handle sudden traffic spikes efficiently?

You expect sudden increases in traffic to your application. You want the Managed Instance Group to add instances quickly but avoid excessive costs.

Which configuration best achieves this?

ASet a high fixed number of instances to handle peak traffic at all times.
BManually add instances when traffic increases and remove them when it decreases.
CDisable autoscaling and rely on load balancer to distribute traffic.
DUse autoscaling based on CPU utilization with a maximum instance limit and cooldown period.
Attempts:
2 left
💡 Hint

Consider balancing responsiveness and cost control.