0
0
GCPcloud~10 mins

Machine types and families (E2, N2, C2) in GCP - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify an E2 machine type in a GCP VM instance configuration.

GCP
machine_type = "zones/us-central1-a/machineTypes/[1]"
Drag options to blanks, or click blank then click option'
Ae2-medium
Bc2-standard-8
Cn2-standard-4
Dcustom-2-4096
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a machine type from a different family like N2 or C2.
Using a custom machine type string incorrectly.
2fill in blank
medium

Complete the code to select a high-performance N2 machine type for a VM instance.

GCP
machine_type = "zones/us-west1-b/machineTypes/[1]"
Drag options to blanks, or click blank then click option'
Ae2-small
Bc2-standard-4
Cn2-standard-8
De2-micro
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting an E2 or C2 machine type instead of N2.
Choosing a smaller machine type than requested.
3fill in blank
hard

Fix the error in the machine type string to correctly specify a C2 machine type.

GCP
machine_type = "zones/europe-west1-c/machineTypes/[1]"
Drag options to blanks, or click blank then click option'
Ac2-standard-4
Be2-standard-2
Cn2-standard-16
Dcustom-4-8192
Attempts:
3 left
💡 Hint
Common Mistakes
Using machine types from other families like N2 or E2.
Using a custom machine type string incorrectly.
4fill in blank
hard

Fill both blanks to create a VM instance configuration with an N2 machine type and a zone in us-east1.

GCP
instance_config = {
  "zone": "[1]",
  "machine_type": "zones/[2]/machineTypes/n2-standard-4"
}
Drag options to blanks, or click blank then click option'
Aus-east1-b
Bus-central1-a
Cus-east1-c
Dus-west1-a
Attempts:
3 left
💡 Hint
Common Mistakes
Using different zones in the two fields.
Choosing a zone outside the us-east1 region.
5fill in blank
hard

Fill all three blanks to define a VM instance with a C2 machine type, in europe-west1-b zone, and with a custom machine type suffix.

GCP
instance = {
  "zone": "[1]",
  "machine_type": "zones/[2]/machineTypes/c2-[3]"
}
Drag options to blanks, or click blank then click option'
Aeurope-west1-b
Beurope-west1-c
Cstandard-8
Dstandard-4
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing zones between europe-west1-b and europe-west1-c.
Using an incorrect machine type suffix.