# Cloud Identity & Secrets (DevOps) > IRSA (AWS), Workload Identity (GCP), Managed Identity (Azure), External Secrets Operator, รูปแบบ Vault - 22 คำถามสัมภาษณ์ - Mid-Level - [คำถามสัมภาษณ์: DevOps](https://sharpskill.dev/th/technologies/devops/interview-questions.md) ## 1. ข้อดีหลักของการใช้ IRSA (IAM Roles for Service Accounts) ใน EKS cluster แทนการใช้ access key AWS แบบ static คืออะไร? **คำตอบ** IRSA ช่วยให้ pod Kubernetes สามารถสวมบทบาท IAM role ชั่วคราวผ่าน OIDC ได้ ขจัดความจำเป็นในการเก็บ credential แบบ static ใน Secret สิทธิ์ถูกจำกัดตาม ServiceAccount ซึ่งเป็นไปตามหลักการ least privilege Credential จะถูกหมุนเวียนโดยอัตโนมัติโดย AWS STS (Security Token Service) ลดพื้นที่การโจมตีหาก pod ถูกบุกรุก ## 2. ใน GCP Workload Identity Federation อนุญาตให้ pod GKE เข้าถึงทรัพยากร Google Cloud ได้อย่างไร? **คำตอบ** Workload Identity ผูก Kubernetes ServiceAccount เข้ากับ Google Service Account ผ่าน annotation Pod จะได้รับ OIDC token จาก Kubernetes API server ซึ่งจะถูกแลกเปลี่ยนเป็น GCP token ผ่าน metadata server วิธีนี้หลีกเลี่ยงการเก็บ JSON key ของ service account แบบ static ใน cluster ตามโมเดล zero-trust และช่วยให้สามารถหมุนเวียน credential อัตโนมัติได้ ## 3. ความแตกต่างหลักระหว่าง Azure Managed Identity และ service principal แบบดั้งเดิมคืออะไร? **คำตอบ** Managed Identity ขจัดความจำเป็นในการจัดการ credential ด้วยตนเอง (client secret, certificate) Azure จัดการวงจรชีวิตของ credential รวมถึงการหมุนเวียนโดยอัตโนมัติ Managed Identity สามารถเป็น system-assigned (ผูกกับวงจรชีวิตของทรัพยากร) หรือ user-assigned (เป็นอิสระ) ลดความเสี่ยงในการรั่วไหลของ secret เมื่อเทียบกับ service principal ที่ต้องเก็บและหมุนเวียน secret ด้วยตนเอง ## มีอีก 19 คำถาม - External Secrets Operator ซิงโครไนซ์ secret จาก provider ภายนอก (AWS Secrets Manager, Vault) ไปยัง Kubernetes อย่างไร? - บทบาทของ mutating admission webhook controller ในการ inject secret อัตโนมัติผ่าน Vault Agent Injector คืออะไร? สมัครฟรี: https://sharpskill.dev/th/login ## หัวข้อสัมภาษณ์ DevOps อื่นๆ - [การควบคุมเวอร์ชัน & Git](https://sharpskill.dev/th/technologies/devops/interview-questions/version-control-git.md): 20 คำถาม, Junior - [พื้นฐาน Linux](https://sharpskill.dev/th/technologies/devops/interview-questions/linux-fundamentals.md): 22 คำถาม, Junior - [Shell Scripting & Bash](https://sharpskill.dev/th/technologies/devops/interview-questions/shell-scripting-bash.md): 20 คำถาม, Mid-Level - [พื้นฐาน Networking](https://sharpskill.dev/th/technologies/devops/interview-questions/networking-basics.md): 22 คำถาม, Junior - [พื้นฐาน Docker](https://sharpskill.dev/th/technologies/devops/interview-questions/docker-fundamentals.md): 24 คำถาม, Junior - [พื้นฐาน CI/CD](https://sharpskill.dev/th/technologies/devops/interview-questions/ci-cd-fundamentals.md): 18 คำถาม, Junior - [GitHub Actions](https://sharpskill.dev/th/technologies/devops/interview-questions/github-actions.md): 22 คำถาม, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/th/technologies/devops/interview-questions/gitlab-ci.md): 22 คำถาม, Mid-Level - [Jenkins](https://sharpskill.dev/th/technologies/devops/interview-questions/jenkins.md): 22 คำถาม, Mid-Level - [พื้นฐาน Kubernetes](https://sharpskill.dev/th/technologies/devops/interview-questions/kubernetes-basics.md): 26 คำถาม, Mid-Level - [Networking ของ Kubernetes](https://sharpskill.dev/th/technologies/devops/interview-questions/kubernetes-networking.md): 24 คำถาม, Mid-Level - [Kubernetes ขั้นสูง](https://sharpskill.dev/th/technologies/devops/interview-questions/kubernetes-advanced.md): 24 คำถาม, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/th/technologies/devops/interview-questions/ingress-api-gateway.md): 20 คำถาม, Mid-Level - [พื้นฐาน Terraform](https://sharpskill.dev/th/technologies/devops/interview-questions/terraform-basics.md): 22 คำถาม, Mid-Level - [Terraform ขั้นสูง](https://sharpskill.dev/th/technologies/devops/interview-questions/terraform-advanced.md): 22 คำถาม, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/th/technologies/devops/interview-questions/ansible-configuration.md): 20 คำถาม, Mid-Level - [พื้นฐาน AWS](https://sharpskill.dev/th/technologies/devops/interview-questions/aws-essentials.md): 26 คำถาม, Mid-Level - [พื้นฐาน Azure](https://sharpskill.dev/th/technologies/devops/interview-questions/azure-fundamentals.md): 22 คำถาม, Mid-Level - [พื้นฐาน GCP](https://sharpskill.dev/th/technologies/devops/interview-questions/gcp-fundamentals.md): 22 คำถาม, Mid-Level - [การมอนิเตอร์และ Prometheus](https://sharpskill.dev/th/technologies/devops/interview-questions/monitoring-prometheus.md): 22 คำถาม, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/th/technologies/devops/interview-questions/logging-elk.md): 20 คำถาม, Mid-Level - [Alerting & Incident Response](https://sharpskill.dev/th/technologies/devops/interview-questions/alerting-incident-response.md): 20 คำถาม, Mid-Level - [ความปลอดภัยของ CI/CD Pipeline](https://sharpskill.dev/th/technologies/devops/interview-questions/cicd-pipeline-security.md): 20 คำถาม, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/th/technologies/devops/interview-questions/helm-kubernetes.md): 20 คำถาม, Mid-Level - [ความปลอดภัย Runtime และ Cluster](https://sharpskill.dev/th/technologies/devops/interview-questions/runtime-cluster-security.md): 24 คำถาม, Senior - [Container Supply Chain Security](https://sharpskill.dev/th/technologies/devops/interview-questions/container-supply-chain.md): 22 คำถาม, Senior - [Service Mesh & Istio](https://sharpskill.dev/th/technologies/devops/interview-questions/service-mesh-istio.md): 24 คำถาม, Senior - [GitOps & ArgoCD](https://sharpskill.dev/th/technologies/devops/interview-questions/gitops-argocd.md): 22 คำถาม, Senior - [Progressive Delivery](https://sharpskill.dev/th/technologies/devops/interview-questions/progressive-delivery.md): 20 คำถาม, Senior - [Observability แบบกระจาย](https://sharpskill.dev/th/technologies/devops/interview-questions/observability-distributed.md): 22 คำถาม, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/th/technologies/devops/interview-questions/disaster-recovery.md): 20 คำถาม, Senior - [การปรับแต่งประสิทธิภาพ](https://sharpskill.dev/th/technologies/devops/interview-questions/performance-optimization.md): 22 คำถาม, Senior - [การเพิ่มประสิทธิภาพต้นทุน Cloud](https://sharpskill.dev/th/technologies/devops/interview-questions/infrastructure-cost.md): 20 คำถาม, Senior - [หลักการ SRE](https://sharpskill.dev/th/technologies/devops/interview-questions/sre-principles.md): 24 คำถาม, Senior - [Chaos Engineering](https://sharpskill.dev/th/technologies/devops/interview-questions/chaos-engineering.md): 20 คำถาม, Senior - [Platform Engineering](https://sharpskill.dev/th/technologies/devops/interview-questions/platform-engineering.md): 22 คำถาม, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/th/technologies/devops/interview-questions/cloud-identity-secrets