Objective. Students will launch, connect to, stop, resize, and terminate a cloud virtual machine instance, and explain how instance types, AMIs (or equivalent images), and key pairs function.
This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
A cloud virtual machine (VM) is a software-defined computer that runs on physical hardware managed by a cloud provider. Instead of buying and racking a server, you request one through a web console or API, and the provider allocates CPU, memory, and storage from its data center to your instance within minutes. The three largest providers—Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP)—all offer this service under different names (EC2 instances, Virtual Machines, and Compute Engine instances, respectively). This lesson uses AWS terminology because it is the most widely referenced in CompTIA and Cisco study materials, but the concepts transfer directly.
An instance type defines the hardware profile of your VM: how many virtual CPUs (vCPUs) it gets, how much RAM, and what network performance to expect. AWS organizes instance types into families by workload. The t family (for example, t2.micro, t3.micro) is designed for general-purpose, burstable workloads and is the most common choice for labs and low-traffic applications. The m family targets balanced compute and memory. The c family is compute-optimized for CPU-heavy tasks, and the r family is memory-optimized for databases and in-memory caching.
For certification labs and small deployments, the t2.micro or t3.micro is the standard free-tier option. Free-tier eligibility is important in a training environment because it avoids unexpected charges. Always confirm which instance type qualifies under the current AWS Free Tier offer before launching.
An AMI is a template that contains the operating system, initial software configuration, and sometimes pre-installed applications for a new instance. Think of an AMI the way you think of a hard-drive image used to deploy workstations on a corporate network. When you launch an instance, you select an AMI first, and the provider copies that image to your new virtual disk.
AMIs are classified by source:
For this lab you will choose a Quick Start AMI running Amazon Linux 2 or Ubuntu LTS because both are free-tier eligible and well-documented.
Before an SSH-based Linux instance is reachable, you must associate a key pair with it. A key pair consists of a public key (stored by AWS on your instance) and a private key (downloaded to your machine as a .pem file on macOS/Linux or converted to .ppk for PuTTY on Windows). The private key proves your identity without sending a password over the network.
Handle your private key carefully. If it is lost, you cannot recover it from AWS; you would need to create a new key pair. If it is exposed, anyone who has it can connect to your instance. Store the .pem file in a directory with restricted permissions (`chmod 400 keyname.pem` on Linux/macOS).
A security group is a virtual firewall attached to an instance. It contains inbound and outbound rules specifying which protocols, ports, and source IP ranges are allowed. To connect to a Linux instance via SSH, you need an inbound rule permitting TCP port 22. Best practice is to restrict the source to your own public IP address rather than allowing all IP addresses (0.0.0.0/0), which exposes the instance to the entire internet.
Resizing is a key advantage of cloud compute over physical hardware—what would require a technician to open a server and swap RAM chips takes a few clicks in the console.
Cloud labs do not involve electrical hazards the way physical hardware does, but there are real risks:
On macOS or Linux, open Terminal and run:
```
ssh -i /path/to/keyname.pem ec2-user@<Public-IP-Address>
```
On Windows, use PuTTY with the .ppk version of your key (converted using PuTTYgen). The default username depends on the AMI: `ec2-user` for Amazon Linux, `ubuntu` for Ubuntu, and `Administrator` for Windows (accessed via RDP, not SSH).
Once connected, you have a command prompt on a remote Linux server running in a data center—this is the foundation of cloud administration.
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.