Ngân hàng đề — Google Cloud Professional Cloud Security Engineer
Tìm thấy 395 câu.
What should you do?
-
A
1. Create two service accounts, one for the infrastructure and one for the application deployment.
2. Use workload identities to let the pods run the two pipelines and authenticate with the service accounts.
3. Run the infrastructure and application pipelines in separate namespaces. -
B
1. Create a dedicated service account for the CI/CD pipelines.
2. Run the deployment pipelines in a dedicated nodes pool in the GKE cluster.
3. Use the service account that you created as identity for the nodes in the pool to authenticate to the Google Cloud APIs. -
C
1. Create individual service accounts for each deployment pipeline.
2. Add an identifier for the pipeline in the service account naming convention.
3. Ensure each pipeline runs on dedicated pods.
4. Use workload identity to map a deployment pipeline pod with a service account. -
D
1. Create service accounts for each deployment pipeline.
2. Generate private keys for the service accounts.
3. Securely store the private keys as Kubernetes secrets accessible only by the pods that run the specific deploy pipeline.
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 quy trình CI/CD (Continuous Integration and Continuous Delivery) mới trên Google Cloud, cụ thể chạy trên Google Kubernetes Engine (GKE). Tổ chức có nhiều team sử dụng các instance CI/CD riêng biệt để deploy infrastructure và applications. Yêu cầu chính là thiết kế pipelines an toàn để truy cập Google Cloud APIs (như Compute Engine, Cloud Storage, v.v.), tuân thủ nguyên tắc least privilege (quyền hạn tối thiểu) và security best practices trên GKE.
🔑 Vấn đề cốt lõi:
- Tránh sử dụng service account keys (rủi ro lộ key cao).
- Sử dụng Workload Identity (tính năng mới nhất của GKE từ 2021, cập nhật đến 2026 với hỗ trợ IAM Conditions và OIDC federation tốt hơn) để pods impersonate service accounts trực tiếp qua Kubernetes Service Account (KSA).
- Đảm bảo tách biệt giữa các team/pipelines để tránh shared credentials.
📘 Tài liệu tham khảo:
- GKE Workload Identity (cập nhật 2025).
- Securing CI/CD on GKE (best practices từ Google Cloud).
- IAM Best Practices for Service Accounts (2026 edition).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng là phương án thứ 3:
- Create individual service accounts for each deployment pipeline.
- Add an identifier for the pipeline in the service account naming convention.
- Ensure each pipeline runs on dedicated pods.
- Use workload identity to map a deployment pipeline pod with a service account.
Lý do chọn ✅:
- 🛡️ Granular control: Tạo service account riêng cho từng pipeline (individual), phù hợp với "many teams" sử dụng own instances, đảm bảo least privilege (mỗi pipeline chỉ có quyền cần thiết).
- 📛 Naming convention: Thêm identifier (ví dụ: sa-ci-cd-teamA-pipeline1) giúp quản lý và audit dễ dàng.
- 🪢 Dedicated pods: Mỗi pipeline chạy trên pod riêng, tránh shared access.
- 🔗 Workload Identity: Mapping KSA với Google SA mà không cần keys, sử dụng OIDC token an toàn nhất (best practice 2026). Hỗ trợ IAM policies chi tiết, giảm rủi ro credential rotation.
🛡️ Giải thích tất cả các phương án
-
Phương án 1 ❌:
- Create two service accounts, one for the infrastructure and one for the application deployment.
- Use workload identities to let the pods run the two pipelines and authenticate with the service accounts.
- Run the infrastructure and application pipelines in separate namespaces.
Sai vì: Chỉ tạo 2 SA chung (infra và app), không đủ granular cho nhiều team (shared credentials dễ vi phạm least privilege). Workload Identity đúng hướng nhưng namespaces chỉ tách logic, không giải quyết shared SA. Không scale cho multi-team.
-
Phương án 2 ❌:
- Create a dedicated service account for the CI/CD pipelines.
- Run the deployment pipelines in a dedicated nodes pool in the GKE cluster.
- Use the service account that you created as identity for the nodes in the pool to authenticate to the Google Cloud APIs.
Sai vì: 1 SA chung cho tất cả pipelines (rủi ro cao nếu compromise). Attach SA vào node pool (qua node metadata) làm toàn bộ nodes có quyền, không an toàn (vi phạm isolation). Không dùng Workload Identity cho pods – kém hơn best practice.
-
Phương án 3 ✅: (Đã giải thích chi tiết ở trên). Hoàn hảo về security, scalability và tuân thủ zero-trust model trên GKE 2026.
-
Phương án 4 ❌:
- Create service accounts for each deployment pipeline.
- Generate private keys for the service accounts.
- Securely store the private keys as Kubernetes secrets accessible only by the pods that run the specific deploy pipeline.
Sai vì: Tạo keys (JSON key files) là anti-pattern (rủi ro lộ key cao, phải rotate thường xuyên). Kubernetes Secrets không phải "secure" tuyệt đối (có thể dump từ pod). Google khuyến cáo KHÔNG dùng keys từ 2019, ưu tiên Workload Identity (xem docs 2026).
What should you do?
- A Set a time to live (TTL) of 12 months for the files in the Cloud Storage bucket that removes PII and moves the files to the archive storage class.
- B Create a Cloud Data loss Prevention (DLP) inspection job that de-identifies PII in files created more than 12 months ago and archives them to another Cloud Storage bucket. Delete the original files.
- C Configure the Autoclass feature of the Cloud Storage bucket to de-identify PII. Archive the files that are older than 12 months. Delete the original files.
- D Schedule a Cloud Key Management Service (KMS) rotation period of 12 months for the encryption keys of the Cloud Storage files containing PII to de-identify them. Delete the original keys.
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 Google Cloud Platform (GCP): Khách hàng của tổ chức phải scan và upload hợp đồng cùng giấy phép lái xe (driver license) vào một web portal lưu trữ trên Cloud Storage. Yêu cầu bảo mật chính là:
- Xóa toàn bộ thông tin cá nhân có thể nhận dạng (PII - Personally Identifiable Information) từ các file cũ hơn 12 tháng.
- Lưu trữ (archive) các file đã được ẩn danh (anonymized) để phục vụ mục đích lưu giữ dữ liệu (retention).
📌 Mục tiêu chính: Đảm bảo tuân thủ quy định bảo mật dữ liệu (như GDPR hoặc CCPA), tự động hóa quy trình de-identification PII mà không làm mất dữ liệu cần thiết, sử dụng các dịch vụ GCP native để xử lý file trong bucket Cloud Storage. Kiến thức dựa trên phiên bản GCP mới nhất đến 2026, với Cloud DLP hỗ trợ inspection jobs linh hoạt cho de-identification và integration với Cloud Storage (xem tài liệu: Cloud DLP API và Cloud Storage Object Lifecycle).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Create a Cloud Data loss Prevention (DLP) inspection job that de-identifies PII in files created more than 12 months ago and archives them to another Cloud Storage bucket. Delete the original files.
Lý do chọn:
- 🛠️ Cloud DLP là dịch vụ chuyên dụng của GCP để phát hiện và de-identify PII (như tên, số CMND, địa chỉ trong hợp đồng/driver license) bằng inspection jobs tự động. Nó hỗ trợ scan file cũ hơn 12 tháng dựa trên metadata (create time), anonymize (ví dụ: redact, replace, mask), sau đó export kết quả sang bucket khác để archive.
- ✅ Xóa file gốc sau khi anonymize đảm bảo không còn PII, phù hợp retention policy. Đây là giải pháp chính xác, scalable và tuân thủ best practices GCP Security (không dùng TTL đơn giản vì TTL chỉ xóa, không de-identify).
- 📘 Nguồn: Cloud DLP De-identification Jobs và Inspect & De-identify Cloud Storage (cập nhật 2024-2026).
🧩 Giải thích tất cả các phương án (đúng/sai)
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:
-
Set a time to live (TTL) of 12 months for the files in the Cloud Storage bucket that removes PII and moves the files to the archive storage class.
❌ Sai: TTL (qua Object Lifecycle Management) chỉ xóa hoặc chuyển storage class (như Archive) dựa trên tuổi file, KHÔNG có khả năng remove PII. Nó không de-identify dữ liệu, dẫn đến rủi ro lộ thông tin. Không phù hợp yêu cầu anonymize trước khi archive.
📘 Nguồn: Cloud Storage Lifecycle. -
Create a Cloud Data loss Prevention (DLP) inspection job that de-identifies PII in files created more than 12 months ago and archives them to another Cloud Storage bucket. Delete the original files.
✅ Đúng: Như đã giải thích ở trên, đây là giải pháp tối ưu sử dụng Cloud DLP job để scan, de-identify chính xác PII trên file cũ, export sang bucket archive, và xóa gốc an toàn. -
Configure the Autoclass feature of the Cloud Storage bucket to de-identify PII. Archive the files that are older than 12 months. Delete the original files.
❌ Sai: Autoclass chỉ tự động tối ưu storage class dựa trên access pattern (Standard → Archive), KHÔNG de-identify PII. Nó không xử lý nội dung file, chỉ quản lý chi phí lưu trữ.
📘 Nguồn: Cloud Storage Autoclass. -
Schedule a Cloud Key Management Service (KMS) rotation period of 12 months for the encryption keys of the Cloud Storage files containing PII to de-identify them. Delete the original keys.
❌ Sai: Cloud KMS dùng để quản lý khóa mã hóa, rotation chỉ thay key định kỳ để tăng bảo mật, KHÔNG de-identify PII (dữ liệu vẫn tồn tại, chỉ key thay đổi). Xóa key gốc làm file không đọc được, nhưng không anonymize nội dung.
📘 Nguồn: Cloud KMS Key Rotation.
🛡️ Kết luận từ góc nhìn Cloud Security Engineer: Sử dụng Cloud DLP là best practice cho PII handling trong GCP, tích hợp seamless với Cloud Storage và Pub/Sub cho automation. Nếu triển khai, khuyến nghị thêm Pub/Sub trigger để job chạy định kỳ!
What should you do? (Choose two.)
- A Mandate that those corporate employees delete their unmanaged consumer accounts.
- B Reconcile accounts that exist in Cloud Identity but not in the third-party IdP.
- C Evict the unmanaged consumer accounts in the third-party IdP before you sync identities.
- D Use Google Cloud Directory Sync (GCDS) to migrate the unmanaged consumer accounts' emails as user aliases.
- E Use the transfer tool to invite those corporate employees to transfer their unmanaged consumer accounts to the corporate domain.
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 Google Cloud Identity (liên quan đến Google Workspace), tập trung vào việc đồng bộ danh tính (identities) từ nhà cung cấp danh tính bên thứ ba (third-party IdP) như Active Directory, Okta hoặc tương tự vào Cloud Identity. Vấn đề chính: Một số nhân viên đã sử dụng địa chỉ email công ty (corporate email) để tạo tài khoản consumer (tài khoản cá nhân không quản lý) trên các dịch vụ Google (như Gmail cá nhân). Những tài khoản này không được tổ chức kiểm soát, dẫn đến rủi ro về bảo mật, cấu hình và vòng đời (lifecycle).
Mục tiêu: Tổ chức cần kiểm soát hoàn toàn các tài khoản consumer này sau khi đồng bộ, bao gồm cấu hình, bảo mật và quản lý vòng đời (tạo/xóa/tắt). Câu hỏi yêu cầu chọn 2 hành động đúng để đạt được điều này một cách an toàn, tránh gián đoạn dịch vụ và tuân thủ best practices mới nhất (cập nhật đến 2026 từ Google Workspace Admin documentation).
📘 Tài liệu tham khảo chính:
- Transfer consumer accounts to your domain (Google Workspace Admin Help, cập nhật 2025).
- Manage consumer accounts in Google Workspace (hướng dẫn reconcile và sync từ IdP).
- Cloud Identity provisioning from third-party IdP (Google Cloud docs, phiên bản 2026).
✅ Đáp án đúng (Chọn 2)
Hai lựa chọn đúng là:
Reconcile accounts that exist in Cloud Identity but not in the third-party IdP.
Use the transfer tool to invite those corporate employees to transfer their unmanaged consumer accounts to the corporate domain.
Lý do lựa chọn:
- Những hành động này đảm bảo chuyển đổi mượt mà consumer accounts thành managed accounts thuộc domain công ty mà không mất dữ liệu (email, Drive, YouTube).
- Transfer tool (công cụ mới từ 2023, cập nhật 2026) cho phép mời nhân viên chuyển tài khoản consumer sang domain managed, giúp tổ chức kiểm soát ngay lập tức.
- Reconcile (hòa giải) sau sync từ IdP giúp match và merge các tài khoản tồn tại trong Cloud Identity (từ consumer) với identities mới từ IdP, tránh duplicate và đảm bảo lifecycle control.
🛠️ Đây là quy trình chuẩn theo Google best practices, tránh xóa dữ liệu quan trọng và tuân thủ zero-trust security.
📋 Giải thích tất cả các phương án (Đúng/Sai)
-
❌ SAI: Mandate that those corporate employees delete their unmanaged consumer accounts.
Phương án này không hiệu quả và rủi ro cao. Việc bắt buộc xóa consumer accounts sẽ mất toàn bộ dữ liệu (email, files, subscriptions) mà nhân viên đã tạo, gây gián đoạn công việc và không đạt kiểm soát lifecycle (vì tài khoản mới sync từ IdP có thể conflict). Google khuyến cáo KHÔNG xóa thủ công mà dùng transfer/reconcile thay thế (theo docs 2026). -
✅ ĐÚNG: Reconcile accounts that exist in Cloud Identity but not in the third-party IdP.
Hoàn toàn đúng. Sau khi sync identities từ IdP, Cloud Identity tự động phát hiện conflict (consumer accounts dùng corporate email). Reconcile (qua Admin console hoặc API) sẽ merge/hòa giải chúng thành managed accounts, cho phép kiểm soát security (MFA, suspension) và lifecycle. Đây là bước bắt buộc trong provisioning flow mới nhất (2026), tránh duplicate users. -
❌ SAI: Evict the unmanaged consumer accounts in the third-party IdP before you sync identities.
Không khả thi và sai logic. Consumer accounts là Google consumer (không thuộc IdP bên thứ ba), IdP chỉ quản lý corporate identities. Evict (đuổi) ở IdP không ảnh hưởng consumer accounts, dẫn đến sync thất bại hoặc duplicate. Google docs rõ ràng: Không evict consumer ở IdP vì chúng không tồn tại ở đó. -
❌ SAI: Use Google Cloud Directory Sync (GCDS) to migrate the unmanaged consumer accounts' emails as user aliases.
Sai chức năng. GCDS dùng để sync LDAP/AD (như users/groups), KHÔNG hỗ trợ migrate consumer accounts (chúng là Google-managed, không phải directory). Migrate emails thành aliases có thể gây conflict domain và mất dữ liệu gốc. Google đã deprecated cách này từ 2024; dùng transfer tool thay thế (docs 2026). -
✅ ĐÚNG: Use the transfer tool to invite those corporate employees to transfer their unmanaged consumer accounts to the corporate domain.
Hoàn toàn đúng và là best practice. Transfer tool (trong Admin console > Account > Consumer accounts) gửi invite tự động đến nhân viên, cho phép chuyển toàn bộ dữ liệu (Gmail, Drive, Photos) sang domain managed. Sau transfer, tổ chức kiểm soát 100% config/security/lifecycle. Hỗ trợ bulk invite (cập nhật 2026), an toàn cao với verification steps.
🛡️ Lưu ý bảo mật: Quy trình này tuân thủ GDPR/CCPA bằng cách giữ dữ liệu và thêm controls như Context-Aware Access. Nếu cần scale lớn, dùng Automation API cho reconcile/transfer.
What should you do?
- A Use Policy Analyzer to query the permissions compute.firewalls.get or compute.firewalls.list.
- B Use Firewall Insights to understand your firewall rules usage patterns.
- C Reference the Security Health Analytics – Firewall Vulnerability Findings in the Security Command Center.
- D Use Policy Analyzer to query the permissions compute.firewalls.create or compute.firewalls.update or compute.firewalls.delete.
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 kiểm toán (auditing) tất cả tài nguyên Google Cloud trong một project production. Mục tiêu là xác định tất cả các principals (bao gồm người dùng, service account, group, hoặc domain có quyền IAM) có khả năng thay đổi (change) các quy tắc firewall (firewall rules).
🛠️ Thay đổi firewall rules ở đây ám chỉ các hành động như tạo mới, cập nhật hoặc xóa quy tắc, vốn rất nhạy cảm vì ảnh hưởng đến bảo mật mạng VPC. Đây là tình huống thực tế trong Google Cloud IAM (Identity and Access Management), nơi cần sử dụng công cụ phù hợp để query quyền hạn một cách chính xác và toàn diện.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Use Policy Analyzer to query the permissions compute.firewalls.create or compute.firewalls.update or compute.firewalls.delete.
Lý do chi tiết:
Policy Analyzer là công cụ mạnh mẽ của Google Cloud IAM (cập nhật đến năm 2026), cho phép query chính xác các principals có quyền thực thi các hành động cụ thể trên firewall rules. Các quyền compute.firewalls.create (tạo quy tắc mới), compute.firewalls.update (cập nhật quy tắc hiện có), và compute.firewalls.delete (xóa quy tắc) chính là bộ quyền cần thiết để thay đổi firewall rules. Nếu thiếu một trong số này, principal không thể thay đổi. Policy Analyzer sẽ phân tích toàn bộ policy IAM trong project, bao gồm inherited roles, và liệt kê đầy đủ principals có rủi ro này. Đây là cách hiệu quả nhất để audit theo best practices của Google Cloud Security.
📘 Nguồn tham khảo:
- Policy Analyzer Overview (Google Cloud Docs, cập nhật 2025).
- Firewall IAM Permissions (danh sách quyền chính thức).
📋 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 nội dung văn bản gốc bằng tiếng Anh. Phân tích sử dụng kiến thức Google Cloud IAM mới nhất (2026), nhấn mạnh lý do đúng/sai:
-
[SAI] Use Policy Analyzer to query the permissions compute.firewalls.get or compute.firewalls.list.
❌ Phân tích sai: Policy Analyzer đúng công cụ, nhưng compute.firewalls.get (xem chi tiết một quy tắc) và compute.firewalls.list (liệt kê quy tắc) chỉ cho phép đọc dữ liệu (read-only), không thể thay đổi firewall rules. Query này sẽ bỏ sót principals có quyền create/update/delete, dẫn đến audit không đầy đủ và bỏ lỡ rủi ro bảo mật. -
[SAI] Use Firewall Insights to understand your firewall rules usage patterns.
❌ Phân tích sai: Firewall Insights (tính năng trong VPC Network Intelligence Center, cập nhật 2025) chỉ phân tích mô hình sử dụng (usage patterns) như lưu lượng mạng, quy tắc thừa, hoặc shadow rules, không xác định principals hay quyền IAM. Nó tập trung vào hiệu suất và tối ưu hóa, không phải audit quyền hạn người dùng. -
[SAI] Reference the Security Health Analytics – Firewall Vulnerability Findings in the Security Command Center.
❌ Phân tích sai: Security Health Analytics (trong Security Command Center Premium) phát hiện lỗ hổng firewall như quy tắc quá rộng (ví dụ: 0.0.0.0/0) hoặc misconfigurations, không liệt kê principals có quyền thay đổi. Nó chỉ báo cáo vấn đề kỹ thuật, không liên quan đến IAM policy analysis. -
[ĐÚNG] Use Policy Analyzer to query the permissions compute.firewalls.create or compute.firewalls.update or compute.firewalls.delete.
✅ Phân tích đúng (tóm tắt lại): Như đã giải thích ở phần trên, đây là query chính xác nhất, bao quát đầy đủ hành động thay đổi và identify toàn bộ principals rủi ro trong project production. Hoàn hảo cho auditing!
🛡️ Lời khuyên bổ sung: Sau khi query, hãy sử dụng Access Context Manager hoặc Org Policies để khóa quyền này ở mức organization nếu cần.
What should you do?
- A Reupload the files to the same Cloud Storage bucket specifying a key file by using gsutil.
- B Encrypt the files locally, and then use gsutil to upload the files to a new bucket.
- C Copy the files to a new bucket with CMEK enabled in a secondary region.
- D Change the encryption type on the bucket to CMEK, and rewrite the objects.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi xoay quanh tình huống tổ chức của bạn trước đây lưu trữ file trong Google Cloud Storage sử dụng Google Managed Encryption Keys (GMEK) – khóa mã hóa do Google quản lý. Giờ đây, chính sách nội bộ yêu cầu chuyển sang Customer Managed Encryption Keys (CMEK) – khóa mã hóa do khách hàng quản lý qua Cloud KMS. Nhiệm vụ là re-encrypt (mã hóa lại) các file hiện có một cách nhanh chóng, hiệu quả và chi phí tối thiểu.
🔍 Chi tiết vấn đề:
- Các object hiện tại đã được mã hóa bằng GMEK (mặc định của Google).
- Không thể thay đổi khóa mã hóa trực tiếp cho object cũ; cần rewrite hoặc copy để áp dụng CMEK mới.
- Yêu cầu ưu tiên: nhanh (ít thời gian xử lý), hiệu quả (không tốn bandwidth ngoài), chi phí thấp (tránh download/upload lớn, tránh cross-region).
📘 Kiến thức cập nhật (tính đến 2026): Theo tài liệu Google Cloud mới nhất (phiên bản Storage API v1, KMS v1), bucket-level default encryption có thể thay đổi từ GMEK sang CMEK. Sử dụng lệnh gsutil rewrite để re-encrypt in-place (tại chỗ) mà không cần download dữ liệu ra ngoài, chỉ tính phí class A operations và minimal storage.
Nguồn tham khảo:
- Google Cloud Storage: Customer-managed encryption keys
- gsutil rewrite command
- Bucket default encryption
✅ Đáp án đúng
Change the encryption type on the bucket to CMEK, and rewrite the objects.
Lý do chọn đáp án này 🛠️:
- Đây là cách tối ưu nhất theo best practices của Google Cloud. Đầu tiên, cập nhật default encryption key của bucket sang CMEK (qua Console, gcloud hoặc API). Sau đó, dùng lệnh
gsutil rewrite gs://bucket/object gs://bucket/objectđể rewrite object tại chỗ. - Ưu điểm:
- ✅ Nhanh chóng: Xử lý song song, chỉ decrypt/encrypt nội bộ (không download ra client).
- ✅ Hiệu quả: Giữ nguyên vị trí object, metadata không thay đổi.
- ✅ Chi phí thấp: Chỉ phí rewrite (~$0.005/10.000 operations) + minimal storage, tránh egress bandwidth.
- Không vi phạm chính sách, hỗ trợ quy mô lớn (terabytes).
❌ Phân tích tất cả các phương án
Dưới đây là giải thích chi tiết từng lựa chọn, giữ nguyên văn bản gốc:
-
[SAI] Reupload the files to the same Cloud Storage bucket specifying a key file by using gsutil.
❌ Sai vì: Phải download toàn bộ file ra client rồi reupload, gây tốn bandwidth egress cao (phí ~$0.12/GB), thời gian lâu (đặc biệt với dữ liệu lớn), và không hiệu quả. gsutil không hỗ trợ "specifying a key file" trực tiếp cho reupload object cũ vào cùng bucket mà không rewrite đúng cách. Không phải phương pháp nhanh/tiết kiệm. -
[SAI] Encrypt the files locally, and then use gsutil to upload the files to a new bucket.
❌ Sai vì: Yêu cầu download tất cả file, mã hóa cục bộ (tốn CPU client), rồi upload vào bucket mới – chi phí kép (egress + ingress), rủi ro bảo mật (dữ liệu lộ client), và chậm với volume lớn. Không tận dụng encryption nội bộ của Google Cloud, vi phạm yêu cầu "minimal cost" và "quickly". -
[SAI] Copy the files to a new bucket with CMEK enabled in a secondary region.
❌ Sai vì: Copy sang bucket mới có CMEK sẽ re-encrypt, nhưng chỉ định secondary region gây chi phí cross-region replication cao (~$0.02/GB + latency), không cần thiết (có thể copy intra-region rẻ hơn). Tạo bucket mới thừa thãi, quản lý phức tạp, không phải cách "minimal cost" hay nhanh nhất so với rewrite in-place.
🏆 Tóm tắt: Phương án đúng tận dụng tính năng rewrite native của GCS, đảm bảo tuân thủ chính sách CMEK mà không lãng phí tài nguyên! Nếu cần script ví dụ: gsutil -m rewrite -k gs://your-bucket/** gs://your-bucket/**.
What should you do? (Choose two.)
- A Enable Binary Authorization on the existing Cloud Run service.
- B Set the organization policy constraint constraints/run.allowedBinaryAuthorizationPolicies to the list or allowed Binary Authorization policy names.
- C Enable Binary Authorization on the existing Kubernetes cluster.
- D Use Cloud Run breakglass to deploy an image that meets the Binary Authorization policy by default.
- E Set the organization policy constraint constraints/compute.trustedImageProjects to the list of projects that contain the trusted container images.
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 tăng cường bảo mật cho Cloud Run trên Google Cloud Platform (GCP). Bạn đang chạy ứng dụng trên Cloud Run, đã kích hoạt Container Analysis để quét lỗ hổng (vulnerability scanning). Tuy nhiên, bạn lo ngại về việc thiếu kiểm soát đối với các ứng dụng được deploy, nên cần đảm bảo chỉ các container image đáng tin cậy (trusted container images) mới được deploy lên Cloud Run.
Yêu cầu chọn hai hành động đúng (Choose two) để giải quyết vấn đề này. Chủ đề chính là sử dụng Binary Authorization (BinAuthz) – một tính năng của GCP giúp xác thực và kiểm soát image trước khi deploy, bằng cách yêu cầu image phải được ký (signed) và có attestation phù hợp. Điều này đặc biệt quan trọng với Cloud Run (dịch vụ serverless container), giúp ngăn chặn image độc hại.
Kiến thức cập nhật đến năm 2026: Theo tài liệu GCP mới nhất (tính đến 2024-2026), Binary Authorization đã được tích hợp sâu hơn với Cloud Run fully managed, hỗ trợ organization policies để enforce policy ở mức tổ chức, không cần GKE.
✅ Đáp án đúng và lý do lựa chọn
Hai đáp án đúng là:
-
Enable Binary Authorization on the existing Cloud Run service.
- Lý do: Kích hoạt Binary Authorization trực tiếp trên Cloud Run service sẽ yêu cầu mọi deployment phải tuân thủ policy (image phải được ký và attest). Điều này đảm bảo chỉ trusted images được deploy, giải quyết trực tiếp vấn đề thiếu kiểm soát. Đây là bước đầu tiên cần thiết cho Cloud Run fully managed.
-
Set the organization policy constraint constraints/run.allowedBinaryAuthorizationPolicies to the list or allowed Binary Authorization policy names.
- Lý do: Organization policy này (dành riêng cho Cloud Run) cho phép chỉ định danh sách các Binary Authorization policy được phép sử dụng ở mức tổ chức/folder/project. Nó enforce kiểm soát toàn diện, ngăn chặn deploy image không tuân thủ policy nào, bổ sung hoàn hảo cho việc enable BinAuthz.
Kết hợp hai bước này tạo lớp bảo mật mạnh mẽ, phù hợp với best practices của GCP Security.
📋 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 phương án một cách đầy đủ, với ✅ đúng hoặc ❌ sai. Tôi giữ nguyên văn bản gốc bằng tiếng Anh, chỉ giải thích bằng tiếng Việt rõ ràng:
-
Enable Binary Authorization on the existing Cloud Run service.
✅ Đúng: Như đã giải thích, đây là cách kích hoạt BinAuthz trực tiếp trên Cloud Run service hiện tại, yêu cầu mọi image deploy phải qua verification (signature + attestation). Theo docs GCP, lệnhgcloud beta run deploy --enable-binary-authorizationhoặc qua console sẽ enforce ngay lập tức. -
Set the organization policy constraint constraints/run.allowedBinaryAuthorizationPolicies to the list or allowed Binary Authorization policy names.
✅ Đúng: Policy constraint này chuyên biệt cho Cloud Run (ra mắt từ 2023, cập nhật 2024+), cho phép whitelist các BinAuthz policy hợp lệ. Nếu không set, deploy có thể fail nếu không match policy. Sử dụnggcloud org-policies set-policyđể áp dụng ở mức tổ chức, đảm bảo compliance toàn diện. -
Enable Binary Authorization on the existing Kubernetes cluster.
❌ Sai: Cloud Run fully managed không chạy trên Kubernetes cluster (như GKE), mà là serverless do Google quản lý. BinAuthz trên GKE chỉ áp dụng cho cluster-based workloads, không ảnh hưởng đến Cloud Run. Sử dụng sai sẽ không giải quyết vấn đề. -
Use Cloud Run breakglass to deploy an image that meets the Binary Authorization policy by default.
❌ Sai: "Breakglass" là cơ chế bypass tạm thời (emergency access) để deploy khi BinAuthz block, không phải để "ensure only trusted images". Nó dùng cho tình huống khẩn cấp (như--allow-unauthenticated), trái ngược mục tiêu kiểm soát chặt chẽ, và không enforce trusted images mặc định. -
Set the organization policy constraint constraints/compute.trustedImageProjects to the list of projects that contain the trusted container images.
❌ Sai: Constraintcompute.trustedImageProjectsdành cho Compute Engine VMs (hạn chế image source từ project cụ thể), không áp dụng cho Cloud Run. Cloud Run dùng Artifact Registry/Container Registry với BinAuthz riêng, policy này sẽ không có hiệu lực và gây nhầm lẫn.
📘 Tài liệu tham khảo
- Binary Authorization cho Cloud Run: cloud.google.com/binary-authorization/docs/running-with-binary-authorization-cloud-run 🛠️ (Hướng dẫn enable và policy).
- Organization Policy Constraints: cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints#run.allowedBinaryAuthorizationPolicies 📘 (Chi tiết constraints/run.*).
- Cloud Run Security Best Practices: cloud.google.com/run/docs/securing (Cập nhật 2024-2026).
- Container Analysis & BinAuthz: cloud.google.com/container-analysis/docs/binary-authorization-overview.
Hy vọng phân tích này giúp bạn ôn thi chứng chỉ Professional Cloud Security Engineer hiệu quả! 🚀 Nếu cần thêm ví dụ code gcloud, hãy hỏi nhé.
What should you do?
- A Set up VPC peering between the hosts on-premises and the VPC through the internet.
- B Route all on-premises traffic to Google Cloud through an IPsec VPN tunnel to a VPC with Private Google Access enabled.
- C Enforce a security policy that mandates all applications to encrypt data with a Cloud Key Management Service (KMS) key before you send it over the network.
- D Route all on-premises traffic to Google Cloud through a dedicated or Partner Interconnect to a VPC with Private Google Access enabled.
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 thiết lập kết nối riêng tư (private connectivity) giữa các máy chủ on-premises (tại trung tâm dữ liệu của tổ chức) với các Google Cloud APIs (như APIs của Compute Engine, Storage, v.v.). Yêu cầu chính bao gồm:
- Enforce private connectivity: Đảm bảo lưu lượng không đi qua internet công cộng, tránh rủi ro bảo mật và độ trễ cao. ✅
- Minimize costs: Giảm thiểu chi phí kết nối (ưu tiên giải pháp rẻ hơn so với các tùy chọn cao cấp). 💰
- Optimize for operational efficiency: Tối ưu hóa hiệu quả vận hành, nghĩa là dễ triển khai, quản lý và mở rộng mà không phức tạp. 🛠️
Bối cảnh kỹ thuật: On-premises hosts cần truy cập Google Cloud APIs qua Private Google Access (PGA) – tính năng cho phép các tài nguyên trong VPC truy cập dịch vụ Google mà không cần public IP. Để on-premises kết nối vào VPC này, cần tunnel riêng tư như IPsec VPN hoặc Interconnect. Kiến thức cập nhật đến 2026: Google Cloud vẫn ưu tiên HA VPN (Cloud VPN) cho kết nối private giá rẻ, hỗ trợ lên đến 50 Gbps/site, tích hợp PGA (theo tài liệu Google Cloud Networking 2025+). 📘
✅ Đáp án đúng: Route all on-premises traffic to Google Cloud through an IPsec VPN tunnel to a VPC with Private Google Access enabled.
Lý do lựa chọn:
- Private connectivity: IPsec VPN (qua Cloud VPN) tạo tunnel mã hóa riêng tư từ on-premises đến VPC, tránh internet công cộng. Kết hợp PGA, on-premises có thể route traffic đến Google APIs qua private IP (10.128.0.0/9). 🔒
- Minimize costs: VPN rẻ hơn Dedicated/Partner Interconnect (chỉ tính phí egress ~$0.05/GB, không phí setup cố định cao như Interconnect ~$200-$2000/tháng). Phù hợp cho lưu lượng vừa phải. 💰
- Operational efficiency: Dễ thiết lập nhanh (Classic VPN hoặc HA VPN với BGP), tự động scale, quản lý qua console/CLI, không cần thiết bị vật lý. Thời gian deploy <1 giờ. ⚡
- Đây là best practice theo Google Cloud Well-Architected Framework (Security pillar, 2026 edition). 🏆
Nguồn tham khảo:
- Google Cloud Private Google Access 📘
- Cloud VPN Documentation (cập nhật 2025 với IPv6 support) 📘
- Networking Best Practices 🛠️
📋 Giải thích tất cả các phương án (đúng/sai)
-
❌ [SAI] Set up VPC peering between the hosts on-premises and the VPC through the internet.
- Phân tích: VPC peering chỉ kết nối giữa các VPC (Google Cloud to Google Cloud hoặc tương đương), không hỗ trợ on-premises trực tiếp. "Through the internet" vi phạm yêu cầu private connectivity (peering không qua internet mà qua Google's backbone, nhưng không áp dụng cho on-prem). Sai hoàn toàn về kiến trúc. 🚫
-
✅ [ĐÚNG] Route all on-premises traffic to Google Cloud through an IPsec VPN tunnel to a VPC with Private Google Access enabled.
- Phân tích: Hoàn hảo khớp yêu cầu như giải thích ở trên. VPN + PGA đảm bảo private, rẻ, hiệu quả. Đây là giải pháp tiêu chuẩn cho hybrid cloud. (Chi tiết đã nêu). 🎯
-
❌ [SAI] Enforce a security policy that mandates all applications to encrypt data with a Cloud Key Management Service (KMS) key before you send it over the network.
- Phân tích: KMS chỉ mã hóa dữ liệu tại rest/in-transit, không tạo connectivity private (vẫn cần public internet hoặc tunnel). Không giải quyết vấn đề truy cập APIs private, chỉ là biện pháp bảo mật bổ sung. Không tối ưu costs/efficiency cho connectivity. 🔑❌
-
❌ [SAI] Route all on-premises traffic to Google Cloud through a dedicated or Partner Interconnect to a VPC with Private Google Access enabled.
- Phân tích: Interconnect (Dedicated/Partner) đúng là private + PGA, nhưng không minimize costs (phí setup cao $200-$2000/tháng + $0.02-$0.30/GB, yêu cầu thiết bị vật lý/colocation). Ít efficient hơn VPN cho hầu hết trường hợp (chỉ phù hợp >10 Gbps sustained). Vi phạm tiêu chí chi phí. 🌐💸
Which logs should you analyze?
- A Data Access audit logs
- B Policy Denied audit logs
- C Cloud Identity user log events
- D Admin Activity audit logs
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 chiến lược Zero Trust trong Google Cloud Platform (GCP), sử dụng Identity-Aware Proxy (IAP) để bảo vệ nhiều ứng dụng. Mục tiêu là ingest logs vào hệ thống SIEM (Security Information and Event Management) nhằm phát hiện và cảnh báo các cuộc xâm nhập tiềm ẩn (possible intrusions).
- Zero Trust: Mô hình bảo mật không tin tưởng bất kỳ ai, yêu cầu xác thực liên tục cho mọi truy cập.
- IAP: Dịch vụ proxy của GCP kiểm soát truy cập ứng dụng dựa trên identity (tài khoản Google hoặc IAM), không cần VPN.
- Yêu cầu chính: Xác định loại logs cần phân tích để theo dõi các hoạt động đáng ngờ, như truy cập trái phép qua IAP.
📘 Tài liệu tham khảo:
- Google Cloud IAP Logging (cập nhật 2024-2026).
- Cloud Audit Logs Overview (phiên bản mới nhất GCP Audit Logs v2).
✅ Đáp án đúng: Data Access audit logs
Lý do lựa chọn:
- IAP ghi tất cả các yêu cầu truy cập (access requests) vào Data Access audit logs, bao gồm cả truy cập thành công và thất bại.
- Điều này giúp phát hiện intrusions qua các dấu hiệu như truy cập bất thường, IP lạ, hoặc hành vi đáng ngờ từ IAP-protected apps.
- Trong Zero Trust, logs này là nguồn chính để SIEM phân tích real-time, alert anomalies (ví dụ: brute-force, anomalous login).
- Phù hợp phiên bản mới nhất (2026): Data Access logs hỗ trợ IAP TCP/UDP forwarding và integration với Security Command Center.
📋 Giải thích tất cả các phương án
-
✅ Data Access audit logs
Đúng 🛠️: Như đã giải thích, IAP logs mọi truy cập dữ liệu (reads/writes qua proxy) vào đây. Bao gồm metadata như user, IP, app, thời gian – lý tưởng cho SIEM detect intrusions (ví dụ: unauthorized data fetch). -
❌ Policy Denied audit logs
Sai ❌: Loại logs này ghi denials do policy violations (như IAM policy deny), nhưng không phải logs chính của IAP access. IAP denials có thể xuất hiện ở đây, nhưng thiếu chi tiết full access flow; chỉ dùng cho policy troubleshooting, không đủ cho intrusion detection toàn diện. -
❌ Cloud Identity user log events
Sai ❌: Đây là logs từ Cloud Identity (user lifecycle như login/logout, MFA), không liên quan trực tiếp đến IAP-protected apps. Chúng theo dõi identity events ở mức user account, bỏ lỡ app-specific intrusions qua IAP proxy. -
❌ Admin Activity audit logs
Sai ❌: Ghi thay đổi cấu hình admin (như edit IAP policies, enable/disable apps). Hữu ích cho threat hunting config changes, nhưng không ghi access attempts – không phù hợp alert real-time intrusions từ end-users.
Kết luận 🎯: Tập trung Data Access audit logs để ingest vào SIEM (như Chronicle hoặc Splunk) với filters IAP-specific, đảm bảo Zero Trust compliance!
What command should you execute?
-
A
• organization poli-cy:constraints/gcp.restrictStorageNonCmekServices
• binding at: org1
• policy type: allow
• policy value: all supported services -
B
• organization policy: con-straints/gcp.restrictNonCmekServices
• binding at: org1
• policy type: deny
• policy value: storage.googleapis.com -
C
• organization policy: con-straints/gcp.restrictStorageNonCmekServices
• binding at: org1
• policy type: deny
• policy value: storage.googleapis.com -
D
• organization policy: con-straints/gcp.restrictNonCmekServices
• binding at: org1
• policy type: allow
• policy value: storage.googleapis.com
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi yêu cầu thực thi lệnh (command) để ép buộc sử dụng khóa mã hóa do khách hàng quản lý (CMEK - Customer-Managed Encryption Keys) cho tất cả các tài nguyên Cloud Storage mới trong tổ chức có tên org1.
- Bối cảnh: Công ty phải tuân thủ các quy định ngành cụ thể, nên cần áp dụng chính sách tổ chức (Organization Policy) ở cấp độ tổ chức (
org1) để ngăn chặn việc tạo bucket Cloud Storage mới mà không sử dụng CMEK. - Mục tiêu chính: Sử dụng Organization Policy constraint để deny (cấm) các dịch vụ không hỗ trợ CMEK, cụ thể chỉ áp dụng cho
storage.googleapis.com(dịch vụ Cloud Storage). - Lưu ý kỹ thuật: Policy được áp dụng qua gcloud command hoặc Console, với binding tại tổ chức
org1, kiểu deny để cấm tạo tài nguyên không CMEK. Constraint đúng phải làgcp.restrictNonCmekServices(áp dụng rộng cho các dịch vụ hỗ trợ CMEK, nhưng chỉ định value làstorage.googleapis.comđể tập trung vào Storage).
📘 Tài liệu tham khảo: - GCP Organization Policy - Restrict non-CMEK services (cập nhật 2024-2026).
- Cloud Storage CMEK enforcement – Constraint
storage.restrictNonCmekBucketstương đương, nhưng câu hỏi dùng prefixgcp.cho generality.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng:
• organization policy: con-straints/gcp.restrictNonCmekServices
• binding at: org1
• policy type: deny
• policy value: storage.googleapis.com
Lý do:
- Constraint
gcp.restrictNonCmekServicescấm tạo tài nguyên mới trên các dịch vụ không sử dụng CMEK, và chỉ địnhstorage.googleapis.comđể áp dụng chính xác cho Cloud Storage. - Policy type: deny là bắt buộc để chặn (không cho phép tạo bucket non-CMEK).
- Binding tại org1 đảm bảo áp dụng toàn tổ chức cho tất cả tài nguyên mới.
🛠️ Lệnh gcloud mẫu:gcloud org-policies set-policy --organization=org1 organizations/org1 constraints/gcp.restrictNonCmekServices --policy='{"constraint": "constraints/gcp.restrictNonCmekServices", "listPolicy": {"deniedValues": ["storage.googleapis.com"]}}'.
Điều này phù hợp quy định ngành (như HIPAA, PCI-DSS) yêu cầu CMEK bắt buộc.
📋 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 văn bản gốc tiếng Anh. Mỗi phương án được đánh giá đúng/sai dựa trên logic GCP Organization Policy (phiên bản mới nhất 2026).
-
❌ Phương án SAI:
• organization poli-cy:constraints/gcp.restrictStorageNonCmekServices
• binding at: org1
• policy type: allow
• policy value: all supported services
Giải thích: Constraintgcp.restrictStorageNonCmekServiceskhông tồn tại chuẩn (chỉ cóstorage.restrictNonCmekBucketshoặcgcp.restrictNonCmekServices). Policy type: allow sẽ cho phép thay vì cấm, dẫn đến không enforce CMEK. Valueall supported servicesquá rộng, không tập trung vào Storage và có thể cho phép non-CMEK trên dịch vụ khác. -
✅ Phương án ĐÚNG (như đã giải thích ở trên):
• organization policy: con-straints/gcp.restrictNonCmekServices
• binding at: org1
• policy type: deny
• policy value: storage.googleapis.com
Giải thích: Hoàn hảo khớp yêu cầu – deny chính xác cho Storage service, enforce CMEK bắt buộc cho bucket mới ở cấp org1. -
❌ Phương án SAI:
• organization policy: con-straints/gcp.restrictStorageNonCmekServices
• binding at: org1
• policy type: deny
• policy value: storage.googleapis.com
Giải thích: Constraintgcp.restrictStorageNonCmekServiceskhông phải tên chuẩn (GCP dùngstorage.restrictNonCmekBucketshoặcgcp.restrictNonCmekServicestổng quát). Dù deny và value đúng, tên constraint sai sẽ làm policy không áp dụng, không enforce được CMEK. -
❌ Phương án SAI:
• organization policy: con-straints/gcp.restrictNonCmekServices
• binding at: org1
• policy type: allow
• policy value: storage.googleapis.com
Giải thích: Constraint đúng nhưng policy type: allow chỉ cho phép Storage với CMEK, không cấm non-CMEK. Kết quả: Vẫn có thể tạo bucket không CMEK, vi phạm yêu cầu "enforce cho tất cả new resources".
🛡️ Lời khuyên bảo mật: Sau khi set policy, kiểm tra bằng gcloud org-policies describe constraints/gcp.restrictNonCmekServices --organization=org1 và test tạo bucket non-CMEK (sẽ fail). Áp dụng IAM conditions bổ sung cho KMS keys nếu cần!
What should you do?
-
A
1. Create a dedicated log sink for each project that is in scope.
2. Use a BigQuery dataset with time partitioning enabled as a destination of the log sinks.
3. Deploy alerts based on log metrics in every project.
4. Grant the role "Monitoring Viewer" to the security operations team in each project. -
B
1. Create one log sink at the organization level that includes all the child resources.
2. Use as destination a Pub/Sub topic to ingest the logs into the security information and event. management (SIEM) on-premises, and ensure that the right team can access the SIEM.
3. Grant the Viewer role at organization level to the security operations team. -
C
1. Enable network logs and data access logs for all resources in the "Production" folder.
2. Do not create log sinks to avoid unnecessary costs and latency.
3. Grant the roles "Logs Viewer" and "Browser" at project level to the security operations team. -
D
1. Create one sink for the "Production" folder that includes child resources and one sink for the logs ingested at the organization level that excludes child resources.
2. As destination, use a log bucket with a minimum retention period of 90 days in a project that can be accessed by the security team.
3. Grant the security operations team the role of Security Reviewer at organization level.
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 Google Cloud có khoảng 200 projects và 1.500 virtual machines (VM), nhưng thiếu chiến lược thống nhất cho việc quản lý logs và events. Điều này làm giảm khả năng quan sát (visibility) của đội ngũ bảo mật (security operations team).
Yêu cầu thiết kế giải pháp quản lý logs cần:
- Cung cấp visibility toàn diện vào logs và events.
- Cho phép đội ngũ bảo mật xem cấu hình môi trường (environment's configuration).
📘 Mục tiêu chính: Giải pháp phải tập trung (centralized), scaleable cho quy mô lớn (200 projects), hỗ trợ tích hợp với SIEM (nếu cần), và cấp quyền truy cập an toàn mà không cần cấu hình từng project riêng lẻ. Sử dụng Cloud Logging với log sinks tại mức organization để export logs hiệu quả, theo best practices của Google Cloud (cập nhật đến 2026: Logging v2 với organization-level sinks hỗ trợ aggregation tự động cho child resources).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng là lựa chọn thứ 2:
- Create one log sink at the organization level that includes all the child resources.
- Use as destination a Pub/Sub topic to ingest the logs into the security information and event. management (SIEM) on-premises, and ensure that the right team can access the SIEM.
- Grant the Viewer role at organization level to the security operations team.
Lý do chọn đáp án này 🛠️:
- Bước 1: Tạo một log sink duy nhất tại organization level bao quát tất cả child resources (projects, folders) giúp tập trung logs từ 200 projects mà không cần sink riêng lẻ, giảm chi phí và quản lý phức tạp.
- Bước 2: Sử dụng Pub/Sub topic làm destination để stream logs real-time vào SIEM on-premises (như Splunk, ELK), phù hợp với hybrid environment, đảm bảo đội ngũ bảo mật truy cập SIEM dễ dàng.
- Bước 3: Viewer role tại organization level cho phép xem logs, metrics, và cấu hình toàn bộ environment (resources, IAM, configs) mà không cần grant từng project – scaleable và tuân thủ least privilege.
✅ Hoàn hảo cho visibility và security ops, theo Google Cloud best practices (Logging aggregation tại org level).
📋 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 bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai với lý do cụ thể bằng tiếng Việt:
-
❌ Phương án 1 (SAI):
- Create a dedicated log sink for each project that is in scope.
- Use a BigQuery dataset with time partitioning enabled as a destination of the log sinks.
- Deploy alerts based on log metrics in every project.
- Grant the role "Monitoring Viewer" to the security operations team in each project.
Lý do sai 🚫: Tạo sink riêng cho từng project (200 cái) không scaleable, tốn kém quản lý và chi phí. BigQuery tốt cho analytics nhưng không ưu tiên cho real-time security visibility hay SIEM. Alerts và "Monitoring Viewer" chỉ xem metrics, không xem đầy đủ logs/configs, thiếu centralized view.
-
✅ Phương án 2 (ĐÚNG):
- Create one log sink at the organization level that includes all the child resources.
- Use as destination a Pub/Sub topic to ingest the logs into the security information and event. management (SIEM) on-premises, and ensure that the right team can access the SIEM.
- Grant the Viewer role at organization level to the security operations team.
Lý do đúng 🏆: Như đã giải thích ở trên – centralized, scaleable, hỗ trợ SIEM, và Viewer role cho visibility configs. Hoàn chỉnh và hiệu quả nhất.
-
❌ Phương án 3 (SAI):
- Enable network logs và data access logs for all resources in the "Production" folder.
- Do not create log sinks to avoid unnecessary costs and latency.
- Grant the roles "Logs Viewer" và "Browser" at project level to the security operations team.
Lý do sai 🚫: Chỉ enable logs trong folder "Production" không bao quát toàn org (chỉ một phần). Không dùng sink nghĩa là logs chỉ lưu tạm trong Cloud Logging (retention mặc định 30 ngày), không export ra ngoài nên thiếu long-term visibility/SIEM. Grant role từng project không scale cho 200 projects, "Browser" chỉ xem resource tree chứ không sâu configs/logs.
-
❌ Phương án 4 (SAI):
- Create one sink for the "Production" folder that includes child resources and one sink for the logs ingested at the organization level that excludes child resources.
- As destination, use a log bucket with a minimum retention period of 90 days in a project that can be accessed by the security team.
- Grant the security operations team the role of Security Reviewer at organization level.
Lý do sai 🚫: Tạo hai sink chồng chéo (folder + org exclude child) gây duplicate logs, phức tạp và tốn kém. Log bucket tốt cho storage dài hạn nhưng không real-time/SIEM. "Security Reviewer" role (mới từ 2023) chỉ xem Security Health Analytics (misconfigs), không phải logs đầy đủ hay configs chi tiết.
📘 Tài liệu tham khảo (Google Cloud cập nhật 2026)
- Cloud Logging: Organization-level sinks – Hỗ trợ aggregate logs từ all child resources.
- IAM Roles for Logging – Viewer cho visibility org-wide.
- Export to Pub/Sub for SIEM – Best practice cho hybrid security.
- Security Reviewer role – Giới hạn ở security health.
🛡️ Khuyến nghị: Implement Audit Logs mandatory và CMEK cho compliance!