Amazon EC2 — Instances & Purchasing Options
Amazon EC2 gives you virtual servers (instances) that you can buy in several ways, and the exam loves to test which pricing model fits a given workload. On-Demand is flexible but priciest per hour; Reserved Instances and Savings Plans give big discounts for a 1- or 3-year commitment; Spot is up to ~90% off but can be taken back at any time. You also need to know how EC2 differs from Lambda and containers, what an AMI and user data do, and why instance store data disappears while EBS data persists.
Q1 A company runs a steady production database on EC2 that must stay on 24/7 for the next three years, and they want the lowest possible price while keeping the exact same instance type the whole time. Which purchasing option fits best?
- Spot Instances
- Standard Reserved Instances (3-year term)
- On-Demand Instances
- Convertible Reserved Instances (1-year term)
- A — Spot can be reclaimed by AWS at any time, so it is unsuitable for an always-on production database.
- C — On-Demand has no commitment and is the most expensive per hour for a steady, predictable workload.
- D — Convertible RIs allow changing instance family but discount less than Standard, and a 1-year term saves less than 3-year.
Q2 A data-processing job can be paused and restarted at any time and saves its progress frequently to S3. The team wants the cheapest possible compute and can tolerate the servers being shut down by AWS with little notice. Which option is most appropriate?
- Dedicated Hosts
- On-Demand Instances
- Spot Instances
- Standard Reserved Instances
- A — Dedicated Hosts are the most expensive option, used for licensing or compliance needs, not cost savings.
- B — On-Demand works but is far more expensive than Spot for an interruption-tolerant job.
- D — Reserved Instances require a 1- or 3-year commitment, which is overkill for a flexible batch job and not the cheapest here.
Q3 A company wants a discount on compute in exchange for a 1- or 3-year commitment to a steady dollar-per-hour spend, but wants the freedom to move between instance families, sizes, and even between EC2, Fargate, and Lambda over time. Which option best matches?
- Compute Savings Plans
- Standard Reserved Instances
- Spot Instances
- Dedicated Instances
- B — Standard RIs are locked to a specific instance attribute set and cannot apply to Fargate or Lambda.
- C — Spot has no commitment and offers no Fargate/Lambda commitment discount; it can also be interrupted.
- D — Dedicated Instances are about physical isolation of hardware, not a flexible commitment discount.
Q4 A regulated bank must run certain EC2 workloads on physical servers fully dedicated to its account so it can meet a server-bound software license that is priced per physical socket and core. Which option satisfies this requirement?
- Dedicated Instances
- Reserved Instances
- Dedicated Hosts
- Spot Instances
- A — Dedicated Instances run on hardware isolated to your account but do not give you visibility or control of the physical socket/core layout needed for that license model.
- B — Reserved Instances are a billing/pricing commitment, not a hardware-isolation feature.
- D — Spot is shared spare capacity that can be reclaimed — the opposite of dedicated hardware.
Q5 An EC2 instance uses an instance store (ephemeral) volume for temporary scratch data. The application owner is surprised to find the scratch data gone. Which action would cause the instance store data to be permanently lost?
- Rebooting the instance from the console
- Detaching and reattaching an Elastic IP
- Creating an AMI snapshot of the instance
- Stopping and then starting the instance
- A — A reboot does not move the instance to new hardware, so instance store data survives a reboot.
- B — Changing an Elastic IP only affects networking, not the storage on the host.
- C — Creating an AMI is a read operation that captures an image; it does not erase the live instance store.
Q6 A team needs data on their EC2 server to survive even if the instance is stopped, started, or terminated, and they want to be able to take backups of that data. Which storage choice meets this?
- Instance store volumes
- An Amazon EBS volume
- The instance's RAM
- The root device of a Spot Instance only
- A — Instance store is ephemeral and is wiped when the instance stops or terminates.
- C — RAM is volatile memory; everything in it is lost on stop or restart.
- D — The purchasing model (Spot) does not change storage persistence rules; the storage type does.
Q7 A developer wants new EC2 instances to automatically install software and run a setup script the first time they boot, with no manual login. Which EC2 feature provides this?
- User data
- An Elastic IP address
- A security group rule
- An IAM role
- B — An Elastic IP is a static public IP address; it does nothing for software setup.
- C — A security group controls inbound/outbound network traffic, not boot-time configuration.
- D — An IAM role grants the instance AWS permissions but does not run setup scripts.
Q8 A company wants to launch many identical EC2 instances quickly, each with the same operating system, patches, and pre-installed application already baked in. What should they create and reuse?
- A launch into a placement group
- An EBS snapshot schedule
- A CloudFormation drift report
- An Amazon Machine Image (AMI)
- A — A placement group controls how instances are physically placed for networking/performance, not their software contents.
- B — EBS snapshots back up a single volume's data; they are not a full launch template with OS and apps.
- C — A drift report compares deployed infrastructure to a template; it does not create reusable server images.
Q9 An application receives unpredictable traffic and the team wants to automatically add EC2 instances during busy periods and remove them when traffic drops, to control cost. Which service does this?
- Elastic Load Balancing
- Amazon CloudFront
- Amazon EC2 Auto Scaling
- AWS Savings Plans
- A — Elastic Load Balancing spreads incoming traffic across existing instances but does not create or delete instances.
- B — CloudFront is a content delivery network for caching content closer to users, unrelated to scaling instance counts.
- D — Savings Plans is a pricing/billing model, not a scaling mechanism.
Q10 A web tier has several EC2 instances and the team needs incoming user requests spread evenly across the healthy instances so no single server is overwhelmed. Which service handles this?
- EC2 Auto Scaling
- Elastic Load Balancing
- Amazon Route 53 health-check failover only
- AWS Global Accelerator pricing tier
- A — Auto Scaling adjusts how many instances run; it does not distribute requests across them.
- C — Route 53 is DNS-level routing; while it can do failover, ELB is the purpose-built service for spreading traffic across instances in a tier.
- D — Global Accelerator improves global network paths and is not the standard answer for evenly balancing a local web tier.
Q11 A team runs short event-driven functions that respond to file uploads and complete in a few seconds. They want no servers to manage and to pay only for the milliseconds the code runs. Which compute service fits best?
- Amazon EC2 with On-Demand pricing
- Amazon EC2 Spot Instances
- Amazon EC2 Dedicated Hosts
- AWS Lambda
- A — EC2 On-Demand still means you manage servers and pay while instances run, even when idle.
- B — Spot still involves managing EC2 instances and can be interrupted; it is not serverless per-millisecond billing.
- C — Dedicated Hosts are the most server-management-heavy and costly option, the opposite of serverless.
Q12 A company already containerizes its applications with Docker and wants to run those containers on AWS without provisioning or managing any EC2 servers. Which option provides serverless container compute?
- Amazon ECS on EC2 launch type
- AWS Fargate
- Amazon EC2 with user data installing Docker
- Amazon EC2 Auto Scaling group of Docker hosts
- A — The ECS EC2 launch type still requires you to manage the EC2 instances that host the containers.
- C — Installing Docker on EC2 yourself means you fully manage the servers.
- D — An Auto Scaling group of Docker hosts still leaves you managing EC2 instances.
Q13 A small application server is mostly idle but occasionally needs a brief burst of CPU. The team wants a low-cost instance that handles these short spikes using accumulated credits. Which EC2 instance family is designed for this?
- Compute optimized (C-family)
- Memory optimized (R-family)
- Burstable performance (T-family)
- Storage optimized (I-family)
- A — Compute optimized instances are for sustained high-CPU work and cost more than needed for an idle server.
- B — Memory optimized instances target large in-memory datasets, not bursty low CPU.
- D — Storage optimized instances are for high disk throughput/IOPS workloads, unrelated to CPU bursting.
Q14 A finance workload analyzes a very large in-memory dataset and frequently runs out of RAM on general-purpose instances. Which EC2 instance family is the right fit?
- Memory optimized
- Compute optimized
- Burstable performance
- General purpose
- B — Compute optimized favors CPU power, not large memory, so it would still run short on RAM.
- C — Burstable instances are small and aimed at low, occasional CPU use, not big memory needs.
- D — General purpose is balanced and is the family they are already outgrowing.
Q15 When AWS needs to reclaim a Spot Instance because capacity is needed elsewhere or the Spot price changes, what does AWS provide before reclaiming it?
- A guarantee that the instance will never be interrupted
- A full refund of all charges for that hour
- An automatic migration to On-Demand pricing
- A two-minute interruption notice
- A — The whole point of Spot is that interruptions can happen; there is no no-interruption guarantee.
- B — Spot does not refund an hour's charges when reclaiming; you simply pay for what you used.
- C — AWS does not automatically convert a reclaimed Spot Instance to On-Demand pricing.
Q16 A company wants its EC2 instances to run on hardware that is physically isolated from other AWS customers for compliance, but it does not need visibility into sockets/cores or to bring its own per-core license. Which is the simplest fit?
- Dedicated Instances
- Dedicated Hosts
- Reserved Instances
- Spot Instances
- B — Dedicated Hosts also isolate hardware but add host-level visibility and management overhead the scenario doesn't need, at higher cost.
- C — Reserved Instances are a pricing commitment, not a hardware-isolation feature.
- D — Spot uses shared spare capacity and can be reclaimed, providing no isolation.
Q17 A startup is unsure how many EC2 instances it will need over the next few months and is still testing different instance types weekly. It wants no long-term commitment and the freedom to change anything. Which purchasing option fits this exploratory phase?
- 3-year Standard Reserved Instances
- On-Demand Instances
- Compute Savings Plans
- Spot Instances
- A — A 3-year Reserved commitment is the opposite of "no long-term commitment."
- C — Savings Plans still require a 1- or 3-year spend commitment, which the startup isn't ready for.
- D — Spot is cheap but can be interrupted, making it unreliable for steady testing of how the app behaves.
Q18 A team commits to a Compute Savings Plan for a steady $10/hour of compute. During one hour they run instances worth $13 of compute usage. How is the extra $3 of usage billed?
- The extra usage is billed at standard On-Demand rates
- The extra usage is free until the commitment renews
- The entire hour is rebilled at On-Demand rates
- The instances are automatically stopped at the $10 limit
- B — Usage above the commitment is never free; you pay On-Demand for the overage.
- C — The committed portion keeps its discount; AWS does not rebill the whole hour at On-Demand.
- D — Savings Plans are a billing construct and never stop your instances.
Q19 A company runs a predictable, steady fleet but specifically wants a discount that can be sold on the Reserved Instance Marketplace if its plans change. Which option allows reselling on that marketplace?
- Compute Savings Plans
- EC2 Instance Savings Plans
- Standard Reserved Instances
- Convertible Reserved Instances
- A — Savings Plans commitments cannot be sold on the Reserved Instance Marketplace.
- B — EC2 Instance Savings Plans are also Savings Plans and are not resellable on that marketplace.
- D — Convertible RIs offer flexibility to change attributes but cannot be sold on the Reserved Instance Marketplace.
Q20 A general-purpose web application has a balanced need for CPU, memory, and networking and no special requirements. Which EC2 instance family is the most appropriate starting point?
- Storage optimized
- Accelerated computing (GPU)
- General purpose
- Memory optimized
- A — Storage optimized targets heavy disk throughput/IOPS workloads, not balanced web apps.
- B — Accelerated computing uses GPUs for machine learning or graphics, which is overkill and costly here.
- D — Memory optimized is for memory-heavy workloads, more than a balanced web app needs.
Q21 A workload steadily uses the same instance family in one region for 1 year and wants the deepest possible discount, accepting that it will not change instance family. The team prefers a discount that locks to that instance family but still flexes across sizes within it. Which option best fits?
- Compute Savings Plans
- EC2 Instance Savings Plans
- On-Demand Instances
- Spot Instances
- A — Compute Savings Plans are more flexible (any family, Fargate, Lambda) but offer a smaller discount than EC2 Instance Savings Plans.
- C — On-Demand has no commitment and no discount, so it cannot be the deepest-discount choice.
- D — Spot is cheap but interruptible and offers no steady, committed discount for a continuous workload.
Q22 An administrator stops an EBS-backed EC2 instance for the night to save money. Which statement about billing while it is stopped is correct?
- You stop paying for everything, including storage
- You continue paying full On-Demand compute charges
- Stopping is not allowed for EBS-backed instances
- You still pay for the attached EBS volumes, but not for instance compute hours
- A — Storage is not free while stopped; EBS volumes still incur charges.
- B — Stopped instances do not incur compute charges, so you are not paying full On-Demand rates.
- C — EBS-backed instances absolutely can be stopped; that is one of their key advantages.
Q23 A media company needs the absolute cheapest way to run a fleet of stateless web servers behind a load balancer, and the application is built so that losing a few servers at any moment causes no harm. Which approach maximizes savings while staying resilient?
- Run the entire fleet on 3-year Dedicated Hosts
- Run the fleet on On-Demand Instances only
- Run a single large Reserved Instance for the whole fleet
- Run the fleet on Spot Instances within an Auto Scaling setup
- A — Dedicated Hosts are the most expensive option, the opposite of "absolute cheapest."
- B — On-Demand is reliable but far costlier than Spot for an interruption-tolerant fleet.
- C — A single Reserved Instance is one server, not a resilient fleet, and provides no fault tolerance.
Q24 A solutions team is comparing where to run a long-running, always-on backend process that needs full control of the operating system. Why would they choose EC2 over AWS Lambda?
- EC2 gives OS-level control and suits steady long-running processes, while Lambda is for short event-driven tasks
- Lambda is cheaper for any always-on workload
- Lambda functions have no execution time limit
- EC2 cannot run continuous processes, so Lambda is required
- B — For always-on workloads, paying per-millisecond Lambda runs continuously can be more expensive than a steady EC2 instance, and Lambda also doesn't give OS control.
- C — Lambda has a maximum execution duration per invocation, so it does have a time limit.
- D — EC2 is perfectly capable of running continuous processes; that is a core use case.