A Cloud Engineer needs to safely deploy an OS image update to a production Managed Instance Group (MIG) serving critical web application traffic. To minimize operational risk, the engineer must execute a canary rollout using the gcloud command-line interface, testing the updated configuration on a subset of 10% of the instances before initiating a full deployment. In which sequential order should the engineer execute these steps?
- 1Create a new Compute Engine instance template incorporating the updated disk image and configuration settings.
- 2Update the Managed Instance Group configuration to add the new instance template as a canary version with a target size of 10%.
- 3Initiate a rolling update action on the Managed Instance Group to provision and replace instances matching the canary target size.
- 4Monitor Cloud Logging and Cloud Monitoring metrics to validate application stability and performance on the canary instances.
- 5Update the Managed Instance Group configuration to promote the new instance template to 100% and finish the rolling update across all instances.
Answer
The correct sequence for conducting a canary rollout on a Managed Instance Group is: 1) Create a new instance template with the updated disk image, 2) Configure the MIG to target 10% size for the new template version, 3) Start the rolling update action to replace canary instances, 4) Monitor application logs and metrics on the canary subset, and 5) Promote the new instance template to 100% target size to complete the full update.
The correct operational sequence adheres to Google Cloud best practices for risk-mitigated deployments. A new instance template must be created first before it can be referenced. The group configuration is then updated to assign a 10% target size to the new template. Executing the rolling action replaces only the instances necessary to meet the 10% canary threshold. Monitoring telemetry validates that the new image performs reliably. Finally, assigning 100% target size to the new template rolls out the update to all remaining instances.
Step-by-Step Solution
Key Concept
Managed Instance Group Canary Updates