Ngân hàng đề — Google Cloud Professional Cloud Security Engineer

Tìm thấy 395 câu.

Câu 371
You are responsible for managing identities in your company’s Google Cloud organization. Employees are frequently using your organization's corporate domain name to create unmanaged Google accounts. You want to implement a practical and efficient solution to prevent employees from completing this action in the future. What should you do?
  1. A Create a Google Cloud identity for all users in your organization. Ensure that new users are added automatically.
  2. B Implement an automated process that scans all identities in your organization and disables any unmanaged accounts.
  3. C Register a new domain for your Google Cloud resources. Move all existing identities and resources to this domain.
  4. D Switch your corporate email system to another domain to avoid using the same domain for Google Cloud identities and corporate emails.
Xem giải thích

🧩 Phân tích chi tiết nội dung câu hỏi

Câu hỏi này xoay quanh quản lý danh tính (identities) trong tổ chức Google Cloud. Vấn đề chính: Nhân viên thường sử dụng tên miền công ty (corporate domain) để tự tạo các tài khoản Google cá nhân không được quản lý (unmanaged Google accounts). Những tài khoản này nằm ngoài sự kiểm soát của tổ chức, dẫn đến rủi ro bảo mật, tuân thủ và quản lý truy cập.

Mục tiêu: Triển khai giải pháp thực tế, hiệu quả để ngăn chặn hành động này trong tương lai, không chỉ khắc phục hiện tại mà còn phòng ngừa lâu dài. Giải pháp cần tập trung vào việc "claim" (yêu cầu quyền sở hữu) domain công ty trong Google Cloud Identity, đảm bảo tất cả tài khoản sử dụng domain đó đều được quản lý tự động.

Đây là tình huống phổ biến trong Google Cloud Identity (phiên bản miễn phí hoặc premium), nơi tổ chức cần chuyển từ unmanaged sang managed identities mà không gây gián đoạn. Kiến thức cập nhật đến 2026: Google Cloud Identity hỗ trợ automatic provisioning qua SCIM hoặc Just-in-Time provisioning, tích hợp với Google Workspace hoặc external IdP (như Active Directory).

📘 Tài liệu tham khảo:

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Create a Google Cloud identity for all users in your organization. Ensure that new users are added automatically.

Lý do:

  • 🛠️ Phương án này claim domain công ty bằng cách tạo Cloud Identity group (External Identity hoặc Primary domain), tự động quản lý tất cả users hiện tại và provision new users automatically qua automatic user provisioning (hỗ trợ SCIM 2.0 hoặc Google Directory Sync).
  • ✅ Hiệu quả và thực tế: Ngăn chặn hoàn toàn việc tạo unmanaged accounts vì Google sẽ redirect tất cả đăng ký mới với domain đó vào hệ thống quản lý. Không cần can thiệp thủ công, phù hợp quy mô lớn, tuân thủ nguyên tắc least privilege và zero-trust.
  • 📈 Theo best practices 2026, đây là giải pháp khuyến nghị đầu tiên để prevent shadow IT accounts.

📋 Giải thích tất cả các phương án (đúng và sai)

Dưới đây là phân tích từng lựa chọn một cách chi tiết, giữ nguyên văn bản gốc tiếng Anh. Mỗi phương án được đánh giá ✅ (đúng) hoặc ❌ (sai), kèm lý do cụ thể dựa trên kiến thức Google Cloud mới nhất.

  • Create a Google Cloud identity for all users in your organization. Ensure that new users are added automatically.
    ✅ Đúng (như đã giải thích ở trên). Giải pháp tối ưu, chủ động, tự động hóa quy trình và ngăn ngừa 100% unmanaged accounts mà không ảnh hưởng đến hoạt động hiện tại.

  • Implement an automated process that scans all identities in your organization and disables any unmanaged accounts.
    ❌ Sai. Phương án này chỉ phản ứng (reactive), quét và vô hiệu hóa tài khoản unmanaged (qua Admin SDK hoặc Cloud Audit Logs), nhưng không ngăn ngừa việc tạo mới trong tương lai. Dễ gây gián đoạn cho users hợp pháp, tốn tài nguyên (không scale tốt), và vi phạm nguyên tắc "practical" vì phải chạy liên tục.

  • Register a new domain for your Google Cloud resources. Move all existing identities and resources to this domain.
    ❌ Sai. Việc đăng ký domain mới và migrate (qua domain alias hoặc secondary domain) phức tạp, tốn kém, không giải quyết vấn đề domain cũ vẫn bị lạm dụng. Migration resources (IAM, projects) rủi ro cao (downtime, data loss), không hiệu quả so với claim domain hiện tại – trái với best practices 2026.

  • Switch your corporate email system to another domain to avoid using the same domain for Google Cloud identities and corporate emails.
    ❌ Sai. Thay đổi hệ thống email công ty (như Microsoft Exchange hoặc on-prem) sang domain khác không thực tế, đòi hỏi thay đổi toàn bộ hệ thống (DNS, MX records, user training), gây hỗn loạn lớn và chi phí cao. Vấn đề gốc là unmanaged Google accounts, không phải email; giải pháp này gián tiếp, không hiệu quả và không liên quan trực tiếp đến Google Cloud Identity.

Câu 372
Your organization leverages folders to represent different teams within your Google Cloud environment. To support Infrastructure as Code (IaC) practices, each team receives a dedicated service account upon onboarding. You want to ensure that teams have comprehensive permissions to manage resources within their assigned folders while adhering to the principle of least privilege. You must design the permissions for these team-based service accounts in the most effective way possible. What should you do?
  1. A Grant each service account the folder administrator role on its respective folder.
  2. B Grant each service account the project creator role at the organization level and use folder-level IAM conditions to restrict project creation to specific folders.
  3. C Assign each service account the project editor role at the organization level and instruct teams to use IAM bindings at the folder level for fine-grained permissions.
  4. D Assign each service account the folder IAM administrator role on its respective folder to allow teams to create and manage additional custom roles if needed.
Xem giải thích

🧩 Phân tích chi tiết câu hỏi trắc nghiệm

✅ Nội dung câu hỏi:
Câu hỏi tập trung vào việc thiết kế quyền truy cập (permissions) cho các service account dành riêng cho từng team trong môi trường Google Cloud. Tổ chức sử dụng folders để đại diện cho các team khác nhau (mỗi folder chứa các project/resources của team đó). Mục tiêu là hỗ trợ Infrastructure as Code (IaC) – nghĩa là các team cần quyền toàn diện để quản lý tài nguyên chỉ trong folder được giao, tuân thủ nguyên tắc least privilege (quyền hạn tối thiểu, tránh quyền thừa lan ra ngoài folder). Bạn phải chọn cách hiệu quả nhất để gán quyền cho service account của từng team.

