↑ ↓ to move, Enter to open, Esc to close

    awsCLF-C02Cloud Practitioner

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search
    Free exam

    Exams / CLF-C02 / D1 Cloud Technology and Services

    D1.6

    Cloud Technology and Services #6: VPC networking, Compute duration and starting points

    • 9 min read
    • 7 sections
    • 34 questions
    • Exam domain: Content Domain 3: Cloud Technology and Services

    This pass is dominated by "name the one right service" questions spread across networking, storage, databases, migration, and account-level tooling. The exam rarely asks for mechanics here — it asks you to recognize the single AWS service that owns a given job, among three plausible-sounding neighbours.

    VPC networking: who lets traffic in, and who firewalls it

    Three different VPC components get mixed up constantly: the thing that lets the internet reach a VPC at all, the thing that lets a private instance reach out without being reachable, and the thing that firewalls one instance's traffic.

    An internet gateway gives a public EC2 instance two-way internet access behind a security group; a NAT gateway only lets a private instance reach the internet, never the reverse

    • Internet gateway — attaches to the VPC and "allows communication between your VPC and the internet." It is the only component on this list where "resources on the internet can initiate a connection to resources in your subnet" — the signal phrase is inbound internet access.
    • NAT gateway — lives in a public subnet so that instances in a private subnet can reach the internet (updates, package downloads) without ever being reachable from it. If a question says outbound only, no unsolicited inbound, it wants a NAT gateway.
    • Security group — attaches to an EC2 instance's network interface and "acts as a virtual firewall" at the instance level: "the only traffic that reaches the instance is the traffic allowed by the security group rules." This is the exam's standard answer for "firewall at the instance level" — a network ACL does the equivalent job one layer up, at the subnet level.
    Component Level Job
    Internet gateway VPC Two-way internet access, the route-table target for 0.0.0.0/0
    NAT gateway Subnet (via route table) Outbound-only internet access for private-subnet instances
    Security group EC2 instance / ENI Stateful allow-list firewall for that instance's traffic
    Network ACL Subnet Stateless allow/deny rules for the whole subnet

    Compute duration and starting points

    • AWS Lambda has a hard ceiling of 15 minutes per invocation ("Code can run for up to 15 minutes in a single invocation"). Any workload described in hours — a weekly data-processing job that "usually takes approximately 5 hours" — rules Lambda out immediately; Amazon EC2 is the answer whenever duration alone disqualifies Lambda.
    • Amazon Lightsail is AWS's deliberately simplified entry point: "the easiest way to get started with Amazon Web Services (AWS) for anyone" with little or no cloud background, bundling compute/storage/networking into one VPS product. A developer with zero AWS experience who "wants to build a web application" is the canonical Lightsail scenario — Lambda and ECS both assume prior cloud/container knowledge, and SageMaker is for ML, not general web apps.
    • AWS CloudShell is the pre-authenticated, in-console shell: "a browser-based, pre-authenticated shell that you can launch directly from the AWS Management Console," with no separate CLI credential setup needed.

    Storage classes and archival retrieval times

    S3 Standard, Standard-IA, and S3 Glacier Flexible Retrieval form a ladder of decreasing storage cost and increasing retrieval time

    Infrequent-access questions are really asking "how fast do you need the data back, and how much are you willing to pay per GB to store it until then?"

    Storage class Access Typical retrieval time Note
    S3 Standard Frequent Milliseconds Highest per-GB cost of the group
    S3 Standard-IA Infrequent Milliseconds Lower storage cost, per-GB retrieval fee
    S3 One Zone-IA Infrequent Milliseconds Same speed as Standard-IA, data in a single AZ only
    S3 Glacier Flexible Retrieval Archive Minutes (Expedited) to 5–12 hours (Bulk, free) Lowest per-GB storage cost of the group

    A requirement of "retrieval within 12 hours" plus "cost-effective per-gigabyte storage" is the exact description of S3 Glacier Flexible Retrieval's Bulk retrieval option: "Bulk retrievals typically finish within 5–12 hours" and are free, while the class itself is priced for "low-cost, long-term data storage and data archiving." S3 Standard-IA and One Zone-IA both answer almost instantly, so they overshoot the requirement at a higher storage cost — they are the wrong trade for an archive scenario.

    Databases: match the data shape, not just "relational vs. not"

    Need Service Why not the others
    Managed relational engine for OLTP (e.g., PostgreSQL) Amazon RDS Athena only queries S3 data; EMR runs big-data frameworks, not a transactional engine
    Graph queries over highly connected data (fraud detection, relationships) Amazon Neptune DocumentDB stores documents; Timestream is time-series; DynamoDB has no native graph traversal
    Data warehouse for large-scale analytics (OLAP) Amazon Redshift RDS/Aurora are OLTP engines; DynamoDB is NoSQL key-value, not warehouse-scale analytics
    Millions of queries per second, key-value/document, must auto-scale Amazon DynamoDB ElastiCache is a cache, not a durable primary store; Neptune is graph-specific

    Neptune's own marketing is explicit about the fraud use case: "Build graph queries for near real-time fraud pattern detection by modeling relationships between people, places, and transactions." DynamoDB is positioned the same way for extreme request volume: it can "serve tens of millions of concurrent users and hundreds of millions of requests per second with single-digit millisecond performance." When a question names the relationship between entities as the thing being analyzed, think Neptune; when it names sheer request volume with simple key-based lookups, think DynamoDB.

    Multi-Region/Multi-AZ resilience and traffic distribution

    AWS Global Accelerator sends client traffic to the healthy Region A endpoint and stops routing new connections to the unhealthy Region B endpoint

    • AWS Regions are the fault-isolation boundary for a geographic disaster: "AWS Region physical infrastructure and software services are isolated and independent" from other Regions, so "Regions limits service failures, when they occur, to a single Region." Surviving a disaster that affects a whole geographic area means running in multiple Regions, not multiple edge locations, CloudFront locations, or Local Zones (all of which still depend on a parent Region).
    • AWS Global Accelerator adds fast, health-based failover on top of that multi-Region footprint: it "continuously monitors the health of all endpoints, and instantly begins directing traffic for all new connections to another available endpoint when it determines that an active endpoint is unhealthy."
    • Application Load Balancer solves a narrower, single-tier problem — spreading traffic across EC2 targets within a Region: "Elastic Load Balancing automatically distributes your incoming traffic across multiple targets, such as EC2" instances, routing only to healthy ones.
    • Amazon CloudFront is unrelated to either of these — it is a CDN for low-latency content delivery, not a failover or load-balancing mechanism.

    Migration: discovery, strategy, and the move itself

    • AWS Application Discovery Service is the assessment step: its Discovery Agent "collects system configuration, times series utilization or performance data," including hostname, IP address, and MAC address for every on-premises server, to size and plan a migration — it never moves any data itself.
    • Rehost ("lift-and-shift") moves a workload to AWS "without worrying about compatibility, performance disruption, long cutover windows" and with no application changes — the answer whenever a scenario insists the workload must stay exactly as it is.
    • AWS Database Migration Service (DMS) migrates the databases themselves — "relational databases, data warehouses, NoSQL databases, and other types of data stores" — supporting both same-engine and heterogeneous (different-engine) migrations.
    • AWS Snowball Edge is the offline option: a physical device with its own compute and storage that can "process data locally, run edge-computing" workloads and "accelerate application performance in disconnected... environments... with little or no connectivity," then ships the device back to AWS to load the data — the answer whenever connectivity is intermittent or unavailable, even for tens of terabytes.

    Account-wide tools and the shared responsibility model

    • Amazon CloudWatch is AWS's real-time monitoring service for resources and applications (metrics, alarms, dashboards) and is also what triggers an EC2 Auto Scaling action: a CloudWatch alarm watching CPU utilization invokes the Auto Scaling group's scaling policy when the threshold is breached. VPC Flow Logs is the separate, specific feature that captures IP traffic to and from network interfaces in a VPC — it can deliver those records to CloudWatch Logs, but the capture itself is Flow Logs, not CloudWatch.
    • AWS Secrets Manager stores and encrypts secrets such as database credentials, using envelope encryption with AWS KMS, and can rotate them automatically.
    • Shared Responsibility Model: AWS owns "protecting the infrastructure that runs all of the services offered in the AWS Cloud" ("security of the cloud"); configuring S3 Lifecycle rules, enabling Versioning, and writing bucket policies are all customer tasks ("security in the cloud").
    • AWS Compute Optimizer turns EC2 utilization data into concrete rightsizing recommendations for over- or under-provisioned instances — AWS Config only tracks configuration changes, and neither Cost Anomaly Detection nor Budgets analyzes utilization.
    • EC2 Image Builder is the fully managed pipeline that automates creating, testing, and distributing custom AMIs; the AMI itself is just the output artifact, not a service.

    Exam traps

    • Internet gateway (two-way) vs. NAT gateway (outbound only) — "internet hosts can initiate a connection" is always an internet gateway; "private instance needs outbound internet, no inbound" is always a NAT gateway.
    • Security group (instance-level firewall) vs. network ACL (subnet-level filter) — "virtual firewall at the EC2 instance level" is always a security group.
    • Lambda's 15-minute cap disqualifies it for anything described in hours — reach for EC2 instead.
    • S3 Glacier Flexible Retrieval's Bulk tier (5–12h, free) is the answer whenever a question pairs "infrequent access" with "retrieval within 12 hours" and "lowest per-GB storage cost" — Standard-IA/One Zone-IA retrieve almost instantly but cost more per GB.
    • Neptune (graph/relationships) vs. DynamoDB (extreme-scale key-value) — a fraud-detection "relationships between people, addresses, transactions" question is Neptune; a "millions of requests per second" scaling question is DynamoDB.
    • Multi-Region survives a geographic disaster; Global Accelerator adds fast health-based failover on top; an ALB only balances within a Region — don't substitute one for another.
    • Application Discovery Service only assesses (including hostname/IP/MAC inventory) — it never migrates data; that is DMS (databases) or Snowball Edge (offline bulk/local processing).
    • Rehost = zero changes. If a question explicitly rules out application changes, it wants rehost, not replatform or refactor.
    • AWS Infrastructure Event Management (IEM) was the planned-event, scaling-readiness engagement for Enterprise/Business Support customers; AWS has since folded this into AWS Countdown — expect either name.
    • Amazon Connect is the cloud contact center with built-in AI (speech/sentiment analysis); current AWS docs now call the product Amazon Connect Customer, so don't be thrown by the renamed service in newer material.
    • Security of the cloud (AWS) vs. security in the cloud (customer) — infrastructure protection is AWS's job; Lifecycle policies, Versioning, and bucket policies are the customer's.

    Docs

    The rest of this chapter is part of the CLF-C02 premium course

    Unlock every chapter, all 712 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters