πŸ”

PCSE β€” questions

Page 12 of 18 Β· 356 total questions.

Topic 1 Β· Question 221

You define central security controls in your Google Cloud environment. For one of the folders in your organization, you set an organizational policy to deny the assignment of external IP addresses to VMs. Two days later, you receive an alert about a new VM with an external IP address under that folder. What could have caused this alert?

  • AThe VM was created with a static external IP address that was reserved in the project before the organizational policy rule was set.
  • BThe organizational policy constraint wasn't properly enforced and is running in "dry run" mode.
  • CA project level, the organizational policy control has been overwritten with an "allow" value. (correct answer)
  • DThe policy constraint on the folder level does not have any effect because of an "allow" value for that constraint on the organizational level.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: A project level, the organizational policy control has been overwritten with an "allow" value.

Topic 1 Β· Question 222

Your company recently published a security policy to minimize the usage of service account keys. On-premises Windows-based applications are interacting with Google Cloud APIs. You need to implement Workload Identity Federation (WIF) with your identity provider on-premises. What should you do?

  • ASet up a workload identity pool with your corporate Active Directory Federation Service (ADFS). Configure a rule to let principals in the pool impersonate the Google Cloud service account. (correct answer)
  • BSet up a workload identity pool with your corporate Active Directory Federation Service (ADFS). Let all principals in the pool impersonate the Google Cloud service account.
  • CSet up a workload identity pool with an OpenID Connect (OIDC) service on the same machine. Configure a rule to let principals in the pool impersonate the Google Cloud service account.
  • DSet up a workload identity pool with an OpenID Connect (OIDC) service on the same machine. Let all principals in the pool impersonate the Google Cloud service account.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Set up a workload identity pool with your corporate Active Directory Federation Service (ADFS). Configure a rule to let principals in the pool impersonate the Google Cloud service account.

Explanation

Workload Identity Federation lets workloads access Google Cloud without long-lived service account keys. A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 223

After completing a security vulnerability assessment, you learned that cloud administrators leave Google Cloud CLI sessions open for days. You need to reduce the risk of attackers who might exploit these open sessions by setting these sessions to the minimum duration. What should you do?

  • ASet the session duration for the Google session control to one hour.
  • BSet the reauthentication frequency for the Google Cloud Session Control to one hour. (correct answer)
  • CSet the organization policy constraint constraints/iam.allowServiceAccountCredentialLifetimeExtension to one hour.
  • DSet the organization policy constraint constraints/iam.serviceAccountKeyExpiryHours to one hour and inheritFromParent to false.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Set the reauthentication frequency for the Google Cloud Session Control to one hour.

Topic 1 Β· Question 224

You have numerous private virtual machines on Google Cloud. You occasionally need to manage the servers through Secure Socket Shell (SSH) from a remote location. You want to configure remote access to the servers in a manner that optimizes security and cost efficiency. What should you do?

  • ACreate a site-to-site VPN from your corporate network to Google Cloud.
  • BConfigure server instances with public IP addresses. Create a firewall rule to only allow traffic from your corporate IPs.
  • CCreate a firewall rule to allow access from the Identity-Aware Proxy (IAP) IP range. Grant the role of an IAP-secured Tunnel User to the administrators. (correct answer)
  • DCreate a jump host instance with public IP. Manage the instances by connecting through the jump host.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a firewall rule to allow access from the Identity-Aware Proxy (IAP) IP range. Grant the role of an IAP-secured Tunnel User to the administrators.

Explanation

Identity-Aware Proxy enforces per-request access control to apps without a VPN.

Topic 1 Β· Question 225

Your organization's record data exists in Cloud Storage. You must retain all record data for at least seven years. This policy must be permanent. What should you do?

  • A1. Identify buckets with record data.2. Apply a retention policy, and set it to retain for seven years.3. Monitor the bucket by using log-based alerts to ensure that no modifications to the retention policy occurs.
  • B1. Identify buckets with record data.2. Apply a retention policy, and set it to retain for seven years.3. Remove any Identity and Access Management (IAM) roles that contain the storage buckets update permission.
  • C1. Identify buckets with record data.2. Enable the bucket policy only to ensure that data is retained.3. Enable bucket lock.
  • D1. Identify buckets with record data.2. Apply a retention policy and set it to retain for seven years.3. Enable bucket lock. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Identify buckets with record data.2. Apply a retention policy and set it to retain for seven years.3. Enable bucket lock.

Topic 1 Β· Question 226

