Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Google Professional Cloud Security Engineer Professional-Cloud-Security-Engineer Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 23 Total 331 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Ensuring data protection

Skill tested: Select between Google-managed keys, CMEK, and Cloud EKM for data-control requirements.

A healthcare analytics team stores regulated records in BigQuery. Its policy requires the organization to control key rotation timing and to be able to revoke the key without migrating the dataset. The team also needs to use BigQuery's native encryption integration and wants operational visibility into key use. External key custody is not required. Which approach best meets these requirements?

Correct Answer: B. Use customer-managed encryption keys in Cloud KMS and configure BigQuery to use the CMEK.
Explanation:

A CMEK lets the organization manage key lifecycle actions, including rotation and disabling or destroying the key, while BigQuery continues to perform native service-side encryption. Google-managed keys do not provide the customer key control required by policy. Cloud EKM is appropriate when key material must remain in an external key management system; that custody requirement is explicitly absent. Application-level encryption would add application complexity and can limit BigQuery's ability to process encrypted values, without being necessary for the stated requirement.

Question 2

New Multiple answers

Topic: Ensuring data protection

Skill tested: Configure CMEK protection for Cloud Storage while preserving key-region compatibility.

A company operates a Cloud Storage bucket in a single region and must ensure that objects use customer-managed keys. It wants to minimize the chance that an operator accidentally writes unencrypted-by-CMEK objects, while retaining the ability to rotate keys without rewriting existing object data. Select TWO actions that best satisfy the requirements. (Select TWO.)

Correct Answer: A. Create a Cloud KMS key ring and key in a location compatible with the bucket's location.; D. Configure the bucket's default encryption key to the CMEK, and grant the Cloud Storage service agent the required key access.
Explanation:

Cloud Storage CMEK requires a Cloud KMS key whose location is compatible with the bucket, and the Cloud Storage service agent must be authorized to use that key. Setting the bucket's default CMEK makes it the default for newly written objects, reducing accidental omissions. Key rotation does not automatically re-encrypt existing objects under the new primary key; prior object data remains protected by the key version used when written. Therefore D is incorrect, while Cloud Storage supports Cloud KMS CMEKs, making E false.

Question 3

New Single answer

Topic: Ensuring data protection

Skill tested: Determine when Cloud EKM is appropriate for external custody of encryption keys.

A financial institution must keep cryptographic key material in a third-party key management system outside Google Cloud. Its security policy requires Google Cloud services to request cryptographic operations from that external system rather than import or store key material in Cloud KMS. The institution plans to protect supported Google Cloud data with encryption keys while accepting that external key availability affects access to the data. Which design is the best fit?

Correct Answer: A. Use Cloud External Key Manager with a supported integration and configure the service to use an external key.
Explanation:

Cloud EKM is designed for supported Google Cloud services to use keys managed by an external key management partner, keeping key material outside Google Cloud. This matches the institution's custody requirement and also explains the stated availability dependency: external key access may be needed for cryptographic operations. CMEK in Cloud KMS, including imported key material, places a key representation under Cloud KMS management and does not meet the requirement that the service use the external system directly. Google-managed keys are not exportable, and Secret Manager is not a KMS key integration for service-side encryption.

Question 4

New Multiple answers

Topic: Ensuring data protection

Skill tested: Apply Cloud KMS key lifecycle controls to limit access to protected data.

An organization uses CMEK for persistent disks supporting a sensitive workload. Investigators suspect that a key version was exposed, and the security team wants to contain further use while avoiding an unnecessary outage for disks encrypted with other key versions. The organization also requires an auditable record of key administration and usage. Which TWO actions are most appropriate? (Select TWO.)

Correct Answer: A. Review Cloud Audit Logs for relevant Cloud KMS administrative and cryptographic activity.; C. Disable the suspected key version in Cloud KMS after confirming the affected resources and incident response impact.
Explanation:

