🔍

PCSE — questions

Page 10 of 18 · 356 total questions.

Topic 1 · Question 181

Your organization operates Virtual Machines (VMs) with only private IPs in the Virtual Private Cloud (VPC) with internet access through Cloud NAT. Everyday, you must patch all VMs with critical OS updates and provide summary reports. What should you do?

  • AValidate that the egress firewall rules allow any outgoing traffic. Log in to each VM and execute OS specific update commands. Configure the Cloud Scheduler job to update with critical patches daily for daily updates.
  • BCopy the latest patches to the Cloud Storage bucket. Log in to each VM, download the patches from the bucket, and install them.
  • CAssign public IPs to VMs. Validate that the egress firewall rules allow any outgoing traffic. Log in to each VM, and configure a daily cron job to enable for OS updates at night during low activity periods.
  • DEnsure that VM Manager is installed and running on the VMs. In the OS patch management service, configure the patch jobs to update with critical patches dally. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Ensure that VM Manager is installed and running on the VMs. In the OS patch management service, configure the patch jobs to update with critical patches dally.

Topic 1 · Question 182

For compliance reporting purposes, the internal audit department needs you to provide the list of virtual machines (VMs) that have critical operating system (OS) security updates available, but not installed. You must provide this list every six months, and you want to perform this task quickly. What should you do?

  • ARun a Security Command Center security scan on all VMs to extract a list of VMs with critical OS vulnerabilities every six months.
  • BRun a gcloud CLI command from the Command Line Interface (CLI) to extract the VM's OS version information every six months.
  • CEnsure that the Cloud Logging agent is installed on all VMs, and extract the OS last update log date every six months.
  • DEnsure the OS Config agent is installed on all VMs and extract the patch status dashboard every six months. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Ensure the OS Config agent is installed on all VMs and extract the patch status dashboard every six months.

Topic 1 · Question 183

Your company conducts clinical trials and needs to analyze the results of a recent study that are stored in BigQuery. The interval when the medicine was taken contains start and stop dates. The interval data is critical to the analysis, but specific dates may identify a particular batch and introduce bias. You need to obfuscate the start and end dates for each row and preserve the interval data. What should you do?

  • AUse date shifting with the context set to the unique ID of the test subject. (correct answer)
  • BExtract the date using TimePartConfig from each date field and append a random month and year.
  • CUse bucketing to shift values to a predetermined date based on the initial value.
  • DUse the FFX mode of format preserving encryption (FPE) and maintain data consistency.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use date shifting with the context set to the unique ID of the test subject.

Topic 1 · Question 184

You have a highly sensitive BigQuery workload that contains personally identifiable information (PII) that you want to ensure is not accessible from the internet. To prevent data exfiltration, only requests from authorized IP addresses are allowed to query your BigQuery tables. What should you do?

  • AUse service perimeter and create an access level based on the authorized source IP address as the condition. (correct answer)
  • BUse Google Cloud Armor security policies defining an allowlist of authorized IP addresses at the global HTTPS load balancer.
  • CUse the Restrict Resource Service Usage organization policy constraint along with Cloud Data Loss Prevention (DLP).
  • DUse the Restrict allowed Google Cloud APIs and services organization policy constraint along with Cloud Data Loss Prevention (DLP).
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use service perimeter and create an access level based on the authorized source IP address as the condition.

Topic 1 · Question 185

Your organization is moving virtual machines (VMs) to Google Cloud. You must ensure that operating system images that are used across your projects are trusted and meet your security requirements. What should you do?

  • AImplement an organization policy to enforce that boot disks can only be created from images that come from the trusted image project. (correct answer)
  • BImplement an organization policy constraint that enables the Shielded VM service on all projects to enforce the trusted image repository usage.
  • CCreate a Cloud Function that is automatically triggered when a new virtual machine is created from the trusted image repository. Verify that the image is not deprecated.
  • DAutomate a security scanner that verifies that no common vulnerabilities and exposures (CVEs) are present in your trusted image repository.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Implement an organization policy to enforce that boot disks can only be created from images that come from the trusted image project.

Explanation

Organization Policy sets guardrails that constrain how resources can be configured across the org.

Topic 1 · Question 186

