AWS Cloud Foundations - Comprehensive Study Guide

AWS Well-Architected Framework and Trusted Advisor

  • Well-Architected Framework: Provides guidance on building secure, high-performing, resilient, and efficient infrastructure for cloud-based applications.
  • Six Pillars of the Well-Architected Framework:     - Reliability: The ability of a workload to perform its intended function correctly and consistently.     - Operational Excellence: Focuses on running and monitoring systems to deliver business value and continually improving processes. In the cloud, you can define your entire workload (applications/infrastructure) as code and automate execution.     - Security: Focuses on protecting information and systems, including confidentiality and integrity of data, identity management, and establishing controls to detect security events.     - Sustainability: Focuses on environmental impacts and utilizing resources efficiently to reduce the carbon footprint.     - Performance Efficiency: Focuses on using IT and computing resources efficiently, selecting the right resource types and sizes based on workload requirements.     - Cost Optimization: Focuses on avoiding unneeded costs, understanding spend, and scaling to meet business needs without overspending.
  • AWS Trusted Advisor: Inspects your environment against best practices in five categories:     - Fault Tolerance     - Cost Optimization     - Performance     - Security     - Service Limits
  • Disaster Recovery (DR) Strategies (4):     1. Multi-Site Active/Active: Running workloads in two or more regions simultaneously.     2. Warm Standby: Maintaining a scaled-down but fully functional version of your workload in another region to be scaled up as needed.     3. Pilot Light: Data is live and replicated, but resources (like EC2) are persistent and only scaled when needed.     4. Backup & Restore: The least expensive and slowest strategy; data is backed up and must be manually restored during a failover.

Cloud Adoption Framework (CAF)

  • Six Foundational Capabilities (Perspectives):     - Business Perspective: Ensures cloud investments align with business goals, accelerating digital transformation and financial results.     - People Perspective: Focuses on evolving organizational culture, training staff, and managing the transition from on-premises to cloud-centric roles.     - Governance Perspective: Manages and mitigates risks, ensuring cloud initiatives comply with policies and budgets to maximize business value.     - Platform Perspective: Covers technical aspects, building secure, scalable, and hybrid cloud infrastructure and modernizing workloads.     - Security Perspective: Ensures confidentiality, integrity, and availability of data and cloud workloads, covering compliance and risk management.     - Operations Perspective: Focuses on running, operating, and recovering IT workloads to meet Service Level Agreements (SLAs).
  • Four Domains: Technology, Organization, Process, and Product.
  • Four Phases: Envision, Align, Launch, and Scale.

Networking and Content Delivery

  • VPC (Virtual Private Cloud): Core components include:     - Subnet: A range of IP addresses in your VPC. A VPC spans all Availability Zones in a region, but a subnet spans only one AZ.     - NAT Gateway: Network Address Translation; enables outbound-only connection to the internet for private subnets. This is a paid service.     - Internet Gateway (IGW): Allows your VPC to communicate with the internet. It is free to use but requires a route in the Route Table.     - NACL (Network Access Control List): Applied at the Subnet Level. Acts as a firewall for controlling traffic in and out of a subnet; supports both ALLOW and DENY rules. It is stateless.     - Security Group: Applied at the Instance Level. Acts as a virtual firewall for your instance; supports only ALLOW rules. It is stateful. Maximum groups per instance is 55.     - Route Tables: Managed by routers in AWS; controls where traffic is directed within a VPC. Every subnet must be associated with a Route Table.
  • VPC Endpoints: Allows connecting a VPC to AWS services or other supported services over the AWS Private Network, avoiding the public internet.     - Three types: VPC Endpoint Gateway (for S3 and DynamoDB), VPC Endpoint Interface (for other services), and Gateway Load Balancer Endpoint.
  • AWS VPN: Secure/Private connection from your location to AWS. Types include Site-to-Site (connects networks) and Client VPN (connects remote users).
  • Transit Gateway: A hub-and-spoke design to connect thousands of VPCs and on-premises networks through a central hub. Simplifies complex peering relationships and supports IPv6.
  • Route 53: A DNS web service supporting domain registration, health checks, and hybrid connectivity.
  • Routing Policies (7):     1. Simple: Directs traffic to a single resource.     2. Failover: Redirects to a backup resource if the primary is unavailable.     3. Geolocation: Routes based on User Location.     4. Geoproximity: Routes based on location/proximity to resources.     5. Latency-Based: Routes to the AWS region with the lowest latency.     6. Multi-Value Answer: Returns up to 88 healthy, randomly selected IP addresses for a single domain name.     7. Weighted: Distributes traffic based on specific weights (useful for A/B testing).
  • CloudFront: A Content Delivery Network (CDN) that deliver both cacheable and dynamic content using Edge Locations. Uses an "Origin" (S3, HTTP Server, ELB) to retrieve content.
  • Global Accelerator: Improves global application performance by up to 60%60\% by routing traffic over the AWS global network. Provides static, anycast IP addresses for predictable entry points. Ideal for Gaming, IoT, and VOIP. It uses the same Edge Locations as CloudFront.

