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

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

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: A 🗳️

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, 9 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 60 times
ovokpus
1 year, 1 month ago
C - you were not told to update existing template. You were told to verify the syntax is correct.
upvoted 2 times
...
ShakthiGCP
3 years, 8 months ago
Well reasoned. I'm also going with A.
upvoted 2 times
...
FunkyB
1 year, 10 months ago
Thank you for providing the link.
upvoted 2 times
...
...
ESP_SAP
Highly Voted 4 years, 3 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 44 times
magistrum
3 years, 10 months ago
Can't update instance templates, see below
upvoted 19 times
JackGlemins
3 years, 8 months ago
https://cloud.google.com/compute/docs/instance-templates#how_to_update_instance_templates
upvoted 12 times
...
...
...
yomi95
Most Recent 3 weeks, 6 days ago
Selected Answer: A
From my understanding this VM creation issue is based on boot disk from a previous failed VM exists within the MIG making the MIG unable to create a New VM for that failed VM (Auto healing). all the answers are based on this solution. (There might be other issues as per below document which needs other solutions). But the document states below for boot disk issue scenario in a MIG, https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-migs "The boot disk already exists By default, a new boot persistent disk is created when you create an instance. The name of the boot disk matches the name of the VM. If you name a VM my-instance, the disk is also named my-instance. If a persistent disk already exists with that name, the request fails. To resolve this issue, you can optionally take a snapshot, and then delete the existing persistent disk."
upvoted 1 times
...
master9
2 months, 2 weeks ago
Selected Answer: C
Ensure the template is valid. Persistent disk naming: Avoid naming disks the same as instances. Automatic deletion: Set disks.autoDelete to true in the template for automatic disk removal.
upvoted 1 times
...
ccpmad
6 months ago
Is not C "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." https://cloud.google.com/compute/docs/instance-templates#how_to_update_instance_templates
upvoted 2 times
...
bubidubi
9 months, 2 weeks 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
1 year, 1 month ago
Selected Answer: A
All questions are from here.
upvoted 1 times
...
DannSecurity
1 year, 2 months 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
1 year, 2 months 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, 9 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
2 years 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
2 years, 1 month 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
2 years, 2 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
2 years, 2 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
2 years, 3 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
2 years, 4 months ago
Selected Answer: A
Correct answer is A You don't have the option to edit an existing instance.
upvoted 1 times
...
rdumitru
2 years, 4 months ago
Selected Answer: A
Correct answer is A You don't have the option to edit an existing instance.
upvoted 1 times
...
Bumbah
2 years, 4 months ago
Selected Answer: A
You cannot update a template, need to create a new one.
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 ...