DEVOPS TRIBUNE ENGINEERING INTELLIGENCE FOR THE REAL WORLD
Zero Trust Security Logo
12 ZERO-TRUST & DEVSECOPS THREAT SCENARIOS

Security & Zero Trust Interview Questions and Scenarios

Conquer Staff DevSecOps and Security Architect interviews ($190k–$360k+). Master modern defenses: HashiCorp Vault dynamic credentials, mTLS service mesh workload identity (SPIFFE/SPIRE), eBPF Tetragon runtime security, CIS Kubernetes hardening, and incident response against API credential exfiltration.

DevSecOps, Zero-Trust Architecture, and Runtime Security Scenarios Infographic
SCENARIO 01 • SECURITY ARCHITECTURE

How do you architect a Zero Trust network from scratch? Why is perimeter-based VPN security obsolete?

⚡ 30-Second Elevator Pitch

“Perimeter security operates like a castle with a moat: once an attacker breaches the VPN or compromises an internal host, they have unconstrained lateral network movement across all flat subnets. Zero Trust eliminates implicit network trust entirely. It enforces three core tenets: 1) Verify explicitly (authenticate every request using cryptographic identity, mTLS, and device posture); 2) Use least-privilege access with micro-segmentation; and 3) Assume breach, ensuring lateral movement is impossible because workloads do not trust each other even inside the same VPC.”

S Situation

Following a remote workforce transition, an employee laptop was compromised via phishing. The attacker connected to the internal corporate VPN and mapped internal databases.

T Task

Decommission the legacy open VPN and implement a Zero Trust access architecture with zero lateral movement paths.

A Action

Deployed Cloudflare Access / AWS Verified Access as Identity-Aware Proxies with mandatory FIDO2 hardware MFA. Implemented Cilium eBPF NetworkPolicies inside our Kubernetes clusters enforcing default-deny egress and ingress between namespaces.

R Result

Successfully decommissioned the legacy VPN. Red Team penetration testing demonstrated that a compromised laptop had zero network visibility into unassigned databases.

SCENARIO 02 • SECRETS LIFECYCLE

How do HashiCorp Vault Dynamic Secrets work? Compare Vault Agent Sidecar injection vs. the Secrets Store CSI Driver.

⚡ 30-Second Elevator Pitch

“Static secrets stored in Kubernetes Secrets are only base64-encoded (decode securely with our Base64 Converter) and live forever (eliminate credential leaks with our GitHub Actions Security Best Practices). Vault Dynamic Secrets creates just-in-time credentials on demand: when a microservice boots, Vault communicates with PostgreSQL, generates a random username/password with a 60-minute TTL, and returns it to the pod. Vault automatically revokes credentials when the lease expires. The Secrets Store CSI Driver mounts secrets as local files via kernel tmpfs without running sidecar containers, reducing pod memory overhead and eliminating container startup race conditions.”

Vault Dynamic Database Secret Engine Configuration

hcl • vault-postgres-role.hcl
vault-policy.hcl — HashiCorp Vault Dynamic DB Credentials
cilium-tracing-policy.yaml — eBPF Runtime Process & Network Guardrail
path "database/creds/payment-service-role" {
  capabilities = ["read"]
}

# Vault creates ephemeral DB user on read
creation_statements = [
  "CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}';",
  "GRANT SELECT, INSERT, UPDATE ON ALL TABLES IN SCHEMA public TO \"{{name}}\";"
]
default_ttl = "1h"
max_ttl = "24h"
SCENARIO 03 • WORKLOAD CRYPTOGRAPHIC IDENTITY

What is SPIFFE/SPIRE, and how does it solve workload authentication across multi-cloud environments?

⚡ 30-Second Elevator Pitch

“Traditional systems authenticate workloads using static API tokens or cloud IAM roles (inspect and debug JWT/OIDC claims with our JWT Token Debugger) that do not translate across clouds (practice IAM trust architectures in our AWS Interview Hub and container image signing in ImagePullBackOff Troubleshooting). SPIFFE (Secure Production Identity Framework for Everyone) defines an open standard for workload identity in the form of a SPIFFE ID (`spiffe://devopstribune.com/ns/prod/sa/payment-api`). SPIRE is the reference implementation: a local SPIRE Agent runs on the node, interrogates the kernel to attest the pod's identity, and issues a short-lived, cryptographically signed X.509 SVID certificate valid for 1 hour, enabling mutual TLS authentication across any cloud or data center.”

SCENARIO 04 • RUNTIME KERNEL SECURITY

How does eBPF Tetragon provide real-time runtime security? How does it differ from traditional auditd / Falco?

