Master Collection
The complete collection for Networking & Security: 200 questions drawn straight from the source bank. The level pages curate a learning path through it; this page holds everything, so nothing is more than one scroll away.
Explain the 7-Layer OSI Model and the specific layers DevOps engineers interact with daily.
- Application (Layer 7): HTTP, HTTPS, DNS, gRPC, SSH, TLS (Ingress, API Gateways).
- Presentation (Layer 6): TLS/SSL encryption, JSON/Protobuf serialization.
- Session (Layer 5): Sockets, RPC sessions.
- Transport (Layer 4): TCP, UDP, QUIC (NLBs, Port forwarding).
- Network (Layer 3): IP, ICMP, BGP, IPsec (VPCs, Subnets, Routers).
- Data Link (Layer 2): Ethernet, MAC, ARP, VLAN (Switching, CNI virtual bridges).
- Physical (Layer 1): Fiber optics, physical data center cables. (DevOps and Cloud Engineers primarily architect and debug systems at Layers 3, 4, and 7).
Compare TCP vs UDP across connection state, reliability, header overhead, and production use cases.
- TCP (Transmission Control Protocol):
- Connection-Oriented: Establishes connection via 3-Way Handshake (
SYN$\rightarrow$SYN-ACK$\rightarrow$ACK). - Reliable: Guarantees in-order delivery via sequence numbers, acknowledgment packets, and automatic retransmission of lost packets.
- Overhead: 20-byte header; higher latency due to sliding window flow control and congestion management.
- Use Cases: Web applications (HTTP/HTTPS), databases (PostgreSQL/MySQL), SSH, file transfers.
- Connection-Oriented: Establishes connection via 3-Way Handshake (
- UDP (User Datagram Protocol):
- Connectionless: No handshake; "fire-and-forget" datagram delivery.
- Unreliable: No retransmission, no ordering guarantee, no flow control.
- Overhead: Minimal 8-byte header; ultra-low latency.
- Use Cases: DNS lookups, video streaming, VoIP, gaming, and HTTP/3 (QUIC).
- TCP (Transmission Control Protocol):
Walk through the complete step-by-step DNS resolution lifecycle when accessing
api.stripe.com.- Local Caches: Browser cache $\rightarrow$ OS Resolver cache $\rightarrow$ Local router DNS cache.
- Recursive Resolver (e.g., 8.8.8.8 / ISP DNS): If cache misses, the recursive resolver queries:
- Root Name Server (
.): Directs resolver to the.comTop-Level Domain (TLD) name server. - TLD Name Server (
.com): Directs resolver to the Authoritative Name Server forstripe.com. - Authoritative Name Server: Queries zone file and returns the
A(IPv4) orAAAA(IPv6) record (192.0.2.1) along with TTL. - Client Connection: Resolver caches the IP and returns it to the client browser to initiate the TLS handshake.
Compare Public IP vs Private IP (RFC 1918) vs NAT (Network Address Translation).
- Public IP: Globally unique and directly routable on the public internet.
- Private IP (RFC 1918): Reserved for internal networks (
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16); not routable on the public internet. - NAT: Translates multiple private IP addresses to a single public IP address, allowing private instances to initiate outbound internet traffic (e.g., downloading OS patches) while preventing unsolicited incoming internet connections.
Explain CIDR Notation and subnet sizing calculations.
CIDR represents an IP range using base IP and prefix length (
/XXbits for network portion):/24$\rightarrow 2^{(32-24)} = 256$ IP addresses./16$\rightarrow 2^{(32-16)} = 65,536$ IP addresses. (AWS VPC subnets reserve 5 IPs per subnet: Network, VPC Router, DNS, Future use, Broadcast).
Explain the TLS 1.3 Handshake and compare it to TLS 1.2.
- TLS 1.2 (2-RTT Handshake): Required two full network round-trips to negotiate cipher suites and exchange keys before sending application data.
- TLS 1.3 (1-RTT / 0-RTT Handshake):
- ClientHello: Client sends supported ciphers and key share guess in the very first packet.
- ServerHello: Server selects cipher, returns certificate and server key share. Both compute shared secret immediately.
- 0-RTT Resumption: Returning clients resume encrypted sessions in 0 round-trips.
Compare Symmetric vs Asymmetric Encryption.
- Asymmetric Encryption (RSA, ECC): Uses mathematically linked public/private key pairs. Slower; used for digital signatures and TLS key exchange.
- Symmetric Encryption (AES-256, ChaCha20): Uses a single shared key for encryption and decryption. Ultra-fast; used for encrypting bulk data in-transit and at-rest.
Compare Reverse Proxy vs Forward Proxy.
- Forward Proxy: Sits in front of client devices to inspect, filter, or anonymize outbound traffic to the internet (corporate enterprise proxies).
- Reverse Proxy: Sits in front of backend web servers to handle SSL termination, load balancing, compression, caching, and rate limiting (Nginx, Envoy).
What is a Web Application Firewall (WAF)?
A Layer 7 security appliance that inspects HTTP/HTTPS traffic to block OWASP Top 10 web vulnerabilities (SQL Injection, XSS, CSRF, malicious scrapers, rate floods).
What is Zero Trust Architecture (ZTA)?
A cybersecurity model based on "Never trust, always verify". Eliminates the concept of a trusted internal network; every single request is authenticated, authorized, and encrypted (mTLS) regardless of whether it originates inside or outside the VPC.
What is Mutual TLS (mTLS)?
Standard TLS authenticates only the server to the client. In Mutual TLS (mTLS), both client and server present X.509 cryptographic certificates to each other, establishing bidirectional encryption and strict cryptographic identity verification.
What is DevSecOps and the "Shift-Left" philosophy?
Integrating security controls, vulnerability testing, and compliance guardrails into the software delivery pipeline from initial code commit ("Shift-Left") rather than testing security as an afterthought before production.
Compare SAST vs DAST vs IAST vs SCA.
- SAST (Static Analysis): Scans source code for vulnerabilities before compilation (Semgrep, SonarQube).
- DAST (Dynamic Analysis): Attacks running staging applications from the outside (OWASP ZAP).
- IAST (Interactive Analysis): Instruments application runtime from the inside during test execution.
- SCA (Software Composition Analysis): Scans open-source third-party dependencies for known CVEs (Trivy, Snyk).
What is HashiCorp Vault and what core capabilities does it provide?
An identity-based secrets management platform providing secure static and dynamic secret storage, automatic secret rotation, time-to-live (TTL) revocation, encryption as a service (Transit engine), and dynamic PKI X.509 certificate generation.
What is a CVE and CVSS score?
- CVE (Common Vulnerabilities and Exposures): Standardized identifier for a publicly known vulnerability (e.g.,
CVE-2021-44228). - CVSS (Common Vulnerability Scoring System): Severity score from 0.0 to 10.0 (Low: 0.1–3.9, Medium: 4.0–6.9, High: 7.0–8.9, Critical: 9.0–10.0).
- CVE (Common Vulnerabilities and Exposures): Standardized identifier for a publicly known vulnerability (e.g.,
Explain Kubernetes RBAC (Role, ClusterRole, RoleBinding, ClusterRoleBinding).
Role/ClusterRole: Defines permission rules (verbs:get,list,createon resources:pods,secrets). Scoped to a namespace (Role) or entire cluster (ClusterRole).RoleBinding/ClusterRoleBinding: Grants defined permissions to subjects (Users, Groups, ServiceAccounts).
Compare Bastion Hosts vs AWS SSM Session Manager.
- Bastion Host: Exposed instance in a public subnet requiring open inbound port 22 and SSH key management.
- AWS SSM Session Manager (Modern Standard): Agent-driven shell access with zero public IPs, zero open inbound ports (port 22 closed), authenticated via AWS IAM SSO with complete session audit logging.
What is DDoS and how is it mitigated at the edge?
A malicious flood overwhelming server availability using distributed botnets. Mitigated via Cloudflare / AWS Shield, Anycast routing, edge caching, rate limiting, and WAF rules.
What is a Container Escape?
A vulnerability where an attacker running code inside a container exploits a kernel flaw or misconfigured privilege (
--privileged, root execution, host volume mount) to break out of namespaces and gain full root control over the host OS.What is Secret Masking and Secret Scanning in Git?
- Secret Scanning (Gitleaks, Trufflehog): Scans commit diffs for patterns matching AWS keys, SSH private keys, and API tokens, blocking pushes containing exposed secrets.
- Secret Masking: CI/CD feature that replaces detected sensitive variable values with
***in build output logs.
Write a complete Kubernetes Default-Deny NetworkPolicy and explain how whitelisting works.
[ yaml ] apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: default-deny-all namespace: production spec: podSelector: {} # Selects all pods policyTypes: - Ingress - EgressOnce applied, all incoming and outgoing pod traffic is blocked unless explicitly whitelisted by subsequent NetworkPolicy rules.
What is Cilium NetworkPolicy and how does it provide Layer 7 security?
Standard Kubernetes NetworkPolicies only filter on IP and Port (Layer 3/4). Cilium L7 Policy (via eBPF): Enforces rules on HTTP methods, URL paths, and gRPC methods:
[ yaml ] apiVersion: cilium.io/v2 kind: CiliumNetworkPolicy metadata: name: l7-payment-policy spec: endpointSelector: matchLabels: { app: payment } ingress: - fromEndpoints: - matchLabels: { app: frontend } toPorts: - ports: [{ port: "8080", protocol: TCP }] rules: http: - method: "POST" path: "/v1/charge"What is SPIFFE/SPIRE and how does Workload Identity Attestation work?
SPIFFE defines standardized cryptographic identities (
spiffe://prod.example.com/ns/finance/sa/payment-service).- Node & Workload Attestation: SPIRE agent queries the local kernel/kubelet to verify the calling process's UID, container ID, and namespace, issuing short-lived, auto-rotating X.509 SVID certificates into memory without long-lived keys on disk.
How do HashiCorp Vault Dynamic Secrets eliminate static database credentials?
- App authenticates to Vault using its Kubernetes ServiceAccount token.
- App requests dynamic DB credentials from Vault Database Engine.
- Vault dynamically executes
CREATE USER 'v-token-xyz' WITH PASSWORD 'temp_pass' VALID UNTIL '...'in PostgreSQL and returns credentials. - When TTL expires, Vault drops the database user automatically.
What is the Kubernetes External Secrets Operator (ESO)?
Syncs secrets from external secrets managers (AWS Secrets Manager, HashiCorp Vault, Azure Key Vault) into native Kubernetes
Secretobjects, allowing GitOps repositories to commit declarativeExternalSecretmanifests safely without storing plaintext values in Git.Compare OPA Gatekeeper vs Kyverno for Kubernetes Admission Control.
- OPA Gatekeeper: Uses Rego query language. Highly expressive, but steep learning curve.
- Kyverno: Kubernetes-native policy engine written 100% in YAML. Easier to author and test; supports native payload mutation and image verification.
Compare CycloneDX vs SPDX SBOM formats.
- CycloneDX (OWASP): Lightweight, designed specifically for application security, vulnerability identification, and CI/CD automation.
- SPDX (Linux Foundation / ISO standard): Rich standard frequently used for open-source software licensing and intellectual property compliance.
What is Sigstore Cosign and Keyless Container Image Signing?
Cosign cryptographically signs container images using OIDC tokens from GitHub Actions. Fulcio generates short-lived X.509 certificates, and Rekor records signatures in an immutable transparency log, eliminating static PGP private keys.
What is Falco and how does it detect Runtime Threats in Kubernetes?
A CNCF runtime security engine that parses Linux kernel system calls via eBPF probes, triggering instant alerts on suspicious behavior (spawning
/bin/bashin production, modifying/etc/shadow, unauthorized outbound connections).Compare BGP Routing vs Anycast DNS.
- BGP: Core routing protocol of the internet exchanging reachability information between autonomous systems.
- Anycast: Multiple globally distributed servers share the exact same IP address. BGP routes client traffic to the topologically closest server, providing low latency and automatic DDoS absorption.
What is HTTP/3 (QUIC) and why is it superior to HTTP/2?
- HTTP/2 (TCP): Suffers from Head-of-Line Blocking—if one TCP packet is dropped, the entire connection stalls.
- HTTP/3 (UDP with QUIC): Multiplexed streams are independent. Packet loss on Stream A does not stall Stream B; provides 0-RTT connection resumption.
Explain AWS KMS Envelope Encryption.
- KMS Customer Master Key (CMK) generates a plaintext Data Encryption Key (DEK) and an encrypted DEK.
- Application encrypts bulk data locally in memory using the plaintext DEK.
- The plaintext DEK is erased from memory; only the encrypted DEK is stored alongside ciphertext.
What is CIS Benchmark and how do you enforce it in Kubernetes?
The Center for Internet Security (CIS) Benchmark provides prescriptive hardening rules for control plane, worker node, and etcd security, automated via tools like
kube-bench.What is a Zero-Day Vulnerability and how does Defense in Depth mitigate it?
A flaw actively exploited before a patch exists. Mitigated by runtime behavioral anomaly detection (Falco), strict egress NetworkPolicies (blocking reverse shell C2 traffic), and non-root, read-only container filesystems.
What is DNSSEC?
Adds cryptographic digital signatures to DNS records to protect against DNS spoofing, cache poisoning, and man-in-the-middle attacks.
Compare SQL Injection (SQLi) vs Cross-Site Scripting (XSS).
- SQLi: Attacker injects SQL fragments into input fields to manipulate database queries (prevented via prepared statements/parameterized queries).
- XSS: Attacker injects malicious JavaScript into web pages viewed by other users to steal session cookies (prevented via Content Security Policy and input sanitization).
What is a PKI and Certificate Authority (CA)?
A Public Key Infrastructure manages digital certificates. A CA is a trusted entity (Let's Encrypt, DigiCert, Vault CA) that validates identities and issues cryptographically signed X.509 certificates.
Compare AWS GuardDuty vs AWS Security Hub.
- GuardDuty: Intelligent threat detection analyzing CloudTrail, VPC Flow Logs, and EKS audit logs via machine learning.
- Security Hub: Centralized dashboard aggregating compliance posture (CIS, PCI-DSS) and alerts from GuardDuty, Inspector, and Macie.
What is Trivy and what artifact types does it scan?
Scans container images, Git repositories, filesystems, IaC templates (Terraform, Helm), and live Kubernetes clusters for CVE vulnerabilities and misconfigurations.
Compare SSL Termination vs End-to-End Encryption.
- SSL Termination: Load Balancer decrypts HTTPS and forwards unencrypted HTTP to private backend pods.
- End-to-End Encryption: Traffic remains encrypted all the way down to the individual application container process (mandatory for Zero Trust, HIPAA, PCI-DSS).
What is Address Resolution Protocol (ARP) and ARP Poisoning?
Maps Layer 3 IP addresses to Layer 2 physical MAC addresses on a local Ethernet segment. ARP Poisoning occurs when an attacker broadcasts forged ARP messages to link their MAC address with a legitimate IP (gateway), executing Man-in-the-Middle attacks.
What is Maximum Transmission Unit (MTU) and Path MTU Discovery (PMTUD)?
MTU is the largest packet size in bytes that can be transmitted over a network (standard Ethernet MTU: 1500 bytes; Jumbo Frame: 9000 bytes). PMTUD dynamically discovers the minimum MTU along the entire network path to prevent packet fragmentation.
What is TCP SYN Flood and SYN Cookies?
An attacker floods a server with
SYNpackets without sending finalACKpackets, exhausting the server's TCP half-open connection backlog table. SYN Cookies encode connection state into theSYN-ACKsequence number, eliminating memory allocation until the valid clientACKarrives.What is Dynamic Host Configuration Protocol (DHCP)?
A network protocol that dynamically assigns IP addresses, subnet masks, default gateways, and DNS server IPs to client devices on a local network.
What is a Virtual LAN (VLAN)?
A logical broadcast domain created at Layer 2 across physical switches, isolating network traffic between departments or tenants on shared physical cabling.
What is Border Gateway Protocol (BGP)?
The core routing protocol of the internet that exchanges routing and reachability information between Autonomous Systems (AS) using path-vector algorithms.
What is Internet Control Message Protocol (ICMP)?
A network-layer protocol used by network devices to send error messages and operational information (e.g.,
pinguses ICMP Echo Request/Reply;tracerouteuses ICMP Time Exceeded).What is a Subnet Mask and Default Gateway?
- Subnet Mask: Defines which portion of an IP address belongs to the network and which portion belongs to the host (e.g.,
255.255.255.0for/24). - Default Gateway: The router IP address that a host sends packets to when destination IPs lie outside the local subnet.
- Subnet Mask: Defines which portion of an IP address belongs to the network and which portion belongs to the host (e.g.,
What is DNS CNAME vs A vs AAAA vs ALIAS Record?
A: Maps a hostname to an IPv4 address.AAAA: Maps a hostname to an IPv6 address.CNAME: Maps a hostname to another canonical hostname (cannot be placed at root apex domain).ALIAS(Route 53): AWS-specific record mapping root apex domains (example.com) directly to AWS resources (CloudFront, ALB).
What is DNS TTL (Time to Live)?
The duration in seconds that DNS resolvers and client caches are allowed to cache a DNS record before querying authoritative name servers again.
What is OpenID Connect (OIDC) vs OAuth 2.0?
- OAuth 2.0: Framework for authorization (issuing Access Tokens for API access).
- OIDC: Identity layer built on top of OAuth 2.0 (issuing ID Tokens for user authentication).
What is SAML 2.0 (Security Assertion Markup Language)?
An XML-based open standard for exchanging authentication and authorization data between an Identity Provider (IdP) and a Service Provider (SP), heavily used in enterprise SSO.
What is JSON Web Token (JWT) Structure?
Base64URL encoded string with three parts separated by dots: Header (algorithm), Payload (claims:
sub,exp,iss), and Signature (HMAC/RSA hash).What is HashiCorp Vault Transit Secrets Engine?
Provides "Cryptography as a Service"—encrypts and decrypts application data in-transit via API calls without storing the encryption keys on application servers.
What is HashiCorp Vault PKI Secrets Engine?
Dynamically generates X.509 TLS certificates on-demand with short lifespans (e.g., 24 hours), automating internal certificate authority operations.
What is Kyverno Mutation Rule?
Automatically modifies or injects default fields into Kubernetes manifests upon creation (e.g., auto-injecting resource requests, labels, or security contexts).
What is Open Policy Agent (OPA) Rego Language?
A declarative query language designed for expressing complex structural and semantic compliance policies over JSON/YAML data.
What is Trivy Secret Scanning?
Scans container image layers and Git filesystems for exposed private keys, AWS tokens, and Slack API tokens during CI.
What is Gitleaks Pre-Commit Hook?
Blocks developers from executing
git commitif high-entropy secrets or private tokens are detected in staged files locally.What is Trufflehog?
An open-source secret scanning tool that searches Git repositories, S3 buckets, and filesystems for exposed secrets and actively verifies if discovered keys are live against cloud APIs.
Part 2: Kubernetes Security, Zero Trust & PKI (Questions 61–130)
Scenario: Your Kubernetes cluster is hit with a container escape attack. How does Defense-in-Depth contain the blast radius?
- Rootless Execution (
runAsNonRoot: true): Attacker lands on host OS as an unprivileged user (UID 10001). - Read-Only Root Filesystem (
readOnlyRootFilesystem: true): Attacker cannot download or execute malicious scripts in/tmp. - Dropped Capabilities (
capabilities.drop: ["ALL"]): StrippingCAP_SYS_ADMINdisables kernel exploitation vectors. - Sandboxed Runtime (gVisor): Intercepts system calls in userspace sandbox.
- Egress NetworkPolicy: Blocks outbound internet access, preventing reverse shell C2 connections.
- Rootless Execution (
Scenario: Design an automated End-to-End Supply Chain Security Pipeline conforming to SLSA Level 3.
[ code ] [ Developer Commit ] ➔ [ GitHub PR (2-Person Review) ] │ ▼ [ Ephemeral GitHub Actions Build Runner (Isolated) ] ├── 1. Generate CycloneDX SBOM (Syft) ├── 2. Build Container Image (Hermetic Dockerfile) ├── 3. Sign Image & SBOM with Cosign (Fulcio OIDC Keyless) └── 4. Push In-Toto Provenance to Rekor Transparency Log │ ▼ [ OCI Registry (Amazon ECR / GHCR) ] │ ▼ [ Kubernetes Admission Controller (Kyverno) ] └── Policy: Verify Cosign Signature & Provenance before admitting PodScenario: Migrate a legacy application with hardcoded database passwords to HashiCorp Vault Dynamic Secrets with zero downtime.
- Deploy External Secrets Operator (ESO) / Vault Agent Sidecar injecting credentials into an in-memory volume (
/vault/secrets/database.env). - Configure PostgreSQL to accept both legacy static passwords and dynamic Vault-generated user roles concurrently.
- Update application to read dynamic credentials from
/vault/secrets/database.env. - Deploy pods rolling fashion.
- Delete legacy static database user after all old pods terminate.
- Deploy External Secrets Operator (ESO) / Vault Agent Sidecar injecting credentials into an in-memory volume (
How do you mitigate TCP SYN Flood DDoS attacks at the Linux Kernel and Load Balancer layers?
- Enable SYN Cookies:
sysctl -w net.ipv4.tcp_syncookies=1(server encodes state intoSYN-ACKsequence number instead of allocating half-open connection memory). - Tune Kernel Backlog:
sysctl -w net.ipv4.tcp_max_syn_backlog=4096andsysctl -w net.core.somaxconn=4096. - Cloudflare / CloudFront Anycast: Absorbs flood traffic at the global edge network before reaching origin servers.
- Enable SYN Cookies:
How do you implement Zero-Trust Microsegmentation in Kubernetes using Cilium and WireGuard Transparent Encryption?
- Cilium eBPF: Enforces Layer 3 to Layer 7 NetworkPolicies without modifying application pods.
- WireGuard Encryption: Set
encryption.type: wireguardin Cilium Helm values to automatically encrypt all node-to-node and pod-to-pod network traffic in kernel-space with zero proxy sidecar overhead.
Scenario: An audit discovers that engineers have direct SSH access to production EC2 instances. Implement a Zero-Trust Access Gateway with Teleport or AWS SSM.
- Delete security group rules allowing inbound port 22; disable public IPs.
- Deploy AWS SSM Managed Instance Core or Teleport Auth/Proxy service.
- Integrate with corporate Okta / Entra ID SSO with mandatory MFA.
- Engineers authenticate via SSO to receive short-lived SSH certificates (valid for 8 hours); all interactive sessions are recorded for compliance auditing.
What is Secrets Sprawl and how do you design an enterprise remediation pipeline?
- Pre-Commit: Developers install
pre-commitrunninggitleaks protectlocally. - Push Protection: GitHub blocks commits containing detected high-entropy keys.
- Scheduled Scanning: Nightly org-wide Trufflehog scans across all repositories.
- Automated Key Revocation: Trigger automated Lambda functions via webhook to deactivate exposed keys within 60 seconds of commit detection.
- Pre-Commit: Developers install
What is DNS Tunneling / DNS Exfiltration and how is it blocked?
- Attack: Malware encodes stolen sensitive data into DNS subdomains (
stolen_data.evil-domain.com) and queries an attacker-controlled authoritative name server, bypassing standard firewall HTTP filters. - Defense: Enforce AWS Route 53 Resolver DNS Firewall / Pi-hole; detect high volumes of high-entropy subdomain queries and non-standard DNS query types (
TXT,NULL).
- Attack: Malware encodes stolen sensitive data into DNS subdomains (
Scenario: Securely connect two Kubernetes clusters in different AWS VPCs without public internet exposure.
- Connect the two VPCs via AWS Transit Gateway or VPC Peering with non-overlapping CIDR blocks.
- Use Cilium Cluster Mesh or Submariner for cross-cluster pod IP routing and service discovery.
- Enforce mutual TLS (mTLS) across clusters using a shared root SPIFFE/SPIRE trust bundle or Istio Multi-Cluster Mesh.
What is Kubernetes Pod Security Standards (Privileged vs Baseline vs Restricted)?
- Privileged: Unrestricted; permits privileged containers, host networking, hostPath volumes.
- Baseline: Minimally restrictive default preventing known privilege escalation vectors.
- Restricted: Hardened standard mandating non-root execution, dropping all capabilities, read-only root filesystems, and seccomp profiles.
Part 3: Advanced DevSecOps, Cryptography & Threat Detection (Questions 71–200)
What is In-Toto Attestation Framework?
A framework for cryptographically certifying the chain of custody across the entire software supply chain, recording metadata at each step (source commit, build runner, test execution).
What is Rekor Transparency Log?
A public, append-only, tamper-evident cryptographic Merkle tree ledger that records software supply chain metadata and Cosign signatures.
What is Fulcio Certificate Authority?
A free, public Certificate Authority managed by Sigstore that issues short-lived (10-minute) X.509 certificates linked to OIDC identities (GitHub Actions).
What is HashiCorp Vault Shamir's Secret Sharing?
Cryptographic algorithm that splits the master unseal key into $N$ key shares, requiring a minimum threshold of $M$ keys (e.g., 3 of 5) to reconstruct the master key and unseal Vault.
What is Vault Auto-Unseal?
Automates unsealing HashiCorp Vault using cloud KMS services (AWS KMS, Azure Key Vault, Google Cloud KMS) without manual human key entry.
What is Kubernetes KMS v2 Provider?
High-performance encryption at rest API in Kubernetes 1.28+ that encrypts Secret resources in etcd using envelope encryption with cached DEKs.
What is AWS IAM Session Policies?
Advanced policies passed when programmatically assuming an IAM role to further restrict the permissions granted by the role's identity-based policy for that specific session.
What is Confused Deputy Problem in Cloud IAM?
A security issue where an entity that doesn't have permission to perform an action coerces a privileged service into performing it (mitigated using
sts:ExternalIdin IAM trust policies).What is Certificate Transparency (CT)?
An open framework of public, append-only logs recording all issued SSL/TLS certificates, preventing CAs from issuing fraudulent certificates secretly.
What is OCSP Stapling (Online Certificate Status Protocol)?
A mechanism where the web server queries the CA periodically for certificate revocation status and attaches ("staples") the timestamped OCSP response directly to the TLS handshake, improving client speed and privacy.
What is HTTP Strict Transport Security (HSTS)?
A security response header (
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload) informing client browsers to communicate exclusively over HTTPS, blocking SSL stripping attacks.What is Content Security Policy (CSP)?
An HTTP header restricting the resources (scripts, images, stylesheets) that a browser is allowed to load, mitigating Cross-Site Scripting (XSS) and data injection attacks.
What is Cross-Origin Resource Sharing (CORS)?
A browser security mechanism that uses HTTP headers (
Access-Control-Allow-Origin) to allow or restrict resources requested on a web page from a different domain.What is SameSite Cookie Attribute (
Strict,Lax,None)?Protects against Cross-Site Request Forgery (CSRF) by controlling whether cookies are sent with cross-site requests.
What is Linux Capabilities Dropping in Containers?
Explicitly stripping POSIX capabilities (
--cap-drop=ALL) from container processes to prevent kernel exploitation during escapes.What is Linux Seccomp (Secure Computing Mode) BPF Filter?
Using Berkeley Packet Filters to intercept and allow or deny system calls invoked by container processes (e.g., blocking
reboot,sys_chroot).What is AppArmor Profile for Docker?
A Linux kernel security module enforcing filesystem path access restrictions, networking limits, and raw socket creation rules on container processes.
What is SELinux Mandatory Access Control (MAC)?
Assigns security labels (
system_u:system_r:container_t) to processes and files, enforcing strict kernel authorization rules regardless of Linux root permissions.What is eBPF Falco Rule Syntax?
Declarative YAML rules defining matching conditions over kernel syscalls:
[ yaml ] - rule: Unauthorized Shell in Container desc: Detect shell spawned inside production container condition: container and proc.name in (bash, sh, zsh) output: Shell spawned (user=%user.name pod=%k8s.pod.name) priority: WARNINGWhat is BGP Route Hijacking?
An attacker falsely announcing ownership of IP address blocks to upstream BGP routers, intercepting or blackholing internet traffic (mitigated via RPKI).
What is Resource Public Key Infrastructure (RPKI)?
A cryptographic framework securing internet BGP routing by validating that an Autonomous System is authorized to announce specific IP address prefixes.
What is Anycast BGP Routing in Cloudflare?
Multiple globally distributed edge servers announcing the exact same IP address via BGP, allowing client traffic to route to the topologically nearest data center.
What is WireGuard VPN Protocol?
An ultra-fast, modern cryptographic VPN protocol running in Linux kernel-space using state-of-the-art cryptography (Curve25519, ChaCha20-Poly1305, BLAKE2s).
What is IPsec ESP (Encapsulating Security Payload)?
An IPsec protocol providing data confidentiality, origin authentication, and anti-replay protection for IP network packets.
What is IPsec IKEv2 (Internet Key Exchange)?
The protocol used to establish IPsec security associations (SAs), negotiating encryption algorithms and authenticating endpoints.
What is Generic Routing Encapsulation (GRE)?
A tunneling protocol that encapsulates a wide variety of network-layer protocols inside virtual point-to-point links over IP networks.
What is VXLAN (Virtual Extensible LAN)?
An overlay network encapsulation protocol that packages Layer 2 Ethernet frames inside Layer 4 UDP packets (port 4789), scaling network segmentation from 4,096 VLANs to 16 million VXLAN segments.
What is Geneve Protocol in CNI Networking?
Generic Network Virtualization Encapsulation—a flexible network virtualization protocol used by Cilium and OVN to transmit metadata across overlay networks.
What is Proxy Protocol (v1 and v2)?
A protocol prepending a header to TCP connections that conveys client connection information (real client source IP and port) across Layer 4 proxies (NLB/HAProxy) to backend servers.
What is Server Name Indication (SNI)?
An extension to the TLS protocol where the client indicates the hostname it is connecting to in the
ClientHellopacket, allowing reverse proxies to serve multiple SSL certificates on a single IP address.What is TCP Keepalive?
Periodic probe packets sent over idle TCP connections to verify that the remote peer is still alive and prevent intermediate firewalls from dropping idle NAT entries.
What is TCP Window Size and Flow Control?
The amount of data in bytes that a receiver is willing to buffer without receiving an acknowledgment, preventing fast senders from overwhelming slow receivers.
What is TCP Congestion Control (BBR vs CUBIC)?
- CUBIC: Loss-based congestion algorithm; scales back throughput when packet loss occurs.
- BBR (Bottleneck Bandwidth and RTT): Model-based congestion algorithm developed by Google that optimizes throughput and minimizes queue latency regardless of packet loss.
What is Ephemeral Port Exhaustion?
When high volumes of short-lived outbound connections consume all available OS client ports (
1024-65535), causing connection failures (EADDRNOTAVAIL). Prevented by enablingtcp_tw_reuseand using connection pooling.What is TIME_WAIT Socket State in TCP?
The final TCP connection state where the closing socket waits for $2 \times \text{MSL}$ (Maximum Segment Lifetime, usually 60s) to ensure delayed packets in-flight do not interfere with new connections.
What is SO_REUSEPORT Socket Option?
Allows multiple application processes/threads on the same machine to bind to the exact same TCP/UDP port, with the Linux kernel balancing incoming connections across processes in kernel-space.
What is TCP Splicing (Zero-Copy)?
Transferring data directly between two network sockets in kernel space (
splice()syscall) without copying data into userspace memory buffers.What is Network Interface Card (NIC) Offloading (TSO, LRO, Checksum Offload)?
Delegating network packet processing tasks (TCP segmentation, checksum computation) to physical NIC hardware to save host CPU cycles.
What is Single Root I/O Virtualization (SR-IOV)?
A hardware specification allowing a physical PCIe network card to present itself as multiple virtual network cards (Virtual Functions) directly to VMs/containers, bypassing hypervisor latency.
What is Data Plane Development Kit (DPDK)?
A set of libraries that enables fast packet processing by moving network drivers into userspace and using poll-mode drivers, bypassing the Linux kernel network stack.
What is Linux Socket Filtering with eBPF (sockops)?
Accelerates local inter-pod communication by redirecting packets directly from sending sockets to receiving sockets within kernel memory, bypassing the entire TCP/IP network stack.
What is BPF Compiler Collection (BCC)?
A toolkit for authoring eBPF programs in C and Python to execute system analysis and network traffic inspection.
What is Calico Felix Agent?
The daemon running on each node in a Calico CNI cluster that translates declarative Kubernetes NetworkPolicies into Linux iptables rules or eBPF maps.
What is HashiCorp Vault Agent Auto-Auth?
Automates authentication of application workloads to Vault using Kubernetes ServiceAccount tokens or cloud IAM instance profiles.
What is Vault Response Wrapping?
Encrypts a secret into a single-use token with a short TTL (e.g., 5 minutes). If an attacker intercepts the token, attempting to unwrap it alerts the legitimate recipient that the secret was compromised.
What is HashiCorp Vault Lease ID and Revocation?
Every dynamic secret has an associated Lease ID. Applications must renew the lease before expiration; revoking the lease drops the associated database credentials immediately.
What is HashiCorp Vault Performance Replication vs Disaster Recovery Replication?
- Performance Replication: Replicates secrets to secondary clusters for local low-latency reads.
- Disaster Recovery (DR) Replication: Replicates secrets and configuration to a secondary standby cluster that can be promoted to Primary during total outages.
What is HashiCorp Sentinel vs OPA Rego?
- Sentinel: Proprietary HashiCorp policy engine embedded in Terraform Cloud and Vault Enterprise.
- OPA Rego: CNCF open-source, general-purpose policy engine supported across Kubernetes, Terraform, and cloud gateways.
What is Kyverno Generate Rule?
Automatically generates new Kubernetes resources (e.g., generating default NetworkPolicies, ResourceQuotas, or Secret syncs) whenever a new Namespace is created.
What is Kyverno Pod Security Standards Validation?
Pre-configured Kyverno policy packs that enforce CIS Kubernetes Benchmarks and Pod Security Standards in pure YAML.
What is Trivy Operator for Kubernetes?
An in-cluster operator that continuously scans running workloads and container images for vulnerabilities, publishing results as native Kubernetes Custom Resources (
VulnerabilityReport).What is Grype SBOM Vulnerability Matching?
Fast vulnerability scanner developed by Anchore that scans CycloneDX/SPDX SBOM files against upstream CVE databases without pulling container image layers.
What is Semgrep for SAST?
A lightweight, fast static analysis tool matching code patterns using syntax tree queries to find security bugs across multiple languages.
What is CodeQL in GitHub Advanced Security?
A semantic code analysis engine that treats application source code as a queryable database, discovering data flow paths and SQL injection vulnerabilities.
What is Dependabot Security Advisory Alert?
Automated notifications in GitHub alerting developers when a repository dependency has a published CVE, submitting automated PRs with version patches.
What is GitHub Secret Push Protection?
Scans commit payloads during
git pushand blocks the push if high-entropy secrets (AWS keys, Slack tokens) are detected.What is Trufflehog Canary Tokens?
Deceptively placed fake credentials (honeytokens) across infrastructure that trigger high-priority alerts to SecOps if an attacker attempts to use them.
What is Teleport Access Plane?
An identity-native infrastructure access gateway providing zero-trust SSH, Kubernetes, database, and web access with short-lived X.509/SSH certificates and session recording.
What is Cloudflare Zero Trust (Access / Tunnel)?
Replaces legacy corporate VPNs by exposing internal web applications securely through outbound-only encrypted tunnels behind cloud identity providers (Okta, Google Workspace).
What is AWS Verified Access?
Provides secure, VPN-less access to internal corporate web applications using AWS IAM and third-party identity and device health signals.
What is DNS over HTTPS (DoH) vs DNS over TLS (DoT)?
- DoH (Port 443): Encapsulates DNS queries inside standard HTTPS traffic, blending in with web traffic.
- DoT (Port 853): Encrypts DNS queries directly over dedicated TLS connections.
What is DNS Anycast Routing in Root Servers?
The 13 root name server IP addresses (
AthroughM) are distributed across thousands of physical server nodes globally using Anycast BGP routing.What is BGP Multi-Exit Discriminator (MED)?
An optional non-transitive BGP attribute used to suggest to external peers which path is preferred into your Autonomous System when multiple ingress links exist.
What is BGP AS-Path Prepending?
Artificially lengthening the AS-Path of advertised BGP routes by repeating your own AS number, making that path less attractive to external routers to establish primary/backup links.
What is BGP Local Preference?
A BGP attribute configured locally within an Autonomous System to dictate which outbound exit path is preferred for outbound traffic (higher value is preferred).
What is IPsec Dead Peer Detection (DPD)?
Periodic keepalive messages exchanged between IPsec endpoints to verify that the remote VPN gateway is reachable and drop stale security associations during network failures.
What is IPsec Perfect Forward Secrecy (PFS)?
Ensures that the compromise of a long-term private key does not compromise past encrypted session keys, generating unique ephemeral Diffie-Hellman keys for every session.
What is SSL Stripping Attack?
An attacker intercepts the initial unencrypted HTTP connection and prevents the client from upgrading to HTTPS, communicating with the server over HTTPS while proxying plain HTTP to the client (mitigated by HSTS).
What is Certificate Revocation List (CRL)?
A signed, timestamped list published by a Certificate Authority containing serial numbers of certificates that have been revoked before their expiration date.
What is Let's Encrypt ACME Protocol (Automated Certificate Management Environment)?
An automated protocol allowing web servers and cert-manager to request, validate (via HTTP-01 or DNS-01 challenges), and install free X.509 TLS certificates automatically.
What is ACME HTTP-01 vs DNS-01 Challenge?
- HTTP-01: Let's Encrypt verifies domain ownership by fetching a token hosted on
http://<domain>/.well-known/acme-challenge/. - DNS-01: Let's Encrypt verifies ownership by checking for a
_acme-challenge.<domain>TXT record (required for Wildcard certificates).
- HTTP-01: Let's Encrypt verifies domain ownership by fetching a token hosted on
What is Elliptic Curve Cryptography (ECC) vs RSA?
ECC (e.g., ECDSA with Curve25519) provides equivalent cryptographic security to RSA with significantly smaller key sizes (256-bit ECC $\approx$ 3072-bit RSA), resulting in faster TLS handshakes and reduced CPU utilization.
What is ChaCha20-Poly1305 Cipher Suite?
A high-speed symmetric stream cipher with authenticated data, optimized for mobile devices and processors lacking dedicated AES hardware acceleration.
What is Quantum-Resistant Cryptography (Post-Quantum Cryptography)?
Cryptographic algorithms (e.g., Kyber, Dilithium) designed to withstand attacks by future quantum computers executing Shor's algorithm.
What is Diffie-Hellman Ephemeral (DHE / ECDHE)?
Key exchange protocol where client and server exchange public parameters to establish a shared symmetric secret over an untrusted network with Perfect Forward Secrecy.
What is Hardware Security Module (HSM)?
A dedicated physical cryptographic processor that securely generates, stores, and manages digital keys inside tamper-resistant hardware boundaries (FIPS 140-2 Level 3).
What is AWS KMS Multi-Party Computation (MPC)?
Cryptographic protocol allowing multiple parties to compute a function over their inputs while keeping those inputs private, used in digital asset custody.
What is Zero-Knowledge Proof (ZKP)?
A cryptographic method by which one party (prover) can prove to another party (verifier) that a statement is true without revealing any information beyond the validity of the statement.
What is HashiCorp Vault Key-Value (KV) v2 Secrets Engine?
Provides versioned key-value storage with support for historical secret revisions, soft deletion, and undeletion.
What is HashiCorp Vault Cubbyhole Secrets Engine?
An internal storage area scoped strictly to a specific authentication token, completely inaccessible to any other token.
What is HashiCorp Vault Token TTL and Max TTL?
- TTL: The lifespan of a token; can be renewed before expiration.
- Max TTL: The hard upper limit after which a token cannot be renewed and is permanently revoked.
What is HashiCorp Vault Periodic Token?
A long-running service token that can be renewed indefinitely within its specified renewal interval without reaching a Max TTL limit.
What is HashiCorp Vault Entity and Alias?
- Entity: Represents an individual human or machine identity inside Vault.
- Alias: Maps identity records from external authentication backends (GitHub, Okta, Kubernetes) to a single unified Vault Entity.
What is HashiCorp Vault Sentinel Integration?
Enforcing fine-grained organizational policy rules (Role-Governing Policies - RGPs) evaluated before Vault allows secret read/write operations.
What is HashiCorp Vault Transform Secrets Engine?
Provides Format-Preserving Encryption (FPE) and data tokenization, encrypting sensitive fields (credit card numbers) while preserving data formats.
What is HashiCorp Vault KMIP Secrets Engine?
Acts as a centralized Key Management Interoperability Protocol (KMIP) server for managing encryption keys used by VMware vSphere and storage arrays.
What is Kyverno ClusterAdmissionReport?
A Kubernetes CRD generated by Kyverno listing all live resources in the cluster that violate defined governance policies.
What is Open Policy Agent Gatekeeper Constraint?
The declarative instantiation of a
ConstraintTemplatethat targets specific Kubernetes kinds and namespaces with enforcement actions (deny,warn,dryrun).What is Falco gRPC Output?
Streaming runtime threat alerts from Falco directly to centralized SIEM platforms or automated remediation operators via gRPC.
What is Falco Sidekick?
An open-source companion daemon that routes Falco security alerts to over 50 output destinations (Slack, PagerDuty, AWS Lambda, Kafka, Datadog).
What is Kubernetes Security Context
readOnlyRootFilesystem?Enforces that the container's root filesystem is mounted as read-only, preventing attackers from downloading malware or backdoors into
/tmpor/bin.What is Kubernetes Security Context
allowPrivilegeEscalation: false?Prevents child processes from gaining more privileges than their parent process (disables
setuidbinary execution).What is Linux Network Namespace Veth Pair?
Virtual Ethernet cable connecting a container's private network namespace to the host bridge or CNI router.
What is Linux Bridge (
brctl) in Container Networking?A software-based Layer 2 switch created on the host OS to forward Ethernet frames between container veth interfaces and physical NICs.
What is Linux Iptables Connection Tracking (
conntrack)?A kernel subsystem that tracks the state of all active network connections (NEW, ESTABLISHED, RELATED) to implement stateful firewall filtering and NAT.
What is Conntrack Table Exhaustion?
When high concurrency network traffic exceeds the maximum entries in
/proc/sys/net/netfilter/nf_conntrack_max, causing the Linux kernel to drop new packets.What is Linux IP Forwarding (
net.ipv4.ip_forward=1)?A kernel parameter allowing the Linux host to forward network packets between different network interfaces, required for container routing and Kubernetes CNIs.
What is Linux Reverse Path Filtering (
rp_filter)?A kernel security feature that validates whether incoming packets on an interface arrive from an IP that matches the host's return route, mitigating IP spoofing.
What is Linux TCP Fast Open (TFO)?
Enables data exchange directly within the initial TCP
SYNpacket for returning clients with valid TFO cookies, eliminating 1 RTT during connection setup.What is Linux TCP SACK (Selective Acknowledgment)?
Allows a receiver to acknowledge out-of-order packets, enabling the sender to retransmit only the specific missing segments rather than the entire window.
What is Linux Epoll vs Select?
select()scales $O(N)$ with monitored file descriptors;epoll()uses event-driven kernel callbacks scaling $O(1)$, enabling servers to handle hundreds of thousands of concurrent connections.What is Linux Socket SO_LINGER Option?
Dictates whether an application process blocks on
close()to wait for unsent data to transmit, or immediately sends aRSTpacket to terminate the socket.What is TLS 1.3 Key Schedule?
The cryptographic key derivation process utilizing HKDF (HMAC-based Key Derivation Function) to derive handshake and application traffic keys.
What is Encrypted Server Name Indication (ESNI) / Encrypted Client Hello (ECH)?
Encrypts the destination hostname in the TLS
ClientHellopacket, preventing eavesdroppers and ISPs from observing which web domain a user is visiting.What is HTTP/2 HPACK Header Compression?
Compresses HTTP headers using Huffman coding and shared client/server dynamic header tables, eliminating redundant header transmission across requests.
What is HTTP/3 QPACK Header Compression?
A header compression format designed specifically for QUIC over UDP that eliminates Head-of-Line blocking between independent streams.
What is DNS Rebinding Attack?
An attacker tricks a client browser into making requests to an external domain that dynamically changes its DNS
Arecord to127.0.0.1(localhost) or internal private IPs, bypassing the Same-Origin Policy.What is Cross-Site Request Forgery (CSRF)?
Tricking an authenticated user's browser into submitting unauthorized requests to a trusted web application using existing session cookies.
What is Server-Side Request Forgery (SSRF)?
An attacker forces a backend web server to execute network requests to internal systems (e.g., querying
http://169.254.169.254to steal AWS EC2 metadata credentials).What is Command Injection Attack?
An attacker executes arbitrary shell commands on the host OS by injecting malicious characters (
;,&&,|) into un-sanitized user inputs passed to system execution functions.What is Path Traversal Attack (Directory Traversal)?
An attacker uses
../sequences in input fields to access unauthorized files outside the web root directory (e.g.,/etc/passwd).What is Insecure Deserialization?
An attacker passes crafted serialized objects (Python pickle, Java serialization) that execute malicious code during object reconstruction.
What is XML External Entity (XXE) Injection?
Exploiting vulnerable XML parsers that process external entity references to read local server files or execute internal port scans.
What is Man-in-the-Middle (MitM) Attack?
An attacker intercepts and potentially alters communication between two systems without their knowledge (mitigated via mTLS and certificate pinning).
What is SSL Strip / Downgrade Attack?
An attacker intercepts TLS negotiation and forces the connection to fall back to insecure, legacy cipher suites or unencrypted HTTP.
What is Memory Corruption Attack (Buffer Overflow)?
Writing more data into a memory buffer than allocated, overwriting adjacent memory and executing arbitrary payload code (mitigated via ASLR and memory-safe languages like Rust/Go).
What is Address Space Layout Randomization (ASLR)?
A Linux kernel security feature that randomizes the memory addresses of program execution areas (stack, heap, libraries), preventing buffer overflow exploits.
What is Non-Executable Stack (NX / DEP)?
Hardware feature marking data memory pages as non-executable, preventing code injected into buffers from executing.
What is Linux Kernel Module (LKM) Rootkit?
Malicious code loaded directly into kernel memory that hooks system calls and hides processes, files, and network connections from userland monitoring tools.
What is eBPF Rootkit?
Stealthy malware loaded into eBPF kernel hooks that modifies packet payloads or hides processes directly in kernel memory without modifying disk files.
What is Supply Chain Dependency Confusion Attack?
An attacker registers a malicious package on a public repository (npm/PyPI) with the exact same name as an internal private package, tricking CI systems into downloading the public version.
What is Supply Chain Typosquatting Attack?
Registering package names with slight misspellings of popular packages (e.g.,
cross-envvscrossenv) containing embedded cryptominers or backdoors.What is Signed Commits in Git (GPG / SSH / S/MIME)?
Cryptographically signing Git commits using private PGP or SSH keys, verifying that commits originated from an authentic developer identity.
What is Git Branch Protection Rule?
Enforcing mandatory code review approvals, passing CI status checks, signed commits, and linear history before allowing merges to protected branches (
main).What is Two-Person Rule in Production Access?
Requiring two independent authorized individuals to approve any privileged change or access request before execution.
What is Just-In-Time (JIT) Privileged Access?
Granting temporary, time-bounded (e.g., 2-hour) elevated production permissions that automatically expire upon task completion.
What is Honeytoken in DevOps Security?
Fake API tokens or database accounts intentionally planted in source code or repositories that alert SecOps when accessed, detecting attacker presence.
What is Zero Trust Device Posture Checking?
Verifying client device compliance (disk encryption enabled, OS updated, antivirus running) before granting access to corporate resources.
What is Dynamic Data Masking (DDM)?
Real-time obfuscation of sensitive database columns (masking credit card numbers to
XXXX-XXXX-XXXX-1234) based on user querying permissions.What is Enterprise DevSecOps Maturity Framework?
- Level 1 (Reactive): Ad-hoc vulnerability patching after release.
- Level 2 (Shift-Left CI): Automated SAST, SCA, and container image scanning in pipelines.
- Level 3 (Policy as Code): Kyverno/OPA admission controllers, Cosign image signing, and SLSA Level 3 supply chain security.
- Level 4 (Zero Trust & Runtime): SPIFFE/SPIRE workload attestation, mTLS microsegmentation, and Falco eBPF threat detection.
Contribute & Stay Updated
When sharing scripts, include comments explaining the logic and add error handling examples. This helps others learn best practices.
Want to contribute?
We welcome contributions! If you have insights, new tools, or improvements, feel free to submit a pull request.
How to Contribute?
- Read the CONTRIBUTING.md guide.
- Fix errors, add missing topics, or suggest improvements.
- Submit a pull request with your updates.
Stay Updated:
Star the repository to get notified about new updates and additions.
Join discussions in GitHub Issues to suggest improvements.
Connect With Us
- GitHub: @NotHarshhaa
- Blog: ProDevOpsGuy Tech
- Telegram Community: Join Here
The level pages cover the curated path. This page holds the complete raw collection — every question from the source bank, in exam order.