Google Cloud Professional Cloud Architect Domain 3: Designing for Security and Compliance
34 free practice questions for Designing for Security and Compliance in the Google Cloud Professional Cloud Architect (PCA) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Designing for Security and Compliance practice questions
-
Question 1. Developers must never be able to create service account keys in any project. What is the most effective control?
Show answer
Answer: D. An organization policy that disables service account key creation
Organization policies set guardrails that apply to all projects below the node, even for project owners.
-
Question 2. Resources may only be created in EU regions across the organization. What should be configured?
Show answer
Answer: D. The resource location restriction organization policy
gcp.resourceLocations limits where location-based resources can be created.
-
Question 3. Data exfiltration from BigQuery and Cloud Storage to projects outside the company must be blocked, even with valid credentials. What should be used?
Show answer
Answer: C. VPC Service Controls service perimeters
Service perimeters restrict data movement across boundaries for supported Google APIs.
-
Question 4. A partner's IP range must access a BigQuery dataset inside a VPC Service Controls perimeter. What should be configured?
Show answer
Answer: D. An access level used in an ingress rule
Access levels (Access Context Manager) and ingress rules allow specific traffic into the perimeter.
-
Question 5. Before enforcing a new VPC Service Controls perimeter, the team wants to see what would be blocked. What should be used?
Show answer
Answer: B. Dry-run mode for the perimeter
Dry-run logs violations without blocking, so the configuration can be refined.
-
Question 6. Access to internal web apps should require a user identity and a trusted device, without a VPN. What should be used?
Show answer
Answer: A. Identity-Aware Proxy with context-aware access levels
IAP checks identity and context for each request, following a zero-trust approach.
-
Question 7. Admins need SSH access to VMs without external IPs or bastion hosts. What should be used?
Show answer
Answer: A. IAP TCP forwarding, with the firewall allowing IAP's source range
IAP TCP forwarding tunnels SSH and RDP through Google's proxy after an IAM check.
-
Question 8. Linux SSH access must be tied to IAM identities and support 2-step verification. What should be enabled?
Show answer
Answer: C. OS Login (with 2-step verification)
OS Login links Linux accounts to Google identities and IAM roles.
-
Question 9. Customer data in Cloud Storage and BigQuery must be encrypted with keys the company controls and can rotate. What should be used?
Show answer
Answer: D. Customer-managed encryption keys (CMEK) in Cloud KMS
CMEK lets the company control key rotation, access, and disabling, which makes data unreadable.
-
Question 10. Keys must be stored in FIPS 140-2 Level 3 hardware and never leave it. What protection level should be chosen?
Show answer
Answer: B. Cloud HSM keys in Cloud KMS
Cloud HSM uses validated hardware security modules managed by Google.
-
Question 11. A regulator requires encryption keys to be held outside Google Cloud in a third-party key manager. What should be used?
Show answer
Answer: B. Cloud External Key Manager (EKM)
EKM uses keys stored in a supported external key manager, and access can be denied from outside.
-
Question 12. Database passwords and API keys must be stored centrally with versioning and IAM-controlled access. What should be used?
Show answer
Answer: B. Secret Manager
Secret Manager stores secrets with versions, rotation schedules, and audit logs.
-
Question 13. PII such as credit card numbers must be found and masked in data before it goes to analytics. What should be used?
Show answer
Answer: D. Sensitive Data Protection de-identification
Sensitive Data Protection inspects, classifies, and de-identifies sensitive data.
-
Question 14. Which principle should guide IAM role assignments for a new application team?
Show answer
Answer: A. Least-privilege predefined roles at the lowest needed scope
Basic roles such as Editor are broad. Predefined or custom roles at a narrow scope reduce risk.
-
Question 15. Temporary access must be granted to a contractor that expires automatically after 30 days. What should be used?
Show answer
Answer: D. An IAM Condition with an expiry date/time
IAM Conditions can limit bindings by time, resource names, or tags.
-
Question 16. Workloads running in GKE must call Google APIs without service account keys. What should be used?
Show answer
Answer: C. Workload Identity Federation for GKE
Kubernetes service accounts map to IAM principals, so pods get short-lived tokens.
-
Question 17. A CI system in another cloud must deploy to Google Cloud without long-lived keys. What should be configured?
Show answer
Answer: D. Workload Identity Federation with an identity pool and provider
Federation exchanges the external OIDC or SAML token for short-lived Google credentials.
-
Question 18. Admin activity logs must be retained for 7 years and kept in a central, tamper-resistant location. What should be designed?
Show answer
Answer: C. An aggregated org log sink to a bucket with locked retention
Aggregated sinks collect logs from all projects, and locked retention prevents deletion.
-
Question 19. Security teams need to see who read objects in a sensitive bucket. What must be enabled?
Show answer
Answer: D. Data Access audit logs for Cloud Storage
Data Access logs record reads and writes of user data, and they're off by default for most services.
-
Question 20. A company wants logs showing when Google staff access its content for support. Which feature provides this?
Show answer
Answer: A. Access Transparency
Access Transparency logs Google personnel actions. Access Approval can require customer approval first.
-
Question 21. Only container images signed by the company's build pipeline may be deployed to GKE. What should be used?
Show answer
Answer: A. Binary Authorization with attestations
Binary Authorization enforces deploy-time policies requiring trusted attestations.
-
Question 22. A public web app needs protection from DDoS and OWASP top 10 attacks at the edge. What should be used?
Show answer
Answer: A. Cloud Armor policies on the external Application Load Balancer
Cloud Armor provides WAF rules, rate limiting, and DDoS protection at Google's edge.
-
Question 23. Which service centrally reports misconfigurations, vulnerabilities, and threats across the Google Cloud organization?
Show answer
Answer: A. Security Command Center
Security Command Center shows findings from built-in detectors and integrated services.
-
Question 24. VMs must boot only with verified firmware and kernels, with integrity monitoring. What should be enabled?
Show answer
Answer: A. Shielded VM (Secure Boot, vTPM, integrity monitoring)
Shielded VMs protect against rootkits and boot-level malware.
-
Question 25. A regulated workload must run in a Google Cloud environment with data residency and personnel access controls for a specific compliance regime. What should be used?
Show answer
Answer: C. Assured Workloads with the matching control package
Assured Workloads applies controls for regimes such as FedRAMP, CJIS, or EU sovereignty.
-
Question 26. A company must show auditors Google Cloud's own compliance certifications, such as ISO 27001 and SOC 2 reports. Where are they found?
Show answer
Answer: A. The Compliance Reports Manager
Compliance reports are available for customers to download for audits.
-
Question 27. Which statement about the shared responsibility model on Google Cloud is correct?
Show answer
Answer: A. Google secures the infrastructure; customers secure data and access
The customer's share shrinks with more managed services, but data and access control stay with the customer.
-
Question 28. A Cloud Storage bucket should only allow IAM-based access, with no per-object ACLs. What should be enabled?
Show answer
Answer: C. Uniform bucket-level access
Uniform access disables ACLs, so IAM policies alone control access.
-
Question 29. Buckets must never be publicly accessible, even if a user tries to grant allUsers access. What enforces this?
Show answer
Answer: D. The public access prevention organization policy
Public access prevention blocks public ACLs and IAM grants to allUsers and allAuthenticatedUsers.
-
Question 30. A company wants to use its corporate identity provider for Google Cloud sign-in with SSO and MFA. What should be configured?
Show answer
Answer: A. Cloud Identity or Google Workspace with SAML SSO to the IdP
Federating with the IdP centralizes authentication and policy. Google Cloud Directory Sync can sync users and groups.
-
Question 31. Which approach simplifies IAM management for 500 engineers across many projects?
Show answer
Answer: B. Grant roles to Google groups instead of individual users
Group-based access makes onboarding and offboarding a matter of group membership.
-
Question 32. A service account is overprivileged, but the team isn't sure which permissions it actually uses. What helps?
Show answer
Answer: A. IAM Recommender role recommendations based on usage
The recommender suggests smaller roles based on permissions used over the last 90 days.
-
Question 33. A web app must verify that requests come from real users and not bots at sign-up. What can be added?
Show answer
Answer: D. reCAPTCHA, with Cloud Armor acting on scores
reCAPTCHA scores requests, and Cloud Armor can act on those scores at the edge.
-
Question 34. Which design keeps a data analytics project's sensitive datasets protected by column-level access in BigQuery?
Show answer
Answer: C. Policy tags on columns with fine-grained reader roles
Policy tags restrict access to sensitive columns. Row-level access policies can also filter rows.
Google Cloud is a trademark of Google LLC. These questions are original study material, not questions from the real exam.