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?
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?
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.
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
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.
custom images are better a fit if its for a new business workload you just acquired
What about the answer that says create your instanceS ??
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.
イメージからインスタンス
Ok bro!
https://cloud.google.com/compute/docs/images/create-custom#create_image:~:text=You%20can%20create%20disk%20images%20from%20the%20following%20sources%3A
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.
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.
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.
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...
It is D
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.
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.
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.
https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#prepare_instance_for_image
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....
use case of snapshot is for DR and backup. Images are more for creating identical VMs. So I would opt for Option D.
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