Associate Cloud Engineer Exam QuestionsBrowse all questions from this exam

Associate Cloud Engineer Exam - Question 131


You need to create a copy of a custom Compute Engine virtual machine (VM) to facilitate an expected increase in application traffic due to a business acquisition.

What should you do?

Show Answer
Correct Answer: D

To create an identical copy of a custom Compute Engine virtual machine for expected increased traffic, the best approach is to create a custom Compute Engine image from a snapshot and then use that image to create new instances. This method allows you to ensure consistency and optimal performance by using a custom image specifically designed for your project. Once the image is created, you can easily deploy multiple instances, facilitating scalable and reliable operations.

Discussion

17 comments
Sign in to comment
ESP_SAPOption: D
Aug 22, 2020

Correct Answer is (D): Preparing your instance for an image You can create an image from a disk even while it is attached to a running VM instance. However, your image will be more reliable if you put the instance in a state that is easier for the image to capture. Use one of the following processes to prepare your boot disk for the image: Stop the instance so that it can shut down and stop writing any data to the persistent disk. If you can't stop your instance before you create the image, minimize the amount of writes to the disk and sync your file system. Pause apps or operating system processes that write data to that persistent disk. Run an app flush to disk if necessary. For example, MySQL has a FLUSH statement. Other apps might have similar processes. Stop your apps from writing to your persistent disk. Run sudo sync. After you prepare the instance, create the image. https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#prepare_instance_for_image

pca2bOption: B
Mar 28, 2021

B: we just need to make 'a copy' of the VM, B works well for that. not D: Had the question mentioned more copies, we would need to go the way of images...templates etc. D will work but not needed here.

djgodzilla
Jun 13, 2021

custom images are better a fit if its for a new business workload you just acquired

wolfie09
Jun 10, 2022

What about the answer that says create your instanceS ??

ogerberOption: D
Dec 7, 2023

You cannot directly create Compute Engine instances from a snapshot. Instances are created from images, not snapshots. The snapshot needs to be converted into a custom image first.

sinhOption: D
Jan 11, 2024

イメージからインスタンス

BuenaCloudDE
Jul 21, 2024

Ok bro!

nooneknowsOption: D
Apr 14, 2023

Option A is not recommended because snapshots are not directly usable as images for creating new instances. While snapshots are useful for backup and disaster recovery, they are not optimized for creating new VMs. Option B is also not recommended because snapshots are not directly usable as instances. While it is possible to create new disks from snapshots, additional configuration steps would be required to create a new instance from a disk. Option C is a valid option, but it requires additional steps to create an image from a snapshot before creating new images from that image. Option D is the best option because it involves creating a custom Compute Engine image directly from the snapshot, which can be used to create new instances with minimal additional configuration. This approach is faster and simpler than creating images from images. Therefore, the correct answer is option D: Create a custom Compute Engine image from a snapshot. Create your instances from that image.

CVGCPOption: B
Jun 6, 2023

Option D says, Create a custom Compute Engine image from a snapshot. For this we have to create a Snapshot first, we would not like to use an old snapshot. If we have to create a Snapshot, then we can directly use that Snapshot to create a VM, which is option B.

AhmedYOption: B
Aug 28, 2023

The correct answer is B. D is talking about "creating image from a snapshot" but what snapshot! we don't have one yet. so the B is the only full answer.

gpaisOption: D
Oct 5, 2023

https://cloud.google.com/compute/docs/images/create-custom#create_image:~:text=You%20can%20create%20disk%20images%20from%20the%20following%20sources%3A

rcheekatiOption: D
Apr 21, 2023

https://cloud.google.com/compute/docs/instances/create-start-instance To quickly create more than one VM with the same boot disk, create a custom image, then create VMs from that image instead of using a snapshot. ANS:D

TarkikOption: D
May 1, 2023

use case of snapshot is for DR and backup. Images are more for creating identical VMs. So I would opt for Option D.

NoCrapEvaOption: B
Sep 5, 2023

Correct answer must be B: While Option D: will work, there is NO mention of a pre-created snapshot, you cannot assume you already have a snapshot. For Option D: to work, the answer should read: Create a snapshot, then create a custom image from the snapshot, then create instances from that image....

gpaisOption: D
Oct 18, 2023

https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#prepare_instance_for_image

VijKallOption: B
Oct 31, 2023

B&D are creating instance, so A&C are eliminated. We need snapshot first, so answer is B. D is out as there is no mention of snapshot from where image will be created.

VijKallOption: D
Nov 3, 2023

Choosing D, assuming there is schedule snapshots taken and we are moving forward using those snapshot for creating image and using that image for creating new VM. It is indeed very confusing, as we need to assume few things.

KairOption: D
Dec 19, 2023

You can create custom images from source disks, images, snapshots, or images stored in Cloud Storage and use these images to create virtual machine (VM) instances. Custom images are ideal for situations where you have created and modified a persistent boot disk or specific image to a certain state and need to save that state for creating VMs. You need to create image from the snapshot, so answer is D https://cloud.google.com/compute/docs/images/create-custom#:~:text=You%20can%20create%20custom%20images,virtual%20machine%20(VM)%20instances.

BagiboOption: D
Jan 5, 2024

It is D

ccpmadOption: D
May 25, 2024

Compute Engine snapshot? What is that? There are snapshots of disks, or there are disk image from disk snapshots... but here we need the VM image. Not the disks...