Your organization wants to protect all workloads that run on Compute Engine VM to ensure that the instances weren't compromised by boot-level or kernel-level malware. Also, you need to ensure that data in use on the VM cannot be read by the underlying host system by using a hardware-based solution. What should you do?

  • A1. Use Google Shielded VM including secure boot, Virtual Trusted Platform Module (vTPM), and integrity monitoring.2. Create a Cloud Run function to check for the VM settings, generate metrics, and run the function regularly.
  • B1. Activate Virtual Machine Threat Detection in Security Command Center (SCC) Premium.2. Monitor the findings in SCC.
  • C1. Use Google Shielded VM including secure boot, Virtual Trusted Platform Module (vTPM), and integrity monitoring.2. Activate Confidential Computing.3. Enforce these actions by using organization policies. (correct answer)
  • D1. Use secure hardened images from the Google Cloud Marketplace.2. When deploying the images, activate the Confidential Computing option.3. Enforce the use of the correct images and Confidential Computing by using organization policies.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. Use Google Shielded VM including secure boot, Virtual Trusted Platform Module (vTPM), and integrity monitoring.2. Activate Confidential Computing.3. Enforce these actions by using organization policies.

Topic 1 Β· Question 227

You are migrating your users to Google Cloud. There are cookie replay attacks with Google web and Google Cloud CLI SDK sessions on endpoint devices. You need to reduce the risk of these threats. What should you do? (Choose two.)

  • AConfigure Google session control to a shorter duration. (correct answer)
  • BSet an organizational policy for OAuth 2.0 access token with a shorter duration.
  • CSet a reauthentication policy for Google Cloud services to a shorter duration.
  • DConfigure a third-party identity provider with session management.
  • EEnforce Security Key Authentication with 2SV.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure Google session control to a shorter duration.

Topic 1 Β· Question 228 Β· Select all that apply

You manage a mission-critical workload for your organization, which is in a highly regulated industry. The workload uses Compute Engine VMs to analyze and process the sensitive data after it is uploaded to Cloud Storage from the endpoint computers. Your compliance team has detected that this workload does not meet the data protection requirements for sensitive data. You need to meet these requirements: β€’ Manage the data encryption key (DEK) outside the Google Cloud boundary. β€’ Maintain full control of encryption keys through a third-party provider. β€’ Encrypt the sensitive data before uploading it to Cloud Storage. β€’ Decrypt the sensitive data during processing in the Compute Engine VMs. β€’ Encrypt the sensitive data in memory while in use in the Compute Engine VMs. What should you do? (Choose two.)

  • AConfigure Customer Managed Encryption Keys to encrypt the sensitive data before it is uploaded to Cloud Storage, and decrypt the sensitive data after it is downloaded into your VMs.
  • BConfigure Cloud External Key Manager to encrypt the sensitive data before it is uploaded to Cloud Storage, and decrypt the sensitive data after it is downloaded into your VMs. (correct answer)
  • CCreate Confidential VMs to access the sensitive data. (correct answer)
  • DMigrate the Compute Engine VMs to Confidential VMs to access the sensitive data.
  • ECreate a VPC Service Controls service perimeter across your existing Compute Engine VMs and Cloud Storage buckets.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Configure Cloud External Key Manager to encrypt the sensitive data before it is uploaded to Cloud Storage, and decrypt the sensitive data after it is downloaded into your VMs. Option C: Create Confidential VMs to access the sensitive data.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 229

Your organization wants to be General Data Protection Regulation (GDPR) compliant. You want to ensure that your DevOps teams can only create Google Cloud resources in the Europe regions. What should you do?

  • AUse Identity-Aware Proxy (IAP) with Access Context Manager to restrict the location of Google Cloud resources.
  • BUse the org policy constraint 'Google Cloud Platform – Resource Location Restriction' on your Google Cloud organization node. (correct answer)
  • CUse the org policy constraint 'Restrict Resource Service Usage' on your Google Cloud organization node.
  • DUse Identity and Access Management (IAM) custom roles to ensure that your DevOps team can only create resources in the Europe regions.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the org policy constraint 'Google Cloud Platform – Resource Location Restriction' on your Google Cloud organization node.

Topic 1 Β· Question 230

For data residency requirements, you want your secrets in Google Clouds Secret Manager to only have payloads in europe-west1 and europe-west4. Your secrets must be highly available in both regions. What should you do?

  • ACreate your secret with a user managed replication policy, and choose only compliant locations. (correct answer)
  • BCreate your secret with an automatic replication policy, and choose only compliant locations.
  • CCreate two secrets by using Terraform, one in europe-west1 and the other in europe-west4.
  • DCreate your secret with an automatic replication policy, and create an organizational policy to deny secret creation in non-compliant locations.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create your secret with a user managed replication policy, and choose only compliant locations. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 231