Databases and Caching

  • Amazon RDS (Relational Database Service): Fully managed SQL service. Automates provisioning, patching, and backups. Supported Engines (7): SQL Server, MySQL, PostgreSQL, Oracle, Aurora, MariaDB, and DB2 (IBM).     - Read Replica: Allows elastic scaling by creating read-only clones for read-heavy loads. Can be used for cross-region disaster recovery.     - Multi-AZ: Maintains a synchronous standby replica in a different AZ for high availability and failover. The standby cannot serve real traffic until promoted.
  • Amazon Aurora: Fully managed MySQL and PostgreSQL compatible database. Replication occurs across 33 Availability Zones with self-healing storage.
  • DynamoDB: Fast, serverless NoSQL database. Use cases include User Events and Click Streams.
  • Timestream: Serverless time-series database to track event changes over time.
  • Keyspaces: Managed Apache Cassandra-compatible database with 99.99%99.99\% or 99.999%99.999\% SLA.
  • DocumentDB: Supports MongoDB workloads for storing user profiles.
  • QLDB (Quantum Ledger Database): Maintain cryptographically verifiable history of modifications. Use cases: financial transactions, retail supply chain.
  • Neptune: Graph database for highly connected datasets.
  • ElastiCache: In-memory data store supporting Valkey, Redis OSS, and Memcached. Provides microsecond-latency and improves performance up to 80×80\times.
  • MemoryDB for Redis: High-performance primary database for microservices; stores all data in memory with multi-AZ durability.

Security, Identity, and Compliance

  • Detection and Monitoring:     - GuardDuty: Threat Detection Service monitoring for malicious behavior.     - Amazon Detective: Investigation tool to find the root cause of security vulnerabilities using machine learning and graph theory.     - Amazon Inspector: Automated security assessment service for EC2 instances and applications.     - AWS Security Hub: A central hub to view security posture and compliance. Integrates with GuardDuty, Detective, Macie, etc.
  • Protection and Management:     - AWS Shield: Protects against DDoS attacks (Standard is free; Advanced is paid).     - AWS WAF: Web Application Firewall to protect against web attacks and bots; can block traffic from specific geographies.     - AWS Firewall Manager: Centrally manage firewall rules across an organization.     - AWS Secrets Manager: Rotate, manage, and retrieve credentials, eliminating hard-coded secrets.     - AWS KMS (Key Management Service): Manage cryptographic keys. Uses hardware security modules validated under FIPS 140−2140-2.     - AWS CloudHSM: Dedicated Hardware Security Module instances (FIPS 140−2140-2 Level 33).     - Amazon Macie: Uses machine learning to discover and protect sensitive data in S3.
  • Identity:     - IAM (Identity and Access Management): Manage access through Users, Groups, and Roles. Follow the "Principle of Least Privilege."     - IAM Policy: JSON document defining permissions. Elements include Version, Statement, Sid, Effect (Allow/Deny), Principal, Action, Resource, and Condition.     - Amazon Cognito: User identity management for web/mobile apps (sign-up/sign-in).

Management, Governance, and Deployment

  • AWS Organizations: Centrally manage multiple AWS accounts. Features include Consolidated Billing (volume pricing discounts) and Service Control Policies (SCPs).
  • Monitoring and Logging:     - CloudWatch: Monitor metrics, logs, and set alarms. Stores metric data for up to 1515 months.     - CloudTrail: Logs API calls and account activity. Encrypted by default with SSE-S3. Includes Management events (default), Data events, and Insight events.
  • Automation:     - CloudFormation: Infrastructure as Code (IaC) using JSON/YAML templates.     - AWS Systems Manager: Centralized operational data view and task automation (patching, software inventory). Includes Session Manager for secure shell access without bastion hosts.     - AWS Config: Monitors and records resource configurations in real-time for compliance auditing.
  • Migration and Backup:     - AWS Snow Family: Physical devices for offline data transfer. Includes Snowcone (8 TB8\,TB storage), Snowball Edge (Storage Optimized up to 210 TB210\,TB or Compute Optimized), and Snowmobile (Discontinued).     - Database Migration Service (DMS): Secure migration with no downtime.     - Schema Conversion Tool (SCT): Converts database schemas between different engines.     - Application Migration Service (MGN): Lift-and-shift migration for servers.     - AWS DataSync: Automates/accelerates online data transfer between on-premises and AWS storage.

