Easy ReviewAIF-C01
Security, Compliance, and Governance for AI Solutions6

VPC

Route private network traffic, control access, and investigate connections with VPC Flow Logs.

VPC networking combines routes that select paths, security groups and ACLs that control traffic, and endpoints that reach supported services privately. Flow Logs supply connection records for diagnosis and auditing.

VPC security basics

A VPC has two built-in network filters: security groups around instances and network ACLsA numbered set of allow and deny rules for traffic entering or leaving a subnet. around subnetsAn address range within a VPC whose traffic follows an associated route table..

How it works

  1. Traffic entering a subnet passes its network ACL.
  2. Traffic reaching an instance passes its security group.
  3. Security groups let responses back automatically; network ACLs need rules both ways.

Exam cues

  • If the question says instance-level firewall, think security group.
  • If the question says subnet-level allow and deny rules, think network ACL.

Remember

  • Security group: instance level, statefulFiltering that remembers allowed connections and permits their response traffic..
  • Network ACL: subnet level, allow and deny.

Trap: Security groups cannot deny a specific address; use a network ACL for an explicit deny.

From the AWS docs (14)
  • A security group acts as a virtual firewall for an instance: only traffic its rules allow reaches it, and it is stateful, so responses are allowed back automatically.
  • A network ACL allows or denies inbound and outbound traffic at the subnet level.
  • Flow logs can cover a VPC, subnet, or network interface; VPC and subnet logs monitor their network interfaces.
  • VPC Flow Logs publish to CloudWatch Logs, S3, or Data Firehose.
  • Flow records include source and destination addresses and ports, protocol, packet and byte counts, timestamps, action, and logging status.
  • VPC Flow Logs do not capture packet contents.
  • Flow log collection occurs outside the network traffic path and does not affect its throughput or latency.
  • Security groups control allowed inbound and outbound traffic for associated resources and their network interfaces.
  • Security groups track connections and automatically allow response traffic for allowed requests regardless of opposite-direction rules.
  • Security groups have allow rules only; rules across multiple attached groups combine into one set of permissions.
  • Each VPC subnet has one network ACL, and one ACL can serve multiple subnets. Creating a custom ACL does not attach it to a subnet; associate it explicitly to apply its rules.
  • Network ACLs do not track connections. Traffic between subnets must pass the source outbound and destination inbound rules; replies must pass both subnet ACLs in the reverse direction.
  • ACL rules allow or deny traffic in ascending rule-number order; the first match wins, and numbered rules range from 1 to 32766.
  • A security group rule source or destination is an IPv4 or IPv6 CIDR range, a single address written as a /32 or /128, a prefix list ID, or another security group; an internet gateway ID is not a valid source.

Flashcards

tap to flip
Answer

·

All 6 cards as a list

What does a security group do in an Amazon VPC?

A security group acts as a virtual firewall for an instance and controls which traffic can reach it.

Which Amazon VPC security control allows or denies traffic at the subnet level?

A network ACL controls inbound and outbound traffic at the subnet level.

What do VPC Flow Logs record, and where can the records be published?

IP traffic metadata such as addresses, ports, protocol, bytes, and ACCEPT or REJECT, at VPC, subnet, or network-interface scope. Publish to CloudWatch Logs, S3, or Data Firehose. Packet contents are not captured, and collection is outside the traffic path.

How do VPC security groups and network ACLs differ?

Security groups protect associated resources, track connections, and have allow rules only. Network ACLs protect subnets, do not track connections, and process allow or deny rules from lowest number to first match. A subnet has one ACL.

Which of these cannot be the source of a security group inbound rule: a CIDR block, a single IP, another security group, or an internet gateway ID?

An internet gateway ID. Sources are CIDR ranges (including single addresses), prefix lists and security groups.

A team creates a custom Amazon VPC network ACL but does not associate a subnet. Do its rules affect an existing subnet?

No. Associate the custom ACL with the subnet to apply its rules; creation alone changes no subnet association.

You finished every topic of AIF-C01!

Your badge turned gold. Next step: book the exam on AWS. Once you pass, add yourself to Who passed.

Share

Share that you finished this certification

I finished every topic of AWS Certified AI Practitioner (AIF-C01) on Easy Review. Come study too!