You are migrating an application into the cloud. The application will need to read data from a Cloud Storage bucket. Due to local regulatory requirements, you need to hold the key material used for encryption fully under your control and you require a valid rationale for accessing the key material. What should you do?

  • AEncrypt the data in the Cloud Storage bucket by using Customer Managed Encryption Keys. Configure an IAM deny policy for unauthorized groups.
  • BGenerate a key in your on-premises environment to encrypt the data before you upload the data to the Cloud Storage bucket. Upload the key to the Cloud Key Management Service (KMS). Activate Key Access Justifications (KAJ) and have the external key system reject unauthorized accesses.
  • CEncrypt the data in the Cloud Storage bucket by using Customer Managed Encryption Keys backed by a Cloud Hardware Security Module (HSM). Enable data access logs.
  • DGenerate a key in your on-premises environment and store it in a Hardware Security Module (HSM) that is managed on-premises. Use this key as an external key in the Cloud Key Management Service (KMS). Activate Key Access Justifications (KAJ) and set the external key system to reject unauthorized accesses. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Generate a key in your on-premises environment and store it in a Hardware Security Module (HSM) that is managed on-premises. Use this key as an external key in the Cloud Key Management Service (KMS). Activate Key Acce...

Topic 1 Β· Question 232

Your organization uses the top-tier folder to separate application environments (prod and dev). The developers need to see all application development audit logs, but they are not permitted to review production logs. Your security team can review all logs in production and development environments. You must grant Identity and Access Management (IAM) roles at the right resource level for the developers and security team while you ensure least privilege. What should you do?

  • A1. Grant logging.viewer role to the security team at the organization resource level.2. Grant logging.viewer role to the developer team at the folder resource level that contains all the dev projects. (correct answer)
  • B1. Grant logging.viewer role to the security team at the organization resource level.2. Grant logging.admin role to the developer team at the organization resource level.
  • C1. Grant logging.admin role to the security team at the organization resource level.2. Grant logging.viewer role to the developer team at the folder resource level that contains all the dev projects.
  • D1. Grant logging.admin role to the security team at the organization resource level.2. Grant logging.admin role to the developer team at the organization resource level.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Grant logging.viewer role to the security team at the organization resource level.2. Grant logging.viewer role to the developer team at the folder resource level that contains all the dev projects.

Topic 1 Β· Question 233 Β· Select all that apply

You manage a fleet of virtual machines (VMs) in your organization. You have encountered issues with lack of patching in many VMs. You need to automate regular patching in your VMs and view the patch management data across multiple projects. What should you do? (Choose two.)

  • AView patch management data in VM Manager by using OS patch management. (correct answer)
  • BView patch management data in Artifact Registry.
  • CView patch management data in a Security Command Center dashboard.
  • DDeploy patches with Security Command Genter by using Rapid Vulnerability Detection.
  • EDeploy patches with VM Manager by using OS patch management. (correct answer)
Reveal answer & explanation
Correct answer: A, E

The correct answer is A, E. Option A: View patch management data in VM Manager by using OS patch management. Option E: Deploy patches with VM Manager by using OS patch management.

Topic 1 Β· Question 234

Your organization uses BigQuery to process highly sensitive, structured datasets. Following the β€œneed to know” principle, you need to create the Identity and Access Management (IAM) design to meet the needs of these users: β€’ Business user: must access curated reports. β€’ Data engineer: must administrate the data lifecycle in the platform. β€’ Security operator: must review user activity on the data platform. What should you do?

  • AConfigure data access log for BigQuery services, and grant Project Viewer role to security operator.
  • BSet row-based access control based on the β€œregion” column, and filter the record from the United States for data engineers.
  • CCreate curated tables in a separate dataset and assign the role roles/bigquery.dataViewer. (correct answer)
  • DGenerate a CSV data file based on the business user's needs, and send the data to their email addresses.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create curated tables in a separate dataset and assign the role roles/bigquery.dataViewer.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 235

You are setting up a new Cloud Storage bucket in your environment that is encrypted with a customer managed encryption key (CMEK). The CMEK is stored in Cloud Key Management Service (KMS), in project β€œprj-a”, and the Cloud Storage bucket will use project β€œprj-b”. The key is backed by a Cloud Hardware Security Module (HSM) and resides in the region europe-west3. Your storage bucket will be located in the region europe-west1. When you create the bucket, you cannot access the key, and you need to troubleshoot why. What has caused the access issue?

  • AA firewall rule prevents the key from being accessible.
  • BCloud HSM does not support Cloud Storage.
  • CThe CMEK is in a different project than the Cloud Storage bucket.
  • DThe CMEK is in a different region than the Cloud Storage bucket. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: The CMEK is in a different region than the Cloud Storage bucket.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 236