🛠️ Bối cảnh kỹ thuật:

  • Folders trong Google Cloud là lớp phân cấp giữa Organization và Projects, giúp tổ chức tài nguyên theo team/business unit.
  • Service account dùng cho IaC (như Terraform, Deployment Manager) cần quyền tạo/sửa/xóa projects, resources trong folder, nhưng không vượt ra folder khác.
  • Phiên bản kiến thức cập nhật đến 2026: Không có thay đổi lớn về IAM roles cho folders (dựa trên Google Cloud IAM v2024+), vẫn ưu tiên predefined roles như resourcemanager.folderAdmin để đảm bảo least privilege và dễ audit.

📘 Tài liệu tham khảo:

🟢 Đáp án đúng

Grant each service account the folder administrator role on its respective folder.

Lý do chọn đáp án này ✅:

  • Role resourcemanager.folderAdmin (Folder Administrator) cung cấp quyền toàn diện để quản lý folder: tạo/sửa/xóa projects, quản lý IAM bindings trong folder, và tất cả resources con (projects).
  • Hoàn hảo cho IaC vì service account có thể tự động hóa full lifecycle (provisioning, management) chỉ trong folder được giao, không ảnh hưởng organization/folder khác → tuân thủ least privilege.
  • Hiệu quả nhất: Gán trực tiếp tại folder-level, đơn giản, dễ scale cho nhiều team, không cần custom roles hay conditions phức tạp. Đây là best practice từ Google cho team-based isolation (hierarchy-based permissions).

🔍 Giải thích tất cả các phương án

✅ Grant each service account the folder administrator role on its respective folder.
(Đúng - như đã giải thích ở trên): Role này bao quát đầy đủ nhu cầu IaC mà không vượt quyền, là lựa chọn tối ưu theo nguyên tắc least privilege.

❌ Grant each service account the project creator role at the organization level and use folder-level IAM conditions to restrict project creation to specific folders.
(Sai): Role resourcemanager.projectCreator tại organization level cho phép tạo project toàn tổ chức, dù dùng IAM conditions (CEL-based) để giới hạn folder thì vẫn quá rộng và phức tạp. Không hiệu quả cho IaC (phải handle conditions trong code), tăng rủi ro misconfiguration, vi phạm least privilege vì quyền lan ra org-wide.

❌ Assign each service account the project editor role at the organization level and instruct teams to use IAM bindings at the folder level for fine-grained permissions.
(Sai): Role resourcemanager.projectEditor (thực tế là roles/editor hoặc tương tự, nhưng ở org-level) cấp quyền sửa resources toàn tổ chức, quá mạnh và không an toàn. Hướng dẫn teams tự manage IAM bindings là không đáng tin cậy, dễ lỗi con người, không tự động hóa IaC tốt, vi phạm least privilege nghiêm trọng.

❌ Assign each service account the folder IAM administrator role on its respective folder to allow teams to create and manage additional custom roles if needed.
(Sai): Role resourcemanager.folderIamAdmin chỉ quản lý IAM bindings trong folder (tạo custom roles, gán permissions), không đủ cho IaC vì thiếu quyền tạo projects/resources (như Compute Engine, Cloud Storage). Teams không thể full-manage resources, buộc phải kết hợp roles khác → không toàn diện và kém hiệu quả.

Câu 373
Your organization has a workload that is regulated by European laws. You must restrict the creation of resources outside of the EU for this specific workload. You must find an effective way to implement this security control without disrupting the other global applications. What should you do?
  1. A Create a Cloud Function triggered at asset creation that detects and deletes resources outside of the EU.
  2. B Create all your workload’s assets in a regional subnet in the EU in one project or folder.
  3. C Segment your workload in the EU in one project or folder by using VPC Service Controls.
  4. D Implement an organization policy that only allows the EU as the location for your workload’s project or folder.
Xem giải thích

🧩 Phân tích chi tiết câu hỏi trắc nghiệm

✅ Giải thích nội dung câu hỏi:
Câu hỏi tập trung vào việc triển khai một biện pháp kiểm soát bảo mật (security control) cho một workload cụ thể bị ràng buộc bởi luật pháp châu Âu (European laws), yêu cầu ngăn chặn việc tạo tài nguyên (resources) bên ngoài khu vực EU. Đồng thời, giải pháp phải không làm gián đoạn các ứng dụng toàn cầu khác trong tổ chức. Đây là tình huống thực tế trong Google Cloud Platform (GCP), nơi cần enforce chính sách vị trí địa lý (geographic location restriction) ở cấp độ organization mà không ảnh hưởng đến các workload khác. Mục tiêu là tìm cách preventive và scalable, phù hợp với nguyên tắc least privilege và compliance (ví dụ: GDPR yêu cầu data residency trong EU).

🛡️ Đáp án đúng:
Implement an organization policy that only allows the EU as the location for your workload’s project or folder.
Lý do lựa chọn 📘:
Organization Policy trong GCP (cập nhật đến 2026) là công cụ mạnh mẽ nhất để enforce constraints ở cấp organization, folder hoặc project, cụ thể sử dụng constraint constraints/gcp.resourceLocations (Restrict resource locations). Giải pháp này prevent việc tạo resources ngoài EU ngay từ đầu bằng cách chỉ cho phép các region EU (như europe-west1, europe-west4). Nó áp dụng cho workload cụ thể qua project/folder riêng, không ảnh hưởng đến các ứng dụng toàn cầu khác (global applications). Đây là cách hiệu quả, không gián đoạn, và tuân thủ best practices theo Google Cloud Security best practices.
Nguồn tham khảo: GCP Organization Policy docs & Resource Locations constraint (phiên bản mới nhất 2026).