You have stored company approved compute images in a single Google Cloud project that is used as an image repository. This project is protected with VPC Service Controls and exists in the perimeter along with other projects in your organization. This lets other projects deploy images from the image repository project. A team requires deploying a third-party disk image that is stored in an external Google Cloud organization. You need to grant read access to the disk image so that it can be deployed into the perimeter. What should you do?

  • AAllow the external project by using the organizational policy, constraints/compute.trustedImageProjects.
  • B1. Update the perimeter.2. Configure the egressTo field to include the external Google Cloud project number as an allowed resource and the serviceName to compute.googleapis.com.3. Configure the egressFrom field to set identityType to ANY_IDENTITY. (correct answer)
  • C1. Update the perimeter.2. Configure the ingressFrom field to set identityType to ANY_IDENTITY.3. Configure the ingressTo field to include the external Google Cloud project number as an allowed resource and the serviceName to compute.googleapis.com.
  • D1. Update the perimeter.2. Configure the egressTo field to set identityType to ANY_IDENTITY.3. Configure the egressFrom field to include the external Google Cloud project number as an allowed resource and the serviceName to compute.googleapis.com.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1. Update the perimeter.2. Configure the egressTo field to include the external Google Cloud project number as an allowed resource and the serviceName to compute.googleapis.com.3. Configure the egressFrom field to set...

Topic 1 · Question 187

A service account key has been publicly exposed on multiple public code repositories. After reviewing the logs, you notice that the keys were used to generate short-lived credentials. You need to immediately remove access with the service account. What should you do?

  • ADelete the compromised service account. (correct answer)
  • BDisable the compromised service account key.
  • CWait until the service account credentials expire automatically.
  • DRotate the compromised service account key.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Delete the compromised service account.

Explanation

A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 · Question 188

A company is using Google Kubernetes Engine (GKE) with container images of a mission-critical application. The company wants to scan the images for known security issues and securely share the report with the security team without exposing them outside Google Cloud. What should you do?

  • A1. Enable Container Threat Detection in the Security Command Center Premium tier.2. Upgrade all clusters that are not on a supported version of GKE to the latest possible GKE version.3. View and share the results from the Security Command Center.
  • B1. Use an open source tool in Cloud Build to scan the images.2. Upload reports to publicly accessible buckets in Cloud Storage by using gsutil.3. Share the scan report link with your security department.
  • C1. Enable vulnerability scanning in the Artifact Registry settings.2. Use Cloud Build to build the images.3. Push the images to the Artifact Registry for automatic scanning.4. View the reports in the Artifact Registry. (correct answer)
  • D1. Get a GitHub subscription.2. Build the images in Cloud Build and store them in GitHub for automatic scanning.3. Download the report from GitHub and share with the Security Team.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. Enable vulnerability scanning in the Artifact Registry settings.2. Use Cloud Build to build the images.3. Push the images to the Artifact Registry for automatic scanning.4. View the reports in the Artifact Registry.

Explanation

Cloud Build runs managed CI pipelines to build, test, and package code. Artifact Registry stores and manages container images and language packages.

Topic 1 · Question 189

Your application is deployed as a highly available, cross-region solution behind a global external HTTP(S) load balancer. You notice significant spikes in traffic from multiple IP addresses, but it is unknown whether the IPs are malicious. You are concerned about your application's availability. You want to limit traffic from these clients over a specified time interval. What should you do?

  • AConfigure a throttle action by using Google Cloud Armor to limit the number of requests per client over a specified time interval. (correct answer)
  • BConfigure a rate_based_ban action by using Google Cloud Armor and set the ban_duration_sec parameter to the specified lime interval.
  • CConfigure a firewall rule in your VPC to throttle traffic from the identified IP addresses.
  • DConfigure a deny action by using Google Cloud Armor to deny the clients that issued too many requests over the specified time interval.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Configure a throttle action by using Google Cloud Armor to limit the number of requests per client over a specified time interval.

Explanation

Cloud Armor protects applications from DDoS and common web attacks with WAF rules. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 · Question 190

Your organization is using Active Directory and wants to configure Security Assertion Markup Language (SAML). You must set up and enforce single sign-on (SSO) for all users. What should you do?

  • A1. Create a new SAML profile.2. Populate the sign-in and sign-out page URLs.3. Upload the X.509 certificate.4. Configure Entity ID and ACS URL in your IdP. (correct answer)
  • B1. Configure prerequisites for OpenID Connect (OIDC) in your Active Directory (AD) tenant.2. Verify the AD domain.3. Decide which users should use SAML.4. Assign the pre-configured profile to the select organizational units (OUs) and groups.
  • C1. Create a new SAML profile.2. Upload the X.509 certificate.3. Enable the change password URL.4. Configure Entity ID and ACS URL in your IdP.
  • D1. Manage SAML profile assignments.2. Enable OpenID Connect (OIDC) in your Active Directory (AD) tenant.3. Verify the domain.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Create a new SAML profile.2. Populate the sign-in and sign-out page URLs.3. Upload the X.509 certificate.4. Configure Entity ID and ACS URL in your IdP.

