Google Cloud Professional Cloud Architect · Domain 3 of 6 · 17% of the exam

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

  1. Question 1. Developers must never be able to create service account keys in any project. What is the most effective control?

    1. A reminder about key risks in the onboarding documentation
    2. Removing the Viewer role from all developers in each project
    3. A Cloud Monitoring alert that fires when keys are used
    4. An organization policy that disables service account key creation
    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.

  2. Question 2. Resources may only be created in EU regions across the organization. What should be configured?

    1. A firewall rule blocking non-EU IPs
    2. VPC Service Controls around every project
    3. A label named region=eu on each project
    4. The resource location restriction organization policy
    Show answer

    Answer: D. The resource location restriction organization policy

    gcp.resourceLocations limits where location-based resources can be created.

  3. 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?

    1. Firewall rules on the VPC
    2. Cloud Armor security policies
    3. VPC Service Controls service perimeters
    4. IAM Conditions on time of day
    Show answer

    Answer: C. VPC Service Controls service perimeters

    Service perimeters restrict data movement across boundaries for supported Google APIs.

  4. Question 4. A partner's IP range must access a BigQuery dataset inside a VPC Service Controls perimeter. What should be configured?

    1. Removing the project from the perimeter
    2. A public dataset share
    3. A service account key for the partner
    4. An access level used in an ingress rule
    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.

  5. Question 5. Before enforcing a new VPC Service Controls perimeter, the team wants to see what would be blocked. What should be used?

    1. Deleting the perimeter after a week
    2. Dry-run mode for the perimeter
    3. Disabling audit logs during testing
    4. A firewall rule with logging only
    Show answer

    Answer: B. Dry-run mode for the perimeter

    Dry-run logs violations without blocking, so the configuration can be refined.

  6. Question 6. Access to internal web apps should require a user identity and a trusted device, without a VPN. What should be used?

    1. Identity-Aware Proxy with context-aware access levels
    2. A public load balancer with IP allowlists
    3. Cloud NAT with firewall rules
    4. Shared VPC with no firewall rules
    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.

  7. Question 7. Admins need SSH access to VMs without external IPs or bastion hosts. What should be used?

    1. IAP TCP forwarding, with the firewall allowing IAP's source range
    2. Opening port 22 to 0.0.0.0/0
    3. A public IP on each VM with OS Login disabled
    4. Cloud NAT with inbound port forwarding
    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.

  8. Question 8. Linux SSH access must be tied to IAM identities and support 2-step verification. What should be enabled?

    1. Project-wide SSH keys in metadata
    2. A shared root password
    3. OS Login (with 2-step verification)
    4. Serial port access for all users
    Show answer

    Answer: C. OS Login (with 2-step verification)

    OS Login links Linux accounts to Google identities and IAM roles.

  9. Question 9. Customer data in Cloud Storage and BigQuery must be encrypted with keys the company controls and can rotate. What should be used?

    1. Google default encryption only
    2. Client-side Base64 encoding
    3. Bucket labels marking data as confidential
    4. Customer-managed encryption keys (CMEK) in Cloud KMS
    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.

  10. Question 10. Keys must be stored in FIPS 140-2 Level 3 hardware and never leave it. What protection level should be chosen?

    1. Software-protected keys
    2. Cloud HSM keys in Cloud KMS
    3. Keys stored in Secret Manager
    4. Keys in a VM's local disk
    Show answer

    Answer: B. Cloud HSM keys in Cloud KMS

    Cloud HSM uses validated hardware security modules managed by Google.

  11. Question 11. A regulator requires encryption keys to be held outside Google Cloud in a third-party key manager. What should be used?

    1. Customer-supplied keys in each API request only
    2. Cloud External Key Manager (EKM)
    3. Cloud HSM in a single region
    4. Default encryption with key rotation
    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.

  12. Question 12. Database passwords and API keys must be stored centrally with versioning and IAM-controlled access. What should be used?

    1. Environment variables in source code
    2. Secret Manager
    3. Cloud Storage objects with public access
    4. Instance metadata visible to all users
    Show answer

    Answer: B. Secret Manager

    Secret Manager stores secrets with versions, rotation schedules, and audit logs.

  13. Question 13. PII such as credit card numbers must be found and masked in data before it goes to analytics. What should be used?

    1. Cloud Armor preconfigured WAF rules
    2. VPC Flow Logs with metadata sampling
    3. Cloud CDN signed cookies on the data
    4. Sensitive Data Protection de-identification
    Show answer

    Answer: D. Sensitive Data Protection de-identification

    Sensitive Data Protection inspects, classifies, and de-identifies sensitive data.

  14. Question 14. Which principle should guide IAM role assignments for a new application team?

    1. Least-privilege predefined roles at the lowest needed scope
    2. Grant Owner at the organization level for speed
    3. Share one user account for the whole team
    4. Grant Editor on all projects by default
    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.

  15. Question 15. Temporary access must be granted to a contractor that expires automatically after 30 days. What should be used?

    1. A reminder to remove access manually
    2. A new organization for the contractor
    3. A service account key shared by email
    4. An IAM Condition with an expiry date/time
    Show answer

    Answer: D. An IAM Condition with an expiry date/time

    IAM Conditions can limit bindings by time, resource names, or tags.

  16. Question 16. Workloads running in GKE must call Google APIs without service account keys. What should be used?

    1. A JSON key mounted as a Kubernetes secret
    2. The node's default Compute Engine service account for all pods
    3. Workload Identity Federation for GKE
    4. An API key in each container image
    Show answer

    Answer: C. Workload Identity Federation for GKE

    Kubernetes service accounts map to IAM principals, so pods get short-lived tokens.

  17. Question 17. A CI system in another cloud must deploy to Google Cloud without long-lived keys. What should be configured?

    1. A service account key stored in the CI system
    2. A user account with a password in the pipeline
    3. Anonymous access to the deployment API
    4. Workload Identity Federation with an identity pool and provider
    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.

  18. Question 18. Admin activity logs must be retained for 7 years and kept in a central, tamper-resistant location. What should be designed?

    1. Keeping logs only in each project's _Default bucket
    2. Exporting the logs by hand once a week to a laptop
    3. An aggregated org log sink to a bucket with locked retention
    4. Disabling Data Access logs to save storage space
    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.

  19. Question 19. Security teams need to see who read objects in a sensitive bucket. What must be enabled?

    1. Admin Activity logs only
    2. VPC Flow Logs on the subnet
    3. Access Transparency only
    4. Data Access audit logs for Cloud Storage
    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.

  20. Question 20. A company wants logs showing when Google staff access its content for support. Which feature provides this?

    1. Access Transparency
    2. Cloud Audit Logs Admin Activity
    3. VPC Service Controls
    4. Binary Authorization
    Show answer

    Answer: A. Access Transparency

    Access Transparency logs Google personnel actions. Access Approval can require customer approval first.

  21. Question 21. Only container images signed by the company's build pipeline may be deployed to GKE. What should be used?

    1. Binary Authorization with attestations
    2. Artifact Registry cleanup policies
    3. Cloud Deploy approvals only
    4. A firewall rule on the cluster
    Show answer

    Answer: A. Binary Authorization with attestations

    Binary Authorization enforces deploy-time policies requiring trusted attestations.

  22. Question 22. A public web app needs protection from DDoS and OWASP top 10 attacks at the edge. What should be used?

    1. Cloud Armor policies on the external Application Load Balancer
    2. Firewall rules on the backend VMs only, with no edge policy
    3. Cloud NAT gateways in front of every backend region
    4. Identity-Aware Proxy enforced for all public visitors
    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.

  23. Question 23. Which service centrally reports misconfigurations, vulnerabilities, and threats across the Google Cloud organization?

    1. Security Command Center
    2. Cloud Monitoring uptime checks
    3. Cloud Trace
    4. Active Assist cost recommendations
    Show answer

    Answer: A. Security Command Center

    Security Command Center shows findings from built-in detectors and integrated services.

  24. Question 24. VMs must boot only with verified firmware and kernels, with integrity monitoring. What should be enabled?

    1. Shielded VM (Secure Boot, vTPM, integrity monitoring)
    2. Spot provisioning with automatic restart
    3. Sole-tenant nodes with CPU overcommit
    4. Local SSDs attached to the boot disk
    Show answer

    Answer: A. Shielded VM (Secure Boot, vTPM, integrity monitoring)

    Shielded VMs protect against rootkits and boot-level malware.

  25. 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?

    1. A standard project with default settings
    2. A personal Gmail-based project
    3. Assured Workloads with the matching control package
    4. A project with only billing labels
    Show answer

    Answer: C. Assured Workloads with the matching control package

    Assured Workloads applies controls for regimes such as FedRAMP, CJIS, or EU sovereignty.

  26. 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?

    1. The Compliance Reports Manager
    2. Cloud Monitoring dashboards
    3. Security Command Center findings
    4. The Cloud Billing console
    Show answer

    Answer: A. The Compliance Reports Manager

    Compliance reports are available for customers to download for audits.

  27. Question 27. Which statement about the shared responsibility model on Google Cloud is correct?

    1. Google secures the infrastructure; customers secure data and access
    2. Google is responsible for customers' IAM policies
    3. Customers maintain Google's physical data centers
    4. Responsibilities are identical for IaaS and SaaS
    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.

  28. Question 28. A Cloud Storage bucket should only allow IAM-based access, with no per-object ACLs. What should be enabled?

    1. Requester pays
    2. Object versioning
    3. Uniform bucket-level access
    4. Autoclass
    Show answer

    Answer: C. Uniform bucket-level access

    Uniform access disables ACLs, so IAM policies alone control access.

  29. Question 29. Buckets must never be publicly accessible, even if a user tries to grant allUsers access. What enforces this?

    1. A bucket label marking it private
    2. Object versioning on all buckets
    3. Signed URLs for all objects
    4. The public access prevention organization policy
    Show answer

    Answer: D. The public access prevention organization policy

    Public access prevention blocks public ACLs and IAM grants to allUsers and allAuthenticatedUsers.

  30. Question 30. A company wants to use its corporate identity provider for Google Cloud sign-in with SSO and MFA. What should be configured?

    1. Cloud Identity or Google Workspace with SAML SSO to the IdP
    2. Individual Gmail accounts for all employees
    3. Service account keys for each user
    4. API keys for console access
    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.

  31. Question 31. Which approach simplifies IAM management for 500 engineers across many projects?

    1. Grant roles to each user one by one
    2. Grant roles to Google groups instead of individual users
    3. Give every engineer the Owner role
    4. Use one shared account for all engineers
    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.

  32. Question 32. A service account is overprivileged, but the team isn't sure which permissions it actually uses. What helps?

    1. IAM Recommender role recommendations based on usage
    2. Deleting the service account right away
    3. Granting Owner to be safe
    4. Disabling audit logs to reduce noise
    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.

  33. Question 33. A web app must verify that requests come from real users and not bots at sign-up. What can be added?

    1. Cloud NAT on the backend subnet
    2. Private Google Access on the VPC
    3. A larger machine type for the app
    4. reCAPTCHA, with Cloud Armor acting on scores
    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.

  34. Question 34. Which design keeps a data analytics project's sensitive datasets protected by column-level access in BigQuery?

    1. Separate Cloud Storage buckets for each column
    2. VPC firewall rules around the BigQuery service
    3. Policy tags on columns with fine-grained reader roles
    4. Labels on the dataset marking it as sensitive
    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.