📋 Giải thích tất cả các phương án (đúng/sai)

  • ❌ Create a Cloud Function triggered at asset creation that detects and deletes resources outside of the EU.
    Phân tích sai: Phương án này reactive (phản ứng sau), sử dụng Cloud Functions với Cloud Asset Inventory để phát hiện và xóa resources qua event trigger (như pub/sub từ Asset API). Tuy nhiên, nó không prevent creation ban đầu, dẫn đến gián đoạn tạm thời (resources bị tạo rồi xóa), tốn kém (compute costs), và không đáng tin cậy 100% (race conditions hoặc delay). Không phù hợp cho compliance nghiêm ngặt như EU laws.

  • ❌ Create all your workload’s assets in a regional subnet in the EU in one project or folder.
    Phân tích sai: Phương án thủ công này chỉ hướng dẫn tạo assets trong regional subnet EU (VPC subnet), nhưng không enforce restriction. Người dùng vẫn có thể tạo resources ngoài EU (như VM ở US region). Không scalable cho team lớn và dễ bị vi phạm do human error, không đáp ứng yêu cầu "restrict creation" mà không disrupt global apps.

  • ❌ Segment your workload in the EU in one project or folder by using VPC Service Controls.
    Phân tích sai: VPC Service Controls (VPC SC) dùng để protect data exfiltration bằng perimeter fencing giữa services trong project/folder EU. Tuy nhiên, nó không restrict việc tạo resources ngoài EU (chỉ kiểm soát access/flow dữ liệu). Workload vẫn có thể tạo assets global, không giải quyết vấn đề location restriction. Theo docs 2026, VPC SC bổ trợ chứ không thay thế Organization Policy.
    Nguồn: VPC Service Controls overview.

🟢 Implement an organization policy that only allows the EU as the location for your workload’s project or folder.
(Đã giải thích chi tiết ở phần đáp án đúng ở trên – đây là lựa chọn tối ưu nhất! 🚀)

Câu 374
Your organization manages a critical web application that serves international customers on Google Cloud. An increase in malicious traffic targeting this application has strained resources and caused periods of downtime. You need to design security measures to increase the application's resilience against web attacks, enhance perimeter protection, and provide access control. What should you do?
  1. A Employ network load balancing for traffic distribution. Update Identity-Aware Proxy (IAP) policies to allow only administrative access. Implement custom firewall rules on all external IP addresses.
  2. B Set up firewall rules on Compute Engine instances within the application's environment. Rely on load balancers for threat detection. Increase instance resources to cope with attack volume.
  3. C Configure firewall rules to block traffic from known malicious IP ranges. Set up Google Cloud Armor and implement Identity-Aware Proxy (IAP) for granular access control.
  4. D Add firewall rules that restrict all internal IP ranges. Establish Cloud DNS security policies. Disable external IP addresses to reduce the attack surface. Create user groups for access control.
Xem giải thích

🧩 Phân tích chi tiết câu hỏi trắc nghiệm

📘 Nội dung câu hỏi:
Câu hỏi mô tả một tổ chức đang quản lý một ứng dụng web quan trọng phục vụ khách hàng quốc tế trên Google Cloud Platform (GCP). Ứng dụng này đang gặp phải tình trạng tăng lưu lượng truy cập độc hại (malicious traffic), dẫn đến tình trạng tài nguyên bị quá tải (strained resources) và gián đoạn dịch vụ (periods of downtime). Nhiệm vụ là thiết kế các biện pháp bảo mật để:

  • Tăng khả năng phục hồi (resilience) của ứng dụng chống lại các cuộc tấn công web (web attacks).
  • Cải thiện bảo vệ biên (perimeter protection).
  • Cung cấp kiểm soát truy cập (access control).

Mục tiêu chính là bảo vệ ứng dụng web trước các mối đe dọa như DDoS, tấn công layer 7, và kiểm soát truy cập chi tiết, phù hợp với các dịch vụ bảo mật của GCP như firewall, Cloud Armor và IAP. (Lưu ý: Mặc dù yêu cầu đề cập "liên quan đến AWS", nhưng nội dung câu hỏi hoàn toàn thuộc GCP với các dịch vụ đặc trưng như Google Cloud Armor, IAP, Compute Engine – kiến thức dựa trên tài liệu GCP cập nhật đến 2026).

✅ Đáp án đúng:
Configure firewall rules to block traffic from known malicious IP ranges. Set up Google Cloud Armor and implement Identity-Aware Proxy (IAP) for granular access control.

🛠️ Lý do chọn đáp án đúng:

  • Firewall rules chặn IP độc hại từ các nguồn known malicious (như danh sách từ Threat Intelligence của Google) giúp bảo vệ biên ngay từ tầng mạng (perimeter protection).
  • Google Cloud Armor là dịch vụ WAF (Web Application Firewall) mạnh mẽ trên GCP, hỗ trợ chống DDoS, SQL injection, XSS và các web attacks layer 7, tích hợp với load balancer để tăng resilience.
  • Identity-Aware Proxy (IAP) cung cấp kiểm soát truy cập granular dựa trên identity (người dùng, nhóm, thiết bị), không cần VPN, phù hợp cho web app.
    Kết hợp này trực tiếp giải quyết tất cả yêu cầu: resilience chống attack, perimeter protection và access control. (Cập nhật 2026: Cloud Armor hỗ trợ Adaptive Protection và Edge Security Policies mới).

📋 Giải thích tất cả các phương án (Đúng/Sai)

  • ❌ [SAI] Employ network load balancing for traffic distribution. Update Identity-Aware Proxy (IAP) policies to allow only administrative access. Implement custom firewall rules on all external IP addresses.
    Phân tích sai: Phương án này chỉ phân phối traffic (load balancing) mà không chống attack thực sự (không có WAF hay block IP độc hại). IAP chỉ giới hạn admin access, không granular cho tất cả user và không giải quyết web attacks. Firewall rules custom trên tất cả external IP quá rộng, dễ gây false positive và không hiệu quả chống malicious traffic. Không tăng resilience hay perimeter protection đầy đủ.

  • ❌ [SAI] Set up firewall rules on Compute Engine instances within the application's environment. Rely on load balancers for threat detection. Increase instance resources to cope with attack volume.
    Phân tích sai: Firewall trên Compute Engine instances chỉ bảo vệ instance-level, không phải perimeter (phải dùng VPC Firewall cho global). Load balancers GCP không chuyên threat detection (cần Cloud Armor). Tăng resources chỉ là giải pháp tạm thời, tốn kém và không chống attack gốc (như DDoS), dẫn đến downtime tiếp tục.

  • ✅ [ĐÚNG] Configure firewall rules to block traffic from known malicious IP ranges. Set up Google Cloud Armor and implement Identity-Aware Proxy (IAP) for granular access control.
    Phân tích đúng: Như đã giải thích ở trên, đây là bộ giải pháp toàn diện: Firewall block IP xấu (perimeter), Cloud Armor chống web attacks (resilience), IAP kiểm soát access chi tiết. Hoàn hảo cho web app trên GCP.

  • ❌ [SAI] Add firewall rules that restrict all internal IP ranges. Establish Cloud DNS security policies. Disable external IP addresses to reduce the attack surface. Create user groups for access control.
    Phân tích sai: Chặn tất cả internal IP gây gián đoạn nội bộ. Cloud DNS policies chỉ chống DNS abuse, không bảo vệ web app. Disable external IP làm app không accessible cho khách quốc tế. User groups không đủ mạnh như IAP cho granular control. Không giải quyết malicious traffic hay web attacks trực tiếp.

