Python On-Demand Training Programs
Learning Objectives:
- Have information on the available CPU and memory options for virtual machines.
- Learn about various disk types for virtual machines.
Understand pricing models and discounts available for VMs. - Use Compute Engine for provision and configuring virtual machine instances.
QUIZ: VIRTUAL MACHINES
1. Which statement is true of Virtual Machine Instances in Compute Engine?
- All Compute Engine VMs are single tenancy and do not share CPU hardware.
- Compute Engine uses VMware to create Virtual Machine Instances.
- In Compute Engine, a VM is a networked service that simulates the features of a computer. (Correct)
- A VM in Compute Engine always maps to a single hardware computer in a rack.
Correct: The virtual machines on Compute Engine are nothing but a network of persistent disks as a service. Unlike a traditional hardware or a different virtual machine, Google Cloud VMs have specific behavior regarding their functions. When an instance multi-tenant uses a burst virtual CPU, such excess capacity is defined beyond the VM’s specified resources. This way, the VMs can take higher workloads temporarily, using the additional compute resources of the entire system.
2. What are sustained use discounts?
- Per-second billing that starts after a 1 minute minimum
- Purchase commitments for specific resources you know you will use
- Automatic discounts that you get for running specific Compute Engine resources for a significant portion of the billing month. (Correct)
- Discounts you receive by using preemptible VM instances
Correct: Fittingly, sustained usage discounts are self-applied reductions from Google Cloud for using certain Compute Engine resources such as vCPUs, memory, and GPU devices for most of a given billing month. To enjoy the whole 30% reductions, one is recommended to create VM instances on the first day of the month, since discounts reset at the beginning of each billing cycle. This way, he/she receives the greatest possible discount for the entire month.
3. Which statement is true of persistent disks?
- Once created, a persistent disk cannot be resized.
- Persistent disks are always HDDs (magnetic spinning disks).
- Persistent disks are encrypted by default. (Correct)
- Persistent disks are physical hardware devices connected directly to VMs.
Correct: True! The persistent disks within Google’s cloud service are not real physical disks; they comprise virtual, networked services which deliver permanent, high-performance storage for attachment to virtual machines. Each persistent disk is encrypted by default with either system-generated keys or keys provided by the customer. That way, all your data is securely stored, available for management under your organization’s security policies.