Topic 1 · Question 191

Employees at your company use their personal computers to access your organization's Google Cloud console. You need to ensure that users can only access the Google Cloud console from their corporate-issued devices and verify that they have a valid enterprise certificate. What should you do?

  • AImplement an Access Policy in BeyondCorp Enterprise to verify the device certificate. Create an access binding with the access policy just created. (correct answer)
  • BImplement a VPC firewall policy. Activate packet inspection and create an allow rule to validate and verify the device certificate.
  • CImplement an organization policy to verify the certificate from the access context.
  • DImplement an Identity and Access Management (IAM) conditional policy to verify the device certificate.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Implement an Access Policy in BeyondCorp Enterprise to verify the device certificate. Create an access binding with the access policy just created.

Topic 1 · Question 192

Your organization is rolling out a new continuous integration and delivery (CI/CD) process to deploy infrastructure and applications in Google Cloud. Many teams will use their own instances of the CI/CD workflow. It will run on Google Kubernetes Engine (GKE). The CI/CD pipelines must be designed to securely access Google Cloud APIs. What should you do?

  • A1. Create two service accounts, one for the infrastructure and one for the application deployment.2. Use workload identities to let the pods run the two pipelines and authenticate with the service accounts.3. Run the infrastructure and application pipelines in separate namespaces.
  • B1. Create a dedicated service account for the CI/CD pipelines.2. Run the deployment pipelines in a dedicated nodes pool in the GKE cluster.3. Use the service account that you created as identity for the nodes in the pool to authenticate to the Google Cloud APIs.
  • C1. Create individual service accounts for each deployment pipeline.2. Add an identifier for the pipeline in the service account naming convention.3. Ensure each pipeline runs on dedicated pods.4. Use workload identity to map a deployment pipeline pod with a service account. (correct answer)
  • D1. Create service accounts for each deployment pipeline.2. Generate private keys for the service accounts.3. Securely store the private keys as Kubernetes secrets accessible only by the pods that run the specific deploy pipeline.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 1. Create individual service accounts for each deployment pipeline.2. Add an identifier for the pipeline in the service account naming convention.3. Ensure each pipeline runs on dedicated pods.4. Use workload identity...

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 193

Your organization's Customers must scan and upload the contract and their driver license into a web portal in Cloud Storage. You must remove all personally identifiable information (PII) from files that are older than 12 months. Also, you must archive the anonymized files for retention purposes. What should you do?

  • ASet a time to live (TTL) of 12 months for the files in the Cloud Storage bucket that removes PII and moves the files to the archive storage class.
  • BCreate a Cloud Data loss Prevention (DLP) inspection job that de-identifies PII in files created more than 12 months ago and archives them to another Cloud Storage bucket. Delete the original files. (correct answer)
  • CConfigure the Autoclass feature of the Cloud Storage bucket to de-identify PII. Archive the files that are older than 12 months. Delete the original files.
  • DSchedule a Cloud Key Management Service (KMS) rotation period of 12 months for the encryption keys of the Cloud Storage files containing PII to de-identify them. Delete the original keys.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a Cloud Data loss Prevention (DLP) inspection job that de-identifies PII in files created more than 12 months ago and archives them to another Cloud Storage bucket. Delete the original files.

Explanation

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

Topic 1 · Question 194

You plan to synchronize identities to Cloud Identity from a third-party identity provider (IdP). You discovered that some employees used their corporate email address to set up consumer accounts to access Google services. You need to ensure that the organization has control over the configuration, security, and lifecycle of these consumer accounts. What should you do? (Choose two.)

  • AMandate that those corporate employees delete their unmanaged consumer accounts.
  • BReconcile accounts that exist in Cloud Identity but not in the third-party IdP. (correct answer)
  • CEvict the unmanaged consumer accounts in the third-party IdP before you sync identities.
  • DUse Google Cloud Directory Sync (GCDS) to migrate the unmanaged consumer accounts' emails as user aliases.
  • EUse the transfer tool to invite those corporate employees to transfer their unmanaged consumer accounts to the corporate domain.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Reconcile accounts that exist in Cloud Identity but not in the third-party IdP.

Explanation

Cloud Identity manages users, groups, and device policies as a managed identity platform.

Topic 1 · Question 195