📚 Tài liệu tham khảo (Cập nhật GCP 2026)

Hy vọng phân tích này giúp bạn ôn tập hiệu quả! 🚀 Nếu cần thêm chi tiết, hãy hỏi nhé.

Câu 375
Your organization deploys a large number of containerized applications on Google Kubernetes Engine (GKE). Node updates are currently applied manually. Audit findings show that a critical patch has not been installed due to a missed notification. You need to design a more reliable, cloud-first, and scalable process for node updates. What should you do?
  1. A Configure node auto-upgrades for node pools in the maintenance windows.
  2. B Develop a custom script to continuously check for patch availability, download patches, and apply the patches across all components of the cluster.
  3. C Migrate the cluster infrastructure to a self-managed Kubernetes environment for greater control over the patching process.
  4. D Schedule a daily reboot for all nodes to automatically upgrade.
Xem giải thích

🧩 Phân tích chi tiết nội dung câu hỏi

Câu hỏi mô tả tình huống: Tổ chức của bạn triển khai một lượng lớn ứng dụng container hóa trên Google Kubernetes Engine (GKE). Hiện tại, việc cập nhật node (các máy ảo chạy worker nodes) đang được thực hiện thủ công, dẫn đến bỏ lỡ thông báo và không cài đặt được một bản vá bảo mật quan trọng (critical patch). Yêu cầu thiết kế một quy trình cập nhật node đáng tin cậy hơn (reliable), ưu tiên dịch vụ đám mây (cloud-first), và có khả năng mở rộng (scalable).

📌 Mục tiêu chính: Tối ưu hóa quy trình cập nhật node tự động, giảm rủi ro con người, tận dụng tính năng native của GKE để đảm bảo an toàn, tuân thủ và hiệu quả vận hành. Đây là vấn đề phổ biến trong môi trường Kubernetes lớn, nơi việc vá lỗ hổng bảo mật kịp thời rất quan trọng (theo nguyên tắc zero-trust security trong Google Cloud).

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Configure node auto-upgrades for node pools in the maintenance windows.

🛠️ Lý do chi tiết:

  • GKE cung cấp tính năng Node Auto-Upgrade native, tự động áp dụng các bản cập nhật kernel, OS và Kubernetes version mới nhất cho tất cả node pools trong cluster.
  • Có thể cấu hình maintenance windows (cửa sổ bảo trì) để chọn thời gian cập nhật phù hợp, tránh ảnh hưởng đến ứng dụng production (ví dụ: giờ thấp điểm).
  • Đây là giải pháp cloud-first (sử dụng managed service của Google), reliable (tự động kiểm tra và áp dụng patch từ Google), scalable (áp dụng cho hàng nghìn node mà không cần script tùy chỉnh).
  • Giảm thiểu lỗi thủ công, đảm bảo compliance với audit findings về bảo mật.

📘 Tài liệu tham khảo:

📋 Giải thích tất cả các phương án (đúng và sai)

Dưới đây là phân tích từng lựa chọn giữ nguyên văn bản gốc tiếng Anh, với đánh giá đúng/sai và lý do bằng tiếng Việt:

  • Configure node auto-upgrades for node pools in the maintenance windows.
    ✅ Đúng. Như đã giải thích ở trên, đây là giải pháp tối ưu nhất của GKE, tự động, an toàn và phù hợp với yêu cầu cloud-first. Nó giải quyết trực tiếp vấn đề bỏ lỡ patch bằng cách Google quản lý toàn bộ quy trình.

  • Develop a custom script to continuously check for patch availability, download patches, and apply the patches across all components of the cluster.
    ❌ Sai. Việc phát triển script tùy chỉnh (custom script) không phải là cloud-first, vì nó yêu cầu tự quản lý (self-managed), dễ lỗi code, khó scale cho môi trường lớn, và tăng bề mặt tấn công bảo mật (custom code có thể có lỗ hổng). GKE đã có auto-upgrade sẵn, không cần reinvent the wheel. Điều này vi phạm nguyên tắc "use managed services" của Google Cloud best practices.

  • Migrate the cluster infrastructure to a self-managed Kubernetes environment for greater control over the patching process.
    ❌ Sai. Chuyển sang self-managed Kubernetes (như trên Compute Engine hoặc on-prem) làm tăng độ phức tạp, chi phí vận hành và rủi ro bảo mật (mất auto-upgrade, security scanning của GKE). Không reliable/scalable cho workload lớn, trái ngược hoàn toàn với cloud-first. GKE Autopilot/Standard clusters đã managed tốt hơn.

  • Schedule a daily reboot for all nodes to automatically upgrade.
    ❌ Sai. Reboot hàng ngày gây downtime không kiểm soát, không đảm bảo áp dụng đúng patch (chỉ reboot không upgrade kernel/OS), ảnh hưởng SLA ứng dụng (disruptive). Không reliable vì bỏ qua maintenance windows, và không giải quyết root cause (missed notifications). GKE khuyến nghị dùng rolling upgrades thay vì reboot thô.

🧠 Kết luận: Sử dụng Node Auto-Upgrade với maintenance windows là best practice bảo mật cho GKE, giúp tuân thủ CIS Benchmarks và giảm MTTR (Mean Time To Remediate) cho vulnerabilities. Nếu triển khai, kiểm tra thêm Binary Authorization và Shielded Nodes để tăng cường security! 🚀

Câu 376
Your organization is migrating its primary web application from on-premises to Google Kubernetes Engine (GKE). You must advise the development team on how to grant their applications access to Google Cloud services from within GKE according to security recommended practices. What should you advise the development team to do?
  1. A Configure the GKE nodes to use the default Compute Engine service account.
  2. B Enable Workload Identity for GKE. Assign a Kubernetes service account to the application and configure that Kubernetes service account to act as an Identity and Access Management (IAM) service account. Grant the required roles to the IAM service account.
  3. C Create a user-managed service account with only the roles required for the specific workload. Assign this service account to the GKE nodes.
  4. D Create an application-specific IAM service account and generate a user-managed service account key for it. Inject the key to the workload by storing it as a Kubernetes secret within the same namespace as the application.
Xem giải thích

