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

Tìm thấy 395 câu.

Câu 141
You are on your company's development team. You noticed that your web application hosted in staging on GKE dynamically includes user data in web pages without first properly validating the inputted data. This could allow an attacker to execute gibberish commands and display arbitrary content in a victim user's browser in a production environment.
How should you prevent and fix this vulnerability?
  1. A Use Cloud IAP based on IP address or end-user device attributes to prevent and fix the vulnerability.
  2. B Set up an HTTPS load balancer, and then use Cloud Armor for the production environment to prevent the potential XSS attack.
  3. C Use Web Security Scanner to validate the usage of an outdated library in the code, and then use a secured version of the included library.
  4. D Use Web Security Scanner in staging to simulate an XSS injection attack, and then use a templating system that supports contextual auto-escaping.
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ả một lỗ hổng bảo mật XSS (Cross-Site Scripting) trong ứng dụng web được host trên GKE (Google Kubernetes Engine) môi trường staging. Cụ thể:

  • Ứng dụng động chèn dữ liệu người dùng (user data) trực tiếp vào trang web mà không validate đúng cách.
  • Điều này cho phép attacker tiêm mã độc (injection) như "gibberish commands" để thực thi trong browser của nạn nhân, dẫn đến hiển thị nội dung tùy ý hoặc tấn công khác ở môi trường production.
  • Mục tiêu: Tìm cách ngăn chặn (prevent) và sửa chữa (fix) lỗ hổng này một cách hiệu quả nhất, tập trung vào phát hiện sớm và khắc phục gốc rễ trong code.
    📘 Bối cảnh: Đây là vấn đề phổ biến trong phát triển web (OWASP Top 10), nơi input không được escape đúng ngữ cảnh (contextual escaping), và cần công cụ GCP chuyên dụng để scan + fix code-level.

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

Đáp án đúng: Use Web Security Scanner in staging to simulate an XSS injection attack, and then use a templating system that supports contextual auto-escaping.

Lý do:
🛠️ Web Security Scanner (một dịch vụ của Google Cloud) được thiết kế để tự động scan ứng dụng web trong staging, mô phỏng các cuộc tấn công XSS thực tế (như injection payloads), giúp phát hiện lỗ hổng mà không cần can thiệp thủ công.
🛠️ Sau khi detect, sử dụng templating system với contextual auto-escaping (ví dụ: Jinja2 trong App Engine/Python, hoặc các thư viện tương tự như Angular templates) là cách fix gốc rễ bằng cách tự động escape output dựa trên ngữ cảnh (HTML, JS, URL...), ngăn chặn injection hiệu quả 100%.
✅ Đây là quy trình best practice theo Google Cloud Security: Scan sớm ở staging + fix code, không chỉ mitigate mà còn loại bỏ vulnerability (theo cập nhật 2024-2026, Web Security Scanner hỗ trợ OWASP ZAP integration cho scan sâu hơn).

Tài liệu tham khảo:

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

  • ❌ Phương án SAI: Use Cloud IAP based on IP address or end-user device attributes to prevent and fix the vulnerability.
    Lý do sai: Cloud IAP (Identity-Aware Proxy) chỉ dùng để kiểm soát truy cập dựa trên identity/IP/device (như block IP xấu), không scan hay fix lỗ hổng XSS trong code. Nó chỉ mitigate access chứ không ngăn injection sau khi user đã truy cập app. Không giải quyết gốc rễ validation.

  • ❌ Phương án SAI: Set up an HTTPS load balancer, and then use Cloud Armor for the production environment to prevent the potential XSS attack.
    Lý do sai: HTTPS Load Balancer + Cloud Armor (WAF - Web Application Firewall) có thể block signatures XSS ở production (như rate limiting, regex rules), nhưng chỉ là mitigation runtime, không fix code vulnerability. Scan ở production muộn, rủi ro cao, và không thay đổi logic include user data thiếu validate.

  • ❌ Phương án SAI: Use Web Security Scanner to validate the usage of an outdated library in the code, and then use a secured version of the included library.
    Lý do sai: Web Security Scanner đúng là công cụ scan tốt, nhưng vấn đề KHÔNG phải outdated library (câu hỏi nhấn mạnh "dynamically includes user data without properly validating"). Fix bằng update library chỉ áp dụng cho vuln như prototype pollution, không giải quyết XSS do thiếu escaping/validation input.

  • ✅ Phương án ĐÚNG: Use Web Security Scanner in staging to simulate an XSS injection attack, and then use a templating system that supports contextual auto-escaping.
    Lý do đúng (tóm tắt): Kết hợp scan chủ động XSS ở staging (early detection) + fix code bằng auto-escaping (prevent gốc rễ), phù hợp hoàn hảo với mô tả vấn đề. Đây là khuyến nghị chính thức từ Google cho GKE apps (cập nhật 2026: hỗ trợ containerized scan tự động).

🛡️ Kết luận: Quy trình này đảm bảo shift-left security (phát hiện sớm), giảm rủi ro production xuống mức thấp nhất! Nếu cần demo code fix, hãy hỏi thêm.

Câu 142
You are part of a security team that wants to ensure that a Cloud Storage bucket in Project A can only be readable from Project B. You also want to ensure that data in the Cloud Storage bucket cannot be accessed from or copied to Cloud Storage buckets outside the network, even if the user has the correct credentials.
What should you do?
  1. A Enable VPC Service Controls, create a perimeter with Project A and B, and include Cloud Storage service.
  2. B Enable Domain Restricted Sharing Organization Policy and Bucket Policy Only on the Cloud Storage bucket.
  3. C Enable Private Access in Project A and B networks with strict firewall rules to allow communication between the networks.
  4. D Enable VPC Peering between Project A and B networks with strict firewall rules to allow communication between the networks.
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 Google Cloud Platform (GCP), tập trung vào việc kiểm soát truy cập và ngăn chặn rò rỉ dữ liệu (data exfiltration) cho Cloud Storage bucket trong Project A. Yêu cầu cụ thể:

  • Bucket chỉ có thể đọc được từ Project B (đảm bảo truy cập nội bộ giữa hai project).
  • Không cho phép dữ liệu trong bucket bị truy cập hoặc sao chép ra các Cloud Storage bucket bên ngoài mạng, ngay cả khi người dùng có credentials hợp lệ (tức là phải chặn cả truy cập API ngoài perimeter).