You are deploying regulated workloads on Google Cloud. The regulation has data residency and data access requirements. It also requires that support is provided from the same geographical location as where the data resides. What should you do?

  • AEnable Access Transparency Logging.
  • BDeploy Assured Workloads. (correct answer)
  • CDeploy resources only to regions permitted by data residency requirements.
  • DUse Data Access logging and Access Transparency logging to confirm that no users are accessing data from another region.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy Assured Workloads.

Topic 1 Β· Question 237

Your organization wants full control of the keys used to encrypt data at rest in their Google Cloud environments. Keys must be generated and stored outside of Google and integrate with many Google Services including BigQuery. What should you do?

  • AUse customer-supplied encryption keys (CSEK) with keys generated on trusted external systems. Provide the raw CSEK as part of the API call.
  • BCreate a KMS key that is stored on a Google managed FIPS 140-2 level 3 Hardware Security Module (HSM). Manage the Identity and Access Management (IAM) permissions settings, and set up the key rotation period.
  • CUse Cloud External Key Management (EKM) that integrates with an external Hardware Security Module (HSM) system from supported vendors. (correct answer)
  • DCreate a Cloud Key Management Service (KMS) key with imported key material. Wrap the key for protection during import. Import the key generated on a trusted system in Cloud KMS.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Cloud External Key Management (EKM) that integrates with an external Hardware Security Module (HSM) system from supported vendors.

Topic 1 Β· Question 238

Your company is concerned about unauthorized parties gaining access to the Google Cloud environment by using a fake login page. You must implement a solution to protect against person-in-the-middle attacks. Which security measure should you use?

  • ASecurity key (correct answer)
  • BGoogle prompt
  • CText message or phone call code
  • DGoogle Authenticator application
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Security key.

Topic 1 Β· Question 239

You control network traffic for a folder in your Google Cloud environment. Your folder includes multiple projects and Virtual Private Cloud (VPC) networks. You want to enforce on the folder level that egress connections are limited only to IP range 10.58.5.0/24 and only from the VPC network β€œdev-vpc”. You want to minimize implementation and maintenance effort. What should you do?

  • A1. Leave the network configuration of the VMs in scope unchanged.2. Create a new project including a new VPC network β€œnew-vpc”.3. Deploy a network appliance in β€œnew-vpc” to filter access requests and only allow egress connections from β€œdev-vpc” to 10.58.5.0/24.
  • B1. Leave the network configuration of the VMs in scope unchanged.2. Enable Cloud NAT for β€œdev-vpc” and restrict the target range in Cloud NAT to 10.58.5.0/24.
  • C1. Attach external IP addresses to the VMs in scope.2. Define and apply a hierarchical firewall policy on folder level to deny all egress connections and to allow egress to IP range 10.58.5.0/24 from network dev-vpc. (correct answer)
  • D1. Attach external IP addresses to the VMs in scope.2. Configure a VPC Firewall rule in β€œdev-vpc” that allows egress connectivity to IP range 10.58.5.0/24 for all source addresses in this network.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. Attach external IP addresses to the VMs in scope.2. Define and apply a hierarchical firewall policy on folder level to deny all egress connections and to allow egress to IP range 10.58.5.0/24 from network dev-vpc.

Explanation

A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 240

Your customer has an on-premises Public Key Infrastructure (PKI) with a certificate authority (CA). You need to issue certificates for many HTTP load balancer frontends. The on-premises PKI should be minimally affected due to many manual processes, and the solution needs to scale. What should you do?

  • AUse Certificate Manager to issue Google managed public certificates and configure it at HTTP the load balancers in your infrastructure as code (IaC).
  • BUse a subordinate CA in the Google Certificate Authority Service from the on-premises PKI system to issue certificates for the load balancers. (correct answer)
  • CUse Certificate Manager to import certificates issued from on-premises PKI and for the frontends. Leverage the gcloud tool for importing.
  • DUse the web applications with PKCS12 certificates issued from subordinate CA based on OpenSSL on-premises. Use the gcloud tool for importing. Use the External TCP/UDP Network load balancer instead of an external HTTP Load Balancer.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use a subordinate CA in the Google Certificate Authority Service from the on-premises PKI system to issue certificates for the load balancers.

Explanation

A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Showing questions 221–240 of 356 Β· Page 12 of 18