Disabling a compromised key version can prevent its use for new cryptographic operations, but responders should first understand the affected resources and potential availability consequences because resources depending on that version may become inaccessible. Cloud Audit Logs provide the audit trail for key administration and use, subject to the applicable logging configuration and permissions. Deleting a key ring is not a targeted version-revocation mechanism. Rotation changes the primary version for future encryption operations; it does not automatically re-encrypt existing disks. Changing disk IAM does not invalidate ciphertext or revoke use of the KMS key.

Question 5

New Single answer

Topic: Ensuring data protection

Skill tested: Select encryption-key controls for dataset-specific data access requirements.

A data platform team has two BigQuery datasets in the same project. One dataset contains public reference data; the other contains confidential customer data subject to a policy requiring the security team to disable its encryption key independently without affecting the reference dataset. The team wants to avoid adding application-layer encryption and retain BigQuery query capability. What should the team do?

Correct Answer: A. Assign a dedicated Cloud KMS CMEK to the confidential dataset and leave the reference dataset on Google-managed encryption.
Explanation:

BigQuery supports CMEK configuration at the dataset level, so the confidential dataset can use a dedicated Cloud KMS key that the security team can manage independently. This meets the isolation requirement while preserving BigQuery's native handling of the data. A project-wide single key would couple the datasets' key lifecycle, contrary to the requirement. Application-layer encryption is unnecessary and can interfere with normal analytical operations. Cloud EKM is not required for independent key control; CMEK provides that control when external custody is not specified.

Question 6

New Multiple answers

Topic: Configuring access

Skill tested: Establish Workload Identity Federation for external workloads without service account keys.

A company runs deployment jobs in an external CI system that issues OIDC identity tokens. Jobs must deploy to a specific Google Cloud project, and the security team prohibits service account key files. The team wants only jobs from the company's production repository and release branch to impersonate a deployment service account. Which TWO configurations are required? (Select TWO.)

Correct Answer: A. Grant the matching federated principal or principal set permission to impersonate the deployment service account.; D. Create a Workload Identity Pool provider configured for the CI system's OIDC issuer and appropriate audience.
Explanation:

Workload Identity Federation trusts an external identity provider through a pool provider, then lets an external principal obtain short-lived Google credentials. The federated principal must have the appropriate service-account impersonation permission, such as Service Account Token Creator, on the target service account. Repository and branch restrictions are important, but they are implemented through provider attribute mappings and conditions rather than by broadly granting project access; since the prompt requests two selections, A and E are the required foundational configurations, and the provider must be configured with the restriction described in C as part of this design. Long-lived keys and project Owner access violate least privilege.

Question 7

New Single answer

Topic: Configuring access

Skill tested: Diagnose failed federation by validating token audience and provider configuration.

A build workload successfully obtains an OIDC token from its identity provider, but Google Security Token Service rejects the token during federation. The provider is configured for the correct issuer, and the token's subject claim maps as expected. Inspection shows the token's audience differs from the audience configured for the Workload Identity Federation provider. The organization does not want to weaken issuer or subject restrictions. What is the best next action?

Correct Answer: C. Make the token audience match the provider's configured allowed audience, or configure the provider for the intended audience.
Explanation:

The audience identifies the intended recipient of an OIDC token and is checked as part of provider validation. A mismatch can cause Security Token Service to reject an otherwise correctly issued token. Aligning the workload's requested audience with the provider's accepted audience preserves issuer and subject validation while resolving the specific failure. Broad project-level permissions do not correct token validation. Signature validation must not be disabled, and federation supports audience configuration, so a long-lived service account key is neither necessary nor appropriate.

Question 8

New Multiple answers

Topic: Configuring access

Skill tested: Map federated external identities to least-privilege service account impersonation.

A vendor-hosted workload needs read-only access to objects in one Cloud Storage bucket. The vendor can provide signed OIDC tokens, and the organization wants to avoid granting the vendor access to the entire project or distributing a service account key. The workload should receive Google credentials only after its identity has been validated. Which TWO actions best implement this design? (Select TWO.)