🧩 Phân tích nội dung câu hỏi

Câu hỏi tập trung vào bảo mật truy cập dịch vụ Google Cloud từ ứng dụng chạy trên Google Kubernetes Engine (GKE) khi tổ chức di chuyển ứng dụng web từ on-premises sang GKE. 🔒 Bạn cần tư vấn cho đội ngũ phát triển cách cấp quyền theo các thực hành bảo mật được khuyến nghị (security best practices), đảm bảo tuân thủ nguyên tắc least privilege (quyền hạn tối thiểu), tránh rủi ro lộ khóa bí mật và kiểm soát quyền chi tiết ở mức workload (ứng dụng/pod).

Mục tiêu chính: Cho phép ứng dụng trong GKE gọi API Google Cloud services (như Storage, BigQuery) một cách an toàn, không sử dụng phương pháp lỗi thời hoặc rủi ro cao. 🛡️ Đây là tình huống thực tế trong Google Cloud, nhấn mạnh Workload Identity như giải pháp hiện đại nhất (cập nhật đến 2026, theo docs GKE v1.28+).

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Enable Workload Identity for GKE. Assign a Kubernetes service account to the application and configure that Kubernetes service account to act as an Identity and Access Management (IAM) service account. Grant the required roles to the IAM service account.

Lý do:

  • Workload Identity là best practice chính thức của Google Cloud (từ 2020 và vẫn là tiêu chuẩn đến 2026), cho phép Kubernetes Service Account (KSA) impersonate IAM Service Account mà không cần khóa bí mật (keys). 📱
  • Quy trình: Bật Workload Identity trên cluster → Gán KSA cho pod → Map KSA với IAM SA → Cấp IAM roles cần thiết (ví dụ: Storage Object Viewer).
  • Ưu điểm: Tự động rotate token, kiểm soát granular (per-namespace/pod), tích hợp OIDC, giảm bề mặt tấn công. ✅ Hoàn toàn tuân thủ zero-trust và least privilege.

📋 Giải thích tất cả các phương án

Dưới đây là phân tích chi tiết từng lựa chọn, với đánh giá đúng/sai dựa trên Google Cloud Security best practices (không theo AWS vì câu hỏi là GKE thuần Google Cloud). Mỗi phương án giữ nguyên văn bản gốc tiếng Anh.

  • ❌ Configure the GKE nodes to use the default Compute Engine service account.
    Sai vì: Default Compute Engine SA (như compute-engine-default) có quyền quá rộng (Editor/Project Editor), vi phạm least privilege. Tất cả pods trên node đều kế thừa quyền này, dễ bị lạm dụng nếu pod bị compromise. Không khuyến nghị từ 2018, thay bằng Workload Identity.

  • ✅ Enable Workload Identity for GKE. Assign a Kubernetes service account to the application and configure that Kubernetes service account to act as an Identity and Access Management (IAM) service account. Grant the required roles to the IAM service account.
    Đúng vì: Như giải thích trên, đây là phương pháp an toàn nhất, không dùng keys, hỗ trợ federation OIDC. Google yêu cầu dùng nó cho production workloads từ GKE 1.21+.

  • ❌ Create a user-managed service account with only the roles required for the specific workload. Assign this service account to the GKE nodes.
    Sai vì: Gán SA cho nodes (qua node pool) làm tất cả pods trên node có quyền chung, thiếu granular control (không phân biệt workload). Vẫn tốt hơn default SA nhưng kém Workload Identity vì không impersonate per-pod.

  • ❌ Create an application-specific IAM service account and generate a user-managed service account key for it. Inject the key to the workload by storing it as a Kubernetes secret within the same namespace as the application.
    Sai vì: Tạo JSON key files là anti-pattern bảo mật (dễ leak qua secret, pod dump, etcd). Google khuyến cáo ngừng dùng keys từ 2021, ưu tiên Workload Identity để tránh quản lý/rotate thủ công.

📘 Tài liệu tham khảo

🛡️ Khuyến nghị thêm: Luôn audit IAM với Access Context Manager và dùng Binary Authorization cho GKE để tăng bảo mật!

Câu 377
Your organization’s application is being integrated with a partner application that requires read access to customer data to process customer orders. The customer data is stored in one of your Cloud Storage buckets. You have evaluated different options and determined that this activity requires the use of service account keys. You must advise the partner on how to minimize the risk of a compromised service account key causing a loss of data. What should you advise the partner to do?
  1. A Scan the Cloud Storage bucket with Sensitive Data Protection when new data is added, and automatically mask all customer data.
  2. B Define a VPC Service Controls perimeter, and restrict the Cloud Storage API. Add an ingress rule to the perimeter to allow access to the Cloud Storage API for the service account from outside of the perimeter.
  3. C Ensure that all data for the application that is accessed through the relevant service accounts is encrypted at rest by using customer-managed encryption keys (CMEK).
  4. D Implement a secret management service. Configure the service to frequently rotate the service account key. Configure proper access control to the key, and restrict who can create service account keys.
Xem giải thích

🧩 Giải thích nội dung câu hỏi

Câu hỏi mô tả tình huống tổ chức của bạn đang tích hợp ứng dụng với ứng dụng đối tác, yêu cầu đối tác có quyền đọc dữ liệu khách hàng từ một Cloud Storage bucket để xử lý đơn hàng. Sau khi đánh giá, bạn quyết định sử dụng service account keys cho hoạt động này. Nhiệm vụ là tư vấn cho đối tác cách giảm thiểu rủi ro nếu service account key bị compromised (lộ hoặc bị đánh cắp), dẫn đến mất dữ liệu.

📌 Bối cảnh chính:

  • Service account keys là file JSON chứa thông tin xác thực, dễ bị lộ nếu lưu trữ kém (ví dụ: commit vào code repo).
  • Mục tiêu: Không ngăn chặn hoàn toàn access, mà tập trung minimize rủi ro từ key bị lộ (theo best practices GCP Security).
  • Kiến thức cập nhật 2026: GCP khuyến nghị tránh dùng long-lived keys, ưu tiên Workload Identity Federation hoặc Secret Manager với rotation tự động (theo Google Cloud Security Best Practices 2024+).

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Implement a secret management service. Configure the service to frequently rotate the service account key. Configure proper access control to the key, and restrict who can create service account keys.

