0
0
GCPcloud~10 mins

Managed instance groups 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 create a managed instance group with a named instance template.

GCP
gcloud compute instance-groups managed create my-group --template=[1] --size=3 --zone=us-central1-a
Drag options to blanks, or click blank then click option'
Atemplate-instance
Binstance-template-1
Cmy-template
Ddefault-template
Attempts:
3 left
💡 Hint
Common Mistakes
Using a template name that does not exist
Omitting the --template flag
2fill in blank
medium

Complete the code to update the size of the managed instance group to 5.

GCP
gcloud compute instance-groups managed resize my-group --size=[1] --zone=us-central1-a
Drag options to blanks, or click blank then click option'
A3
B10
C5
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Setting size to a smaller number accidentally
Using a non-numeric value
3fill in blank
hard

Fix the error in the command to set the autohealing policy for the managed instance group.

GCP
gcloud compute instance-groups managed set-autohealing-policies my-group --health-check=[1] --initial-delay=300 --zone=us-central1-a
Drag options to blanks, or click blank then click option'
Aautoheal-check
Bmy-health-check
Ccheck-health
Dhealth-check-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a health check name that does not exist
Misspelling the health check name
4fill in blank
hard

Fill both blanks to create a managed instance group with autoscaling enabled and set the max number of instances.

GCP
gcloud compute instance-groups managed create my-group --template=[1] --size=2 --zone=us-central1-a && gcloud compute instance-groups managed set-autoscaling my-group --max-num-replicas=[2] --zone=us-central1-a
Drag options to blanks, or click blank then click option'
Ainstance-template-2
Binstance-template-3
C5
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using an invalid template name
Setting max replicas too low or too high
5fill in blank
hard

Fill all three blanks to update the instance template, resize the group, and set the autoscaling minimum size.

GCP
gcloud compute instance-groups managed rolling-action start-update my-group --version=template=[1] --zone=us-central1-a && gcloud compute instance-groups managed resize my-group --size=[2] --zone=us-central1-a && gcloud compute instance-groups managed set-autoscaling my-group --min-num-replicas=[3] --zone=us-central1-a
Drag options to blanks, or click blank then click option'
Ainstance-template-4
B4
C2
Dinstance-template-5
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up template names
Setting size or min replicas incorrectly