⚡ 30-Second Elevator Pitch

“Traditional tools like Falco or auditd read system call events from userspace or socket buffers. By the time a userspace daemon detects that an attacker spawned `/bin/bash` or modified `/etc/shadow`, the malicious code has already executed. eBPF Tetragon executes inside the Linux kernel at the kprobe/tracepoint level: it can evaluate security policies in kernel memory and execute synchronous in-kernel enforcement—such as killing the rogue process (`action: Sigkill`) BEFORE the system call completes, achieving true runtime prevention rather than mere alerting.”

Tetragon Security Policy: Block Interactive Shells in Production

yaml • tetragon-block-shells.yaml
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
  name: block-interactive-shells
spec:
  kprobes:
    - call: "sys_execve"
      syscall: true
      args:
        - index: 0
          type: "string"
      selectors:
        - matchArgs:
            - index: 0
              operator: "Prefix"
              values: ["/bin/sh", "/bin/bash"]
          matchNamespaces:
            - "production"
          matchActions:
            - action: Sigkill # Instantly terminate rogue shell in kernel
SCENARIO 05 • SECRETS GOVERNANCE

A developer accidentally committed a production API key to a public GitHub repository. What is your immediate incident response?

⚡ 30-Second Elevator Pitch

“The cardinal rule of compromised credentials is: A committed secret must be treated as permanently compromised immediately. Public GitHub commits are scraped by automated botnets within 30 seconds. First, I immediately revoke the secret at the provider (AWS, Stripe, SendGrid) to invalidate all existing sessions; second, I audit CloudTrail and API access logs for anomalous requests matching the key ID; third, I issue a new rotated secret via Vault; and finally, I use `git-filter-repo` or BFG to purge the secret from Git history before enforcing pre-commit secret scanners.”

S Situation

At 22:30 UTC, an engineer pushed a testing branch to public GitHub containing an active AWS IAM Access Key with Amazon S3 read-write permissions.

T Task

Contain potential data exfiltration, rotate credentials, and verify whether unauthorized parties accessed proprietary S3 buckets.

A Action

Executed `aws iam update-access-key --status Inactive` within 90 seconds. Queried CloudTrail via Athena searching for `accessKeyId = 'AKIA...'` to audit all invocations. Found zero anomalous IP calls. Purged commit history using `git-filter-repo` and installed GitHub Secret Scanning push protection.

R Result

Zero data exfiltration occurred. Enabled mandatory pre-commit hooks (TruffleHog) and GitHub secret push protection organization-wide.

SCENARIO 06 • SUPPLY CHAIN GOVERNANCE

What is a Software Bill of Materials (SBOM), and how does VEX (Vulnerability Exploitability eXchange) resolve scanner noise?

⚡ 30-Second Elevator Pitch

“An SBOM (SPDX or CycloneDX format) is an inventory of every software package, library, and direct/transitive dependency packaged into a container. However, scanners generate massive false alarms on vulnerabilities in libraries that are never actually loaded or callable in production. VEX (Vulnerability Exploitability eXchange) is a machine-readable attestation asserting exploitability status (`not_affected`, `affected`, `fixed`, `under_investigation`). VEX allows security teams to officially suppress un-exploitable CVE alerts in automated compliance gates.”

SCENARIO 07 • IDENTITY ACCESS PROXY

How do Identity-Aware Proxies (IAP) replace traditional corporate VPNs in a BeyondCorp architecture?

⚡ 30-Second Elevator Pitch

“An Identity-Aware Proxy intercepts all incoming HTTP/gRPC requests at the edge and enforces dynamic, context-aware authorization before traffic reaches internal enterprise services. Instead of granting blanket subnet access via a VPN, IAP verifies: 1) User identity via enterprise IdP (Okta/Google Workspace); 2) Mandatory WebAuthn FIDO2 MFA; and 3) Device posture (is the device encrypted, corporate-managed, running up-to-date EDR?). If any condition fails, the request is blocked at the proxy without touching internal infrastructure.”

SCENARIO 08 • KUBERNETES HARDENING

What are the most critical CIS Kubernetes Benchmark controls, and how do you enforce them automatically?

⚡ 30-Second Elevator Pitch

“The CIS Kubernetes Benchmark provides battle-tested security controls across three core areas: 1) Control Plane: disabling anonymous auth on kube-apiserver, enabling audit logging, and securing etcd with TLS client certificates; 2) Worker Nodes: disabling kubelet read-only port 10255 and configuring `--protect-kernel-defaults`; 3) Workload Security: enforcing Pod Security Standards (Restricted profile) via Kyverno or Gatekeeper to reject containers running as root (`runAsNonRoot: true`), privilege escalation (`allowPrivilegeEscalation: false`), and host namespaces.”

