Ngân hàng đề — Google Cloud Professional Cloud Security Engineer
Tìm thấy 395 câu.
- A Create exclusion filters for the _Default sink to prevent it from receiving new logs. Create a user-defined sink, and select the new log bucket as the sink destination.
- B Disable the _Default sink. Create a user-defined sink and select the new log bucket as the sink destination.
- C Create a user-defined sink with inclusion filters copied from the _Default sink. Select the new log bucket as the sink destination.
- D Edit the _Default sink, and select the new log bucket as the sink destination.
Xem giải thích
🧩 Giải thích nội dung câu hỏi
Câu hỏi này thuộc lĩnh vực Google Cloud Logging (không phải AWS như đề cập nhầm, mà là GCP Logging v2 với kiến thức cập nhật đến 2026). Bạn vừa tạo một log bucket mới để thay thế cho _Default log bucket (bucket mặc định lưu trữ tất cả log). Mục tiêu là chuyển tất cả các log entry hiện đang được route đến _Default bucket sang bucket mới một cách hiệu quả nhất (most efficient manner), tránh trùng lặp log, giảm chi phí và đơn giản hóa quản lý.
_Default sink là sink mặc định trong GCP Logging, tự động route tất cả log (không có filter cụ thể) đến _Default bucket. Không thể xóa hoặc disable _Default sink, chỉ có thể edit (chỉnh sửa) nó để thay đổi destination (đích đến). Cách làm hiệu quả nhất là chỉnh sửa trực tiếp sink này mà không cần tạo sink mới, tránh log bị duplicate hoặc miss.
📘 Tài liệu tham khảo:
- Google Cloud Logging: Manage sinks (cập nhật 2024-2026).
- Exporting logs: Default sink.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Edit the _Default sink, and select the new log bucket as the sink destination.
Lý do 🛠️:
- Đây là cách hiệu quả nhất (efficient) vì _Default sink đã route tất cả log mà không cần filter phức tạp. Chỉ cần edit sink để thay đổi destination sang bucket mới là xong, không tạo sink duplicate, không cần filter inclusion/exclusion, tránh log bị nhân đôi hoặc miss.
- Theo docs GCP (2026), _Default sink không thể disable/delete, chỉ edit được destination. Cách này đơn giản, nhanh chóng, chi phí thấp và bao quát 100% log hiện tại.
❌ Giải thích tất cả các phương án
-
[SAI] Create exclusion filters for the _Default sink to prevent it from receiving new logs. Create a user-defined sink, and select the new log bucket as the sink destination.
❌ Sai vì: Tạo exclusion filters trên _Default sink chỉ chặn một phần log, không chặn hết (vì _Default không có inclusion filter ban đầu). Tạo sink mới sẽ gây log duplicate (log vẫn vào _Default trừ phần exclude), tốn kém và không efficient. Phải config filter phức tạp, dễ miss log. -
[SAI] Disable the _Default sink. Create a user-defined sink and select the new log bucket as the sink destination.
❌ Sai vì: Không thể disable _Default sink (GCP không cho phép, theo docs). Nếu cố disable, log sẽ không route đâu cả (lost logs). Tạo sink mới phải copy filter thủ công, không efficient và không cover hết log như _Default. -
[SAI] Create a user-defined sink with inclusion filters copied from the _Default sink. Select the new log bucket as the sink destination.
❌ Sai vì: _Default sink không có inclusion filters cụ thể (nó route tất cả log), nên "copy" là vô nghĩa hoặc phải tự tạo filter match tất cả – rất phức tạp và không chính xác 100%. Sink mới + _Default vẫn chạy song song gây duplicate logs, không efficient so với edit trực tiếp.
Tóm lại, edit _Default sink là giải pháp tối ưu nhất theo best practices GCP Logging! 🚀
- A Create a filter set in Cloud Asset Inventory to identify service accounts with high privileges and IAM principals with Gmail domains.
- B Scan and alert vulnerabilities and misconfigurations by using Secure Health Analytics detectors in Security Command Center Premium.
- C Set up filters on Cloud Audit Logs to flag log entries for specific, risky API calls, and display the calls in a Cloud Log Analytics dashboard.
- D Alert and track emerging attacks detected in your environment by using Event Threat Detection detectors.
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 một tổ chức đang mở rộng sử dụng Google Cloud với nhiều nhóm độc lập quản lý tài nguyên đám mây riêng lẻ. Vấn đề chính cần giải quyết là:
- Xác định (identify) các lỗi cấu hình phổ biến (common misconfigurations) và vi phạm tuân thủ (compliance violations) trên toàn tổ chức.
- Theo dõi (track) các phát hiện này để thực hiện hành động khắc phục (remedial action) trong một bảng điều khiển (dashboard).
📌 Yêu cầu cốt lõi: Cần một giải pháp tự động quét (scan), cảnh báo (alert) và hiển thị trực quan các vấn đề bảo mật/misconfig trên quy mô lớn, phù hợp với môi trường đa nhóm. Giải pháp phải hỗ trợ Security Command Center (SCC) hoặc các công cụ liên quan để quản lý tập trung. (Dựa trên kiến thức Google Cloud cập nhật đến 2026, SCC Premium là tiêu chuẩn cho việc này).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Scan and alert vulnerabilities and misconfigurations by using Secure Health Analytics detectors in Security Command Center Premium.
🛠️ Lý do chi tiết:
- Secure Health Analytics (SHA) trong Security Command Center (SCC) Premium là công cụ chuyên dụng để quét tự động các lỗ hổng (vulnerabilities), lỗi cấu hình (misconfigurations) và vi phạm tuân thủ (compliance violations) trên toàn tổ chức, bao gồm Compute Engine, Kubernetes, Cloud Storage, IAM, v.v.
- Nó sử dụng detectors (bộ phát hiện) dựa trên AI/ML để phân tích liên tục, cảnh báo (alert) thời gian thực và track findings trong dashboard SCC thống nhất – hoàn hảo cho môi trường đa nhóm.
- Tính năng này hỗ trợ remedial actions với remediation recommendations tự động, phù hợp với quy mô lớn (dữ liệu cập nhật 2026: SHA mở rộng detectors cho CIS benchmarks, NIST, PCI-DSS).
📋 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, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá dựa trên khả năng đáp ứng yêu cầu: identify common misconfigs/compliance violations và track in dashboard.
-
❌ [SAI] Create a filter set in Cloud Asset Inventory to identify service accounts with high privileges and IAM principals with Gmail domains.
🧐 Giải thích: Cloud Asset Inventory (CAI, nay là Cloud Asset Inventory trong Asset Intelligence) chỉ dùng để lập danh mục tài sản (inventory assets) và filter cơ bản (như service accounts quyền cao hoặc IAM với domain Gmail). Nó không quét misconfigs/compliance violations toàn diện, không có detectors tự động, và không cung cấp dashboard tracking remedial actions. Phù hợp cho audit IAM thủ công, không scale cho toàn org. -
✅ [ĐÚNG] Scan and alert vulnerabilities and misconfigurations by using Secure Health Analytics detectors in Security Command Center Premium.
🛠️ Giải thích: Như đã nêu ở phần đáp án đúng, đây là giải pháp lý tưởng với detectors SHA quét proactivel misconfigs (ví dụ: public buckets, weak IAM), vulnerabilities (CVEs), compliance (CIS, HIPAA), và dashboard SCC Premium để track/remediate. Hỗ trợ organization-level scanning (cập nhật 2026: tích hợp SHA với Forseti cho policy-as-code). -
❌ [SAI] Set up filters on Cloud Audit Logs to flag log entries for specific, risky API calls, and display the calls in a Cloud Log Analytics dashboard.
🔍 Giải thích: Cloud Audit Logs và Cloud Logging (Log Analytics) chỉ lọc log cho các API calls rủi ro cụ thể (reactive detection). Nó không identify common misconfigs/compliance (như cấu hình sai bucket hoặc firewall), chỉ theo dõi hành vi sau sự kiện. Dashboard Logs hữu ích cho forensics, nhưng không thay thế scanning toàn diện. -
❌ [SAI] Alert and track emerging attacks detected in your environment by using Event Threat Detection detectors.
🚨 Giải thích: Event Threat Detection (ETD) trong SCC là cho phát hiện mối đe dọa thời gian thực (emerging attacks/threats) từ logs (như anomalous logins, data exfil). Nó không tập trung vào misconfigs/compliance violations tĩnh, mà chỉ reactive threats. Dashboard theo dõi attacks, không phù hợp cho identify common issues proactivel.
📘 Tài liệu tham khảo (cập nhật mới nhất 2026)
- Security Command Center Premium & Secure Health Analytics: Google Cloud Docs - SCC Overview & SHA Detectors.
- So sánh detectors: SCC Detectors Reference.
- Best Practices: Google Cloud Security Best Practices (phiên bản 2026 nhấn mạnh SHA cho org-scale compliance).
Hy vọng phân tích này giúp bạn ôn tập hiệu quả! 🚀 Nếu cần làm rõ thêm, hãy hỏi nhé!
- A Implement regular peer reviews to assess the environment variables and identify secrets in your Cloud Functions. Raise a security incident if secrets are discovered.
- B Implement a Cloud Function that scans the environment variables multiple times a day, and creates a finding in Security Command Center if secrets are discovered.
- C Use Sensitive Data Protection to scan the environment variables multiple times per day, and create a finding in Security Command Center if secrets are discovered.
- D Integrate dynamic application security testing into the CI/CD pipeline that scans the application code for the Cloud Functions. Fail the build process if secrets are discovered.
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 bạn là người chịu trách nhiệm quản lý một bộ Cloud Functions đang chạy trên môi trường Google Cloud của tổ chức. Trong cuộc kiểm tra bảo mật hàng năm gần nhất, các bí mật (secrets) như mật khẩu, khóa API đã được phát hiện trong biến môi trường (environment variables) của một số Cloud Functions. Nhiệm vụ là đảm bảo phát hiện secrets một cách kịp thời (timely manner). Câu hỏi yêu cầu chọn giải pháp phù hợp nhất để quét và phát hiện secrets trong environment variables của Cloud Functions, đồng thời tích hợp với Security Command Center (SCC) để tạo findings nếu phát hiện.
Mục tiêu chính:
- Tự động hóa việc quét định kỳ (multiple times per day) để phát hiện secrets ở runtime (biến môi trường).
- Tích hợp với SCC để quản lý và theo dõi findings bảo mật.
- Áp dụng best practices của Google Cloud (cập nhật đến 2026: DLP API hỗ trợ quét secrets trong Cloud Functions env vars qua scheduled jobs và SCC integration).
✅ Đáp án đúng:
Use Sensitive Data Protection to scan the environment variables multiple times per day, and create a finding in Security Command Center if secrets are discovered.
Lý do chọn đáp án đúng (🛠️ Giải thích chi tiết):
Sensitive Data Protection (DLP - Data Loss Prevention) là dịch vụ native của Google Cloud, được thiết kế chuyên biệt để quét và bảo vệ dữ liệu nhạy cảm, bao gồm secrets trong environment variables của Cloud Functions. Bạn có thể thiết lập scheduled scans (quét định kỳ nhiều lần/ngày) qua DLP jobs, sử dụng Cloud Functions hoặc Cloud Scheduler để trigger. Khi phát hiện secrets (như API keys, passwords), DLP tự động tạo findings trong Security Command Center (SCC) Premium, giúp theo dõi, ưu tiên và remediate kịp thời. Đây là giải pháp tự động, scalable, timely và tuân thủ best practices (không cần code custom).
Dẫn nguồn: Google Cloud DLP Documentation & SCC Findings for Secrets (cập nhật 2025: DLP hỗ trợ Cloud Functions env scanning qua Eventarc integration).
🔍 Giải thích tất cả các phương án (Đúng/Sai)
-
❌ [SAI] Implement regular peer reviews to assess the environment variables and identify secrets in your Cloud Functions. Raise a security incident if secrets are discovered.
Phân tích: Phương án này dựa vào kiểm tra thủ công định kỳ bởi đồng nghiệp (peer reviews), không đảm bảo "timely manner" vì phụ thuộc lịch trình con người, dễ bỏ sót và không tự động. Không tích hợp SCC, chỉ raise incident thủ công. Không phải best practice cho môi trường production lớn. -
❌ [SAI] Implement a Cloud Function that scans the environment variables multiple times a day, and creates a finding in Security Command Center if secrets are discovered.
Phân tích: Xây dựng Cloud Function custom để quét env vars (multiple times/day) nghe có vẻ tự động, nhưng không hiệu quả: custom code dễ lỗi, khó detect tất cả loại secrets (patterns phức tạp), tốn chi phí maintain và không leverage dịch vụ native như DLP. SCC integration có thể làm nhưng không chính xác bằng DLP (thiếu ML-based detection). Không khuyến nghị vì reinvent the wheel. -
✅ [ĐÚNG] Use Sensitive Data Protection to scan the environment variables multiple times per day, and create a finding in Security Command Center if secrets are discovered.
(Đã giải thích chi tiết ở trên – giải pháp tối ưu, native và timely). -
❌ [SAI] Integrate dynamic application security testing into the CI/CD pipeline that scans the application code for the Cloud Functions. Fail the build process if secrets are discovered.
Phân tích: DAST (Dynamic Application Security Testing) trong CI/CD chỉ quét source code trước deploy, không quét runtime environment variables sau khi Cloud Functions đã chạy. Secrets có thể được inject sau deploy (env vars), nên phương án này miss detections ở production. Không "timely" cho secrets hiện hữu và không tạo SCC findings trực tiếp.
Dẫn nguồn: Cloud Functions Security Best Practices (2026: Nhấn mạnh DLP cho runtime secrets scanning).
💡 Kết luận & Best Practice:
Sử dụng DLP + SCC là cách tự động, hiệu quả nhất để detect secrets timely trong Google Cloud. Khuyến nghị kết hợp Secret Manager cho quản lý secrets an toàn thay vì env vars. Nếu cần implement, bắt đầu với DLP Content Scanner job triggered by Cloud Scheduler! 🚀
- A Create log sinks to Cloud Storage for long-term retention. Set up log-based alerts in Cloud Logging based on relevant log types. Enable VPC Flow Logs for network visibility.
- B Deploy Cloud IDS and activate Firewall Rules Logging. Create a custom dashboard in Security Command Center to visualize potential intrusion attempts.
- C Detect sensitive administrative actions by using Cloud Logging with custom filters. Enable VPC Flow Logs with BigQuery exports for rapid analysis of network traffic patterns.
- D Enable Event Threat Detection and Security Health Analytics in Security Command Center. Set up detailed logging for IAM-related activity and relevant project resources by deploying Cloud Audit Logs.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi này tập trung vào việc bảo mật và giám sát cho một ứng dụng SaaS mới được phát triển trên Google Cloud Platform (GCP). Tổ chức cần:
- Tầm nhìn rõ ràng vào hoạt động của tài khoản privileged (tài khoản có quyền cao).
- Phát hiện thay đổi không được ủy quyền và cấu hình sai (misconfigurations) đối với hạ tầng ứng dụng.
- Giám sát hành động quản trị (administrative actions).
- Ghi log thay đổi IAM roles và permissions.
- Theo dõi các thay đổi cấu hình tiềm ẩn không được ủy quyền.
Mục tiêu chính là sử dụng các công cụ GCP để log chi tiết, phát hiện mối đe dọa tự động và phân tích misconfigs, đảm bảo tuân thủ các tiêu chuẩn nghiêm ngặt (compliance standards). Đây là kịch bản điển hình trong chứng chỉ Google Cloud Professional Cloud Security Engineer, nhấn mạnh Security Command Center (SCC) và Cloud Audit Logs theo phiên bản mới nhất (cập nhật đến 2026, với Event Threat Detection và Security Health Analytics được nâng cấp tích hợp AI/ML cho threat detection).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Enable Event Threat Detection and Security Health Analytics in Security Command Center. Set up detailed logging for IAM-related activity and relevant project resources by deploying Cloud Audit Logs.
Lý do:
- Event Threat Detection (trong SCC) tự động phát hiện các hoạt động privileged bất thường, thay đổi IAM không được ủy quyền và các mối đe dọa từ hành động quản trị.
- Security Health Analytics quét misconfigurations và thay đổi hạ tầng, cung cấp visibility toàn diện.
- Cloud Audit Logs ghi log chi tiết Admin Activity, Data Access và System Event (bao gồm IAM changes như role assignments, permissions), cho phép trace chính xác các thay đổi.
- Kết hợp hoàn hảo với yêu cầu: visibility privileged activity + IAM logs + unauthorized config changes. Đây là best practice theo GCP Security Blueprint 2026.
📋 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 nội dung gốc bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai dựa trên sự phù hợp với yêu cầu câu hỏi.
-
[SAI] Create log sinks to Cloud Storage for long-term retention. Set up log-based alerts in Cloud Logging based on relevant log types. Enable VPC Flow Logs for network visibility.
❌ Sai vì: Phương án này chỉ tập trung vào lưu trữ log dài hạn (log sinks to Storage), cảnh báo dựa trên log (log-based alerts) và giám sát lưu lượng mạng (VPC Flow Logs). Không đề cập cụ thể đến IAM changes hay privileged activity, thiếu phát hiện misconfigs tự động. VPC Flow Logs chỉ hữu ích cho network traffic, không trace admin actions. -
[SAI] Deploy Cloud IDS and activate Firewall Rules Logging. Create a custom dashboard in Security Command Center to visualize potential intrusion attempts.
❌ Sai vì: Cloud IDS (Intrusion Detection System) và Firewall Rules Logging chủ yếu phát hiện tấn công mạng/intrusion, không liên quan đến admin actions hay IAM roles/permissions. Dashboard tùy chỉnh trong SCC chỉ visualize intrusions, bỏ qua misconfigurations và privileged activity logs. -
[SAI] Detect sensitive administrative actions by using Cloud Logging with custom filters. Enable VPC Flow Logs with BigQuery exports for rapid analysis of network traffic patterns.
❌ Sai vì: Cloud Logging custom filters có thể detect admin actions cơ bản, nhưng không chuyên sâu cho IAM changes hay misconfigs. VPC Flow Logs to BigQuery chỉ phân tích network patterns, không hỗ trợ trace unauthorized config changes trên IAM/resources. Thiếu tích hợp SCC cho threat detection toàn diện. -
[ĐÚNG] Enable Event Threat Detection and Security Health Analytics in Security Command Center. Set up detailed logging for IAM-related activity and relevant project resources by deploying Cloud Audit Logs.
✅ Đúng vì: Như đã giải thích ở trên, đây là giải pháp toàn diện và chính xác nhất, bao quát privileged visibility (Event Threat Detection), misconfigs (Security Health Analytics) và IAM logging (Cloud Audit Logs). Đáp ứng 100% yêu cầu mà không thừa thãi.
📘 Tài liệu tham khảo (cập nhật 2026)
- Security Command Center (SCC) Docs: cloud.google.com/security-command-center/docs/event-threat-detection – Chi tiết Event Threat Detection và Security Health Analytics.
- Cloud Audit Logs: cloud.google.com/logging/docs/audit – Hướng dẫn enable logs cho Admin Activity & IAM.
- GCP Security Best Practices: cloud.google.com/architecture/security-best-practices – Phiên bản 2026 nhấn mạnh SCC + Audit Logs cho compliance.
- Professional Cloud Security Engineer Exam Guide: Google Cloud Skills Boost – Domain 3: Monitoring & Logging.
🛠️ Lời khuyên: Trong thực tế, kích hoạt Cloud Audit Logs ở mức organization/folder/project và liên kết SCC Premium cho alerting tự động! Nếu cần demo, dùng GCP Console > Security > SCC.
- A Run the new application by using Confidential Computing to ensure PII and card PAN is encrypted in use.
- B Scan and redact PII from the records by using the Cloud Data Loss Prevention API. Perform format-preserving encryption on the card PAN.
- C Encrypt the records by using Cloud Key Management Service to protect the PII and card PAN.
- D Build a tool to replace the card PAN and PII fields with randomly generated values.
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: Nhóm phát triển ứng dụng đang phát hành một tính năng quan trọng mới, cần 10.000 bản ghi giao dịch thực tế để kiểm tra cuối cùng. Tính năng này bao gồm kiểm tra định dạng số tài khoản chính (PAN - Primary Account Number) của thẻ tín dụng. Bạn phải hỗ trợ yêu cầu này nhưng giảm thiểu tối đa rủi ro lộ thông tin cá nhân nhạy cảm (PII - Personally Identifiable Information) như dữ liệu thẻ tín dụng thực.
Mục tiêu chính là cung cấp dữ liệu thực tế cho test nhưng anonymize (ẩn danh hóa) PII, đặc biệt giữ nguyên định dạng PAN để test tính năng kiểm tra format (ví dụ: độ dài 16 chữ số, Luhn check). Đây là vấn đề bảo mật dữ liệu trong môi trường cloud, tập trung vào de-identification mà không làm mất tính thực tế của dữ liệu test. (📘 Tham khảo: AWS/GCP Data Loss Prevention best practices; PCI DSS compliance for card data).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Scan and redact PII from the records by using the Cloud Data Loss Prevention API. Perform format-preserving encryption on the card PAN.
Lý do chọn ✅:
- Phương án này tối ưu nhất vì sử dụng Cloud DLP API (Google Cloud Data Loss Prevention - cập nhật 2024-2026 hỗ trợ AI/ML de-identification tiên tiến) để quét và redact (xóa/mask) PII như tên, địa chỉ, email... một cách tự động, chính xác cao (hỗ trợ 100+ detectors cho PII).
- Với PAN, áp dụng Format-Preserving Encryption (FPE) - mã hóa giữ nguyên định dạng (ví dụ: 4532015112830366 → vẫn 16 chữ số hợp lệ), cho phép test format checking mà không lộ dữ liệu thực.
- Giảm rủi ro PCI DSS violation, tuân thủ GDPR/HIPAA. Không cần build tool custom, tiết kiệm chi phí và an toàn. (🛠️ Cập nhật 2026: DLP hỗ trợ FPE với FFX-A2/A10 schemes cho credit card numbers).
- Nguồn: Google Cloud DLP Documentation, AWS Macie + KMS tương đương nhưng DLP mạnh hơn FPE.
📋 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 một, giữ nguyên văn bản gốc tiếng Anh. Mỗi phương án được đánh giá đúng/sai với lý do cụ thể dựa trên best practices bảo mật AWS/GCP mới nhất (2026).
-
❌ [SAI] Run the new application by using Confidential Computing to ensure PII and card PAN is encrypted in use.
Giải thích sai: Confidential Computing (như AWS Nitro Enclaves hoặc GCP Confidential VMs - cập nhật 2025 với vTPM nâng cao) mã hóa dữ liệu trong lúc sử dụng (in-use), nhưng không giải quyết vấn đề lộ PII khi cung cấp records cho dev team. Dev vẫn cần truy cập dữ liệu để test, và enclave chỉ bảo vệ runtime không phải data pipeline. Không redact PII gốc, rủi ro cao nếu enclave bị compromise. Không phù hợp cho "minimize unintended exposure". -
✅ [ĐÚNG] Scan and redact PII from the records by using the Cloud Data Loss Prevention API. Perform format-preserving encryption on the card PAN.
Giải thích đúng (như phần trên): Hoàn hảo cho de-identification quy mô lớn, redact PII + FPE PAN giữ format test được. Tự động, scalable (hỗ trợ BigQuery/S3 integration). (🧩 Best practice cho PCI compliance). -
❌ [SAI] Encrypt the records by using Cloud Key Management Service to protect the PII and card PAN.
Giải thích sai: Cloud KMS (AWS/GCP - 2026 hỗ trợ Quantum-resistant keys) chỉ mã hóa at-rest/in-transit, nhưng khi dev decrypt để test, PII/PAN vẫn lộ đầy đủ. Không có cơ chế redact hoặc anonymize, chỉ "che" tạm thời. Không hỗ trợ format-preserving, test PAN format sẽ fail vì dữ liệu encrypted không readable. -
❌ [SAI] Build a tool to replace the card PAN and PII fields with randomly generated values.
Giải thích sai: Tự build tool rủi ro cao (lỗi code, không scalable cho 10k records), và random values không giữ định dạng PAN thực tế (ví dụ: random string không pass Luhn algorithm hoặc độ dài chuẩn). Test format checking sẽ không chính xác, vi phạm yêu cầu "real transaction records". Không dùng dịch vụ managed như DLP, tốn thời gian và kém an toàn. (📘 Nguồn: AWS Well-Architected Security Pillar - khuyến nghị dùng managed services như Macie/DLP thay custom tools).
Kết luận 💡: Phương án đúng cân bằng giữa utility (test hiệu quả) và security (zero PII exposure). Khuyến nghị implement qua pipeline ETL với DLP job để automate!
- A Utilize Google default encryption and Cloud IAM to keep the keys within your organization's control.
- B Implement Cloud External Key Manager (Cloud EKM) with Access Approval, to integrate with your existing on-premises key management solution.
- C Implement Cloud External Key Manager (Cloud EKM) with Key Access Justifications to integrate with your existing one premises key management solution.
- D Utilize customer-managed encryption keys (CMEK) created in a dedicated Google Compute Engine instance with Confidential Compute encryption, under your organization's control.
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 một tổ chức ngân hàng đang di chuyển dữ liệu khách hàng nhạy cảm từ hệ thống on-premises (đã được mã hóa at rest) lên Google Cloud. Dữ liệu này phải tuân thủ các quy định nghiêm ngặt về bảo mật khi chuyển sang cloud. Yêu cầu cốt lõi là:
- Audit (kiểm toán) việc sử dụng key: Theo dõi chi tiết mọi hoạt động liên quan đến key mã hóa.
- Từ chối một số loại yêu cầu giải mã (decrypt requests): Có cơ chế kiểm soát chủ động để deny các decrypt không hợp lệ.
- Chiến lược mã hóa phải đảm bảo bảo mật mạnh mẽ và tuân thủ quy định, độc lập với nhà cung cấp cloud.
Mục tiêu là chọn giải pháp mã hóa cho phép giữ quyền kiểm soát key từ on-premises, tích hợp mượt mà, và hỗ trợ audit + deny decrypt. Đây là kịch bản điển hình cho ngành tài chính (banking) với dữ liệu nhạy cảm như PCI-DSS hoặc tương đương. Kiến thức dựa trên Google Cloud KMS phiên bản mới nhất 2024-2026, nơi Cloud EKM được nâng cấp với các tính năng kiểm soát nâng cao như Key Access Justifications.
📘 Tài liệu tham khảo:
- Cloud External Key Manager (EKM) Overview
- Key Access Justifications in Cloud KMS/EKM
- Cloud KMS Security Best Practices
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Implement Cloud External Key Manager (Cloud EKM) with Key Access Justifications to integrate with your existing one premises key management solution.
Lý do 🛠️:
- Cloud EKM cho phép tích hợp trực tiếp với hệ thống KMS on-premises (keys không bao giờ rời khỏi môi trường của bạn), phù hợp di chuyển dữ liệu đã mã hóa at rest.
- Key Access Justifications (tính năng mới nhất từ 2023-2026) yêu cầu lý do chi tiết (justification) cho mọi decrypt request trước khi gửi đến external KMS. Điều này cho phép:
- Audit toàn diện: Tự động ghi log justifications, tích hợp với Cloud Audit Logs.
- Deny decrypt requests: Hệ thống kiểm tra và từ chối nếu justification không hợp lệ (ví dụ: không tuân thủ policy quy định).
- Đảm bảo compliance (như FIPS 140-2/3) và zero-trust cho banking, với keys dưới quyền kiểm soát tổ chức.
❌ Phân tích tất cả các phương án
Dưới đây là phân tích từng phương án một cách chi tiết, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai dựa trên khả năng đáp ứng audit key usage và deny decrypt requests.
-
Utilize Google default encryption and Cloud IAM to keep the keys within your organization's control.
❌ Sai: Google default encryption sử dụng keys do Google quản lý (Google-managed keys), không cho phép kiểm soát chi tiết decrypt từ on-premises. Cloud IAM chỉ kiểm soát access đến resources, không audit/deny decrypt requests cụ thể (không tích hợp external KMS). Không phù hợp di chuyển dữ liệu nhạy cảm banking, vi phạm quy định "keys within control". -
Implement Cloud External Key Manager (Cloud EKM) with Access Approval, to integrate with your existing on-premises key management solution.
❌ Sai: Cloud EKM đúng hướng (tích hợp on-premises KMS), nhưng Access Approval là tính năng cho VPC Service Controls hoặc Binary Authorization, không áp dụng trực tiếp cho key decrypt requests trong KMS/EKM. Không hỗ trợ audit justifications hoặc deny decrypt một cách chính xác, thiếu cơ chế kiểm soát chi tiết theo quy định. -
Implement Cloud External Key Manager (Cloud EKM) with Key Access Justifications to integrate with your existing one premises key management solution.
✅ Đúng (như đã giải thích ở trên): Hoàn hảo đáp ứng audit + deny decrypt qua justifications bắt buộc, tích hợp EKM giữ keys on-premises. Tính năng này được cập nhật mạnh mẽ đến 2026 cho compliance cao cấp. -
Utilize customer-managed encryption keys (CMEK) created in a dedicated Google Compute Engine instance with Confidential Compute encryption, under your organization's control.
❌ Sai: CMEK keys nằm trong Google Cloud KMS (không on-premises), chỉ managed bởi bạn nhưng vẫn do Google lưu trữ. Confidential Compute bảo vệ VM, không liên quan trực tiếp đến deny decrypt requests. Không audit/deny chi tiết như yêu cầu, và phức tạp hóa với GCE instance (không cần thiết, kém hiệu quả cho migration).
🧠 Kết luận: Giải pháp EKM + Key Access Justifications là best practice cho banking migration, cân bằng security, compliance và tích hợp legacy systems! Nếu cần triển khai thực tế, khuyến nghị test với short-lived certs trong EKM.
- A Add the corporate and public end-user domains to domain restricted sharing on the organization.
- B Federate the customers' identity provider (IdP) with Workforce Identity Federation in your application's project.
- C Do nothing. Google Workspace identities will allow you to filter personal accounts and disable their access.
- D Use a customer identity and access management tool (CIAM) like Identity Platform.
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 tổ chức đang phát triển một ứng dụng có hai loại end-users:
- Corporate end-users (người dùng nội bộ doanh nghiệp): Họ phải truy cập ứng dụng bằng tài khoản doanh nghiệp và tên miền (domain name) của công ty.
- Public end-users (người dùng công khai): Có thể là khách hàng cá nhân hoặc từ các tổ chức khác.
Yêu cầu chính là quản lý tập trung (centrally manage) identities (danh tính) và authorizations (ủy quyền) cho tất cả khách hàng. Điều này ngụ ý cần một giải pháp CIAM (Customer Identity and Access Management) để xử lý danh tính khách hàng bên ngoài, hỗ trợ đa dạng IdP (Identity Providers), tùy chỉnh UI đăng nhập, và tích hợp với Firebase Authentication hoặc Google Cloud Identity Platform (cập nhật đến 2026, Identity Platform hỗ trợ multi-tenancy và OIDC/SAML federation cho customers).
Không phải giải pháp workforce (dành cho nhân viên nội bộ như Google Workspace hoặc Workforce Identity Federation). ✅ Mục tiêu: Đảm bảo corporate users dùng domain riêng, public users linh hoạt, tất cả được quản lý trung tâm.
✅ Đáp án đúng
Use a customer identity and access management tool (CIAM) like Identity Platform.
Lý do lựa chọn:
- Identity Platform (phiên bản mới nhất 2026) là dịch vụ CIAM chính thức của Google Cloud, chuyên quản lý danh tính khách hàng bên ngoài (customers/public users). Nó hỗ trợ federation với nhiều IdP (như corporate IdP cho domain doanh nghiệp), multi-tenancy để tách biệt tenants, customizable authentication flows, và tích hợp trực tiếp với ứng dụng (qua Firebase SDK hoặc REST API).
- Cho phép corporate users đăng nhập bằng corporate user và domain (qua OIDC/SAML), đồng thời quản lý public users qua social login/email. ✅ Hoàn hảo cho centrally manage identities/authorizations mà không lẫn lộn với workforce identities. 🛠️ Đây là best practice theo Google Cloud Architecture Framework cho customer-facing apps.
📋 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, giữ nguyên văn bản 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ài liệu GCP mới nhất (2026):
-
❌ [SAI] Add the corporate and public end-user domains to domain restricted sharing on the organization.
Giải thích sai: "Domain restricted sharing" chỉ dùng để hạn chế chia sẻ Google Workspace resources (như Drive/Sheets) với domain cụ thể trong tổ chức, không phải quản lý identities/authorizations cho ứng dụng tùy chỉnh. Nó không hỗ trợ public users hoặc centrally manage federation. ❌ Không giải quyết được truy cập app bằng corporate domain một cách linh hoạt. (Không phù hợp với customer apps). -
❌ [SAI] Federate the customers' identity provider (IdP) with Workforce Identity Federation in your application's project.
Giải thích sai: Workforce Identity Federation (WIF, cập nhật 2026 với external IdP support) dành riêng cho workforce/nhân viên nội bộ (non-Google accounts), không phải customers/public users. Nó yêu cầu OIDC tokens và impersonation cho GCP resources, nhưng không hỗ trợ public sign-up/UI flows hoặc multi-tenant customer management. ❌ Sử dụng cho customers sẽ vi phạm security best practices (confuse workforce vs. customer identities). -
❌ [SAI] Do nothing. Google Workspace identities will allow you to filter personal accounts and disable their access.
Giải thích sai: Google Workspace chỉ quản lý corporate identities nội bộ (dùng domain công ty), không tự động filter/disable personal accounts (@gmail.com) cho ứng dụng public. Nó thiếu customer-facing features như self-registration, social login, hoặc centrally manage public users. ❌ "Do nothing" không khả thi vì Workspace không centrally manage cả corporate + public identities cho app tùy chỉnh. -
✅ [ĐÚNG] Use a customer identity and access management tool (CIAM) like Identity Platform.
Giải thích đúng (như phần trên): Hoàn chỉnh hỗ trợ corporate domain login qua IdP federation và public users qua multi-tenant. 🛠️ Scalable đến hàng triệu users, tích hợp IAM conditions cho authorizations.
📘 Tài liệu tham khảo (cập nhật 2026)
- Google Cloud Identity Platform docs: cloud.google.com/identity-platform/docs – Hướng dẫn CIAM cho customer apps.
- Workforce Identity Federation: cloud.google.com/iam/docs/workforce-overview – Phân biệt workforce vs. customer.
- Architecture best practices: cloud.google.com/architecture/identity/federating-external-identities – Khuyến nghị Identity Platform cho public apps.
- Domain restricted sharing: support.google.com/a/answer/60764 – Chỉ cho Workspace sharing.
Hy vọng phân tích giúp bạn ôn thi chứng chỉ! 🚀 Nếu cần làm rõ thêm, hỏi nhé!
•Multiple teams need varying access levels (some read-only, some read-write).
•Data must be protected in storage and at rest.
•It's critical to track file changes and audit access for compliance purposes.
•For compliance purposes, the organization must have control over the encryption keys.
What should you do?
- A Create IAM groups for each team and manage permissions at the group level. Employ server-side encryption and Object Versioning by Google Cloud Storage. Configure cloud monitoring tools to alert on anomalous data access patterns.
- B Set individual permissions for each team and apply access control lists (ACLs) to each bucket and file. Enforce TLS encryption for file transfers. Enable Object Versioning and Cloud Audit Logs for the storage buckets.
- C Use predefined IAM roles tailored to each team's access needs, such as Storage Object Viewer and Storage Object User. Utilize customer-supplied encryption keys (CSEK) and enforce TLS encryption. Turn on both Object Versioning and Cloud Audit Logs for the storage buckets.
- D Assign IAM permissions for all teams at the object level. Implement third-party software to encrypt data at rest. Track data access by using network logs.
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 tình huống thực tế trong tổ chức xử lý dữ liệu khách hàng nhạy cảm trên Google Cloud Storage (GCS). Các yêu cầu cụ thể bao gồm:
- 📋 Nhiều đội ngũ cần quyền truy cập khác nhau (một số chỉ đọc - read-only, một số đọc-ghi - read-write).
- 🔒 Bảo vệ dữ liệu khi lưu trữ (at rest) và trong quá trình truyền (in transit).
- 🕵️ Theo dõi thay đổi file và kiểm toán truy cập để tuân thủ quy định (compliance).
- 🔑 Tổ chức phải kiểm soát hoàn toàn khóa mã hóa (không dùng khóa do Google quản lý).
Mục tiêu là chọn giải pháp tối ưu nhất sử dụng các tính năng native của GCP, đảm bảo scalability, security và compliance theo best practices mới nhất (cập nhật đến 2026, dựa trên GCP Storage IAM v2, Cloud KMS, Audit Logs v2).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng là phương án thứ 3:
Use predefined IAM roles tailored to each team's access needs, such as Storage Object Viewer and Storage Object User. Utilize customer-supplied encryption keys (CSEK) and enforce TLS encryption. Turn on both Object Versioning and Cloud Audit Logs for the storage buckets.
Lý do chọn:
- 🛡️ IAM roles predefined (như
Storage Object Viewercho read-only,Storage Object Usercho read-write) là cách scale tốt nhất, granular và tuân thủ principle of least privilege. - 🔑 CSEK cho phép tổ chức tự cung cấp và kiểm soát khóa mã hóa (encryption at rest), đáp ứng yêu cầu "control over encryption keys" – tốt hơn CMEK vì keys do khách hàng quản lý hoàn toàn (GCP chỉ wrap/unwrap).
- 🔒 TLS encryption bảo vệ dữ liệu in transit (tất cả traffic GCS mặc định TLS 1.2+).
- 📊 Object Versioning theo dõi thay đổi file (retain versions cũ), Cloud Audit Logs ghi đầy đủ audit access (Data Access logs cho storage).
Giải pháp này toàn diện, native, và compliant với GDPR/SOX/HIPAA (cập nhật 2026: IAM conditions hỗ trợ better auditing).
📋 Giải thích tất cả các phương án (đúng/sai)
-
❌ Phương án 1 (SAI):
Create IAM groups for each team and manage permissions at the group level. Employ server-side encryption and Object Versioning by Google Cloud Storage. Configure cloud monitoring tools to alert on anomalous data access patterns.
Lý do sai: IAM groups tốt cho access control nhưng server-side encryption mặc định dùng Google-managed keys (không cho control keys). Cloud Monitoring chỉ alert anomalies (không audit đầy đủ changes/access). Thiếu TLS explicit và audit logs chuẩn – không đáp ứng đầy đủ "control keys" và "audit access". -
❌ Phương án 2 (SAI):
Set individual permissions for each team and apply access control lists (ACLs) to each bucket and file. Enforce TLS encryption for file transfers. Enable Object Versioning and Cloud Audit Logs for the storage buckets.
Lý do sai: Individual permissions và ACLs không scale (GCP khuyến nghị migrate ACLs sang IAM từ 2023, ACLs deprecated 2026). TLS tốt nhưng thiếu encryption at rest với control keys. Versioning + Audit Logs OK nhưng access control kém. -
✅ Phương án 3 (ĐÚNG):
Use predefined IAM roles tailored to each team's access needs, such as Storage Object Viewer and Storage Object User. Utilize customer-supplied encryption keys (CSEK) and enforce TLS encryption. Turn on both Object Versioning and Cloud Audit Logs for the storage buckets.
Lý do đúng: Như đã giải thích ở trên – hoàn hảo match tất cả yêu cầu, sử dụng best practices GCP (IAM roles fine-grained, CSEK cho key control, full auditing). -
❌ Phương án 4 (SAI):
Assign IAM permissions for all teams at the object level. Implement third-party software to encrypt data at rest. Track data access by using network logs.
Lý do sai: Object-level IAM không scale (chỉ cho legacy, recommend bucket policies). Third-party encrypt phức tạp, không native (tăng risk, không integrate Audit Logs). Network logs (VPC Flow Logs) chỉ track traffic, không audit storage changes/access chi tiết.
📘 Tài liệu tham khảo (GCP Official Docs - cập nhật 2026)
- 🛠️ IAM for Storage: cloud.google.com/storage/docs/access-control/iam (roles như Viewer/User).
- 🔑 Encryption: cloud.google.com/storage/docs/encryption#customer-supplied (CSEK details).
- 📊 Versioning & Audit: cloud.google.com/storage/docs/object-versioning & cloud.google.com/logging/docs/audit.
- Best Practices: cloud.google.com/security/best-practices (Compliance blueprint).
Giải pháp này đảm bảo zero-trust security trên GCS! 🚀
- A Create an organization-level access policy with a service perimeter to restrict BigQuery access. Assign the data analytics team the Access Context Manager Editor role on the access policy to allow the team to configure the access policy.
- B Create a scoped policy on the folder with a service perimeter to restrict BigQuery access. Assign the data analytics team the Access Context Manager Editor role on the scoped policy to allow the team to configure the scoped policy.
- C Define a hierarchical firewall policy on the folder to deny BigQuery access. Assign the data analytics team the Compute Organization Firewall Policy Admin role to allow the team to configure rules for the firewall policy.
- D Enforce the Restrict Resource Service Usage organization policy constraint on the folder to restrict BigQuery access. Assign the data analytics team the Organization Policy Administrator role to allow the team to manage exclusions within the folder.
Xem giải thích
🧩 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 hạn chế giao tiếp (communications restrictions) cho các dịch vụ cụ thể trong tổ chức Google Cloud. Cụ thể:
- Bạn đang làm việc với một thư mục dành riêng (dedicated folder) cho đội ngũ phân tích dữ liệu (data analytics team).
- Yêu cầu: Kiểm soát truy cập BigQuery chỉ ở mức thư mục (folder) và các dự án con của nó.
- Đội ngũ phân tích dữ liệu chỉ được phép kiểm soát các hạn chế này ở mức thư mục (folder level), không phải ở cấp tổ chức hoặc cao hơn.
- Mục tiêu: Sử dụng VPC Service Controls (Service Perimeters) trong Access Context Manager để tạo ranh giới bảo mật, ngăn chặn dữ liệu nhạy cảm bị rò rỉ ra ngoài qua các dịch vụ như BigQuery. ✅
Đây là tình huống thực tế trong Google Cloud Security, nơi cần áp dụng scoped access policies để phân quyền chi tiết theo Resource Hierarchy (Organization > Folder > Project).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng:
Create a scoped policy on the folder with a service perimeter to restrict BigQuery access. Assign the data analytics team the Access Context Manager Editor role on the scoped policy to allow the team to configure the scoped policy.
Lý do (🛠️ Giải thích chi tiết):
- Scoped policy trên folder: Cho phép tạo service perimeter chỉ giới hạn ở thư mục và dự án con, phù hợp yêu cầu "controlled for that folder and its projects" và "control the restrictions only at the folder level". Không ảnh hưởng toàn tổ chức.
- Service perimeter chặn truy cập BigQuery từ bên ngoài perimeter, bảo vệ dữ liệu.
- Access Context Manager Editor role trên scoped policy cho phép đội ngũ chỉnh sửa policy mà không cần quyền tổ chức-wide.
- Phù hợp với best practices mới nhất (cập nhật 2024-2026): VPC Service Controls hỗ trợ folder-scoped perimeters từ Access Context Manager v2. 📘
Nguồn tham khảo: Google Cloud VPC Service Controls Docs, Access Context Manager Best Practices.
📋 Phân tí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 bằng tiếng Anh). Tôi đánh dấu ✅ đúng, ❌ sai, và giải thích rõ ràng bằng tiếng Việt:
-
❌ [SAI] Create an organization-level access policy with a service perimeter to restrict BigQuery access. Assign the data analytics team the Access Context Manager Editor role on the access policy to allow the team to configure the access policy.
Giải thích sai: Policy ở mức organization-level sẽ áp dụng toàn tổ chức, không giới hạn chỉ ở folder. Đội ngũ sẽ có quyền chỉnh sửa policy tổ chức-wide, vi phạm yêu cầu "control only at the folder level". Không phù hợp cho isolation folder-specific. 🛑 -
✅ [ĐÚNG] Create a scoped policy on the folder with a service perimeter to restrict BigQuery access. Assign the data analytics team the Access Context Manager Editor role on the scoped policy to allow the team to configure the scoped policy.
Giải thích đúng: Như đã phân tích ở phần trên – chính xác scoping ở folder, service perimeter cho BigQuery, và role phù hợp cho team control cục bộ. Hoàn hảo! 🎯 -
❌ [SAI] Define a hierarchical firewall policy on the folder to deny BigQuery access. Assign the data analytics team the Compute Organization Firewall Policy Admin role to allow the team to configure rules for the firewall policy.
Giải thích sai: Hierarchical firewall policy dùng cho network traffic (VPC Firewall Rules), không kiểm soát service-level access như BigQuery (dữ liệu query, không phải IP/port). Role Compute Organization Firewall Policy Admin là cho firewall, không liên quan service perimeters. Không giải quyết "communications restrictions for services". 🚫 -
❌ [SAI] Enforce the Restrict Resource Service Usage organization policy constraint on the folder to restrict BigQuery access. Assign the data analytics team the Organization Policy Administrator role to allow the team to manage exclusions within the folder.
Giải thích sai: Restrict Resource Service Usage constraint chỉ ngăn tạo/kích hoạt API của BigQuery (ví dụ: không cho tạo dataset mới), không kiểm soát truy cập dữ liệu hiện có. Role Organization Policy Administrator cho phép quản lý policy toàn tổ chức hoặc folder, vượt quá "folder level control". Không dùng cho service perimeters. ❌
Nguồn: Google Cloud Organization Policy Constraints.
Tóm tắt nhanh 💡: Sử dụng folder-scoped service perimeter là cách chuẩn nhất để isolate BigQuery access theo hierarchy, đảm bảo least privilege! Nếu cần lab thực hành, thử trên Google Cloud Console với Access Context Manager. 🚀
- A Configure the central identity provider as a workforce identity pool provider in Workforce Identity Federation. Create an attribute mapping by using the Common Expression Language (CEL).
- B Configure a periodic synchronization of relevant users and groups with attributes to Cloud Identity. Activate single sign-on by using the Security Assertion Markup Language (SAML).
- C Set up the Google Cloud Identity Platform. Configure an external authentication provider by using OpenID Connect and link user accounts based on attributes.
- D Activate external identities on the Identity-Aware Proxy. Use the Security Assertion Markup Language (SAML) to configure authentication based on attributes to the central authentication provider.
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 giải thích rõ ràng:
Câu hỏi tập trung vào tình huống tổ chức đang sử dụng một nhà cung cấp nhận dạng và xác thực bên thứ ba (third-party identity and authentication provider) để quản lý người dùng tập trung. Yêu cầu chính là sử dụng nhà cung cấp này để cấp quyền truy cập vào Google Cloud Console mà KHÔNG cần đồng bộ (sync) identities vào Google Cloud. Đồng thời, người dùng phải nhận được quyền hạn (permissions) dựa trên các thuộc tính (attributes) từ nhà cung cấp nhận dạng đó.
✅ Mục tiêu cốt lõi: Tích hợp liên kết nhận dạng (identity federation) không đồng bộ, sử dụng attributes để mapping quyền IAM một cách động, phù hợp với mô hình Workforce Identity Federation (WIF) mới nhất của Google Cloud (cập nhật đến 2026, hỗ trợ CEL cho attribute mapping linh hoạt).
🛠️ Bối cảnh Google Cloud: Đây là vấn đề bảo mật IAM (Identity and Access Management), nhấn mạnh zero-sync federation để tránh lưu trữ user data trong Google Cloud, giảm rủi ro và tuân thủ.
✅ Đáp án đúng và lý do lựa chọn:
Configure the central identity provider as a workforce identity pool provider in Workforce Identity Federation. Create an attribute mapping by using the Common Expression Language (CEL).
Lý do chọn đáp án này (chi tiết):
- Workforce Identity Federation (WIF) chính là giải pháp chính thức của Google Cloud để liên kết (federate) với external IdP mà KHÔNG cần sync user vào Cloud Identity hoặc Google Accounts.
- Bạn cấu hình IdP trung tâm làm workforce identity pool provider, sau đó sử dụng CEL (Common Expression Language) để map attributes từ token IdP (như SAML/OIDC) thành IAM principals và quyền.
- Điều này cho phép user truy cập trực tiếp Google Cloud Console qua short-lived tokens, permissions dựa hoàn toàn trên attributes (ví dụ: group membership, roles từ IdP).
- ✅ Phù hợp 100% yêu cầu: Không sync, attribute-based, cập nhật mới nhất (WIF hỗ trợ CEL từ 2022 và mở rộng đến 2026 với CEL v1.5+).
📚 Tài liệu tham khảo:
- Workforce Identity Federation docs (Google Cloud, cập nhật 2025).
- CEL for attribute mapping (hướng dẫn chi tiết mapping attributes).
🔍 Giải thích TẤT CẢ các phương án (đúng/sai)
-
✅ Phương án ĐÚNG (như đã phân tích ở trên):
Configure the central identity provider as a workforce identity pool provider in Workforce Identity Federation. Create an attribute mapping by using the Common Expression Language (CEL).
🟢 Tại sao đúng: Hoàn hảo khớp yêu cầu không sync + attribute-based access cho Google Cloud Console qua WIF và CEL. -
❌ Phương án SAI 1:
Configure a periodic synchronization of relevant users and groups with attributes to Cloud Identity. Activate single sign-on by using the Security Assertion Markup Language (SAML).
🔴 Tại sao sai: Yêu cầu KHÔNG sync identities, nhưng phương án này dùng periodic synchronization vào Cloud Identity (vi phạm). SAML chỉ SSO, không tự động attribute-based permissions cho Console mà không sync. -
❌ Phương án SAI 2:
Set up the Google Cloud Identity Platform. Configure an external authentication provider by using OpenID Connect and link user accounts based on attributes.
🔴 Tại sao sai: Identity Platform dành cho customer-facing apps (end-user authentication), không phải workforce (nhân viên tổ chức). Không hỗ trợ trực tiếp Console access mà không sync/link accounts, và không phải giải pháp chính cho federation attributes vào IAM. -
❌ Phương án SAI 3:
Activate external identities on the Identity-Aware Proxy. Use the Security Assertion Markup Language (SAML) to configure authentication based on attributes to the central authentication provider.
🔴 Tại sao sai: Identity-Aware Proxy (IAP) bảo vệ apps/APIs, không phải Google Cloud Console trực tiếp. External identities trên IAP vẫn yêu cầu context IAM (thường sync hoặc WIF riêng), không thay thế federation cho Console, và SAML attributes không map trực tiếp permissions như WIF+CEL.
🛡️ Kết luận từ góc nhìn Professional Cloud Security Engineer: Giải pháp WIF là best practice cho zero-trust federation, giảm bề mặt tấn công bằng cách tránh lưu trữ user data. Nếu triển khai, khuyến nghị test với gcloud iam workforce-pools CLI! 🚀