Enterprise Networking, Linux & Advanced AWS Certifications — Cisco CCNA/CCNP ENCOR, Red Hat RHCSA (EX200) & AWS SAP-C02 / SCS-C02 Study Guide
Comprehensive engineering guide for Cisco CCNA (200-301 v1.1) and CCNP Enterprise Core (ENCOR 350-401), Red Hat Certified System Administrator (RHCSA EX200 on RHEL 9) & LFCS, and AWS Certified Solutions Architect Professional (SAP-C02) & Security Specialty (SCS-C02/C03).
Interactive Premade Curricula
Enterprise Networking, Linux & Advanced AWS Certifications — Cisco CCNA (200-301 v1.1) & CCNP ENCOR (350-401), Red Hat RHCSA (EX200) & LFCS/LPIC-1, and AWS Solutions Architect Pro (SAP-C02) & Security Specialty (SCS-C02/C03) Flashcard Decks (6)
Select any deck below to study cards with active recall, audio pronunciation, and FSRS spaced repetition, or filter by difficulty level.
Cisco CCNA (200-301 v1.1) — Network Fundamentals, Subnetting & Layer 2 Switching
Cisco CCNA (200-301 v1.1) & CCNP ENCOR (350-401) — Routing (OSPF, BGP), Security & Automation
Red Hat RHCSA (EX200 on RHEL 9) — Boot Recovery, Storage (LVM/XFS/autofs) & Systemd
This guide provides a rigorous, production-grade technical synthesis for the five flagship infrastructure, operating system, and cloud security certifications that anchor modern enterprise engineering:
- Cisco Certified Network Associate (
CCNA 200-301 v1.1) & CCNP Enterprise Core (ENCOR 350-401) - Red Hat Certified System Administrator (
RHCSA EX200on RHEL 9) & Linux Foundation Certified System Administrator (LFCS) /LPIC-1 - AWS Certified Solutions Architect — Professional (
SAP-C02) & AWS Certified Security — Specialty (SCS-C02/SCS-C03)
1. Executive Certification Blueprint & Scoring Matrix
| Certification Exam | Exam Code | Duration | Question / Task Format | Passing Score | Core Domain Weight Distribution |
|---|---|---|---|---|---|
| Cisco CCNA v1.1 | 200-301 |
120 min | ~100–120 items (MCQ, Drag & Drop, Live IOS CLI Labs/Simlets) | ~825 / 1000 (Cisco scaled) | Network Fundamentals (20%), Network Access (20%), IP Connectivity (25%), IP Services (10%), Security Fundamentals (15%), Automation & Programmability (10%) |
| Cisco CCNP Enterprise Core | 350-401 ENCOR |
120 min | ~90–110 items (MCQ, Drag & Drop, CLI Simlets) | ~825 / 1000 (Cisco scaled) | Architecture (15%), Virtualization (10%), Infrastructure (30%), Network Assurance (10%), Security (20%), Automation (15%) |
| Red Hat RHCSA (RHEL 9) | EX200 |
180 min | 100% Live Performance-Based Lab on 2 RHEL 9 VMs (node1, node2) |
210 / 300 (70%) | Boot Recovery & Systemd, Partitioning/LVM/XFS/Stratis, autofs/NFS, nmcli Networking, Users/Permissions/ACLs, SELinux, firewalld, chronyd, Rootless Podman |
| AWS Solutions Architect Pro | SAP-C02 |
180 min | 75 scenario questions (Multiple Choice & Multiple Response) | 750 / 1000 | Organizational Complexity (26%), New Solutions (29%), Continuous Improvement (25%), Workload Migration & Modernization (20%) |
| AWS Security Specialty | SCS-C02 / SCS-C03 |
170 min | 65 scenario questions (MCQ, Multiple Response, Ordering/Matching on SCS-C03) |
750 / 1000 | SCS-C03: Detection (16%), Incident Response (14%), Infrastructure Security (18%), IAM (20%), Data Protection (18%), Governance (14%) (legacy SCS-C02: 14% / 18% Logging / 20% / 16% / 18% / 14%) |
2. Cisco CCNA (200-301 v1.1) — Network Fundamentals, IPv4/IPv6 Subnetting & Layer 2 Switching
2.1 OSI Encapsulation, Physical Fiber Standards & Power over Ethernet (PoE)
- OSI Protocol Data Units (PDUs):
- Layer 7–5 (Application/Presentation/Session): Data / Payload
- Layer 4 (Transport): Segment (TCP — 20-byte header, connection-oriented 3-way handshake
SYN$\rightarrow$SYN-ACK$\rightarrow$ACK, sliding window flow control, sequence/acknowledgment numbers) or Datagram (UDP — 8-byte header, connectionless best-effort delivery for VoIP/DNS/DHCP/SNMP) - Layer 3 (Network): Packet (IPv4 20-byte header or IPv6 40-byte fixed header; logical source and destination IP addressing)
- Layer 2 (Data Link): Frame (Ethernet II header with 48-bit Destination MAC, Source MAC, 2-byte EtherType [
0x0800IPv4,0x86DDIPv6,0x8100802.1Q VLAN], and trailing 4-byte FCS CRC) - Layer 1 (Physical): Bits transmitted over copper UTP or optical fiber
- Optical Fiber & Ethernet Standards:
- Multimode Fiber (MMF — OM3/OM4, 50/125 $\mu\text{m}$ core):
1000BASE-SX(850 nm wavelength, up to 550 m),10GBASE-SR(up to 300 m on OM3 / 400 m on OM4). - Single-Mode Fiber (SMF — OS2, 9/125 $\mu\text{m}$ core):
1000BASE-LX(1310 nm wavelength, up to 5–10 km),10GBASE-LR(1310 nm, up to 10 km),10GBASE-ER(1550 nm, up to 40 km).
- Multimode Fiber (MMF — OM3/OM4, 50/125 $\mu\text{m}$ core):
- Power over Ethernet (PoE) IEEE Standards:
- IEEE 802.3af (PoE / Type 1):
15.4 Wmax at switch port (12.95 Wassured at powered device) over 2 pairs. - IEEE 802.3at (PoE+ / Type 2):
30.0 Wmax at switch port (25.5 Wat PD) over 2 pairs. - IEEE 802.3bt (UPOE / 4PPoE Type 3 & Type 4):
60 W(Type 3) to90–100 W(Type 4) using all 4 twisted pairs.
- IEEE 802.3af (PoE / Type 1):
2.2 Fast IPv4 CIDR / VLSM Subnetting Reference Table
For any IPv4 prefix /P, the number of host bits is $h = 32 - P$, the octet block size is $2^{(8 - (P \bmod 8))}$, and the number of usable host addresses is $2^h - 2$ (subtracting the network ID where all host bits are 0 and the directed broadcast address where all host bits are 1).
| CIDR Prefix | Subnet Mask | Block Size (4th Octet) | Total IPs ($2^h$) | Usable Hosts ($2^h - 2$) | Typical Enterprise Use Case |
|---|---|---|---|---|---|
/24 |
255.255.255.0 |
256 | 256 | 254 | Standard access VLAN / floor subnet |
/25 |
255.255.255.128 |
128 | 128 | 126 | Medium user or server segment |
/26 |
255.255.255.192 |
64 | 64 | 62 | Branch office user/voice VLAN |
/27 |
255.255.255.224 |
32 | 32 | 30 | Small server cluster or DMZ segment |
/28 |
255.255.255.240 |
16 | 16 | 14 | Management VLAN or small router transit |
/29 |
255.255.255.248 |
8 | 8 | 6 | FHRP (HSRP/VRRP) dual-router WAN edge |
/30 |
255.255.255.252 |
4 | 4 | 2 | Traditional point-to-point serial/routed link |
/31 |
255.255.255.254 |
2 | 2 | 2 (RFC 3021) | Point-to-point routed link with zero waste |
/32 |
255.255.255.255 |
1 | 1 | 1 | Loopback interface / OSPF Router ID / BGP peer |
- Worked VLSM Exam Example: Find the Network ID, First Usable Host, Last Usable Host, and Broadcast Address for
172.20.130.75/26./26is in the 4th octet ($26 - 24 = 2$ subnet bits, $32 - 26 = 6$ host bits).- Block size $= 2^6 = 64$. Multiples of 64 in the 4th octet are
0,64,128,192. - Since
75falls between64and128:- Network ID:
172.20.130.64/26 - First Usable Host:
172.20.130.65 - Last Usable Host:
172.20.130.126 - Broadcast Address:
172.20.130.127(one less than next subnet172.20.130.128).
- Network ID:
2.3 IPv6 Addressing, Modified EUI-64, SLAAC & Neighbor Discovery Protocol (NDP)
- RFC 5952 IPv6 Compression Rules:
- Omit leading zeros in any 16-bit hexadecimal field (hextet):
0db8$\rightarrow$db8,0000$\rightarrow$0. - Replace the single longest contiguous run of all-zero hextets with a double colon (
::). If two zero runs have equal length, compress the first one. Never use::more than once in an address.
- Omit leading zeros in any 16-bit hexadecimal field (hextet):
- IPv6 Address Types & Prefixes:
- Global Unicast Address (GUA):
2000::/3(2000::through3fff:ffff:...) — publicly routable on the IPv6 Internet. - Unique Local Address (ULA):
fc00::/7(practicallyfd00::/8) — IPv6 equivalent of RFC 1918 private addresses; never routed on the public Internet. - Link-Local Address (LLA):
fe80::/10(strictlyfe80::/64) — automatically generated on every IPv6-enabled interface; used as next-hop address by routing protocols (OSPFv3) and never forwarded by routers. - Multicast:
ff00::/8(ff02::1All-Nodes,ff02::2All-Routers,ff02::5OSPFv3 AllSPFRouters,ff02::6OSPFv3 AllDRouters,ff02::1:ffxx:xxxxSolicited-Node Multicast).
- Global Unicast Address (GUA):
- Modified EUI-64 Interface ID Calculation:
- Split the 48-bit MAC address (e.g.,
00:1A:2B:3C:4D:5E) into two 24-bit halves (001A:2Band3C:4D5E), insertFFFEin the middle (001A:2BFF:FE3C:4D5E), and invert the 7th bit (the Universal/Local bit) of the first byte (00=00000000$\rightarrow$00000010=02), yielding021a:2bff:fe3c:4d5e.
- Split the 48-bit MAC address (e.g.,
- SLAAC & NDP (ICMPv6):
- Router Solicitation (RS — ICMPv6 Type 133) & Router Advertisement (RA — ICMPv6 Type 134): Hosts discover default gateways and
/64prefixes via SLAAC. - Neighbor Solicitation (NS — ICMPv6 Type 135) & Neighbor Advertisement (NA — ICMPv6 Type 136): Replaces IPv4 ARP using solicited-node multicast (
ff02::1:ffxx:xxxx) and performs Duplicate Address Detection (DAD).
- Router Solicitation (RS — ICMPv6 Type 133) & Router Advertisement (RA — ICMPv6 Type 134): Hosts discover default gateways and
2.4 Layer 2 Switching: 802.1Q Trunking, Rapid PVST+ (802.1w) & EtherChannel
+---------------------------------------+
| Root Bridge (Lowest BID) |
| Priority 24576 + VLAN ID + MAC |
| [DP] [DP] |
+------+-------------------------+------+
| 1 Gbps (Cost 4) | 1 Gbps (Cost 4)
| |
+---------+---------+ +---------+---------+
| Switch B | | Switch C |
| [RP] | | [RP] |
| [DP] | | [ALT] |
+---------+---------+ +---------+---------+
| |
+-------------------------+
1 Gbps (B has lower BID,
so C blocks as Alternate)
- 802.1Q VLAN Tagging & DTP:
- Inserts a 4-byte tag (
TPID 0x8100, 3-bitPCPCoS, 1-bitDEI, 12-bitVLAN ID1–4094) after the Source MAC and recalculates the 4-byte FCS. - Native VLAN frames traverse an 802.1Q trunk untagged (default VLAN 1). Mitigate VLAN hopping by setting
switchport mode access/switchport mode trunk, disabling DTP withswitchport nonegotiate, and changing the native VLAN to an unused VLAN ID.
- Inserts a 4-byte tag (
- Rapid PVST+ (
IEEE 802.1w) Convergence & Protection:- Root Bridge Election: Lowest 8-byte Bridge ID (
4-bit Priority [multiples of 4096, default 32768] + 12-bit Extended System ID [VLAN] + 48-bit MAC). - Root Port (RP) Tie-Breakers: 1) Lowest cumulative Root Path Cost (
10M=100,100M=19,1G=4,10G=2), 2) Lowest upstream Sender Bridge ID, 3) Lowest upstream Sender Port Priority (default 128), 4) Lowest upstream Sender Port Number. - 802.1w Port Roles & States: Roles are
Root,Designated,Alternate(backup path to Root via another uplink), andBackup(redundant path on shared hub). States areDiscarding,Learning, andForwarding. - STP Toolkit:
PortFast: Transitions access edge ports immediately toForwarding.BPDU Guard: Places a PortFast-enabled port intoerr-disabledif any BPDU arrives.Root Guard: Places a port intoroot-inconsistentstate if a superior BPDU arrives on a downstream port.Loop Guard/UDLD: Prevents bridging loops when unidirectional fiber faults stop BPDUs on root/alternate ports.
- Root Bridge Election: Lowest 8-byte Bridge ID (
- EtherChannel (
LACPvs.PAgP):- LACP (
IEEE 802.3ad):Active+ActiveorActive+Passiveforms a bundle (Passive+Passivefails). - PAgP (Cisco Proprietary):
Desirable+DesirableorDesirable+Autoforms a bundle (Auto+Autofails).
- LACP (
3. Cisco CCNA & CCNP Enterprise Core (ENCOR 350-401) — Routing, SD-Access, SD-WAN & Automation
3.1 Routing Table Selection, Administrative Distance & OSPF LSA Architecture
- The Golden Rule of IP Packet Forwarding:
- Longest Prefix Match (Most Specific Subnet Mask): Always wins when forwarding packets across routes already installed in the Routing Information Base (RIB) / FIB (
10.1.1.0/26via RIP beats10.1.0.0/16via OSPF!). - Administrative Distance (AD): Breaks ties when two different routing protocols advertise the exact same prefix and mask (
10.1.1.0/24). - Metric: Breaks ties when the same routing protocol learns multiple paths to the exact same prefix and mask (or installs ECMP equal-cost load balancing).
- Longest Prefix Match (Most Specific Subnet Mask): Always wins when forwarding packets across routes already installed in the Routing Information Base (RIB) / FIB (
| Route Source / Protocol | Default Cisco AD | Metric Type | Transport / Multicast |
|---|---|---|---|
| Connected Interface | 0 |
N/A | Local interface (up/up) |
| Static Route | 1 |
N/A | Next-hop IP or exit interface |
| eBGP (External BGP) | 20 |
Path Attributes (WLLAOM) |
TCP Port 179 (Unicast, default TTL 1) |
| EIGRP (Internal) | 90 |
Composite (Bandwidth + Delay) | IP Protocol 88 (224.0.0.10 / ff02::a) |
| OSPF (v2 & v3) | 110 |
Cost ($\text{Ref BW} / \text{Int BW}$) | IP Protocol 89 (224.0.0.5, 224.0.0.6 / ff02::5, ff02::6) |
| IS-IS | 115 |
Cost (Default 10 per link) | Layer 2 CLNS |
| RIPv2 / RIPng | 120 |
Hop Count (Max 15 hops) | UDP Port 520 (224.0.0.9) / UDP 521 (ff02::9) |
| EIGRP (External) | 170 |
Composite | IP Protocol 88 |
| iBGP (Internal BGP) | 200 |
Path Attributes (WLLAOM) |
TCP Port 179 (Unicast, TTL 255) |
- CCNP ENCOR OSPFv2/v3 LSA Types & Area Filtering:
- LSA Type 1 (Router LSA): Generated by every router; lists connected links and costs within a single area.
- LSA Type 2 (Network LSA): Generated by the Designated Router (DR) on multi-access broadcast segments; stays intra-area.
- LSA Type 3 (Summary LSA): Generated by an Area Border Router (ABR) to advertise inter-area prefixes across areas.
- LSA Type 4 (ASBR Summary LSA): Generated by an ABR to advertise the Router ID reachability of an Autonomous System Boundary Router (ASBR).
- LSA Type 5 (AS External LSA): Generated by an ASBR for redistributed external routes; flooded across all standard areas.
- LSA Type 7 (NSSA External LSA): Generated by an ASBR inside a Not-So-Stubby Area (NSSA); the ABR translates Type 7 into Type 5 when flooding into Area 0.
- Area Filtering: Stub blocks Types 4/5 (injects Type 3 default route); Totally Stubby (
area X stub no-summary) blocks Types 3/4/5; NSSA blocks Types 4/5 and allows Type 7; Totally NSSA (area X nssa no-summary) blocks Types 3/4/5 and injects a Type 3 default route.
3.2 BGP Path Selection Decision Tree (WLLAOM)
When a Cisco router has multiple valid BGP paths with a reachable NEXT_HOP, it evaluates attributes in this strict sequential order:
- Highest
Weight: Cisco-proprietary, local to the router only (not advertised in BGP updates; default32768for locally originated routes,0for learned routes). - Highest
LOCAL_PREF(Local Preference): Propagated within the local AS via iBGP (default100); primary tool to control outbound traffic leaving your AS. - Locally Originated: Routes injected locally via
network,redistribute, oraggregate-addresspreferred over learned routes. - Shortest
AS_PATH: Fewest Autonomous System hops; AS_PATH prepending on outbound eBGP updates is the primary tool to influence inbound return traffic from ISPs. - Lowest
ORIGINCode:i(IGP,networkstatement) is preferred overe(EGP), which is preferred over?(Incomplete / redistributed). - Lowest
MED(Multi-Exit Discriminator): Metric advertised to a neighboring AS (default 0, lower is better) to suggest preferred entry point into your AS across dual links to the same ISP. - eBGP over iBGP: Prefer external BGP (
AD 20) paths over internal BGP (AD 200) paths. - Lowest IGP Metric to BGP
NEXT_HOP(Hot-Potato Routing) $\rightarrow$ Oldest eBGP Path $\rightarrow$ Lowest Neighbor BGP Router ID.
3.3 Cisco SD-Access (SDA), Cisco SD-WAN & Model-Driven Programmability
- Cisco SD-Access (SDA) Fabric Architecture:
- Control Plane —
LISP(Location/ID Separation Protocol): Decouples endpoint identity (EID— host IPv4/IPv6 address) from its physical switch attachment point (RLOC— Routing Locator IP of the Fabric Edge Node), enabling seamless Layer 2/Layer 3 mobility across the campus without stretching STP. - Data Plane —
VXLAN(Virtual Extensible LAN): Encapsulates original Layer 2 Ethernet frames inside UDP packets (port 4789), carrying both the 24-bit Virtual Network Identifier (VNI/ VRF macro-segmentation) and the 16-bit Scalable Group Tag (SGTmicro-segmentation). - Policy Plane —
Cisco TrustSec&SGTs: Cisco Identity Services Engine (ISE) assigns role-based Scalable Group Tags enforced via SGACLs regardless of IP subnet.
- Control Plane —
- Cisco SD-WAN 4-Plane Architecture:
vBond(Orchestrator): Authenticates and directs WAN Edge routers and controllers during Zero-Touch Provisioning (ZTP) and NAT traversal.vManage(Management Plane): Centralized single-pane-of-glass GUI and REST API for templates, policies, and troubleshooting.vSmart(Control Plane): The "brain" of the fabric; runs OMP (Overlay Management Protocol) over persistent DTLS/TLS tunnels to distribute TLOCs, service routes, IPsec encryption keys, and centralized traffic policies without sitting in the data path.WAN Edge(Data Plane): Establishes full-mesh or hub-and-spoke IPsec data tunnels across MPLS/Internet/LTE transports with BFD liveliness tracking.
- NETCONF vs. RESTCONF vs. Ansible vs. Terraform:
YANG(RFC 6020 / 7950): Data modeling language defining configuration and operational state schemas (containers,lists,leafs).NETCONF(SSH TCP 830): Uses XML-encoded RPCs (<get-config>,<edit-config>,<commit>) over persistent SSH sessions with candidate/running datastores.RESTCONF(HTTPS TCP 443): Maps YANG data models to RESTful HTTP methods (GET,POST,PUT,PATCH,DELETE) using JSON (application/yang-data+json) or XML headers.Ansiblevs.Terraform: Ansible is agentless push over SSH using YAML playbooks (procedural/declarative configuration management); Terraform (added in CCNA v1.1) is declarative Infrastructure as Code (IaC) using HCL and.tfstatestate tracking.
4. Red Hat Certified System Administrator (RHCSA EX200 on RHEL 9) & Linux LFCS
4.1 High-Yield RHCSA EX200 CLI Command Cheat Sheet (All Tasks Must Survive Reboot!)
A. GRUB2 Root Password Recovery (rd.break Method on RHEL 9)
# 1. At GRUB boot menu, press 'e' on the default kernel entry.
# 2. Find the line starting with 'linux' and append at the end:
rd.break
# (Note: On RHEL 9.2+ if rd.break still prompts for root password, use: rw init=/bin/bash)
# 3. Press Ctrl+X to boot into the initramfs switch_root shell, then run:
mount -o remount,rw /sysroot
chroot /sysroot
passwd root # Enter new exam root password twice
touch /.autorelabel # CRITICAL: Relabels /etc/shadow back to shadow_t on next boot!
exit
exit
B. Partitioning, LVM, XFS/ext4, Swap & Stratis Storage
# Create a 2 GiB GPT partition & 1 GiB Swap partition non-interactively
parted -s /dev/vdb mklabel gpt
parted -s /dev/vdb mkpart primary 1MiB 2049MiB
parted -s /dev/vdb set 1 lvm on
parted -s /dev/vdb mkpart swap linux-swap 2049MiB 3073MiB
udevadm settle
# LVM Creation Workflow (50 extents of 16 MiB PE = 800 MiB Logical Volume)
pvcreate /dev/vdb1
vgcreate -s 16M vg_app /dev/vdb1
lvcreate -l 50 -n lv_data vg_app
mkfs.xfs /dev/vg_app/lv_data
mkdir -p /mnt/data
# Persistent Mount via UUID in /etc/fstab (ALWAYS verify with mount -a!)
UUID_VAL=$(blkid -s UUID -o value /dev/vg_app/lv_data)
echo "UUID=${UUID_VAL} /mnt/data xfs defaults 0 0" >> /etc/fstab
mount -a && systemctl daemon-reload
# Online LVM + Filesystem Extension (works for BOTH XFS and ext4!)
lvextend -r -L +500M /dev/vg_app/lv_data
# Persistent Swap Activation
mkswap /dev/vdb2
SWAP_UUID=$(blkid -s UUID -o value /dev/vdb2)
echo "UUID=${SWAP_UUID} swap swap defaults 0 0" >> /etc/fstab
swapon -a && swapon --show
# Stratis Pool & Filesystem (Requires x-systemd.requires=stratisd.service in fstab)
dnf install -y stratisd stratis-cli
systemctl enable --now stratisd
stratis pool create pool1 /dev/vdc
stratis filesystem create pool1 fs1
C. SELinux File Contexts, Ports, Booleans & firewalld
# 1. Persistent SELinux File Context for Custom Web Directory /web
dnf install -y policycoreutils-python-utils setroubleshoot-server
semanage fcontext -a -t httpd_sys_content_t '/web(/.*)?'
restorecon -Rv /web
# 2. Authorize Non-Standard TCP Port 82 for Apache httpd
semanage port -a -t http_port_t -p tcp 82
# (If port 82 is already defined in policy, use -m modify: semanage port -m -t http_port_t -p tcp 82)
# 3. Persistent SELinux Boolean Toggle
setsebool -P httpd_enable_homedirs on
# 4. Firewalld Permanent Rules + Immediate Reload
firewall-cmd --permanent --add-port=82/tcp --add-service=https
firewall-cmd --reload
firewall-cmd --list-all
D. autofs Indirect Wildcard NFS Home Directories & nmcli Networking
# Configure autofs to auto-mount nfs.example.com:/rhome/<user> at /rhome/<user>
dnf install -y autofs nfs-utils
echo "/rhome /etc/auto.rhome" > /etc/auto.master.d/rhome.autofs
echo "* -rw,sync,fstype=nfs4 nfs.example.com:/rhome/&" > /etc/auto.rhome
systemctl enable --now autofs
# Configure Static IPv4, Gateway, DNS & Hostname via nmcli
nmcli con mod "System eth0" ipv4.addresses 192.168.10.25/24 \
ipv4.gateway 192.168.10.1 ipv4.dns 192.168.10.2 ipv4.method manual autoconnect yes
nmcli con up "System eth0"
hostnamectl set-hostname node1.example.com
E. Rootless Podman Containers Managed by systemd User Services
# Must log in via direct SSH as the target unprivileged user (NEVER use 'su - user'!)
ssh alicedev@node1.example.com
mkdir -p ~/webdata
podman login registry.example.com
# Fix rootless UID namespace ownership BEFORE starting if container runs as non-root UID (e.g. 1001)
podman unshare chown -R 1001:1001 /home/alicedev/webdata
# Run rootless container with SELinux private volume relabeling (:Z)
podman run -d --name webapp -p 8080:80 \
-v /home/alicedev/webdata:/var/www/html:Z \
registry.example.com/ubi9/httpd-24:latest
# Generate persistent systemd user unit (--new), remove manual container, & enable-linger for boot startup
mkdir -p ~/.config/systemd/user
cd ~/.config/systemd/user
podman generate systemd --new --files --name webapp
podman stop webapp && podman rm webapp
systemctl --user daemon-reload
systemctl --user enable --now container-webapp.service
loginctl enable-linger alicedev
4.2 Linux Special Permissions (SUID, SGID, Sticky Bit), umask & POSIX ACLs
| Permission Mechanism | Octal / Symbolic | Effect on Executable Binary / Regular File | Effect on Directory |
|---|---|---|---|
| SUID (Set User ID) | 4000 / chmod u+s |
Process executes with the effective UID of the file owner (e.g., /usr/bin/passwd runs as root). |
No effect on standard Linux filesystems. |
| SGID (Set Group ID) | 2000 / chmod g+s |
Process executes with the effective GID of the file's group. | Group Inheritance: Every new file or subdirectory created inside automatically inherits the directory's group owner (chmod 2770 /shared). |
| Sticky Bit | 1000 / chmod +t |
No effect on regular files. | Deletion Restriction: Only the file owner, the directory owner, or root can delete or rename files inside (e.g., /tmp is 1777 drwxrwxrwt). |
| POSIX Access ACL | setfacl -m u:bob:rw- |
Grants fine-grained permissions to specific users/groups beyond the single owning UID/GID; alters the mask bit (+ shown at end of ls -l). |
Grants fine-grained access to existing directory entries (r-X applies execute only to directories and already-executable files). |
| POSIX Default ACL | setfacl -m d:g:aud:r-X |
Not applicable to regular files. | Future Inheritance: Any new file or subdirectory created inside the directory automatically inherits the default ACL entries. |
5. AWS Certified Solutions Architect — Professional (SAP-C02 — Pass 750/1000)
5.1 Multi-Account Governance: AWS Organizations, Control Tower, SCPs vs. RCPs & AWS RAM
- AWS Organizations Policy Types:
- Service Control Policies (SCPs): Principal-centric guardrails attached to the Organization Root, Organizational Units (OUs), or individual member accounts. SCPs define the maximum allowable permissions for IAM users and roles inside member accounts (including the member account root user), never grant permissions, do not affect the Management Account, and do not apply to AWS Service-Linked Roles.
- Resource Control Policies (RCPs): Resource-centric guardrails that define the maximum allowable permissions on resources (such as S3 buckets, KMS keys, SQS queues, Secrets Manager secrets, and IAM roles) across member accounts, enabling central enforcement of AWS Data Perimeters (
aws:PrincipalOrgID,aws:SourceVpce) regardless of how local developers configure bucket policies.
- AWS Control Tower Guardrails:
- Preventive Controls: Enforced via AWS Organizations SCPs (e.g., disallowing actions in unauthorized AWS Regions — status is
EnforcedorNot enabled). - Detective Controls: Enforced via AWS Config Rules and AWS Lambda (e.g., detecting public S3 buckets or unencrypted EBS volumes — status is
Clear,In violation, orNot enabled). - Proactive Controls: Enforced via AWS CloudFormation Hooks (
AWS::ControlTower::Hook), inspecting resource properties before CloudFormation provisions them and blocking non-compliant stack deployments.
- Preventive Controls: Enforced via AWS Organizations SCPs (e.g., disallowing actions in unauthorized AWS Regions — status is
5.2 Enterprise Hybrid Connectivity: Transit Gateway, Cloud WAN, Direct Connect & Route 53 Resolver
+---------------------------+ +-----------------------------------+
| On-Premises Data Center | | AWS Central Network Account |
| | 10G/100G DX | |
| [Core Router] |=================>| [Direct Connect Gateway (DXGW)] |
| - eBGP + BFD | + MACsec (L2) | | (Transit VIF) |
| - SiteLink enabled | + Site-to-Site | v |
| | VPN Backup | [AWS Transit Gateway (TGW)] |
| [On-Prem DNS: corp.local] | | |-- Spoke VPC A (Shared via RAM)|
+-------------+-------------+ | |-- Spoke VPC B (Shared via RAM)|
| | +-- Inspection VPC (GWLB + |
| DNS Forward | ApplianceModeSupport=enable)|
v | |
[R53 Inbound Endpoint] <------------------->| [R53 Outbound Endpoint + Rules] |
- AWS Direct Connect (DX) VIF Architecture & BGP Traffic Engineering:
- Private VIF: Terminates on a Virtual Private Gateway (VGW, 1 VPC) or Direct Connect Gateway (DXGW, up to 20 VGWs / 20 VPCs across any Region).
- Transit VIF: Terminates on a Direct Connect Gateway to connect up to 6 AWS Transit Gateways across multiple Regions (supports 8,500-byte jumbo frames).
- Public VIF: Connects to public AWS service IP ranges (S3, DynamoDB, SQS, CloudFront) over BGP.
- Deterministic BGP Path Selection on Direct Connect:
- AWS $\rightarrow$ On-Premises (Inbound to Customer): AWS always evaluates Longest Prefix Match first (e.g.,
/25beats/24). If prefixes are identical in length, AWS evaluates BGP Local Preference community tags advertised by the customer router:7224:7300= High Local Preference (Primary active DX link)7224:7200= Medium Local Preference (Default)7224:7100= Low Local Preference (Passive backup DX link)- If communities are not used, AWS evaluates Shortest
AS_PATH.
- On-Premises $\rightarrow$ AWS (Outbound from Customer): Customer routers use BGP Local_Pref or AWS scope communities (
7224:9100local DX PoP,7224:9200regional,7224:9300global continent).
- AWS $\rightarrow$ On-Premises (Inbound to Customer): AWS always evaluates Longest Prefix Match first (e.g.,
- Centralized Traffic Inspection with Transit Gateway & Gateway Load Balancer (
GWLB):- Deploy third-party virtual firewalls or AWS Network Firewall behind a Gateway Load Balancer (
GWLB) using GENEVE encapsulation (UDP port 6081) inside a dedicated multi-AZ Inspection VPC. - Critical Exam Trap: You must enable
ApplianceModeSupporton the Transit Gateway attachment to the Inspection VPC (aws ec2 modify-transit-gateway-vpc-attachment --options ApplianceModeSupport=enable). Without Appliance Mode, TGW keeps traffic inside the originating AZ, causing asymmetric routing drops when return traffic hits a stateful firewall instance in a different AZ.
- Deploy third-party virtual firewalls or AWS Network Firewall behind a Gateway Load Balancer (
5.3 Multi-Region Disaster Recovery (DR) & High Availability Comparison Matrix
| DR Strategy | Target RPO | Target RTO | Relative Cost | Architectural Mechanics & Core AWS Services |
|---|---|---|---|---|
| Backup & Restore | Hours (last snapshot) | Hours (2–24h) |
$ (Lowest) |
AWS Backup cross-Region automated copies of EBS/RDS/Aurora/DynamoDB snapshots + S3 CRR; provision infrastructure via CloudFormation/Terraform after disaster. |
| Pilot Light | Seconds to Minutes | 10s of Minutes (10–30m) |
$$ |
Data tier is live and replicating (Aurora Global DB or RDS Cross-Region Read Replica); application/web EC2 instances or ASGs are stopped or scaled to 0/0/0 until failover. |
| Warm Standby | Seconds | Minutes (1–5m) |
$$$ |
Scaled-down, fully functional copy of the production stack runs continuously in the DR Region (e.g., minimum 1–2 small tasks/instances handling synthetic health checks), scaling out on failover. |
| Multi-Site Active/Active | Near Zero (< 1s or 0) |
Near Zero (Seconds) | $$$$ (Highest) |
Full production capacity serves live traffic in 2+ Regions simultaneously via Route 53 Active-Active (Latency/Geolocation + ARC Routing Controls) or AWS Global Accelerator, backed by DynamoDB Global Tables or Aurora Global Database (with Write Forwarding). |
5.4 Enterprise Workload Migration & Modernization (The 7 Rs)
- Server Migration (
Rehost): AWS Application Migration Service (AWS MGN) installs a lightweight agent performing continuous block-level replication into a low-cost Staging Area Subnet, launching full production EC2 instances only during non-disruptive test drills or final cutover. - Database Migration (
Replatform/Refactor):- Homogeneous (e.g., on-prem MySQL $\rightarrow$ RDS MySQL): Native tools or AWS DMS (
Full Load + CDC). - Heterogeneous (e.g., on-prem Oracle $\rightarrow$ Amazon Aurora PostgreSQL): Run AWS Schema Conversion Tool (
AWS SCT) first to convert schemas, views, and PL/SQL stored procedures into PL/pgSQL, then run AWS DMS with ongoing Change Data Capture (CDC) for near-zero-downtime cutover.
- Homogeneous (e.g., on-prem MySQL $\rightarrow$ RDS MySQL): Native tools or AWS DMS (
- Large-Scale File & Object Migration (
DataSyncvs.Snowball Edge):- Rule of Thumb: Calculate transfer time over available WAN bandwidth: $$\text{Transfer Time (days)} \approx \frac{\text{Data Volume (Bytes)} \times 8}{\text{Available Bandwidth (bps)} \times 0.80 \times 86,400}$$
- If online transfer fits within the project deadline, deploy AWS DataSync agents (parallelized TLS transfers preserving POSIX metadata/permissions). If bandwidth is too slow (e.g.,
500 TBover a100 Mbpslink), ship AWS Snowball Edge Storage Optimized appliances for the bulk baseline, then run AWS DataSync to sync incremental delta changes prior to cutover.
6. AWS Certified Security — Specialty (SCS-C02 / SCS-C03 — Pass 750/1000)
6.1 Master End-to-End AWS IAM Policy Evaluation Flowchart
[Incoming AWS API Request]
|
v
+-------------------------------------------+
| 1. Is there an EXPLICIT DENY in ANY |---- YES ----> [FINAL: EXPLICIT DENY]
| applicable policy (SCP, RCP, Resource, |
| Identity, Boundary, or Session)? |
+---------------------+---------------------+
| NO
v
+-------------------------------------------+
| 2. Do applicable Organizations SCPs & |---- NO -----> [FINAL: IMPLICIT DENY]
| RCPs explicitly ALLOW the action? | (Except Management Acct)
+---------------------+---------------------+
| YES (or Management Acct)
v
+-------------------------------------------+
| 3. Does a Resource-Based Policy (e.g. S3, |---- YES ----> [FINAL: ALLOW]
| KMS) directly ALLOW the principal | (If no Boundary/Session
| within the SAME AWS Account? | blocks the principal!)
+---------------------+---------------------+
| NO (or Cross-Account)
v
+-------------------------------------------+
| 4. If an IAM Permissions Boundary is |---- NO -----> [FINAL: IMPLICIT DENY]
| attached, does it ALLOW the action? |
+---------------------+---------------------+
| YES (or No Boundary)
v
+-------------------------------------------+
| 5. If a Session Policy was passed via STS,|---- NO -----> [FINAL: IMPLICIT DENY]
| does it ALLOW the action? |
+---------------------+---------------------+
| YES (or No Session Policy)
v
+-------------------------------------------+
| 6. Does the Identity-Based Policy ALLOW |---- NO -----> [FINAL: IMPLICIT DENY]
| the action (AND for Cross-Account, |
| does the Resource/Trust Policy ALLOW)? |
+---------------------+---------------------+
| YES
v
[FINAL: ALLOW]
6.2 High-Yield IAM Condition Keys for Data Perimeters & Confused Deputy Protection
| IAM Global Condition Key | Security Problem Solved | Canonical Policy Usage |
|---|---|---|
aws:SourceArn & aws:SourceAccount |
Cross-Service Confused Deputy Protection: Stops an external attacker from tricking an AWS service (cloudtrail, sns, lambda) into accessing your resource on their behalf. |
Attach to Resource-Based Policies and IAM Role Trust Policies when "Principal": {"Service": "..."} is used. |
aws:PrincipalOrgID |
Identity Perimeter / Resource Sharing: Ensures only IAM principals belonging to your AWS Organization (o-xxxxxxxxxx) can assume a role or access an S3/KMS/SNS resource. |
"Condition": {"StringEquals": {"aws:PrincipalOrgID": "o-1234567890"}} in S3 Bucket or KMS Key Policies. |
aws:ResourceOrgID |
Resource Perimeter (Exfiltration Prevention): Prevents internal corporate principals from writing data to an external S3 bucket or SQS queue outside your AWS Organization. | Enforced in an SCP or VPC Endpoint Policy (with aws:ViaAWSService exclusions for AWS service calls). |
aws:SourceVpce / aws:SourceVpc |
Network Perimeter: Restricts resource access exclusively to traffic originating from your corporate VPC or Interface/Gateway VPC Endpoint. | Combine with "BoolIfExists": {"aws:ViaAWSService": "false"} so internal AWS service calls (Athena, Backup) are not broken. |
iam:PermissionsBoundary |
Safe Privilege Delegation: Allows developers to create IAM roles (iam:CreateRole) without escalating privileges beyond a security-approved boundary policy. |
Require "StringEquals": {"iam:PermissionsBoundary": "arn:aws:iam::111122223333:policy/DevBoundary"} on CreateRole and PutRolePermissionsBoundary. |
aws:TokenIssueTime |
Immediate STS Session Revocation: Invalidates all temporary STS role credentials issued prior to an incident timestamp (AWSRevokeOlderSessions). |
"DateLessThan": {"aws:TokenIssueTime": "2026-11-11T18:00:00Z"} in an inline Explicit Deny policy attached to the compromised IAM role. |
6.3 Cryptography & Key Management: AWS KMS, Envelope Encryption, Grants & CloudHSM
- KMS Key Types Comparison:
- AWS Owned Keys: Free, shared across accounts internally by AWS, invisible in your KMS console, rotated automatically by AWS.
- AWS Managed Keys (
aws/s3,aws/ebs,aws/rds): Free, visible in your account, rotated automatically every 1 year (365 days), Key Policy is read-only, cannot be shared cross-account! (If you need to share an encrypted EBS snapshot or RDS snapshot with another AWS account, you must re-encrypt it with a Customer Managed Key [CMK] first!). - Customer Managed Keys (CMKs):
$1/month, full control over the KMS Key Policy, supports cross-account access, supports optional automatic rotation (every 365 days—or configurable90to2560days for on-demand/custom rotation while retaining old backing keys for decryption), supports Multi-Region replication, and supports Imported Key Material (EXTERNALorigin—no automatic rotation, can be deleted immediately viaDeleteImportedKeyMaterialwithout waiting 7–30 days).
- Envelope Encryption Workflow (Payloads $> 4\text{ KB}$):
- Call
kms:GenerateDataKeyspecifying your CMK ID $\rightarrow$ KMS returns a Plaintext Data Encryption Key (DEK) and a CiphertextDEK(encrypted under the CMK). - Encrypt the multi-gigabyte payload locally in application memory using the Plaintext
DEK(AES-256-GCM), then immediately overwrite/zero out the PlaintextDEKfrom memory. - Store the Ciphertext
DEKalongside the encrypted payload on disk/S3.
- Call
6.4 Cloud SOC Threat Detection, Logging & Automated Forensic Isolation
- The AWS Security Triad:
- Amazon GuardDuty (Threat Detection): Machine-learning and threat-intelligence engine analyzing VPC Flow Logs, Route 53 DNS Query Logs, CloudTrail Management & S3 Data Events, EKS Audit Logs, RDS Login Activity, and agentless EBS Malware scans.
- AWS Security Hub (CSPM & Aggregation): Ingests findings from GuardDuty, Inspector, Macie, Firewall Manager, and IAM Access Analyzer in AWS Security Finding Format (
ASFF), evaluates continuous compliance standards (AWS FSBP, CIS, PCI-DSS, NIST), and triggers Amazon EventBridge rules for automated remediation. - Amazon Detective (Root-Cause Investigation & Threat Hunting): Automatically correlates up to 1 year of CloudTrail, VPC Flow, and EKS logs into an interactive Behavior Graph to trace lateral movement, blast radius, and suspicious IP/role timelines.
- Forensic Incident Response Runbook for a Compromised EC2 Instance:
- Contain & Isolate (Do NOT Stop or Terminate!):
- If in an Auto Scaling Group, detach the instance (
aws autoscaling detach-instances --should-decrement-desired-capacity) or place it intoStandbystate and suspend ASGTerminate/HealthCheck/ReplaceUnhealthyprocesses so Auto Scaling does not terminate the evidence! - Enable EC2 Termination Protection (
ModifyInstanceAttribute --disable-api-termination). - Replace all attached Security Groups with an
Isolation-SGthat has zero inbound rules and zero outbound rules (instant stateful connection severance; optionally pair with a NACL deny to cut existing established state entries if needed). - Detach the IAM Instance Profile (or attach
AWSRevokeOlderSessions) so the attacker cannot make AWS API calls.
- If in an Auto Scaling Group, detach the instance (
- Preserve Volatile & Non-Volatile Evidence:
- Capture volatile RAM memory (if SSM agent is intact or via nitro/hypervisor tooling) before power state changes.
- Create point-in-time EBS Snapshots of all attached volumes, tag them with chain-of-custody metadata, and mount new EBS volumes created from those snapshots onto a dedicated Forensic Workstation EC2 instance in an isolated Security VPC.
- Contain & Isolate (Do NOT Stop or Terminate!):
7. Worked Enterprise Exam Scenarios (Cisco, Red Hat RHCSA & AWS Pro/Security)
Scenario 1 (Cisco CCNA / CCNP ENCOR — Routing Table Selection vs. AD Trap)
- Question: Router
R1has three routes in its IPv4 routing table:O 10.20.0.0/16 [110/20] via 192.168.1.1D 10.20.16.0/20 [90/28160] via 192.168.1.2R 10.20.25.0/26 [120/4] via 192.168.1.3Which next-hop IP address willR1use to forward a packet destined for10.20.25.49?
- Engineering Solution:
- Convert
.49against/26(block size 64:10.20.25.0through10.20.25.63).10.20.25.49matches all three prefixes (/16,/20, and/26). - Because Longest Prefix Match (
/26>/20>/16) is evaluated BEFORE Administrative Distance,R1forwards the packet to192.168.1.3(RIP) despite RIP having the worst AD (120).
- Convert
Scenario 2 (Red Hat RHCSA EX200 — Custom Apache Port & Directory Failing in Enforcing Mode)
- Question: On
node1, you are asked to configure Apachehttpdto listen on TCP port82and serve files from/srv/customweb(which contains anindex.htmlmoved from/root/index.html). The service fails to bind to port82and returns403 Forbiddenwhen SELinux isEnforcing. Provide the exact persistent fix. - Engineering Solution:
- Authorize TCP port 82 in SELinux policy:
semanage port -a -t http_port_t -p tcp 82 - Define persistent file context rule and relabel
/srv/customweb(fixing both the directory and themv'd file from/root):semanage fcontext -a -t httpd_sys_content_t '/srv/customweb(/.*)?' && restorecon -Rv /srv/customweb - Open port 82 permanently in
firewalld:firewall-cmd --permanent --add-port=82/tcp && firewall-cmd --reload - Enable and restart Apache:
systemctl enable --now httpd && systemctl restart httpd
- Authorize TCP port 82 in SELinux policy:
Scenario 3 (AWS SAP-C02 — Asymmetric Packet Drops in Centralized Inspection VPC)
- Question: An enterprise routes traffic between 40 Spoke VPCs across 3 Availability Zones (
us-east-1a,1b,1c) using an AWS Transit Gateway. All inter-VPC traffic is routed through a central Inspection VPC containing AWS Network Firewall / GWLB appliances deployed across all 3 AZs. Cross-AZ traffic between instances inus-east-1aandus-east-1bintermittently times out, while same-AZ traffic succeeds. Why, and what single change fixes it? - Engineering Solution:
- By default, Transit Gateway preserves AZ affinity, so forward traffic from
VPC1-AZaenters the firewall inAZa, while return traffic fromVPC2-AZbenters the firewall inAZb(which has no stateful flow record and drops the SYN-ACK). - Fix: Enable Appliance Mode (
ApplianceModeSupport=enable) on the Transit Gateway VPC attachment for the Inspection VPC so TGW hashes both directions of a 5-tuple flow to the same AZ firewall appliance.
- By default, Transit Gateway preserves AZ affinity, so forward traffic from
Scenario 4 (AWS SCS-C02/C03 — Cross-Account KMS Encrypted S3 Access Denied)
- Question: An IAM role
AnalyticsRoleinAccount-Aneeds to read objects from an S3 bucketcorp-datalakeinAccount-B. The objects are encrypted using SSE-KMS with a KMS key inAccount-B. Even after addings3:GetObjectto bothAnalyticsRole's IAM policy andcorp-datalake's S3 Bucket Policy,AnalyticsRolereceivesAccessDeniedrelated to KMS. What two issues could cause this, and how do you fix them? - Engineering Solution:
- Check whether the bucket uses the AWS Managed Key (
aws/s3). AWS Managed Keys have read-only Key Policies and cannot be used for cross-account decryption—you must re-encrypt the objects using a Customer Managed Key (CMK) inAccount-B. - Grant
kms:Decryptandkms:DescribeKeyin BOTH theAccount-AIAM Role's identity policy AND theAccount-BCMK's KMS Key Policy (referencingAnalyticsRoleorAccount-Aroot).
- Check whether the bucket uses the AWS Managed Key (