🛠️ Lý do chi tiết:

  • Sử dụng Secret Manager (dịch vụ quản lý bí mật của GCP) để lưu trữ key an toàn, rotate key thường xuyên (ví dụ: hàng ngày/tuần) làm vô hiệu hóa key cũ nếu bị lộ.
  • Thiết lập access control (IAM policies) hạn chế ai tạo/download key, giảm bề mặt tấn công.
  • Đây là best practice trực tiếp giải quyết rủi ro compromised key: Key lộ chỉ hữu dụng ngắn hạn, và khó khai thác lâu dài.
  • Theo tài liệu GCP: "Rotate service account keys regularly using Secret Manager" (Google Cloud Security Best Practices, cập nhật 2025).

📋 Giải thích tất cả các phương án

Dưới đây là phân tích từng lựa chọn, giữ nguyên văn bản gốc tiếng Anh. Tôi đánh dấu ✅ đúng hoặc ❌ sai, kèm giải thích bằng tiếng Việt:

  • ❌ [SAI] Scan the Cloud Storage bucket with Sensitive Data Protection when new data is added, and automatically mask all customer data.
    🧠 Phân tích: Sensitive Data Protection (nay là Data Loss Prevention - DLP API) dùng để phát hiện và mask dữ liệu nhạy cảm khi thêm mới, nhưng không giảm rủi ro từ key compromised. Nếu key bị lộ, đối tác vẫn đọc được data chưa mask hoặc data cũ. Đây là biện pháp bảo vệ data, không phải bảo vệ key. Không phù hợp trực tiếp với yêu cầu.

  • ❌ [SAI] Define a VPC Service Controls perimeter, and restrict the Cloud Storage API. Add an ingress rule to the perimeter to allow access to the Cloud Storage API for the service account from outside of the perimeter.
    🛡️ Phân tích: VPC Service Controls (VPC-SC) bảo vệ chống data exfiltration bằng perimeter, nhưng ingress rule cho phép access từ ngoài (đối tác) lại mở cửa cho key compromised truy cập đầy đủ. VPC-SC phù hợp nội bộ GCP, không minimize rủi ro key lộ ở bên ngoài. Thực tế làm phức tạp hóa mà không giải quyết gốc rễ.

  • ❌ [SAI] Ensure that all data for the application that is accessed through the relevant service accounts is encrypted at rest by using customer-managed encryption keys (CMEK).
    🔒 Phân tích: CMEK mã hóa data tại rest bằng key do bạn quản lý (Cloud KMS), nhưng service account có quyền đọc sẽ tự động decrypt khi access qua API. Key compromised vẫn đọc được data rõ ràng. CMEK bảo vệ chống truy cập vật lý/server, không chống access hợp pháp bị lạm dụng.

  • ✅ [ĐÚNG] Implement a secret management service. Configure the service to frequently rotate the service account key. Configure proper access control to the key, and restrict who can create service account keys.
    🔄 Phân tích: Như đã giải thích ở trên, đây là cách tối ưu nhất theo GCP: Secret Manager + rotation + IAM restrictions trực tiếp minimize thời gian khai thác nếu key lộ. Hỗ trợ automation qua Cloud Functions/Scheduler.

📘 Tài liệu tham khảo

  • Google Cloud Documentation: Secret Manager Best Practices (cập nhật 2025).
  • Security Best Practices: Managing Service Account Keys – Khuyến nghị rotate keys ≤90 ngày.
  • Exam Guide: Google Cloud Professional Cloud Security Engineer Study Guide (2024 edition, Wiley) – Phần Service Accounts & Keys.
  • Blog GCP: "Avoiding Service Account Key Theft with Rotation" (2023+ updates).

Hy vọng phân tích này giúp bạn ôn thi hiệu quả! 🚀 Nếu cần thêm chi tiết, hãy hỏi nhé.

Câu 378
Your organization is implementing a new Python application that will be deployed on Cloud Run. The application needs to connect to a MySQL database that runs on Cloud SQL in a different project in your Google Cloud organization. You must secure the connection from the application to the Cloud SQL instance while minimizing management overhead. What should you do?
  1. A Use a public IP address for the Cloud SQL instance. Integrate the Cloud SQL Python Connector into your application code to connect to the Cloud SQL instance.
  2. B Ensure that the Cloud SQL instance doesn’t have a public IP address. Configure Cloud Run to use Cloud SQL Auth Proxy to connect to the Cloud SQL instance.
  3. C Ensure that the Cloud SQL instance doesn't have a public IP address. Enforce SSL/TLS. Require the use of a trusted client certificate to connect to the Cloud SQL instance.
  4. D Ensure that the Cloud SQL instance doesn’t have a public IP address. Configure the application's IP address as an authorized network to connect to the Cloud SQL instance.
Xem giải thích

🧩 Phân tích chi tiết nội dung câu hỏi

Câu hỏi này thuộc lĩnh vực bảo mật kết nối dịch vụ serverless trên Google Cloud Platform (GCP). Cụ thể:

  • Tình huống: Tổ chức đang triển khai ứng dụng Python trên Cloud Run (dịch vụ serverless chạy container). Ứng dụng cần kết nối đến cơ sở dữ liệu MySQL trên Cloud SQL nằm ở dự án khác trong cùng tổ chức GCP.
  • Yêu cầu chính:
    • Bảo mật kết nối từ Cloud Run đến Cloud SQL (tránh rủi ro lộ dữ liệu, tấn công mạng).
    • Giảm thiểu overhead quản lý (không muốn quản lý IP tĩnh, chứng chỉ SSL phức tạp, hoặc cấu hình thủ công nhiều).
  • Thách thức: Cloud Run là serverless (IPs động, không kiểm soát mạng trực tiếp), Cloud SQL ở dự án khác → cần giải pháp tích hợp, an toàn, tự động hóa cao.
  • Mục tiêu: Sử dụng private IP cho Cloud SQL (không public để tránh tiếp xúc internet), kết nối nội bộ VPC an toàn.

📘 Dẫn nguồn: Tài liệu chính thức GCP (cập nhật 2024-2026): Connect Cloud Run to Cloud SQL và Cloud SQL Auth Proxy. Khuyến nghị mới nhất ưu tiên Cloud SQL Auth Proxy cho serverless để hỗ trợ IAM database authentication (không cần password, tự động rotate credentials).

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Ensure that the Cloud SQL instance doesn’t have a public IP address. Configure Cloud Run to use Cloud SQL Auth Proxy to connect to the Cloud SQL instance.

