Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Infrastructure orchestration automates the setup and management of cloud resources. An Instance Template acts as a blueprint, defining a virtual machine's type, disk image, and network settings. To standardize configuration, you can attach metadata and Startup Scripts that run automatically when a VM boots, installing software or applying settings so every machine is consistent.
Managed Instance Groups (MIGs) use these templates to create and manage a group of identical VMs. This facilitates automated, large-scale deployments. MIGs provide high availability by automatically replacing failed VMs and enable scalability by adding or removing VMs based on demand or a schedule.
Lifecycle management involves automated health monitoring and recovery. MIGs use Health Checks to detect unhealthy VMs and then perform Autohealing, which automatically recreates them. For planned maintenance, Live Migration moves VMs to new hardware without downtime, keeping the system resilient.
For patch management, you can use Rolling Updates to deploy new software versions across a MIG without service interruption. Stateless MIGs are ideal for easily replaceable frontends, while Stateful MIGs preserve unique data on persistent disks for applications like databases. This automated approach ensures security patches are applied consistently and reduces human error.
Infrastructure as Code (IaC) manages cloud resources using configuration files instead of manual processes. Tools like Terraform and Google Cloud Deployment Manager use automation to make environments consistent, repeatable, and secure, minimizing human error.
Terraform uses a declarative syntax to describe your desired infrastructure state. It relies on a state file to track the relationship between your code and the actual cloud resources. Key practices include using Modular Templates for reusable code blocks, Version Control to track changes, and careful State Management to ensure the real environment always matches the code.
Infrastructure orchestration coordinates these automated tasks into pipelines, often using services like Cloud Build. Separating duties (like foundation, infrastructure, and application layers) into automated pipelines makes every change auditable and repeatable.
For compute resource configuration, image baking—creating pre-configured VM images with a tool like Packer—is preferred. This ensures that when a Managed Instance Group (MIG) scales, every new VM is identical and ready immediately, speeding up deployment and increasing reliability.
Automated patch management is critical for security. Strategies include Automated Rollouts to apply updates gradually, using Health Checks to monitor systems during updates, and leveraging Managed Services where Google Cloud handles underlying maintenance automatically.
VM Manager is a suite of tools for managing operating systems across large fleets of Google Cloud VMs. It automates tasks like patching to reduce manual work and maintain a secure, consistent environment.
The OS inventory management service collects detailed software information from each VM and stores it in instance metadata. You can query this data to check compliance. The Patch dashboard categorizes VMs by update status—such as Critical, Security, or Up-to-date—to help you monitor your fleet.
The Patch service allows you to schedule or apply operating system updates on-demand. An OS Config agent on each VM uses standard system tools (like apt or yum) to install the updates. Scheduling ensures regular application of critical security fixes.
OS policies are declarative files that define a VM's desired state, including specific software packages. When set to enforcement mode, the system automatically corrects any VM that drifts from the policy, keeping large fleets consistent and secure.
When deploying updates, you can use rollout options to control the pace across zones. A disruption budget defines the maximum number of VMs that can be updating at once. These controls help maintain high availability by preventing too many resources from being offline simultaneously.
Prepare and test your skills
Prepare and test your skills
Stateless MIGs are ideal for easily replaceable frontends, while Stateful MIGs preserve unique data on persistent disks for applications like databases.
The Patch service allows you to schedule or apply operating system updates on-demand, and an OS Config agent on each VM uses standard system tools like apt or yum to install the updates.
A disruption budget defines the maximum number of VMs that can be updating at once, helping maintain high availability by preventing too many resources from being offline simultaneously.
An enterprise is establishing an Infrastructure as Code (IaC) strategy on Google Cloud to manage multi-tier compute workloads across development, testing, and production environments.
The infrastructure team has outlined the following technical requirements:
Which operational approach best fulfills these requirements?