📌 Vấn đề cốt lõi: Đây là kịch bản bảo vệ dữ liệu nhạy cảm khỏi rò rỉ qua các kênh API công khai của Cloud Storage, sử dụng cơ chế perimeter-based security thay vì chỉ dựa vào IAM/credentials. Kiến thức cập nhật đến 2026 (theo tài liệu GCP mới nhất): VPC Service Controls (VPC SC) là giải pháp chuẩn cho trường hợp này, hỗ trợ dry-run mode và integration với Organization Policies.

Nguồn tham khảo:

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

Đáp án đúng: Enable VPC Service Controls, create a perimeter with Project A and B, and include Cloud Storage service.

Lý do chi tiết 🛠️:

  • VPC Service Controls (VPC SC) tạo ra một perimeter bảo mật (service perimeter) bao gồm Project A và Project B, chỉ cho phép Cloud Storage API hoạt động bên trong perimeter.
  • Bucket ở Project A chỉ đọc được từ Project B (vì cả hai trong cùng perimeter, traffic nội bộ được phép).
  • Ngăn chặn data exfiltration: Dữ liệu không thể copy ra bucket ngoài perimeter (ngay cả với credentials đúng), vì VPC SC block API calls từ ngoài vào (như gsutil cp hoặc API requests).
  • Đây là giải pháp chính thức của GCP cho contextual access control và zero-trust data protection, hỗ trợ multi-project perimeters từ 2023+.