Compute and Containers

  • EC2 (Elastic Compute Cloud): Virtual machines in the cloud.     - EC2 Instance Store: Temporary ephemeral storage physically attached to the host computer.     - AMI (Amazon Machine Image): Software bundle used to launch an EC2 instance.     - Pricing Models:         - On-Demand: Paid by the second; no long-term commitment.         - Capacity Reservations: Reserve capacity in a specific AZ for any duration.         - Spot Instances: Spare capacity at up to 90%90\% discount. Subject to termination with 22 minutes notice.         - Reserved Instances (RI): 11 or 33-year commitment. Types: Standard (high discount, can be sold in marketplace) and Convertible (more flexible, cannot be sold).     - Tenancy: Shared, Dedicated (single customer hardware), and Dedicated Host (per-host billing).
  • Serverless and Ease of Use:     - AWS Lambda: Run code as functions without managing servers. Charged by number of requests and duration (rounded up to nearest 100 ms100\,ms). Maximum execution time is 15 minutes15\,minutes.     - Elastic Beanstalk: Platform as a Service (PaaS) to deploy applications without managing infrastructure.     - Amazon Lightsail: Easy-to-use virtual private server (VPS) for small projects.
  • Containers:     - ECS (Elastic Container Service): Managed Docker container orchestration.     - EKS (Elastic Kubernetes Service): Managed Kubernetes service.     - AWS Fargate: Serverless compute engine for containers (no server management).     - ECR (Elastic Container Registry): Store and manage Docker images.

Storage

  • Amazon S3 (Simple Storage Service): Serverless object storage.     - Storage Classes: Standard, Standard-IA, Intelligent-Tiering (moves data between tiers after 3030 and 9090 days), One Zone-IA (20%20\% less cost), Glacier (Instant, Flexible, Deep Archive), Express One Zone.     - Lifecycle Configurations: Automate data retention and class transitions.
  • EBS (Elastic Block Store): Block storage for EC2. Volumes must be in the same AZ as the instance. Types: SSD (General Purpose, Provisioned IOPS) and HDD (Throughput Optimized, Cold).     - Snapshots: Incremental point-in-time backups stored in S3.
  • EFS (Elastic File System): Managed file system for Linux, can be shared by thousands of instances concurrently.
  • AWS Storage Gateway: Hybrid storage service (File, Volume, and Tape Gateways).

Cloud Economics and Support

  • Cloud Advantage (6): Trade CapEx for variable expense, stop guessing capacity, gain economies of scale, increase speed/agility, stop spending on data centers, go global in minutes.
  • Cost Tools:     - AWS Pricing Calculator: Estimate costs before building.     - AWS Budgets: Set custom spend and usage budgets; updated 3×3\times daily.     - Cost Explorer: Visualize historical spend and forecast for the next 1212 months.     - Cost and Usage Report (CUR): Most detailed set of billing data available.
  • Support Plans:     - Basic: Free; 24/724/7 customer service.     - Developer: Recommended for non-production; Email access within 1212 to 2424 hours.     - Business: 24/724/7 phone/email/chat; 11-hour response for production system down.     - Enterprise On-Ramp: 3030-minute response for business-critical system down.     - Enterprise: 1515-minute response for business-critical system down; Includes Technical Account Manager (TAM) and Concierge Support.

Machine Learning

  • Amazon SageMaker: Build, train, and deploy ML models.
  • Amazon Textract: Extract text and handwriting from scanned documents.
  • Amazon Rekognition: Image and video analysis.
  • Amazon Polly: Text-to-speech (TTS).
  • Amazon Kendra: Intelligent search service for business data.
  • Amazon Bedrock: API for foundational models from top AI companies.
  • Amazon Q: Generative AI-powered assistant for Business and AWS Builders.

Questions & Discussion

  • What is the difference between S3 and EBS regarding sharing?: EBS volume is attached to a single instance (unless using Multi-Attach on Provisioned IOPS SSD), whereas S3 is object storage accessible via the internet and can be shared globally.
  • Can you separate invoices based on tags?: No, you cannot separate invoices based on Tags. Separate AWS accounts must be created for different billing entities.
  • Does VPC Peering allow transitive connections?: No, a separate peering connection is required between every two VPCs that need to communicate.
  • How are Lambda functions charged?: Based on the number of requests and the duration of execution in increments of 100 ms100\,ms.
  • What services are global in scope?: IAM, CloudFront, Route 53, and WAF are examples of global services.
  • What is the maximum response time for an Enterprise support plan critical issue?: 15 minutes15\,minutes.
  • Which database supports VPC Gateway Endpoints?: Only S3 and DynamoDB support VPC Gateway Endpoints; other services use Interface Endpoints.