Machine types and families (E2, N2, C2)
📖 Scenario: You are setting up virtual machines (VMs) on Google Cloud Platform (GCP) for different workloads. Each workload needs a VM with a specific machine family and type to match its performance and cost needs.Machine families like E2, N2, and C2 offer different balances of CPU power and cost. You will create configurations for these VMs to understand how to specify machine types in GCP.
🎯 Goal: Create a dictionary in Python that holds VM configurations for three machine families: E2, N2, and C2. Then add a variable to select a machine family, write code to get the machine type for that family, and finally complete the configuration by adding a zone to deploy the VM.
📋 What You'll Learn
Create a Python dictionary named
vm_configs with keys 'E2', 'N2', and 'C2' and values as their default machine types.Create a variable named
selected_family to hold the machine family to use.Write code to get the machine type from
vm_configs using selected_family.Add a variable named
zone with the value 'us-central1-a' to complete the VM configuration.💡 Why This Matters
🌍 Real World
Cloud engineers often need to choose the right machine types for virtual machines to balance cost and performance. This project simulates selecting machine types from different families in GCP.
💼 Career
Understanding machine types and families is essential for roles like Cloud Engineer, DevOps Engineer, and Infrastructure Architect to design efficient cloud infrastructure.
Progress0 / 4 steps