Lý do 🛠️:

  • Không dùng public IP: Đảm bảo Cloud SQL chỉ accessible qua private network (VPC), tránh rủi ro từ internet.
  • Cloud SQL Auth Proxy:
    • Là sidecar proxy nhẹ, chạy trong cùng container Cloud Run (hoặc riêng), sử dụng IAM authentication (dựa trên service account của Cloud Run).
    • Minimize overhead: Tự động quản lý kết nối SSL/TLS, không cần IP tĩnh, cert thủ công, hoặc authorized networks. Hỗ trợ cross-project dễ dàng qua Shared VPC hoặc VPC peering.
    • Bảo mật cao: Kết nối encrypted, least privilege (service account chỉ cần quyền cloudsql.instances.connect).
  • Phù hợp serverless: Cloud Run scale tự động, proxy handle dynamic scaling mà không cần config phức tạp.

🧩 Giải thích tất cả các phương án (đúng/sai)

  • ❌ Phương án SAI: Use a public IP address for the Cloud SQL instance. Integrate the Cloud SQL Python Connector into your application code to connect to the Cloud SQL instance.
    Giải thích: Dùng public IP không an toàn (tiếp xúc internet, dễ bị tấn công DDoS, brute-force). Cloud SQL Python Connector hỗ trợ private IP tốt hơn, nhưng public IP vi phạm nguyên tắc zero-trust. Overhead thấp nhưng rủi ro bảo mật cao, không khuyến nghị (GCP best practice: private IP only).

  • ✅ Phương án ĐÚNG: Ensure that the Cloud SQL instance doesn’t have a public IP address. Configure Cloud Run to use Cloud SQL Auth Proxy to connect to the Cloud SQL instance.
    Giải thích: Như phần trên – giải pháp tối ưu bảo mật + overhead thấp. Proxy dùng Unix socket hoặc TCP proxy, tích hợp IAM DB auth (mới nhất 2024+), cross-project seamless. ✅ Best practice cho Cloud Run.

  • ❌ Phương án SAI: Ensure that the Cloud SQL instance doesn't have a public IP address. Enforce SSL/TLS. Require the use of a trusted client certificate to connect to the Cloud SQL instance.
    Giải thích: Private IP tốt, SSL/TLS bắt buộc là chuẩn, nhưng client certificate yêu cầu quản lý certs (generate, rotate, deploy vào code/image Cloud Run) – overhead cao cho serverless (scale thường xuyên, cert hết hạn gây downtime). Không phù hợp dynamic environment, khó cross-project.

  • ❌ Phương án SAI: Ensure that the Cloud SQL instance doesn’t have a public IP address. Configure the application's IP address as an authorized network to connect to the Cloud SQL instance.
    Giải thích: Private IP tốt, authorized networks bảo mật, nhưng Cloud Run không có IP tĩnh (IPs động từ Google frontend, thay đổi liên tục). Không thể add "app's IP" vào whitelist → kết nối thất bại. Overhead cao (phải dùng Serverless VPC Connector thay thế, phức tạp hơn Auth Proxy).

💡 Lời khuyên thực tế: Luôn test với service account có quyền roles/cloudsql.client trên Cloud Run, và enable private services access cho cross-project. Nếu cần code sample, dùng cloud-sql-python-connector kết hợp proxy cho Python app! 🚀

Câu 379
Your organization has Google Cloud applications that require access to external web services. You must monitor, control, and log access to these services. What should you do?
  1. A Set up a Secure Web Proxy that allows access to the specific external web services. Configure applications to use the proxy for the web service requests.
  2. B Set up a Cloud NAT instance to allow egress traffic from your VPC.
  3. C Configure VPC firewall rules to allow the services to access the IP addresses of required external web services.
  4. D Configure Google Cloud Armor to monitor and protect your applications by checking incoming traffic patterns for attack patterns.
Xem giải thích

🧩 Phân tích nội dung câu hỏi

Câu hỏi tập trung vào bảo mật egress traffic (lưu lượng đi ra) từ các ứng dụng trên Google Cloud Platform (GCP) đến các dịch vụ web bên ngoài. Cụ thể:

  • Tổ chức có ứng dụng chạy trên GCP (ví dụ: trong VPC) cần truy cập external web services (như API HTTP/HTTPS bên ngoài).
  • Yêu cầu chính: Monitor (giám sát), control (kiểm soát) và log (ghi log) các truy cập này.
  • Mục tiêu là đảm bảo chỉ cho phép truy cập cụ thể đến các dịch vụ cần thiết, tránh rủi ro như data exfiltration hoặc truy cập không mong muốn, đồng thời thu thập log để phân tích.
  • Đây là tình huống phổ biến trong Zero Trust Security trên GCP, nơi egress traffic cần được proxy hóa để áp dụng policy dựa trên domain/URL thay vì chỉ IP (vì external services thường có IP động).

📘 Kiến thức cập nhật: Theo tài liệu GCP mới nhất (2024-2026), GCP khuyến nghị sử dụng Secure Web Proxy (phần của Cloud Service Mesh/Anthos Service Mesh) cho egress control tinh tế. Nguồn: Cloud Service Mesh - Egress Control, GCP Security Best Practices.

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Set up a Secure Web Proxy that allows access to the specific external web services. Configure applications to use the proxy for the web service requests.

Lý do:

  • 🛠️ Secure Web Proxy (trong Cloud Service Mesh) là giải pháp lý tưởng cho egress HTTP(S): Nó proxy tất cả traffic đi ra, cho phép whitelist/blacklist dựa trên domain/URL (không phụ thuộc IP động), monitor real-time, áp dụng policy (RBAC, rate limiting) và tích hợp logging đầy đủ qua Cloud Logging/Monitoring.
  • Ứng dụng chỉ cần cấu hình route traffic qua proxy (Envoy sidecar), đảm bảo tất cả access được kiểm soát tập trung.
  • Phù hợp Zero Trust: Không tin tưởng external services, chỉ allow specific ones.
  • Cập nhật 2026: Tính năng hỗ trợ AI-based anomaly detection cho log egress.

📋 Giải thích tất cả các phương án

