Cloud Fundamentals Quiz
Cloud Fundamentals Quiz — Study Guide
Cloud Fundamentals: Networking, Compute, Security & More
Cloud computing powers nearly every modern application — from streaming services to banking apps. Understanding how cloud infrastructure works isn't just for DevOps engineers; it's essential knowledge for any developer who wants to build reliable, scalable, and secure systems. This guide covers the core concepts you'll need to ace the Cloud Fundamentals Quiz.
Networking in the Cloud
VPC (Virtual Private Cloud)
A VPC is your own isolated network within a cloud provider. Think of it like renting a private floor in a massive office building — you share the building (the cloud), but your floor is completely yours to configure.Analogy: A NAT Gateway is like a receptionist — internal employees can call out, but outside callers can't reach internal staff directly.
OSI Layers & Load Balancing
The OSI model describes how network communication is layered. For cloud quizzes, focus on:| OSI Layer | Name | Example |
|---|---|---|
| Layer 4 | Transport | TCP/UDP traffic (NLB) |
| Layer 7 | Application | HTTP/HTTPS traffic (ALB) |
/api goes to one service, /images goes to another).A Network Load Balancer (NLB) operates at Layer 4 — faster, but less routing intelligence.
Compute: From Servers to Serverless
Traditional Compute
Cloud compute starts with virtual machines (VMs). On AWS these are EC2 instances; on GCP they're Compute Engine instances. You choose CPU, RAM, and storage, and you're responsible for the OS and runtime.Serverless Compute
Serverless means you write code and let the cloud handle the infrastructure entirely. You don't manage servers, scaling, or patching.# Example AWS Lambda function handler
def lambda_handler(event, context):
name = event.get("name", "World")
return {
"statusCode": 200,
"body": f"Hello, {name}!"
}Serverless is ideal for event-driven workloads, but has cold start latency and execution time limits.
Storage: S3, EBS, and Beyond
| Storage Type | Service | Use Case |
|---|---|---|
| Object Storage | AWS S3 | Files, images, backups, static sites |
| Block Storage | AWS EBS | OS disks, databases attached to EC2 |
| File Storage | AWS EFS / GCP Filestore | Shared file systems |
Scaling & Availability
Scaling Strategies
Auto Scaling Groups on AWS automatically add or remove EC2 instances based on demand (CPU usage, request count, etc.).
Availability Zones & Regions
us-east-1)High availability means designing your system so that one component failing doesn't take down the whole application.
Security & IAM
Principle of Least Privilege
The principle of least privilege means every user, service, or system should have *only* the permissions it needs — nothing more. If a Lambda function only reads from S3, it should not have write or delete permissions.IAM (Identity and Access Management)
IAM controls *who* can do *what* on your cloud resources.{
"Effect": "Allow",
"Action": ["s3:GetObject"],
"Resource": "arn:aws:s3:::my-bucket/*"
}GCP Service Accounts
In GCP, a service account is a special identity used by applications and VMs — not humans. It allows a GCP resource (like a Cloud Function) to authenticate and interact with other GCP services securely, following least privilege principles.CDN (Content Delivery Network)
A CDN caches content at edge locations around the world, serving users from the nearest location instead of a distant origin server.
Analogy: Instead of everyone in Tokyo downloading a file from a server in Virginia, a CDN stores a copy in a Tokyo edge location.
Infrastructure as Code (IaC)
IaC means defining your cloud infrastructure in code files instead of clicking through a console. This makes infrastructure repeatable, version-controlled, and reviewable.
Popular tools:
# Terraform example: create an S3 bucket
resource "aws_s3_bucket" "my_bucket" {
bucket = "my-unique-bucket-name"
}IaC is a cornerstone of modern cloud architecture and DevOps practices.
Architecture Patterns
Good cloud architecture balances cost, performance, reliability, and security. Key patterns include: