This section focuses on AWS services that allow you to:
Compute services let you process data, run applications, and manage workloads in the cloud. AWS offers flexible, scalable, and cost-effective compute solutions.
Amazon EC2 provides virtual servers in the AWS cloud. Instead of buying physical servers, you can rent EC2 instances (servers) on demand.
t2.micro.c5.large.r5.large.i3.large.p4d.| Model | Description | Use Case |
|---|---|---|
| On-Demand | Pay by the hour/second with no upfront cost. | Best for short-term, unpredictable workloads. |
| Reserved Instances | Commit to 1 or 3 years for discounted pricing. | Best for long-term, predictable workloads. |
| Spot Instances | Buy unused capacity at up to 90% discount. | Best for fault-tolerant workloads (e.g., batch jobs). |
| Dedicated Hosts | Physical servers for compliance or licensing requirements. | Best for regulated industries or BYOL (Bring Your Own License). |
Imagine you are running an e-commerce website.
AWS Lambda is a serverless compute service. You upload your code, and AWS runs it only when an event happens.
Let’s say you run a photo-sharing app:
Containers allow you to package your application with all its dependencies (code, libraries, etc.) so it runs consistently anywhere.
Containers are lightweight and fast compared to virtual servers.
A company wants to deploy a microservices-based application:
AWS Elastic Beanstalk is a platform as a service (PaaS) that makes it easy to deploy and scale web applications.
You’re a developer who wants to deploy a Python-based web app:
| Service | Purpose | Use Case |
|---|---|---|
| Amazon EC2 | Virtual servers for running applications. | Host a website, run a database, or process workloads. |
| AWS Lambda | Serverless compute to run code on events. | Resize images, trigger actions on S3 events. |
| Amazon ECS | Managed Docker container orchestration. | Deploy microservices using Docker. |
| Amazon EKS | Managed Kubernetes service. | Run Kubernetes-based applications. |
| AWS Elastic Beanstalk | Platform to deploy web applications easily. | Deploy a Python, Node.js, or Java web app. |
AWS offers scalable, durable, and secure storage services. These services can handle different use cases, such as:
Amazon S3 is scalable object storage. You can store and retrieve any amount of data, such as photos, videos, or log files, securely in the cloud.
| Storage Class | Purpose | Use Case |
|---|---|---|
| S3 Standard | High durability and availability for frequent access. | Hosting files for websites and applications. |
| S3 Infrequent Access | Cheaper storage for less frequently accessed data. | Backup files or disaster recovery. |
| S3 Glacier | Low-cost storage for archiving data. | Long-term storage (e.g., old records). |
Imagine you run a photo-sharing website:
Amazon EBS provides block storage volumes for use with EC2 instances. Think of it as a virtual hard drive that you can attach to your EC2 server.
| EBS Type | Purpose | Use Case |
|---|---|---|
| General Purpose SSD | Balanced price and performance. | Applications, websites, small databases. |
| Provisioned IOPS SSD | High performance, low latency. | Mission-critical databases. |
| Cold HDD | Lowest cost, low performance. | Archiving or big data workloads. |
If you’re running a database server on an EC2 instance:
Amazon Glacier is a low-cost storage service designed for archiving data you rarely access.
Glacier is perfect for:
Let’s say you work for a hospital:
| Service | Type | Purpose | Use Case |
|---|---|---|---|
| Amazon S3 | Object Storage | Store any type of data (photos, logs, etc.). | Host websites, save backups, or files. |
| Amazon EBS | Block Storage | Attach storage volumes to EC2 instances. | Run databases or applications on EC2. |
| Amazon Glacier | Archival Storage | Low-cost storage for long-term data. | Archive old records or backups. |
Databases store and organize your data so you can efficiently retrieve, modify, and manage it. AWS provides managed database services to eliminate the burden of installing, maintaining, and securing databases.
Amazon RDS is a fully managed relational database service. A relational database organizes data into tables (rows and columns) and uses Structured Query Language (SQL) to interact with the data.
Analogy: It’s like keeping a duplicate copy of your database in another city. If the main one goes down, the duplicate takes over.
Imagine you run a travel booking website:
Amazon DynamoDB is a fully managed NoSQL database designed for high-speed performance at scale. Unlike relational databases, NoSQL databases use a flexible structure (key-value pairs or documents) to handle unstructured or semi-structured data.
Example: You don’t need to define a strict schema. You can store different fields for different records.
Imagine you’re building a mobile game:
| Feature | Relational (RDS) | NoSQL (DynamoDB) |
|---|---|---|
| Data Structure | Tables with rows and columns | Flexible (key-value or document). |
| Query Language | SQL (Structured Query Language) | NoSQL (No structured queries). |
| Scaling | Vertical and horizontal scaling | Automatic, serverless scaling. |
| Use Case | Structured data with relationships. | Unstructured or semi-structured data. |
Amazon Redshift is a fully managed data warehouse service. It is designed to analyze large amounts of data (petabytes) quickly and efficiently.
Imagine you work for a retail company:
| Service | Type | Purpose | Use Case |
|---|---|---|---|
| Amazon RDS | Relational | Managed SQL databases with high availability. | Web apps, CRM systems, and transactional data. |
| Amazon DynamoDB | NoSQL | Managed, serverless NoSQL database. | Mobile apps, IoT devices, and gaming. |
| Amazon Redshift | Data Warehouse | Analyze large datasets for insights. | Business intelligence and analytics. |
AWS provides a set of networking services that allow you to:
Amazon VPC lets you create a logically isolated network in the AWS cloud. You have complete control over your network, including IP addressing, routing, and security.
Example: Place your web servers in a public subnet and your databases in a private subnet to protect them from internet access.
Example: You can route traffic from your VPC to the internet through an Internet Gateway.
Analogy: Think of it as the main gate of your private network that connects you to the outside world.
Example: Use a NAT Gateway for a database server to download updates without exposing it to the public.
You’re hosting an e-commerce application:
Amazon CloudFront is a Content Delivery Network (CDN) service that delivers content (like images, videos, and web pages) to users with low latency and high speed.
Imagine you run a video streaming service:
Amazon Route 53 is a scalable Domain Name System (DNS) service that translates domain names (like www.example.com) into IP addresses.
example.com.| Policy | Purpose | Example Use Case |
|---|---|---|
| Simple Routing | Routes traffic to a single endpoint. | Single web server for a website. |
| Weighted Routing | Distributes traffic across multiple endpoints based on weights. | Split traffic 80/20 between two servers. |
| Latency-Based Routing | Routes users to the endpoint with the lowest latency. | Deliver content from the nearest server. |
| Failover Routing | Routes traffic to a backup endpoint if the primary fails. | Backup server for disaster recovery. |
| Geolocation Routing | Routes traffic based on user location. | Deliver region-specific content. |
Imagine you have a global website:
www.example.com.| Service | Purpose | Use Case |
|---|---|---|
| Amazon VPC | Create isolated networks in AWS. | Host web apps securely with public and private subnets. |
| Amazon CloudFront | Deliver content quickly using a CDN. | Stream videos, load websites faster globally. |
| AWS Route 53 | DNS service to route traffic to endpoints. | Manage domain names and direct traffic efficiently. |
These services are essential for managing, monitoring, and optimizing your AWS workloads. The key services include:
Amazon CloudWatch is a monitoring service that provides real-time insights into the performance and health of your AWS resources and applications.
Imagine you run an e-commerce application:
AWS CloudTrail is an auditing service that tracks and records all API activity (who did what) in your AWS account.
Imagine a developer accidentally deletes a database:
AWS Trusted Advisor is a recommendation service that analyzes your AWS environment and suggests improvements for:
You’re managing multiple AWS resources:
AWS Elastic Load Balancing (ELB) automatically distributes incoming traffic across multiple resources, such as EC2 instances, to improve performance and ensure availability.
| Type | Purpose | Use Case |
|---|---|---|
| Application Load Balancer (ALB) | Routes traffic at the application level (HTTP/HTTPS). | Distribute traffic to web servers. |
| Network Load Balancer (NLB) | Routes traffic at the network level (TCP/UDP). | Handle high-performance, low-latency traffic. |
| Classic Load Balancer (CLB) | Basic load balancing for older applications. | Simple, traditional load balancing. |
Imagine you host an online store on multiple EC2 instances:
| Service | Purpose | Use Case |
|---|---|---|
| Amazon CloudWatch | Monitor resources, set alarms, and analyze logs. | Monitor EC2 performance and troubleshoot issues. |
| AWS CloudTrail | Audit API activities and security events. | Track who made changes to your resources. |
| AWS Trusted Advisor | Provide recommendations for optimization. | Optimize costs, improve security, and fix performance issues. |
| AWS Elastic Load Balancing | Distribute traffic across multiple servers. | Ensure high availability for web applications. |
While EC2, Auto Scaling, and Elastic Load Balancing (ELB) have been individually introduced, it’s important to reinforce their combined use as a core AWS elasticity pattern.
EC2: Provides scalable virtual servers.
Auto Scaling: Automatically increases or decreases the number of EC2 instances based on demand.
ELB: Distributes incoming traffic across multiple EC2 instances to ensure high availability and performance.
Imagine running a web application:
When traffic spikes during sales, Auto Scaling adds more EC2 instances.
ELB spreads traffic across all active instances.
When traffic drops, Auto Scaling removes unnecessary instances to save costs.
This combination allows your architecture to be resilient, cost-efficient, and highly available, which is a core design principle in the AWS Well-Architected Framework.
Exam Tip: AWS often tests your understanding of how EC2 + Auto Scaling + ELB work together for scalability and fault tolerance.
While Aurora was mentioned under Amazon RDS, its performance and compatibility benefits are often tested on the exam and should be emphasized.
Fully managed relational database, part of Amazon RDS.
Compatible with MySQL and PostgreSQL, so existing applications can migrate easily.
Performance Boost:
Up to 5x faster than standard MySQL.
Up to 3x faster than standard PostgreSQL.
Built for high availability, with features like:
Replication across multiple Availability Zones.
Automatic failover.
Continuous backups to S3.
Ideal Use Case: When you need the speed and reliability of a commercial-grade database with open-source compatibility.
While Amazon Redshift is AWS's data warehousing solution, you can extend its power using Redshift Spectrum, which allows you to query data stored in S3 directly, without loading it into Redshift first.
A feature of Amazon Redshift.
Allows you to run SQL queries on structured and semi-structured data directly in Amazon S3.
Uses the same BI tools (e.g., QuickSight, Tableau) that connect to Redshift.
Enables data lake architecture: store raw data in S3, query as needed.
Reduces costs by avoiding data duplication.
Supports petabyte-scale analytics without full data import.
Example Use Case: A retailer stores customer logs in S3. Instead of importing logs into Redshift, they use Spectrum to run analytics directly on that data.
While CloudFront was previously discussed for speeding up content delivery via edge locations, it’s equally important to highlight its integration with AWS WAF to enhance application security.
CloudFront caches content at edge locations for low-latency delivery.
AWS WAF (Web Application Firewall) protects web applications from:
SQL injection
Cross-Site Scripting (XSS)
Bot attacks
Layer 7 DDoS attacks
When integrated:
Requests to your application first pass through CloudFront, improving speed.
Then pass through AWS WAF, which applies rules to allow or block malicious traffic.
Example Use Case: A media site uses CloudFront to serve videos globally. To protect login pages and form inputs, WAF rules are applied to block malicious patterns and bots.
Exam Tip: Expect questions that test both performance (CDN benefits) and security (WAF protections) — understanding the integration helps answer those questions effectively.
EC2 + Auto Scaling + ELB is a powerful, elastic architecture pattern that automatically adapts to traffic demands while ensuring high availability.
Amazon Aurora offers MySQL/PostgreSQL compatibility with significant performance improvements, making it ideal for demanding workloads.
Redshift Spectrum allows SQL queries directly on data in S3, enabling efficient, cost-effective analytics without the need to load all data into Redshift.
CloudFront and AWS WAF together deliver global content with low latency and strong protection against web threats like XSS and DDoS.
Which AWS managed database service provides a relational database compatible with engines such as MySQL and PostgreSQL?
Amazon RDS (Relational Database Service).
Amazon RDS is a managed relational database service that simplifies database administration tasks such as provisioning, patching, backups, and scaling. It supports multiple database engines including MySQL, PostgreSQL, MariaDB, Oracle, and Microsoft SQL Server.
Instead of manually installing database software on EC2 instances, administrators can deploy a fully managed database environment using RDS. AWS handles infrastructure management while users focus on database configuration and application integration.
A common misunderstanding is assuming RDS eliminates all database management tasks. While AWS manages infrastructure operations, users remain responsible for database schema design, query optimization, and application integration.
Demand Score: 89
Exam Relevance Score: 94
What component of AWS global infrastructure consists of isolated locations within a region that provide redundancy and fault tolerance?
Availability Zones.
Availability Zones (AZs) are physically separate data centers located within an AWS Region. Each AZ has independent power, networking, and cooling infrastructure. This design allows applications to be deployed across multiple AZs to improve resilience and fault tolerance.
If one Availability Zone experiences an outage, workloads deployed in other AZs can continue operating. AWS encourages designing applications that distribute resources across multiple AZs for high availability.
A frequent misunderstanding is assuming regions and Availability Zones are interchangeable. Regions represent geographic locations such as “US East,” while Availability Zones are isolated facilities inside those regions.
Demand Score: 85
Exam Relevance Score: 91
Which AWS storage service provides block storage volumes designed to be attached to Amazon EC2 instances?
Amazon Elastic Block Store (Amazon EBS).
Amazon EBS provides block-level storage volumes that can be attached to EC2 instances and used as persistent storage for operating systems, applications, or databases. These volumes behave similarly to traditional hard drives and allow applications to read and write data directly.
EBS volumes persist independently of EC2 instance lifecycles and can be backed up using snapshots stored in Amazon S3. This makes EBS suitable for transactional workloads such as databases or enterprise applications that require consistent low-latency storage.
A common confusion occurs between EBS and S3. EBS provides block storage for individual EC2 instances, while S3 provides scalable object storage accessible over the network.
Demand Score: 87
Exam Relevance Score: 92
Which AWS storage service is designed for object storage and commonly used to store large amounts of unstructured data such as images, backups, and logs?
Amazon S3 (Simple Storage Service).
Amazon S3 is an object storage service designed to store and retrieve any amount of data at high durability and availability. It stores data as objects within buckets and provides scalable storage for files such as images, videos, backups, and application logs.
S3 is widely used for data lakes, static website hosting, and backup storage because it provides virtually unlimited capacity and strong durability. AWS automatically replicates data across multiple facilities within an AWS Region.
A frequent misconception is assuming S3 behaves like a traditional file system. Unlike file storage, S3 does not provide hierarchical file directories or block storage semantics.
Demand Score: 88
Exam Relevance Score: 93
Which AWS compute service provides virtual servers that allow full control over the operating system and installed software?
Amazon EC2 (Elastic Compute Cloud).
Amazon EC2 provides virtual machines in the AWS Cloud that allow users to run applications with full control over the operating system environment. Users can choose instance types, configure networking, install software, and manage system updates.
This flexibility makes EC2 suitable for workloads requiring custom configurations or legacy applications that cannot run in serverless environments. EC2 also integrates with services such as Auto Scaling and Elastic Load Balancing to support scalable architectures.
A common mistake is confusing EC2 with managed or serverless services. While EC2 runs in the cloud, customers still manage operating system configuration, patching, and application maintenance.
Demand Score: 90
Exam Relevance Score: 94
Which AWS compute service allows developers to run code without provisioning or managing servers?
AWS Lambda.
AWS Lambda is a serverless compute service that executes code in response to events without requiring users to provision or manage infrastructure. Developers upload functions, define triggers such as HTTP requests or file uploads, and AWS automatically runs the code.
Unlike traditional compute services such as Amazon EC2, Lambda abstracts server management tasks including operating system maintenance, patching, and scaling. AWS automatically scales the function execution based on incoming requests and charges only for the compute time consumed.
A common misunderstanding is assuming Lambda replaces all server-based workloads. Lambda is best suited for event-driven workloads, short-running functions, and microservices architectures rather than long-running applications requiring persistent servers.
Demand Score: 93
Exam Relevance Score: 95