Compute Engine Flashcards
What is Compute Engine?
Compute Engine is an IaaS solution offered by Google.
What are Compute Engine spot VMs?
Compute Engine Spot VMs are VMs that can be terminated at any time by Compute Engine. They are significantly less expensive but should only be used for fault-tolerant jobs.
What is an Instance Template?
An instance template is a template for creating VMs. In other words, a template represents the configuration that you would like to use to create new VMs. This allows you to create new VMs with the same configuration in a convenient manner.
What is an Instance Group?
An Instance Group is a feature that allows Compute Engine to automatically scale Compute Engine instances based on specific criteria. Keep in mind, you must provision your own load balancer.
If you don’t want your Compute Engine instance to have any downtime during host maintenance, what can you do?
By default, “Migrate VM instance” is enabled, which will migrate your VM instance to other hardware and avoid downtime.
By default, are Compute Engine instances automatically restarted if they are shutdown for non-user-initiated reasons?
Yes. However, this feature can be turned off.
Is it possible to modify the attached storage to a Compute Engine instance while it is running?
Yes.
What is a Network Interface Card?
A network interface is hardware or software used to connect to a network. In the case of a Compute Engine instance, its network interface is what makes it possible to connect to a subnetwork that belongs to a VPC Network. An instance can have up to 8 network interfaces.
Do MIGs require an Instance Template?
Yes. Without an Instance Template, a Managed Instance Group cannot be created.
Do MIGs support application-based health checks for autohealing?
Yes. You can enable health checks for applications running on MIGs. If an application is not healthy, Compute Engine will recreate the VM instance. Checking that an application is running is more precise than checking if a VM is running.
What is the difference between load balancing health checks and managed instance group health checks?
Load balancing health checks simply direct traffic way from unhealthy instances to healthy instances. Managed instance group health checks delete and recreate instances for non-healthy applications.
A Compute Engine instance Network Tag can be used as …
The target of a fire wall rule.
Is there an additional fee for using MIGs?
No. You simply pay for the resources that you use.
If you need to create a group of heterogenous Compute Engine instances, what can you do?
You can create a user-managed instance group
Is every Compute Engine instance associated with a VPC Network?
Yes. Every single Compute Engine instance is associated with a VPC Network.
Each Compute Engine instance network interface has an internal IP address which is allocated from the subnet. You can also optionally configure an external IP address
Does GCP automatically create an internal DNS name when a Compute Engine instance is created?
Yes. The DNS name becomes the hostname of the Compute Engine instance and can be used for communication between VMs in the same VPC Network instead of using internal IP addresses.
What is the difference between Forwarding Rules and Routes?
Forwarding Rules are associated with ingress (traffic coming into a VM). Routes are associated with egress (traffic going out a VM).
What can firewall rules be used for?
Firewall rules can be used to define who can connect to your VM instances.
If you plan to run containers on a Compute Engine instance, which operating system should you consider using?
You should consider using the “container-optimized OS” that GCP provides. In fact, this is the default OS that is used for GKE nodes. There is no licensing fee.
Can the same service account be attached to multiple VM instances?
Yes. However, a VM instance can only be attached to 1 service account.
Is it possible to create a VM instance that does not have an external IP address?
Yes. While an internal IP address is mandatory, an external IP address is not.
Can Compute Engine instances be created with OpsAgent?
Yes. OpsAgent can be installed on instances upon creation. It can also be installed on existing instances.
Is OpsAgent available to Compute Engine container optimized OS instances?
No