You are auditing all your Google Cloud resources in the production project. You want to identify all principals who can change firewall rules. What should you do?

  • AUse Policy Analyzer to query the permissions compute.firewalls.get or compute.firewalls.list.
  • BUse Firewall Insights to understand your firewall rules usage patterns.
  • CReference the Security Health Analytics – Firewall Vulnerability Findings in the Security Command Center.
  • DUse Policy Analyzer to query the permissions compute.firewalls.create or compute.firewalls.update or compute.firewalls.delete. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Policy Analyzer to query the permissions compute.firewalls.create or compute.firewalls.update or compute.firewalls.delete.

Topic 1 · Question 196

Your organization previously stored files in Cloud Storage by using Google Managed Encryption Keys (GMEK), but has recently updated the internal policy to require Customer Managed Encryption Keys (CMEK). You need to re-encrypt the files quickly and efficiently with minimal cost. What should you do?

  • AReupload the files to the same Cloud Storage bucket specifying a key file by using gsutil.
  • BEncrypt the files locally, and then use gsutil to upload the files to a new bucket.
  • CCopy the files to a new bucket with CMEK enabled in a secondary region.
  • DChange the encryption type on the bucket to CMEK, and rewrite the objects. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Change the encryption type on the bucket to CMEK, and rewrite the objects.

Topic 1 · Question 197 · Select all that apply

You run applications on Cloud Run. You already enabled container analysis for vulnerability scanning. However, you are concerned about the lack of control on the applications that are deployed. You must ensure that only trusted container images are deployed on Cloud Run. What should you do? (Choose two.)

  • AEnable Binary Authorization on the existing Cloud Run service. (correct answer)
  • BSet the organization policy constraint constraints/run.allowedBinaryAuthorizationPolicies to the list or allowed Binary Authorization policy names. (correct answer)
  • CEnable Binary Authorization on the existing Kubernetes cluster.
  • DUse Cloud Run breakglass to deploy an image that meets the Binary Authorization policy by default.
  • ESet the organization policy constraint constraints/compute.trustedImageProjects to the list of projects that contain the trusted container images.
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Enable Binary Authorization on the existing Cloud Run service. Option B: Set the organization policy constraint constraints/run.allowedBinaryAuthorizationPolicies to the list or allowed Binary Authorization policy names.

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead. Organization Policy sets guardrails that constrain how resources can be configured across the org.

Topic 1 · Question 198

Your organization has on-premises hosts that need to access Google Cloud APIs. You must enforce private connectivity between these hosts, minimize costs, and optimize for operational efficiency. What should you do?

  • ASet up VPC peering between the hosts on-premises and the VPC through the internet.
  • BRoute all on-premises traffic to Google Cloud through an IPsec VPN tunnel to a VPC with Private Google Access enabled. (correct answer)
  • CEnforce a security policy that mandates all applications to encrypt data with a Cloud Key Management Service (KMS) key before you send it over the network.
  • DRoute all on-premises traffic to Google Cloud through a dedicated or Partner Interconnect to a VPC with Private Google Access enabled.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Route all on-premises traffic to Google Cloud through an IPsec VPN tunnel to a VPC with Private Google Access enabled.

Explanation

Private Google Access lets internal instances reach Google APIs without external IPs. A VPC provides a global, software-defined private network for your Google Cloud resources. This option delivers the requirement at the lowest cost.

Topic 1 · Question 199

As part of your organization's zero trust strategy, you use Identity-Aware Proxy (IAP) to protect multiple applications. You need to ingest logs into a Security Information and Event Management (SIEM) system so that you are alerted to possible intrusions. Which logs should you analyze?

  • AData Access audit logs (correct answer)
  • BPolicy Denied audit logs
  • CCloud Identity user log events
  • DAdmin Activity audit logs
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Data Access audit logs.

Topic 1 · Question 200

Your company must follow industry specific regulations. Therefore, you need to enforce customer-managed encryption keys (CMEK) for all new Cloud Storage resources in the organization called org1. What command should you execute?

  • A• organization poli-cy:constraints/gcp.restrictStorageNonCmekServices• binding at: org1• policy type: allow• policy value: all supported services
  • B• organization policy: con-straints/gcp.restrictNonCmekServices• binding at: org1• policy type: deny• policy value: storage.googleapis.com (correct answer)
  • C• organization policy: con-straints/gcp.restrictStorageNonCmekServices• binding at: org1• policy type: deny• policy value: storage.googleapis.com
  • D• organization policy: con-straints/gcp.restrictNonCmekServices• binding at: org1• policy type: allow• policy value: storage.googleapis.com
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: • organization policy: con-straints/gcp.restrictNonCmekServices• binding at: org1• policy type: deny• policy value: storage.googleapis.com

Explanation

Organization Policy sets guardrails that constrain how resources can be configured across the org.

Showing questions 181200 of 356 · Page 10 of 18