Q1
When designing AWS ECS/EKS CI/CD pipelines, why does OIDC Federation (GitHub Actions -> STS) eliminate static AWS_ACCESS_KEY_ID secrets completely?
Long-lived IAM access keys leaked from CI secrets stay valid until rotated. OIDC exchanges short-lived signed CI job tokens (scoped to exact Git repo + main branch) for temporary 15-minute STS credentials with zero stored keys.
Q2
In an AWS Application Load Balancer + Auto Scaling Group blue/green deploy, how does Deregistration Delay (Connection Draining) prevent dropped API requests?
When an instance leaves the Target Group, ALB stops routing *new* connections immediately yet waits up to deregistration_delay seconds so active in-flight HTTP requests finish cleanly before termination.
Q3
Why should EKS pods run Kubernetes IRSA / EKS Pod Identity rather than attaching broad permissions to the underlying EC2 Node Instance Profile?
Attaching S3/DynamoDB policies to the EC2 Node IAM Role grants *every single pod* on that worker node identical access (violating least privilege and exposing SSRF risks). IRSA binds distinct IAM roles strictly per Pod ServiceAccount.
Q4
Why can Terraform fail on aws_ecs_service + aws_alb_target_group updates if desired_count fights Auto Scaling?
Once AWS Application Auto Scaling scales an ECS service up from 2 to 8 tasks, the next terraform apply tries resetting desired_count back down to 2 unless lifecycle { ignore_changes = [desired_count] } is configured.
Q5
How do SSM Parameter Store vs AWS Secrets Manager differ for DevOps pipelines?
SSM Parameter Store handles hierarchical config/encrypted parameters free for standard keys, while Secrets Manager adds built-in automated rotation Lambdas for RDS/Redshift database passwords and cross-account sharing.
Q6
Why can pulling Docker images from public Docker Hub inside AWS CodeBuild / EKS trigger sudden 429 Too Many Requests failures?
Docker Hub strictly throttles anonymous/NAT-shared IPs. Mirror base images inside Amazon ECR Public / Private Pull-Through Cache so builds pull fast over private AWS traffic with zero rate limits.
Q7
When monitoring AWS DevOps apps, how do CloudWatch Logs Metric Filters + Composite Alarms cut alert fatigue?
Single noisy CPU alerts wake engineers unnecessarily during deployments. Composite Alarms fire PagerDuty ONLY when multiple signals align (e.g., 5xx Error Rate > 2% AND TargetResponseTime > 2s).
Q8
Why does terraform destroy fail to delete an AWS VPC when Lambdas or Load Balancers previously ran inside it?
Orphaned Lambda Hyperplane ENIs, active Target Group ENIs, or non-empty S3 buckets with versioning block VPC/IGW deletion—clean dependent ENIs and enable force_destroy only carefully on non-critical buckets.
Q9
In AWS CodePipeline / Jenkins + Docker, why does caching Docker layers (--cache-from / BuildKit registry cache) slash CI deploy times by 70%?
Ephemeral build agents start with empty /var/lib/docker every run; pulling remote ECR layer cache lets BuildKit skip unmodified npm ci / Maven dependency layers automatically.
Q10
How does AWS Security Hub / Inspector + Trivy in CI enforce Shift-Left DevSecOps before containers hit EKS?
CI scans Dockerfile, Terraform (tfsec/Checkov), and built images via Trivy failing builds on CRITICAL CVEs immediately, while AWS Inspector continuously monitors running ECR digests afterwards for newly disclosed zero-days.