Correct Answer: D. Configure a Workload Identity Pool provider to validate the vendor's OIDC issuer and map a stable identity claim.; E. Grant the federated principal permission to impersonate a dedicated service account.
Explanation:

Federation validates the vendor's OIDC identity through the configured pool provider and maps its claims to a Google principal. That principal can then impersonate a dedicated service account rather than receiving a long-lived key. The resulting service account should have only the bucket-level read permission required by the workload; E describes that necessary resource authorization, but with two selections the identity-federation and impersonation setup in A and C are the requested central actions. Project-wide Storage Admin is excessive, and distributing a service account key violates the stated keyless design.

Question 9

New Single answer

Topic: Configuring access

Skill tested: Use attribute conditions to restrict federation to trusted workload identities.

A software company federates identities from its source-control provider into Google Cloud. The same provider issues tokens for development forks, test projects, and the company's protected production repository. Only tokens from the protected production repository may impersonate the production deployment account. All tokens have a valid signature and share the same issuer. Which control most directly enforces the requirement at the federation boundary?

Correct Answer: A. Add an attribute condition to the Workload Identity Federation provider that checks the mapped repository identity.
Explanation:

A provider attribute condition can reject tokens unless claims identify the approved repository, ensuring the restriction is enforced as Google validates federation rather than relying solely on external workflow controls. A shared issuer does not distinguish trusted from untrusted repositories by itself. Granting all issuer identities impersonation and relying on a separate approval process leaves the cloud identity boundary broader than required. Service account keys discard the keyless federation model, while project Editor access is far beyond least privilege.

Question 10

New Multiple answers

Topic: Configuring access

Skill tested: Design keyless federation with claim mapping and scoped resource permissions.

A research organization runs workloads on-premises and wants them to access a Google Cloud API. Its identity provider issues short-lived OIDC tokens containing a stable workload name and environment claim. Production and staging workloads must use different permissions, and the organization cannot install or rotate long-lived Google credentials on its servers. Which TWO design decisions best meet these requirements? (Select TWO.)

Correct Answer: C. Map the workload name and environment claims to attributes and use them to identify the permitted federated principals.; D. Configure separate service accounts or narrowly scoped IAM grants so production and staging identities receive different access.
Explanation:

Claim mapping makes stable workload attributes available for IAM principal selection and provider conditions. Separating the IAM grants or service accounts for production and staging prevents one environment from inheriting the other's privileges. A keyless federation provider and short-lived token exchange address the credential constraint; E is also a necessary element of the overall design, but A and C capture the two requested decisions on identity differentiation and authorization. Broad pool-wide access defeats environment separation, while private keys reintroduce the prohibited long-lived credentials.

Question 11

New Single answer

Topic: Securing communications and establishing boundary protection

Skill tested: Apply Cloud Armor policy priorities to block layer 7 attacks before broad allow rules.

A public web application is protected by an external Application Load Balancer and Cloud Armor. A security engineer added a broad rule allowing traffic from approved corporate IP ranges at priority 1000, while an SQL injection WAF rule has priority 2000. Corporate users report that malicious requests originating from their networks reach the application. The team wants to preserve their normal access while ensuring the WAF inspection can block attacks. What is the best change?

Correct Answer: D. Move the SQL injection rule to a numerically lower priority than the broad corporate allow rule.
Explanation:

Cloud Armor evaluates policy rules in priority order, with lower numeric values evaluated first. The broad allow rule at 1000 can match corporate requests before the SQL injection rule at 2000, preventing the WAF rule from taking effect. Giving the SQL injection rule a numerically lower priority lets it deny malicious requests first, while ordinary corporate requests can still reach the later allow rule. VPC firewall rules operate at network layers and do not replace layer 7 inspection; health checks do not filter application attacks.

Question 12

New Multiple answers

Topic: Securing communications and establishing boundary protection

Skill tested: Combine Cloud Armor WAF protections with rate limiting for application attacks.

