Professional Cloud Security Engineer · Sample questions
10 real questions from the CertifyDeck Professional Cloud Security Engineer bank, spread across the domains of the official Google Cloud Certified Professional Cloud Security Engineer skills outline, with the correct answer and a full explanation of why the other options are wrong. They are original questions written from the public syllabus, not exam dumps, and they are the same style you will find in the practice tests and mock exams.
Correct answer: B. Store the password in Secret Manager instead and sandbox the agent so that it cannot reach the metadata server.
Any process that can query the metadata URL has access to all values in the metadata server, so Google advises caution with sensitive values there and says you must sandbox any process that should not reach the metadata server; a password belongs in Secret Manager. Project metadata propagates to every VM in the project, widening the exposure. Guest attributes can be read and written by all applications on the VM and must not hold passwords, and the HTTPS endpoint protects against spoofing and tampering in transit but still serves every value to local processes.
Correct answer: D. Enforce compute.managed.requireOsLogin at the organization level and grant roles/compute.osLogin as needed.
OS Login manages SSH access through IAM, checks permissions on every login and revokes access when IAM permissions are removed, and the compute.managed.requireOsLogin constraint requires OS Login and prevents metadata updates that disable it at the project, project-zonal or instance level. Blocking project SSH keys still relies on metadata-based keys in instance metadata. Keys in project metadata are exactly the manual model to replace, and granting roles/compute.osAdminLogin does not enable OS Login and gives sudo to everyone.
Correct answer: A. Add a signature override for that threat ID with the Alert action in the threat-prevention security profile of the group.
A signature override changes the action for one threat signature only, and signature overrides take precedence over severity overrides; the Alert action logs the threat and allows the session. A severity override would relax every signature at that severity level, which breaks the requirement to keep blocking the other threats. Removing the security profile group or moving to Cloud IDS stops prevention for all traffic of that application, because Cloud IDS only detects and alerts.
Correct answer: A. Run gcloud compute networks subnets update batch-subnet --region=REGION --enable-private-ip-google-access.
Private Google Access is enabled per subnet and lets VMs with only internal IP addresses reach Google APIs and services such as Cloud Storage; the default route to the default internet gateway satisfies the routing requirement, and the traffic stays within Google's network. A Public NAT gateway would also give the VMs a path to any internet destination, which the policy forbids. Private services access is for VPC-hosted services published through the Service Networking API, and external IP addresses are explicitly not allowed.
Correct answer: C. Grant the sink's writer identity the Logs Writer role in the archive project and the Storage Object Creator role on the bucket.
Sinks write with a Logging-managed service account shown as the sink's writer identity, and for a Cloud Storage destination that identity needs the Logs Writer role plus Storage Object Creator. Sinks don't use the creator's user identity or the Compute Engine default service account, and Storage Admin would be far broader than needed. A sink destination can be in a different project from the sink.
Correct answer: B. Run a Dataflow streaming pipeline that reads from a Pub/Sub subscription and pushes the events to the SIEM's HTTP event collector endpoint.
In the documented push-based architecture, a Dataflow streaming pipeline pulls from the Pub/Sub subscription and delivers to the SIEM's HTTP event collector, so no service account keys are created and Dataflow autoscales its workers with volume. The pull-based add-on requires creating and managing service account keys, which the policy forbids. A single forwarder VM avoids keys but is a single point of failure that does not autoscale.
Correct answer: D. Set a constraints/gcp.resourceLocations policy on the folder that allows the in:eu-locations value group.
The resource locations constraint limits where new resources of supported services can be created, and Google recommends a value group with the in: prefix, such as in:eu-locations, so the policy covers new locations without being updated. A list of individual regions can restrict services unexpectedly as locations are added. Custom constraints don't support value groups and are defined per resource type, and an access level on a perimeter controls where requests come from, not where resources are created.
Correct answer: D. Move the checkout service into dedicated in-scope projects, isolated from out-of-scope production services and from the dev and QA environments.
Google's PCI DSS guide recommends isolating the payment-processing environment from the standard production environment and from dev and QA, using a separate account or separate projects for in-scope work, and the PCI on GKE blueprint splits in-scope and out-of-scope resources into different projects. Network tags, a dedicated subnet or a custom role leave the resources and the project's IAM policy shared, so they do not provide that isolation.
Correct answer: A. Enforce 2-Step Verification with security keys on the super admin accounts, because they keep signing in with their Google credentials.
Service provider-initiated single sign-on applies to all users except super admins, who are never redirected to the external IdP and are prompted for their Google password instead, so their protection depends on 2-Step Verification, ideally with security keys. The IdP's MFA therefore never covers them, and turning off 2SV would leave them with a password only. Moving them to a unit without SSO is unnecessary because super admins are already exempt, and it adds no protection.
Correct answer: A. Create an access group for the analyst job function, grant it the roles in the three projects, and manage its members.
Google recommends assigning users to groups based on their job function and granting IAM roles to those groups, because updating group membership is easier to manage and audit than individual grants. Granting to the domain gives the access to every user in the account, not just analysts. A member of a Google group inherits all IAM roles granted to the group regardless of their Google Groups role, so the Member role does not reduce access.
Answer each question before opening the explanation, and write down why you discarded the other options. On Professional Cloud Security Engineer, most mistakes come from choosing an option that is technically possible but does not meet every requirement in the scenario.
These 10 questions are a taste of the format, not a diagnostic. To know which domains you fail, practice by domain for free and take a timed mock exam that mirrors the official weights and duration.
Start for free, no sign-up or card. Every question includes an explanation like the ones above, and the mock exam reproduces the official Professional Cloud Security Engineer format.