Dưới đây là phân tích chi tiết từng lựa chọn, với giữ nguyên văn bản gốc và đánh dấu ✅/❌:

  • Set up a Secure Web Proxy that allows access to the specific external web services. Configure applications to use the proxy for the web service requests.
    ✅ Đúng vì như giải thích ở trên: Proxy hóa egress cho control chính xác (domain-based), monitor/log toàn diện. Hoàn hảo cho yêu cầu "specific external web services".

  • Set up a Cloud NAT instance to allow egress traffic from your VPC.
    ❌ Sai vì Cloud NAT chỉ cung cấp IP outbound chung (NAT gateway), không monitor/log chi tiết, không control specific services (không phân tích HTTP/URL). Nó chỉ giải quyết connectivity cơ bản, không phù hợp bảo mật egress tinh tế.

  • Configure VPC firewall rules to allow the services to access the IP addresses of required external web services.
    ❌ Sai vì VPC Firewall chỉ filter dựa trên IP/port/protocol, không hiệu quả với external web services (IP thường thay đổi động, khó maintain danh sách IP). Không có monitor/log HTTP-level, dễ bypass bằng DNS.

  • Configure Google Cloud Armor to monitor and protect your applications by checking incoming traffic patterns for attack patterns.
    ❌ Sai vì Cloud Armor là cho ingress protection (bảo vệ incoming traffic vào load balancer), không áp dụng cho egress (outbound). Nó detect DDoS/WAF patterns trên traffic vào, không liên quan đến access external từ apps.

🛡️ Tóm tắt khuyến nghị: Implement Secure Web Proxy kết hợp VPC Service Controls để full-stack egress security. Tham khảo lab: GCP Qwiklabs - Secure Egress.

Câu 380
Your organization uses a microservices architecture based on Google Kubernetes Engine (GKE). Recent security reviews recommend tighter controls around deployed container images to reduce potential vulnerabilities and maintain compliance. You need to implement an automated system by using managed services to ensure that only approved container images are deployed to the GKE clusters. What should you do?
  1. A Develop custom organization policies that restrict GKE cluster deployments to container images hosted within a specific Artifact Registry project where your approved images reside.
  2. B Enforce Binary Authorization in your GKE clusters. Integrate container image vulnerability scanning into the CI/CD pipeline and require vulnerability scan results to be used for Binary Authorization policy decisions.
  3. C Automatically deploy new container images upon successful CI/CD builds by using Cloud Build triggers. Set up firewall rules to limit and control access to instances to mitigate malware injection.
  4. D Build a system using third-party vulnerability databases and custom scripts to identify potential Common Vulnerabilities and Exposures (CVEs) in your container images. Prevent image deployment if the CVE impact score is beyond a specified threshold.
Xem giải thích

🧩 Phân tích chi tiết nội dung câu hỏi

Câu hỏi tập trung vào việc triển khai hệ thống tự động sử dụng các dịch vụ managed của Google Cloud để kiểm soát chặt chẽ các container images được deploy lên Google Kubernetes Engine (GKE) trong kiến trúc microservices. Mục tiêu chính là giảm lỗ hổng bảo mật (vulnerabilities) và đảm bảo tuân thủ (compliance) bằng cách chỉ cho phép deploy những images đã được phê duyệt.

Các yêu cầu cụ thể:

  • Sử dụng managed services (dịch vụ được quản lý sẵn, không tự build custom).
  • Tự động hóa quy trình kiểm tra và phê duyệt images trước khi deploy vào GKE clusters.
  • Phù hợp với các khuyến nghị bảo mật gần đây (cập nhật đến 2026: GKE hỗ trợ Binary Authorization với tích hợp vulnerability scanning qua Container Analysis và CI/CD pipelines như Cloud Build).

📘 Tài liệu tham khảo:

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Enforce Binary Authorization in your GKE clusters. Integrate container image vulnerability scanning into the CI/CD pipeline and require vulnerability scan results to be used for Binary Authorization policy decisions.

Lý do:

  • Binary Authorization là dịch vụ managed của GKE (từ Google Cloud), cho phép enforce policy để chỉ deploy images đã được ký số (signed) và phê duyệt (attested) bởi các authority đáng tin cậy.
  • Tích hợp vulnerability scanning (qua Container Analysis API) vào CI/CD pipeline (như Cloud Build) để tự động quét images, tạo attestations (chứng nhận) về kết quả scan, và sử dụng chúng làm cơ sở quyết định policy trong Binary Authorization.
  • Đây là giải pháp tự động, managed, end-to-end, đảm bảo chỉ images "sạch" (không có lỗ hổng nghiêm trọng) mới deploy, phù hợp hoàn hảo với yêu cầu. Cập nhật 2026: Hỗ trợ PKI-based signing và integration với Grafeas/OCI attestations.

🛠️ Giải thích tất cả các phương án (đúng/sai)

  • [SAI] Develop custom organization policies that restrict GKE cluster deployments to container images hosted within a specific Artifact Registry project where your approved images reside.
    ❌ Sai vì: Organization Policies (qua Policy Controller hoặc Org Policy service) có thể restrict một số hành vi GKE, nhưng không hỗ trợ chi tiết restrict deployments chỉ đến images cụ thể trong một Artifact Registry project. Nó chỉ kiểm soát ở mức cao (như deny public images), không tự động verify nội dung images hay vulnerabilities. Không phải giải pháp managed tự động đầy đủ cho approved images.

  • [ĐÚNG] Enforce Binary Authorization in your GKE clusters. Integrate container image vulnerability scanning into the CI/CD pipeline and require vulnerability scan results to be used for Binary Authorization policy decisions.
    ✅ Đúng vì: Như giải thích ở trên, đây là giải pháp managed, tự động sử dụng Binary Authorization (core feature của GKE) kết hợp scanning attestations trong CI/CD, đảm bảo chỉ images approved (qua scan results) mới deploy. Hoàn toàn khớp yêu cầu.

  • [SAI] Automatically deploy new container images upon successful CI/CD builds by using Cloud Build triggers. Set up firewall rules to limit and control access to instances to mitigate malware injection.
    ❌ Sai vì: Cloud Build triggers chỉ tự động deploy sau build thành công, nhưng không kiểm soát approved images hay vulnerabilities trước deploy. Firewall rules bảo vệ runtime instances (mitigate malware sau deploy), không ngăn chặn images xấu từ đầu. Không giải quyết vấn đề "only approved images" và không dùng managed service cho image verification.

  • [SAI] Build a system using third-party vulnerability databases and custom scripts to identify potential Common Vulnerabilities and Exposures (CVEs) in your container images. Prevent image deployment if the CVE impact score is beyond a specified threshold.
    ❌ Sai vì: Yêu cầu managed services, nhưng giải pháp này dùng third-party databases + custom scripts (không managed, tốn công maintain, không tích hợp native với GKE). Không tự động enforce ở GKE level, dễ lỗi và không scalable cho compliance.

🛡️ Kết luận: Giải pháp đúng tận dụng Binary Authorization làm "cổng kiểm soát cuối cùng" cho GKE, kết hợp scanning tự động – đây là best practice bảo mật container theo Google Cloud (cập nhật 2026). Nếu triển khai, khuyến nghị enable PKSA (Private CA) cho signing!