An internet-facing ticketing service has begun receiving bursts of automated requests that submit expensive search queries. The application is behind an external Application Load Balancer. The security team wants Cloud Armor to block common injection patterns and limit abusive request rates from individual clients, while allowing normal users to continue. Select TWO policy capabilities that should be configured. (Select TWO.)

Correct Answer: B. Apply a Cloud Armor rate-based rule with a suitable threshold and enforcement action for the relevant client key.; E. Enable appropriate preconfigured WAF rules in a Cloud Armor security policy and tune them for the application's traffic.
Explanation:

Cloud Armor can apply preconfigured WAF rule sets to detect common layer 7 attack patterns, and its rate-based rules can throttle or deny excessive request rates based on a configured key and threshold. These controls address distinct risks: malicious request content and abusive volume. WAF rules should be tuned to the application to manage false positives. VPC firewall rules do not inspect HTTP query strings, direct backend exposure weakens the boundary, and Cloud Armor supports rate-based controls.

Question 13

New Single answer

Topic: Securing communications and establishing boundary protection

Skill tested: Choose Cloud Armor scope and load-balancer integration for layer 7 protection.

A company serves a public API from a backend service attached to an external Application Load Balancer. It needs centralized layer 7 protection for this API, including IP-based filtering and application attack rules. The backend must remain private, and the team does not want to deploy a separate proxy appliance. Which architecture is most appropriate?

Correct Answer: A. Attach a Cloud Armor security policy to the backend service used by the load balancer.
Explanation:

Cloud Armor security policies integrate with supported external Application Load Balancer backend services and provide layer 7 controls such as IP-based rules and WAF protections while the backend remains private. VPC firewall rules filter network traffic by attributes such as IP protocol, ports, and addresses; they do not match URL paths or HTTP headers. Publicly exposing backends expands the attack surface and does not provide centralized protection. Cloud NAT is for outbound connectivity, not inbound HTTP inspection.

Question 14

New Multiple answers

Topic: Securing communications and establishing boundary protection

Skill tested: Build defense in depth using network firewall controls and Cloud Armor.

A production service uses an external Application Load Balancer with backends in a VPC. The security design must accept client traffic only through the load balancer, block known layer 7 attack patterns, and avoid exposing backend virtual machines directly. The team is reviewing both VPC firewall and Cloud Armor controls. Which TWO changes best support this design? (Select TWO.)

Correct Answer: C. Attach a Cloud Armor policy to the appropriate load-balancer backend service and configure layer 7 rules.; E. Restrict backend ingress firewall rules to the required load-balancer and health-check traffic sources and ports.
Explanation:

The controls operate at complementary layers. VPC firewall rules should limit backend network ingress to the required load-balancer and health-check traffic, reducing direct exposure. Cloud Armor attached to the backend service evaluates supported HTTP(S) traffic and can apply layer 7 protections. Opening backends to the internet undermines the boundary. Cloud Armor does not replace all VPC firewall controls for every protocol or internal route, and VPC firewall rules do not inspect request bodies for SQL injection.

Question 15

New Single answer

Topic: Securing communications and establishing boundary protection

Skill tested: Troubleshoot Cloud Armor false positives using policy preview and request evidence.

After a Cloud Armor preconfigured WAF rule is enabled, users report that a legitimate search feature returns HTTP 403 for certain queries. The security team must identify the matching rule and tune the policy without broadly disabling protection. The application is behind a supported external Application Load Balancer, and request logging is available. What should the team do first?

Correct Answer: A. Inspect relevant load-balancer and Cloud Armor request logs for matched policy and rule details, then validate a narrower exception or previewed tuning.
Explanation:

A 403 associated with a Cloud Armor policy should be investigated using request and policy logs to identify the matched rule, request attributes, and affected traffic. The team can then test a narrowly scoped exception or tune the rule, using preview capabilities where applicable, while preserving other protections. Disabling all WAF rules is unnecessarily broad. VPC firewalls cannot allow URL query strings, and increasing compute capacity does not resolve an explicit policy denial.