Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Associate Cloud Engineer topic 1 question 121 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 121
Topic #: 1
[All Associate Cloud Engineer Questions]

Your managed instance group raised an alert stating that new instance creation has failed to create new instances. You need to maintain the number of running instances specified by the template to be able to process expected application traffic. What should you do?

  • A. Create an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names.
  • B. Create an instance template that contains valid syntax that will be used by the instance group. Verify that the instance name and persistent disk name values are not the same in the template.
  • C. Verify that the instance template being used by the instance group contains valid syntax. Delete any persistent disks with the same name as instance names. Set the disks.autoDelete property to true in the instance template.
  • D. Delete the current instance template and replace it with a new instance template. Verify that the instance name and persistent disk name values are not the same in the template. Set the disks.autoDelete property to true in the instance template.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
TAvenger
Highly Voted 3 years, 2 months ago
Really tricky question. Ideal scenario would be 1. create new template, while creating ensure that in the new template disks.autoDelete=true, 3. delete existing persistent disks, 4. make rolling update ... In order to switch to new template we need "Rolling update". Unfortunately, it is not mentioned. With current options C - not correct, we cannot update existing template D - not correct, we cannot delete existing template when it is in use (just checked in GCP) (We need rolling update) B - will not solve our problem without Rolling update A - This is the only option (I know that it can be temporary) that will work without Rolling update according to https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-migs
upvoted 57 times
ShakthiGCP
3 years, 2 months ago
Well reasoned. I'm also going with A.
upvoted 2 times
...
FunkyB
1 year, 3 months ago
Thank you for providing the link.
upvoted 2 times
...
ovokpus
7 months ago
C - you were not told to update existing template. You were told to verify the syntax is correct.
upvoted 1 times
...
...
ESP_SAP
Highly Voted 3 years, 8 months ago
Correct Answer is (C): Your instance template has set the disks.autoDelete option to false for boot persistent disks so that when a VM has been deleted (for example, because of autohealing), the persistent disk was not deleted. When the managed instance group attempted to recreate the VM with the same name, it ran into the same issue where a persistent disk already exists with the same name. Delete the existing persistent disk to resolve the immediate problem and update the instance template to set the disks.autoDelete to true if you would like boot persistent disks to be deleted alongside the instance https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances#troubleshooting
upvoted 43 times
magistrum
3 years, 4 months ago
Can't update instance templates, see below
upvoted 19 times
JackGlemins
3 years, 2 months ago
https://cloud.google.com/compute/docs/instance-templates#how_to_update_instance_templates
upvoted 12 times
...
...
...
bubidubi
Most Recent 3 months ago
I have no idea and looking at options and explanations from everyone here A, C or D could be the answers. I thought it was D personally, but all answers seem to not make any sense. Usually you can discard one or 2, but here all are the same to me.
upvoted 1 times
...
vshngpl007_2
7 months ago
Selected Answer: A
All questions are from here.
upvoted 1 times
...
DannSecurity
7 months, 3 weeks ago
correct answer is C. It is not updating an instance template, just validate the syntax. The same instance template was working before, so why would you need to edit it? the issue should be in the disk name.
upvoted 1 times
...
scanner2
8 months, 1 week ago
Selected Answer: A
Correct answer is A : Create an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names.
upvoted 2 times
...
xaqanik
1 year, 3 months ago
why we dont prefer option B? it says be sure names are different. but option A deletes discs. if we can change names why to delete them?
upvoted 1 times
...
Kopy
1 year, 6 months ago
Selected Answer: A
Answer is A As many have mentioned here C and D is straight NO, C talks about updating the instance template and D talks about deleting an instance template BUT as per google documentation you cannot delete an instance template nor update it if it is in use. So A is the only one the makes sense here. https://cloud.google.com/compute/docs/instance-templates#how_to_update_instance_templates
upvoted 3 times
...
Untamables
1 year, 6 months ago
Selected Answer: C
Vote C https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-migs https://cloud.google.com/sdk/gcloud/reference/compute/instances/set-disk-auto-delete
upvoted 2 times
...
sneha1607
1 year, 8 months ago
C is the correct answer. 1. Ensure you don’t have any persistent disks with the same name as the VM instance. 2. Ensure the disk autodelete property is turned on (disks.autoDelete set to true). 3. Ensure instance template syntax is valid
upvoted 1 times
sneha1607
1 year, 8 months ago
As described in this article, "My managed instance group keeps failing to create a VM. What's going on?" https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances#troubleshooting
upvoted 1 times
...
...
bobthebuilder55110
1 year, 9 months ago
Selected Answer: A
Answer : A As many have mentioned here C and D is straight NO, C talks about updating the instance template and D talks about deleting an instance template BUT as per google documentation you cannot delete an instance template nor update it if it is in use. So A is the only one the makes sense here. https://cloud.google.com/compute/docs/instance-templates#how_to_update_instance_templates
upvoted 5 times
...
gscharly
1 year, 9 months ago
Selected Answer: A
Correct answer is A You don't have the option to edit an existing instance.
upvoted 1 times
...
rdumitru
1 year, 10 months ago
Selected Answer: A
Correct answer is A You don't have the option to edit an existing instance.
upvoted 1 times
...
Bumbah
1 year, 10 months ago
Selected Answer: A
You cannot update a template, need to create a new one.
upvoted 1 times
...
patashish
1 year, 10 months ago
A is correct answer. [Instance template resources are immutable in GCP.] How to update instance templates Instance templates are designed to create instances with identical configurations. So you cannot update an existing instance template or change an instance template after you create it. If you need to make changes to the configuration, create a new instance template. You can create a template based on an existing instance template, or based on an existing instance. You can also override instance template fields when creating a VM instance from an instance template. Ref : https://cloud.google.com/compute/docs/instance-templates#:~:text=So%20you%20cannot%20update%20an,based%20on%20an%20existing%20instance.
upvoted 2 times
...
Roro_Brother
1 year, 10 months ago
Selected Answer: C
C is the correct answer because your instance exists you don't have to recreate it
upvoted 3 times
davidsalomon
1 year, 5 months ago
an instance template cant be modified.
upvoted 1 times
...
...
deadlydeb
1 year, 11 months ago
d IS RIGHT
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...