SCENARIO 09 • ENCRYPTION & COMPLIANCE

How do you structure AWS KMS Customer Managed Keys (CMKs) to satisfy SOC2 and PCI-DSS separation of duties?

⚡ 30-Second Elevator Pitch

“Compliance frameworks mandate Separation of Duties: the engineers who manage encryption keys must not have access to read the underlying data, and application developers must not have permission to delete keys. We achieve this by defining strict KMS Key Policies: Key Administrators are granted strictly administrative actions (`kms:Create*`, `kms:Put*`, `kms:ScheduleKeyDeletion`) with zero cryptographic decryption privileges (`kms:Decrypt` denied). Workload execution roles are granted strictly `kms:Decrypt` and `kms:GenerateDataKey` with mandatory `aws:SourceVpce` condition keys.”

SCENARIO 10 • CONTAINER RUNTIME DEFENSE

How do attackers achieve container escapes, and what Linux kernel defenses prevent them?

⚡ 30-Second Elevator Pitch

“Container escapes occur through three vectors: 1) Running as `--privileged` or mounting the host Docker socket (`/var/run/docker.sock`), which grants raw kernel device access; 2) Kernel capability abuse (e.g. `CAP_SYS_ADMIN` allowing arbitrary mount pivots); 3) Kernel exploits (Dirty COW, Dirty Pipe) attacking shared host memory. We prevent escapes by enforcing read-only root filesystems, dropping all capabilities (`cap_drop: ALL`), enabling seccomp default syscall filters, and using sandboxed runtimes like gVisor (`runsc`) or Kata Containers for untrusted workloads.”

SCENARIO 11 • THREAT HUNTING INCIDENT

AWS GuardDuty alerts to anomalous API calls originating from an unknown IP using an EC2 instance role. How do you respond?

⚡ 30-Second Elevator Pitch

“This indicates that the EC2 Instance Metadata Service (IMDS) was compromised (typically via an SSRF vulnerability) and the temporary instance profile credentials were stolen. First, I immediately attach an inline deny policy to the IAM role blocking all API calls from outside our VPC IP range (`NotIpAddress: aws:SourceIp`); second, I isolate the compromised EC2 instance by swapping its Security Group to a quarantine group with zero ingress/egress; third, I snapshot its EBS volumes for forensics; and finally, I mandate IMDSv2 (`HttpTokens: required`) host-wide.”

S Situation

At 03:12 UTC, AWS GuardDuty triggered a High Severity alert: `UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS` for an application instance profile.

T Task

Neutralize the stolen session tokens immediately, isolate the compromised server, and eliminate the exfiltration vector.

A Action

Attached an IAM revocation policy invalidating all STS credentials issued before the incident timestamp. Replaced the instance's Security Group with a quarantine isolation group. Discovered an unvalidated SSRF endpoint in an image processing module that allowed external requests to `169.254.169.254`. Patched the code and enforced IMDSv2 with hop count 1.

R Result

Stolen credentials were neutralized within 4 minutes of the alert. Zero customer data was breached, and IMDSv2 was enforced across all 400 EC2 instances via SCP.

SCENARIO 12 • CI/CD DEFENSE

What is Poisoned Pipeline Execution (PPE), and how do you protect production infrastructure from malicious PR workflows?

⚡ 30-Second Elevator Pitch

“Poisoned Pipeline Execution occurs when an attacker submits a Pull Request modifying `.github/workflows/deploy.yml` or build scripts to execute malicious commands using the CI runner's privileged permissions. We defend against PPE using four architectural boundaries: 1) Never run build workflows on untrusted PRs with write credentials; 2) Enforce Branch Protection requiring code owner approval before any workflow file changes can execute; 3) Use dedicated, network-isolated ephemeral runners for public/untrusted PRs; and 4) Pin all external GitHub Actions to immutable commit SHAs rather than mutable tags.”

Companion Technical Guides & Hands-On Tools

Cross-reference these production scenarios with our architectural playbooks and interactive engineering utilities.

Security Guide

GitHub Actions Security Best Practices

Harden workflows against script injection, poisoned PRs, and secret leaks.

Cloud Governance

AWS IAM Identity Center Guide

Implement enterprise SSO, multi-account permission sets, and least-privilege IAM.

Interactive Utility

JWT Token Debugger & Verifier

Decode, inspect, and verify OIDC tokens and claims directly in your browser.

Interview Track

AWS Cloud & Platform Interview Hub

12 scenarios covering IAM trust boundaries, VPC transit routing, and S3 security.