📋 Giải thích tất cả các phương án (đúng/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. Tôi đánh dấu ✅ cho đúng và ❌ cho sai, kèm lý do cụ thể dựa trên tính năng GCP mới nhất.

  • Enable VPC Service Controls, create a perimeter with Project A and B, and include Cloud Storage service.
    ✅ Đúng hoàn toàn 🏆. Như đã giải thích ở trên, VPC SC là công cụ duy nhất đáp ứng cả hai yêu cầu: Cho phép đọc nội bộ (A↔B) và block exfiltration ra ngoài qua API, ngay cả credentials hợp lệ. Không ảnh hưởng performance nếu dùng ingress/egress rules đúng.

  • Enable Domain Restricted Sharing Organization Policy and Bucket Policy Only on the Cloud Storage bucket.
    ❌ Sai 🚫.

    • Domain Restricted Sharing (Org Policy) chỉ hạn chế chia sẻ resource với domain ngoài tổ chức, không block data copy qua API hoặc truy cập từ project khác trong cùng org.
    • Bucket Policy Only là tính năng AWS S3, không tồn tại ở GCP Cloud Storage (GCP dùng IAM policies hoặc Uniform Bucket-Level Access). Không ngăn exfiltration nếu credentials cho phép gsutil cp ra bucket ngoài.
  • Enable Private Access in Project A and B networks with strict firewall rules to allow communication between the networks.
    ❌ Sai 🚫.

    • Private Google Access (nay gọi Private Services Access) chỉ private hóa traffic đến Google APIs qua VPC, không tạo perimeter chặn data exfiltration.
    • Firewall rules chỉ kiểm soát network layer, không block API calls trực tiếp từ client có credentials (ví dụ: từ máy ngoài VPC). Dữ liệu vẫn có thể copy ra bucket ngoài qua public API.
  • Enable VPC Peering between Project A and B networks with strict firewall rules to allow communication between the networks.
    ❌ Sai 🚫.

    • VPC Peering chỉ kết nối network layer giữa hai project, cho phép traffic nội bộ nhưng không kiểm soát service-level APIs như Cloud Storage.
    • Firewall rules giới hạn ports/protocols, nhưng không ngăn exfiltration qua public endpoints (credentials vẫn cho phép copy data ra ngoài). VPC SC mới là lớp trên để bảo vệ service perimeter.

Kết luận 🎯: VPC Service Controls là lựa chọn tối ưu và an toàn nhất theo best practices GCP 2026. Nếu triển khai, khuyến nghị test ở dry-run mode trước để tránh downtime!

Câu 143
You are responsible for protecting highly sensitive data in BigQuery. Your operations teams need access to this data, but given privacy regulations, you want to ensure that they cannot read the sensitive fields such as email addresses and first names. These specific sensitive fields should only be available on a need-to- know basis to the Human Resources team. What should you do?
  1. A Perform data masking with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.
  2. B Perform data redaction with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.
  3. C Perform data inspection with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.
  4. D Perform tokenization for Pseudonymization with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.
Xem giải thích

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

Câu hỏi tập trung vào việc bảo vệ dữ liệu nhạy cảm cao trong BigQuery (một dịch vụ kho dữ liệu lớn của Google Cloud). Bạn chịu trách nhiệm bảo mật, trong khi các đội ngũ vận hành (operations teams) cần truy cập dữ liệu này để làm việc hàng ngày. Tuy nhiên, do quy định bảo mật (privacy regulations), họ không được phép đọc các trường nhạy cảm như địa chỉ email và tên đầu tiên (first names). Những trường này chỉ dành cho đội ngũ Nhân sự (Human Resources team) trên cơ sở "need-to-know" (chỉ khi thực sự cần thiết).

Mục tiêu chính:

  • Cho phép truy cập dữ liệu tổng thể cho operations teams mà không lộ thông tin nhạy cảm.
  • Giữ khả năng truy xuất dữ liệu gốc cho HR khi cần.
  • Sử dụng Cloud Data Loss Prevention (DLP) API để xử lý dữ liệu, sau đó lưu trữ lại vào BigQuery.

🛠️ Yêu cầu giải pháp: Áp dụng kỹ thuật de-identification (giả danh hóa) phù hợp từ DLP API, đảm bảo dữ liệu vẫn hữu ích cho phân tích nhưng an toàn.

✅ Đáp án đúng

Perform tokenization for Pseudonymization with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.

Lý do lựa chọn:

  • Tokenization for Pseudonymization là kỹ thuật lý tưởng vì nó thay thế dữ liệu nhạy cảm bằng các token (chuỗi ngẫu nhiên hoặc mã hóa), giữ nguyên định dạng và độ dài dữ liệu (ví dụ: email "user@example.com" thành "token123_xyz"). Operations teams có thể truy cập bảng BigQuery mà không đọc được thông tin thực, nhưng HR có thể de-tokenize (giải mã) qua DLP API khi cần (sử dụng keyset hoặc reidentification).
  • Điều này tuân thủ nguyên tắc pseudonymization (GDPR-compliant), dữ liệu vẫn hữu ích cho query/join mà không mất tính toàn vẹn.
  • Theo tài liệu GCP DLP mới nhất (cập nhật 2024-2026), tokenization hỗ trợ persistent tokens lưu trữ trong BigQuery, với reidentification endpoint cho authorized users.

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

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

  • [SAI] Perform data masking with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.
    ❌ Sai vì: Masking chỉ che một phần dữ liệu (ví dụ: email thành "u***@e*****.com"), vẫn lộ một phần thông tin nhạy cảm (như domain hoặc ký tự đầu). Không phù hợp với "cannot read sensitive fields" vì operations teams vẫn suy luận được. Không hỗ trợ reidentification dễ dàng cho HR, làm mất tính linh hoạt need-to-know.

  • [SAI] Perform data redaction with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.
    ❌ Sai vì: Redaction xóa hoàn toàn hoặc thay bằng placeholder rỗng (ví dụ: email thành "[REDACTED]"), làm dữ liệu không còn hữu ích cho phân tích/query (phá vỡ join, aggregation). Operations teams không thể làm việc hiệu quả, và không thể khôi phục cho HR – vi phạm yêu cầu truy cập dữ liệu tổng thể.

  • [SAI] Perform data inspection with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.
    ❌ Sai vì: Inspection chỉ quét và phát hiện dữ liệu nhạy cảm (infoTypes như EMAIL_ADDRESS), không thay đổi dữ liệu gốc. Dữ liệu lưu vào BigQuery vẫn giữ nguyên nhạy cảm, operations teams vẫn đọc được email/first names – không bảo vệ gì cả, chỉ là bước đầu tiên chứ không phải giải pháp de-identification.

  • [ĐÚNG] Perform tokenization for Pseudonymization with the Cloud Data Loss Prevention API, and store that data in BigQuery for later use.
    ✅ Đúng như đã giải thích ở trên: Hoàn hảo cho bảo mật need-to-know, hỗ trợ reidentification.

🛠️ Lời khuyên triển khai: Sử dụng DLP jobs trên BigQuery tables với primitiveTransformation: replaceWithToken, kết hợp IAM roles (DLP Reidentifier role cho HR). Test với sample data để đảm bảo compliance!

Câu 144
You are a Security Administrator at your organization. You need to restrict service account creation capability within production environments. You want to accomplish this centrally across the organization. What should you do?
  1. A Use Identity and Access Management (IAM) to restrict access of all users and service accounts that have access to the production environment.
  2. B Use organization policy constraints/iam.disableServiceAccountKeyCreation boolean to disable the creation of new service accounts.
  3. C Use organization policy constraints/iam.disableServiceAccountKeyUpload boolean to disable the creation of new service accounts.
  4. D Use organization policy constraints/iam.disableServiceAccountCreation boolean to disable the creation of new service accounts.
Xem giải thích

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

Câu hỏi này thuộc lĩnh vực bảo mật IAM (Identity and Access Management) trên Google Cloud Platform (GCP) (không phải AWS như đề cập, vì các organization policy constraints được mô tả là đặc trưng của GCP). Bạn là Security Administrator cần hạn chế khả năng tạo service account trong môi trường production, và thực hiện tập trung toàn tổ chức (centrally across the organization).

Mục tiêu chính:

  • Ngăn chặn việc tạo service account mới ở production để giảm rủi ro bảo mật (service account có thể bị lạm dụng nếu tạo không kiểm soát).
  • Sử dụng Organization Policy để áp dụng chính sách toàn tổ chức, thay vì IAM roles cá nhân hóa. 📘 Kiến thức cập nhật: Theo tài liệu GCP mới nhất (2024-2026), Organization Policies hỗ trợ các constraint boolean như iam.disableServiceAccountCreation để kiểm soát service accounts tại cấp tổ chức/folder/project (xem Google Cloud IAM Organization Policies và Service Account Constraints).

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

Đáp án đúng: Use organization policy constraints/iam.disableServiceAccountCreation boolean to disable the creation of new service accounts.

Lý do 🛠️:

  • Constraint iam.disableServiceAccountCreation chính xác ngăn chặn việc tạo service account mới ở cấp tổ chức, folder hoặc project (bao gồm production environments).
  • Nó áp dụng tập trung (centrally) qua Organization Policy Service, không cần cấu hình IAM riêng lẻ cho từng user/service account.
  • Hiệu quả cao trong production để tuân thủ least privilege principle, giảm bề mặt tấn công.

📋 Giải thích chi tiết 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:

  • ❌ Use Identity and Access Management (IAM) to restrict access of all users and service accounts that have access to the production environment.
    Sai vì: IAM chỉ kiểm soát quyền truy cập (roles/permissions) cho user/service account đã tồn tại, không ngăn tạo service account mới. Không thực hiện "centrally across the organization" mà phải cấu hình thủ công từng project/user, không hiệu quả và dễ bỏ sót.

  • ❌ Use organization policy constraints/iam.disableServiceAccountKeyCreation boolean to disable the creation of new service accounts.
    Sai vì: Constraint iam.disableServiceAccountKeyCreation chỉ ngăn tạo key cho service account đã tồn tại, không chặn tạo service account mới. Nó tập trung vào key management, không khớp yêu cầu "restrict service account creation".

  • ❌ Use organization policy constraints/iam.disableServiceAccountKeyUpload boolean to disable the creation of new service accounts.
    Sai vì: Constraint iam.disableServiceAccountKeyUpload ngăn upload key do user quản lý (user-managed keys) cho service account, không liên quan đến việc tạo service account mới. Sai hoàn toàn về chức năng.

  • ✅ Use organization policy constraints/iam.disableServiceAccountCreation boolean to disable the creation of new service accounts.
    Đúng vì: Như đã giải thích ở trên, đây là constraint chính xác và trực tiếp để disable creation của service account mới, áp dụng centrally qua Organization Policies.

📚 Tài liệu tham khảo

Hy vọng phân tích này giúp bạn ôn thi chứng chỉ hiệu quả! 🚀

Câu 145
You are the project owner for a regulated workload that runs in a project you own and manage as an Identity and Access Management (IAM) admin. For an upcoming audit, you need to provide access reviews evidence. Which tool should you use?
  1. A Policy Troubleshooter
  2. B Policy Analyzer
  3. C IAM Recommender
  4. D Policy Simulator
Xem giải thích

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

Câu hỏi mô tả tình huống bạn là chủ sở hữu dự án (project owner) cho một workload được quy định nghiêm ngặt (regulated workload), chạy trong một dự án mà bạn sở hữu và quản lý với vai trò quản trị viên IAM (Identity and Access Management admin). Để chuẩn bị cho một cuộc kiểm toán sắp tới (upcoming audit), bạn cần cung cấp bằng chứng đánh giá quyền truy cập (access reviews evidence). Câu hỏi yêu cầu chọn công cụ phù hợp nhất để thực hiện việc này.
🛠️ Mục tiêu chính: Tìm công cụ giúp phân tích và tạo báo cáo về quyền truy cập IAM hiện tại, hỗ trợ kiểm toán bằng cách chứng minh ai có quyền gì, đảm bảo tuân thủ quy định (compliance). Đây là tính năng cốt lõi trong Google Cloud IAM (không phải AWS, dù có thuật ngữ IAM tương đồng), tập trung vào việc audit access reviews theo các best practices mới nhất đến năm 2026.

✅ Đáp án đúng: Policy Analyzer

Lý do lựa chọn:
Policy Analyzer là công cụ chuyên dụng để phân tích chính sách IAM trên toàn dự án, tổ chức hoặc tài nguyên cụ thể, giúp tạo báo cáo chi tiết về ai (principals) có quyền gì (permissions) tại một thời điểm nhất định. Nó lý tưởng cho access reviews trong audit vì:

  • Hỗ trợ export báo cáo CSV/JSON làm bằng chứng kiểm toán.
  • Phân tích lịch sử (historical analysis) lên đến 400 ngày (cập nhật 2025-2026).
  • Phát hiện quyền thừa (over-privileged), phù hợp regulated workloads.
    📘 Nguồn: Google Cloud IAM Policy Analyzer Overview (cập nhật Q1 2026).

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

  • Policy Troubleshooter
    ❌ Sai: Công cụ này dùng để khắc phục sự cố (troubleshoot) quyền bị từ chối (denied access) bằng cách kiểm tra chính sách cụ thể cho một principal và resource. Nó không tạo báo cáo tổng quát cho access reviews hay audit, chỉ tập trung debug realtime chứ không phải evidence lịch sử.

  • Policy Analyzer
    ✅ Đúng: Như đã giải thích ở trên, đây là lựa chọn tối ưu cho việc tạo bằng chứng access reviews với phân tích sâu, báo cáo exportable, hỗ trợ audit regulated workloads.

  • IAM Recommender
    ❌ Sai: Công cụ này gợi ý tối ưu hóa (recommendations) quyền IAM dựa trên hành vi sử dụng, như xóa quyền không dùng. Nó không cung cấp báo cáo audit chi tiết hay evidence cho access reviews, chỉ là advisory tool chứ không phải analyzer.

  • Policy Simulator
    ❌ Sai: Dùng để mô phỏng (simulate) hiệu quả chính sách IAM trước khi áp dụng, kiểm tra "what-if" scenarios. Không hỗ trợ phân tích hiện tại/thực tế hay tạo evidence cho audit, chỉ là preview tool.

🛠️ Lưu ý bổ sung: Trong Google Cloud (phiên bản 2026), Policy Analyzer tích hợp với Access Context Manager và Organization Policies để tăng cường compliance. Nếu cần audit sâu hơn, kết hợp với Cloud Audit Logs. Khuyến nghị chạy Policy Analyzer định kỳ cho regulated workloads!
📘 Tài liệu tham khảo thêm:

Câu 146
Your organization has implemented synchronization and SAML federation between Cloud Identity and Microsoft Active Directory. You want to reduce the risk of
Google Cloud user accounts being compromised. What should you do?
  1. A Create a Cloud Identity password policy with strong password settings, and configure 2-Step Verification with security keys in the Google Admin console.
  2. B Create a Cloud Identity password policy with strong password settings, and configure 2-Step Verification with verification codes via text or phone call in the Google Admin console.
  3. C Create an Active Directory domain password policy with strong password settings, and configure post-SSO (single sign-on) 2-Step Verification with security keys in the Google Admin console.
  4. D Create an Active Directory domain password policy with strong password settings, and configure post-SSO (single sign-on) 2-Step Verification with verification codes via text or phone call in the Google Admin console.
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ả tình huống tổ chức đã triển khai đồng bộ hóa (synchronization) và liên kết SAML federation giữa Cloud Identity (dịch vụ quản lý danh tính của Google Cloud) và Microsoft Active Directory (AD). Mục tiêu là giảm rủi ro tài khoản người dùng Google Cloud bị xâm phạm (compromised).

🛠️ Giải thích kỹ lưỡng:

  • Synchronization: Đồng bộ thuộc tính người dùng (như tên, email) từ AD sang Cloud Identity, nhưng không đồng bộ mật khẩu.
  • SAML federation: Người dùng xác thực qua AD (IdP - Identity Provider bên ngoài), sau đó truy cập Google Cloud qua SSO (Single Sign-On). Do đó, mật khẩu không được lưu trữ hoặc kiểm soát bởi Cloud Identity/Google, mà hoàn toàn phụ thuộc vào AD.
  • Rủi ro chính: Nếu AD bị hack, tài khoản Google Cloud có thể bị ảnh hưởng gián tiếp. Giải pháp cần tập trung vào password policy ở AD (nơi kiểm soát mật khẩu thực tế) và 2-Step Verification (2SV) post-SSO (thêm lớp bảo vệ sau khi SSO thành công, để chống phishing).
  • Yêu cầu tốt nhất: Sử dụng security keys (như FIDO2 hardware keys) cho 2SV vì chúng chống phishing hiệu quả nhất, theo khuyến nghị bảo mật mới nhất của Google (cập nhật đến 2026).

✅ Đáp án đúng:
Create an Active Directory domain password policy with strong password settings, and configure post-SSO (single sign-on) 2-Step Verification with security keys in the Google Admin console.

Lý do chọn đáp án đúng (🟢):

  • Password policy ở AD: Đúng vì với SAML federation, mật khẩu được quản lý bởi AD, không phải Cloud Identity. Áp dụng chính sách mật khẩu mạnh (strong settings: độ dài, phức tạp, hết hạn) ở AD sẽ bảo vệ nguồn gốc xác thực.
  • Post-SSO 2SV với security keys: Sau SSO (từ AD), Google Admin console cho phép bật 2SV bổ sung ở Google side. Security keys (như YubiKey) là phương pháp phishing-resistant cao nhất, tuân thủ nguyên tắc "passwordless" và Zero Trust của Google (cập nhật 2024-2026). Giảm rủi ro MITM/phishing lên đến 99.9%.

🔍 Giải thích tất cả các phương án (theo thứ tự A-B-C-D)

  • Create a Cloud Identity password policy with strong password settings, and configure 2-Step Verification with security keys in the Google Admin console.
    ❌ Sai vì: Password policy ở Cloud Identity không áp dụng được với SAML federation (người dùng không có mật khẩu Google). Đồng bộ chỉ thuộc tính, không mật khẩu. Dù 2SV security keys tốt, nhưng bỏ qua AD làm giải pháp không toàn diện.

  • Create a Cloud Identity password policy with strong password settings, and configure 2-Step Verification with verification codes via text or phone call in the Google Admin console.
    ❌ Sai vì: Tương tự phương án A, password policy Cloud Identity vô hiệu. 2SV qua SMS/call yếu bảo mật (dễ SIM-swapping, phishing), Google đã deprecated khuyến khích từ 2023 và cấm ở một số chính sách cao cấp đến 2026.

  • Create an Active Directory domain password policy with strong password settings, and configure post-SSO (single sign-on) 2-Step Verification with security keys in the Google Admin console.
    ✅ Đúng (như đã giải thích ở trên): Kết hợp hoàn hảo password mạnh ở AD + 2SV post-SSO phishing-resistant.

  • Create an Active Directory domain password policy with strong password settings, and configure post-SSO (single sign-on) 2-Step Verification with verification codes via text or phone call in the Google Admin console.
    ❌ Sai vì: Password policy AD đúng, nhưng 2SV SMS/call không an toàn (rủi ro cao từ tấn công xã hội, theo NIST SP 800-63B và Google best practices 2026). Nên ưu tiên security keys thay vì.

📘 Tài liệu tham khảo (cập nhật mới nhất đến 2026)

🛡️ Kết luận: Giải pháp này tuân thủ Zero Trust model của Google Cloud, bảo vệ toàn diện từ IdP đến service provider!

Câu 147
You have been tasked with implementing external web application protection against common web application attacks for a public application on Google Cloud.
You want to validate these policy changes before they are enforced. What service should you use?
  1. A Google Cloud Armor's preconfigured rules in preview mode
  2. B Prepopulated VPC firewall rules in monitor mode
  3. C The inherent protections of Google Front End (GFE)
  4. D Cloud Load Balancing firewall rules
  5. E VPC Service Controls in dry run mode
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 bảo vệ ứng dụng web bên ngoài (external web application protection) chống lại các tấn công web phổ biến (common web application attacks) cho một ứng dụng công khai (public application) trên Google Cloud.
📌 Yêu cầu chính: Bạn cần xác thực (validate) các thay đổi policy trước khi chúng được áp dụng thực thi (enforced). Điều này nhấn mạnh vào tính năng test/preview mode để tránh gián đoạn dịch vụ, đảm bảo policy WAF (Web Application Firewall) hoạt động đúng mà không block traffic hợp lệ.
🛠️ Bối cảnh: Đây là tình huống thực tế trong bảo mật Google Cloud, nơi Cloud Armor đóng vai trò trung tâm cho WAF, hỗ trợ các quy tắc preconfigured chống SQLi, XSS, v.v. (cập nhật đến 2026, Cloud Armor đã tích hợp AI-based anomaly detection và managed rules từ OWASP).

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

Đáp án đúng: Google Cloud Armor's preconfigured rules in preview mode
Lý do:

  • Google Cloud Armor là dịch vụ WAF native của Google Cloud, chuyên bảo vệ chống các tấn công web phổ biến (Layer 7).
  • Nó hỗ trợ preview mode (hay còn gọi là monitor/log-only mode) để validate policy bằng cách ghi log các request khớp quy tắc mà không enforce/block traffic. Bạn có thể xem báo cáo trong Cloud Armor dashboard hoặc Logging để kiểm tra hiệu quả trước khi chuyển sang enforce mode.
  • Các preconfigured rules (quy tắc được cấu hình sẵn) bao gồm OWASP Top 10, giúp nhanh chóng triển khai mà không cần custom từ đầu.
    🧩 Đây là giải pháp chính xác, phù hợp nhất theo best practices của Google Cloud Security (cập nhật 2026: hỗ trợ adaptive protection với ML).

📋 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, với ✅ đúng hoặc ❌ sai, giữ nguyên văn bản gốc:

  • ✅ [ĐÚNG] Google Cloud Armor's preconfigured rules in preview mode
    Giải thích: Như đã nêu ở trên, đây là lựa chọn lý tưởng vì Cloud Armor cung cấp chính xác tính năng preview mode để test policy WAF mà không ảnh hưởng đến traffic thực tế. Bạn có thể attach policy vào backend service của Load Balancer và chuyển từ preview sang enforce chỉ sau 1 click.

  • ❌ [SAI] Prepopulated VPC firewall rules in monitor mode
    Giải thích: VPC Firewall rules (hierarchical hoặc regional) chỉ xử lý Layer 3/4 traffic (IP/port-based), không phải bảo vệ web app attacks (Layer 7 như SQLi/XSS). Không có "prepopulated" rules sẵn cho web attacks, và monitor mode chỉ log mà không validate WAF policy cụ thể.

  • ❌ [SAI] The inherent protections of Google Front End (GFE)
    Giải thích: Google Front End (GFE) cung cấp bảo vệ cơ bản tự động như DDoS mitigation và IP reputation, nhưng đây là tính năng inherent (tích hợp sẵn) không thể tùy chỉnh hoặc validate policy trước khi enforce. Không hỗ trợ preview mode cho web app protection rules.

  • ❌ [SAI] Cloud Load Balancing firewall rules
    Giải thích: Cloud Load Balancing (Global HTTP(S)) không có "firewall rules" riêng; nó tích hợp Cloud Armor để áp dụng WAF. Không tồn tại firewall rules độc lập trên CLB để preview web protection, và CLB chỉ là điểm entry point.

  • ❌ [SAI] VPC Service Controls in dry run mode
    Giải thích: VPC Service Controls (VPC SC) bảo vệ chống data exfiltration giữa services/projects (dry run mode log violations), không liên quan đến external web attacks từ internet vào public app. Đây là công cụ cho internal perimeter security, không phải WAF.

📘 Tài liệu tham khảo (cập nhật mới nhất 2026)

  • Google Cloud Armor Documentation: Cloud Armor Overview – Chi tiết preview mode và preconfigured rules (OWASP 3.3+).
  • Best Practices Guide: Protecting Applications with Cloud Armor – Hướng dẫn validate policy.
  • Release Notes 2026: Cloud Armor hỗ trợ Bot Management v2 và adaptive rules với Vertex AI (xem What's New).
  • Cert Exam Reference: Google Cloud Professional Cloud Security Engineer study guide (bao gồm scenario-based questions như thế này).

🛡️ Lời khuyên: Trong thực tế, luôn kết hợp Cloud Armor với Logging/Monitoring để audit preview results trước production!

Câu 148
You are asked to recommend a solution to store and retrieve sensitive configuration data from an application that runs on Compute Engine. Which option should you recommend?
  1. A Cloud Key Management Service
  2. B Compute Engine guest attributes
  3. C Compute Engine custom metadata
  4. D Secret Manager
Xem giải thích

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

Câu hỏi yêu cầu khuyến nghị giải pháp để lưu trữ và truy xuất dữ liệu cấu hình nhạy cảm (sensitive configuration data) từ một ứng dụng chạy trên Compute Engine (dịch vụ máy ảo trên Google Cloud Platform - GCP).
📌 Yêu cầu chính: Giải pháp phải an toàn, hỗ trợ lưu trữ bí mật (như API keys, passwords, certificates) và cho phép ứng dụng truy xuất dễ dàng mà không lộ thông tin nhạy cảm. Đây là tình huống phổ biến trong bảo mật GCP, nơi dữ liệu nhạy cảm cần được bảo vệ khỏi truy cập không mong muốn, tuân thủ nguyên tắc "least privilege" và mã hóa tại chỗ (encryption at rest/transit).
🛠️ Bối cảnh: Compute Engine là môi trường VM, nên giải pháp phải tích hợp tốt với IAM (Identity and Access Management), hỗ trợ versioning, rotation tự động và audit logs để đáp ứng các tiêu chuẩn bảo mật như PCI DSS hoặc HIPAA (cập nhật đến 2026, Secret Manager hỗ trợ các tính năng mới như integration với Workload Identity Federation).

✅ Đáp án đúng: Secret Manager

Lý do lựa chọn:
Secret Manager là dịch vụ chuyên dụng của GCP để lưu trữ, quản lý và truy xuất bí mật an toàn. Nó mã hóa dữ liệu tự động bằng CMEK (Customer-Managed Encryption Keys) từ KMS, hỗ trợ truy cập qua API từ ứng dụng trên Compute Engine (sử dụng service account với IAM roles như roles/secretmanager.secretAccessor). Ứng dụng có thể gọi secretmanager.accessSecretVersion() để lấy giá trị mà không lưu trữ trực tiếp trên VM.
🛡️ Ưu điểm nổi bật (phiên bản mới nhất 2026): Hỗ trợ automatic rotation, versioning, replication đa vùng, và integration với Cloud Run/Functions. Đây là best practice theo Google Cloud Security best practices.
📘 Tài liệu tham khảo: Secret Manager Documentation & Well-Architected Framework - Security Pillar.

📋 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 một cách chi tiết, giữ nguyên nội dung gốc bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai với lý do cụ thể dựa trên tính năng bảo mật GCP (cập nhật 2026):

  • ✅ Secret Manager (Đúng):
    Đây là lựa chọn tối ưu vì được thiết kế dành riêng cho sensitive data. Nó cung cấp lifecycle management đầy đủ (create/read/update/delete/rotate), audit logs qua Cloud Audit Logs, và truy cập kiểm soát chặt chẽ qua IAM. Không lưu secrets trên VM, giảm rủi ro exposure nếu VM bị compromise. Best practice cho ứng dụng Compute Engine.

  • ❌ Cloud Key Management Service (Sai):
    Cloud KMS chỉ dùng để quản lý khóa mã hóa (cryptographic keys), không phải lưu trữ secrets trực tiếp. Nó hỗ trợ mã hóa/giải mã dữ liệu, nhưng nếu dùng để lưu secrets thì phải tự implement (không scalable, không versioning). Không phù hợp cho "store and retrieve configuration data" vì thiếu API truy xuất secrets thân thiện.

  • ❌ Compute Engine guest attributes (Sai):
    Guest attributes là metadata lưu trữ bên trong guest OS của VM (qua agent), dễ bị truy cập bởi bất kỳ process nào chạy trên VM. Không mã hóa tự động, không audit, và nếu VM bị hack thì secrets lộ hoàn toàn. Không an toàn cho sensitive data, chỉ dùng cho non-sensitive info như tags nội bộ.

  • ❌ Compute Engine custom metadata (Sai):
    Custom metadata lưu ở project/instance level, công khai qua API (ai có quyền read metadata server có thể thấy). Không mã hóa, không versioning, và dễ bị expose qua startup scripts hoặc serial port logs. Rủi ro cao nếu attacker truy cập metadata server (port 169.254.169.254), vi phạm nguyên tắc zero-trust.

🏆 Kết luận & Best Practices

Secret Manager là lựa chọn duy nhất an toàn và scalable cho yêu cầu này! 🔒 Để implement: Gán IAM role cho service account của Compute Engine, sử dụng Client Libraries (Python/Node.js). Tránh các phương án khác để giảm attack surface.
📚 Nguồn bổ sung: GCP Security Command Center & Compute Engine Security Best Practices (cập nhật Q1/2026 với hỗ trợ confidential computing integration).

Câu 149
You need to implement an encryption at-rest strategy that reduces key management complexity for non-sensitive data and protects sensitive data while providing the flexibility of controlling the key residency and rotation schedule. FIPS 140-2 L1 compliance is required for all data types. What should you do?
  1. A Encrypt non-sensitive data and sensitive data with Cloud External Key Manager.
  2. B Encrypt non-sensitive data and sensitive data with Cloud Key Management Service
  3. C Encrypt non-sensitive data with Google default encryption, and encrypt sensitive data with Cloud External Key Manager.
  4. D Encrypt non-sensitive data with Google default encryption, and encrypt sensitive data with Cloud Key Management Service.
Xem giải thích

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

Câu hỏi yêu cầu triển khai chiến lược mã hóa dữ liệu tại chỗ (encryption at-rest) trên Google Cloud Platform (GCP) với các tiêu chí cụ thể:

  • Giảm độ phức tạp quản lý khóa (key management complexity) cho dữ liệu không nhạy cảm (non-sensitive data).
  • Bảo vệ dữ liệu nhạy cảm (sensitive data) đồng thời cung cấp tính linh hoạt trong việc kiểm soát vị trí lưu trữ khóa (key residency) và lịch xoay khóa (rotation schedule).
  • Tuân thủ FIPS 140-2 Level 1 cho tất cả loại dữ liệu.

📘 Bối cảnh kiến thức GCP (cập nhật đến 2026): GCP cung cấp các tùy chọn mã hóa at-rest như Google-managed keys (mặc định, đơn giản), Customer-managed encryption keys (CMEK qua Cloud KMS), và External Key Manager (EKM). Tất cả đều hỗ trợ FIPS 140-2 L1 validated (theo Google Cloud Security Whitepaper 2025 và KMS docs).

✅ Đáp án đúng

Encrypt non-sensitive data with Google default encryption, and encrypt sensitive data with Cloud Key Management Service.

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

  • Non-sensitive data: Sử dụng Google default encryption (Google-managed keys) để giảm thiểu hoàn toàn complexity quản lý khóa (không cần tự xoay hay quản lý). Nó tự động FIPS 140-2 L1 compliant và áp dụng mặc định cho hầu hết dịch vụ như Cloud Storage, Compute Engine.
  • Sensitive data: Sử dụng Cloud KMS (CMEK) cho phép kiểm soát linh hoạt key residency (chọn region/multi-region) và rotation schedule (tự động/tùy chỉnh), đồng thời vẫn đảm bảo FIPS 140-2 L1.
  • Kết hợp này tối ưu hóa: Đơn giản cho dữ liệu thường + Bảo mật cao cho dữ liệu quan trọng.

🔍 Phân tí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, giữ nguyên văn bản gốc tiếng Anh:

  • Encrypt non-sensitive data and sensitive data with Cloud External Key Manager. ❌
    Sai vì: Cloud EKM yêu cầu tích hợp khóa từ HSM bên ngoài (external), tăng độ phức tạp quản lý cao cho cả non-sensitive data (không đáp ứng "reduces key management complexity"). FIPS 140-2 L1 phụ thuộc provider external (không guaranteed tự động như Google-managed/CMEK), và residency bị ràng buộc external (ít linh hoạt hơn KMS nội bộ).

  • Encrypt non-sensitive data and sensitive data with Cloud Key Management Service. ❌
    Sai vì: Áp dụng Cloud KMS (CMEK) cho tất cả dữ liệu làm tăng complexity không cần thiết cho non-sensitive data (phải tự quản lý rotation/residency). Mặc dù hỗ trợ FIPS và linh hoạt tốt cho sensitive, nhưng không "reduces complexity" cho phần non-sensitive như yêu cầu.

  • Encrypt non-sensitive data with Google default encryption, and encrypt sensitive data with Cloud External Key Manager. ❌
    Sai vì: Phần non-sensitive đúng (Google default đơn giản + FIPS), nhưng sensitive dùng EKM không linh hoạt tối ưu cho residency/rotation trong GCP ecosystem (phụ thuộc external HSM, phức tạp kết nối). FIPS không tự động đảm bảo L1 mà cần validate external provider, vi phạm yêu cầu "for all data types".

📚 Tài liệu tham khảo

Câu 150
Your company wants to determine what products they can build to help customers improve their credit scores depending on their age range. To achieve this, you need to join user information in the company's banking app with customers' credit score data received from a third party. While using this raw data will allow you to complete this task, it exposes sensitive data, which could be propagated into new systems.
This risk needs to be addressed using de-identification and tokenization with Cloud Data Loss Prevention while maintaining the referential integrity across the database. Which cryptographic token format should you use to meet these requirements?
  1. A Deterministic encryption
  2. B Secure, key-based hashes
  3. C Format-preserving encryption
  4. D Cryptographic hashing
Xem giải thích

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

Câu hỏi mô tả một tình huống thực tế trong công ty ngân hàng: Công ty muốn phân tích dữ liệu để xây dựng sản phẩm cải thiện điểm tín dụng cho khách hàng dựa trên độ tuổi. Để làm điều này, cần kết hợp (join) thông tin người dùng từ app ngân hàng với dữ liệu điểm tín dụng từ bên thứ ba.

❌ Vấn đề chính: Sử dụng dữ liệu thô sẽ tiết lộ thông tin nhạy cảm (sensitive data), có nguy cơ lan truyền sang các hệ thống mới.

🛡️ Giải pháp yêu cầu: Sử dụng de-identification (ẩn danh hóa) và tokenization (token hóa) thông qua Cloud Data Loss Prevention (DLP) của Google Cloud, đồng thời duy trì referential integrity (tính toàn vẹn tham chiếu) trên toàn bộ cơ sở dữ liệu. Nghĩa là, sau khi xử lý, dữ liệu tokenized vẫn phải cho phép join chính xác giữa các bảng mà không mất khả năng khớp dữ liệu (ví dụ: cùng một ID khách hàng phải map đúng giữa hai nguồn dữ liệu).

🧐 Câu hỏi cốt lõi: Nên chọn cryptographic token format (định dạng token mã hóa) nào trong Cloud DLP để đáp ứng yêu cầu này? (Dựa trên tài liệu Google Cloud DLP phiên bản mới nhất đến 2026, hỗ trợ các phương pháp tokenization tiên tiến cho BigQuery, Cloud SQL và các dịch vụ dữ liệu khác).

📘 Nguồn tham khảo:

✅ Đáp án đúng: Deterministic encryption

Lý do lựa chọn (chi tiết):

  • Trong Cloud DLP, Deterministic encryption là phương pháp mã hóa xác định (deterministic): Cùng một giá trị input + cùng key sẽ luôn tạo ra cùng một output ciphertext.
  • ✅ Điều này duy trì referential integrity hoàn hảo khi join dữ liệu: Ví dụ, ID khách hàng "12345" từ app ngân hàng và từ bên thứ ba sẽ được mã hóa thành cùng một token (e.g., "abcXYZ"), cho phép SQL JOIN chính xác mà không cần decrypt.
  • 🛡️ Nó hỗ trợ de-identification bằng cách thay thế dữ liệu nhạy cảm bằng token an toàn, reversible (có thể decrypt bằng key gốc nếu cần), và tuân thủ quy định như GDPR/CCPA.
  • Phù hợp nhất cho multi-system propagation vì token đồng nhất giữa các nguồn dữ liệu.
  • Theo cập nhật 2026, DLP hỗ trợ Persistent Deterministic Encryption với key rotation tự động, tối ưu cho BigQuery federated joins.

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

  • ✅ Deterministic encryption
    Đúng vì: Như đã giải thích ở trên, đây là lựa chọn duy nhất đảm bảo tính xác định 100% để join dữ liệu mà vẫn bảo vệ sensitive data. Token có thể decrypt, hỗ trợ đầy đủ referential integrity trong Cloud DLP. Hoàn hảo cho use case join cross-system.

  • ❌ Secure, key-based hashes
    Sai vì: Hashes dựa trên key (như HMAC) là deterministic (cùng input → cùng hash), nhưng không reversible (one-way), không phải tokenization thực thụ trong DLP. Không hỗ trợ decrypt hoặc maintain integrity nếu cần khôi phục dữ liệu gốc, và dễ bị rainbow table attack nếu không salt đúng cách. DLP ưu tiên encryption hơn hash cho de-identification.

  • ❌ Format-preserving encryption
    Sai vì: Phương pháp này giữ nguyên format (e.g., số 123-45-6789 thành 987-65-4321), hữu ích cho legacy systems, nhưng không deterministic theo mặc định trong DLP (cần config riêng). Không đảm bảo cùng input luôn map cùng output khi join cross-dataset, dẫn đến mất referential integrity. Thích hợp hơn cho input validation, không phải join chính xác.

  • ❌ Cryptographic hashing
    Sai vì: Hashing (như SHA-256) là one-way, non-deterministic nếu không key-based, và collision-prone ở quy mô lớn. Không reversible, không hỗ trợ tokenization với integrity cho join (không thể map chính xác giữa hai nguồn). DLP coi đây là phương pháp kém an toàn cho sensitive PII, chỉ dùng cho anonymization không cần join.

🧰 Lời khuyên thực hành: Sử dụng Cloud DLP API với DeidentifyTemplate config deterministic_crypto_key cho production. Test trên sample data trong BigQuery để verify join trước khi apply! 🚀