ExamMini
πŸ”

PCSE β€” all questions

356 practice questions with answers and explanations.

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

Your team needs to make sure that a Compute Engine instance does not have access to the internet or to any Google APIs or services. Which two settings must remain disabled to meet these requirements? (Choose two.)

  • APublic IP (correct answer)
  • BIP Forwarding
  • CPrivate Google Access (correct answer)
  • DStatic routes
  • EIAM Network User Role
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Public IP Option C: Private Google Access

Explanation

Private Google Access lets internal instances reach Google APIs without external IPs.

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

Which two implied firewall rules are defined on a VPC network? (Choose two.)

  • AA rule that allows all outbound connections (correct answer)
  • BA rule that denies all inbound connections (correct answer)
  • CA rule that blocks all inbound port 25 connections
  • DA rule that blocks all outbound connections
  • EA rule that allows all inbound port 80 connections
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: A rule that allows all outbound connections Option B: A rule that denies all inbound connections.

Topic 1 Β· Question 3

A customer needs an alternative to storing their plain text secrets in their source-code management (SCM) system. How should the customer achieve this using Google Cloud Platform?

  • AUse Cloud Source Repositories, and store secrets in Cloud SQL.
  • BEncrypt the secrets with a Customer-Managed Encryption Key (CMEK), and store them in Cloud Storage. (correct answer)
  • CRun the Cloud Data Loss Prevention API to scan the secrets, and store them in Cloud SQL.
  • DDeploy the SCM to a Compute Engine VM with local SSDs, and enable preemptible VMs.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Encrypt the secrets with a Customer-Managed Encryption Key (CMEK), and store them in Cloud Storage.

Explanation

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

Topic 1 Β· Question 4

Your team wants to centrally manage GCP IAM permissions from their on-premises Active Directory Service. Your team wants to manage permissions by AD group membership. What should your team do to meet these requirements?

  • ASet up Cloud Directory Sync to sync groups, and set IAM permissions on the groups. (correct answer)
  • BSet up SAML 2.0 Single Sign-On (SSO), and assign IAM permissions to the groups.
  • CUse the Cloud Identity and Access Management API to create groups and IAM permissions from Active Directory.
  • DUse the Admin SDK to create groups and assign IAM permissions from Active Directory.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Set up Cloud Directory Sync to sync groups, and set IAM permissions on the groups.

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

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

When creating a secure container image, which two items should you incorporate into the build if possible? (Choose two.)

  • AEnsure that the app does not run as PID 1.
  • BPackage a single app as a container. (correct answer)
  • CRemove any unnecessary tools not needed by the app. (correct answer)
  • DUse public container images as a base image for the app.
  • EUse many container image layers to hide sensitive information.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Package a single app as a container. Option C: Remove any unnecessary tools not needed by the app.

Topic 1 Β· Question 6

A customer needs to launch a 3-tier internal web application on Google Cloud Platform (GCP). The customer's internal compliance requirements dictate that end- user access may only be allowed if the traffic seems to originate from a specific known good CIDR. The customer accepts the risk that their application will only have SYN flood DDoS protection. They want to use GCP's native SYN flood protection. Which product should be used to meet these requirements?

  • ACloud Armor
  • BVPC Firewall Rules (correct answer)
  • CCloud Identity and Access Management
  • DCloud CDN
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: VPC Firewall Rules

Explanation

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

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

A company is running workloads in a dedicated server room. They must only be accessed from within the private company network. You need to connect to these workloads from Compute Engine instances within a Google Cloud Platform project. Which two approaches can you take to meet the requirements? (Choose two.)

  • AConfigure the project with Cloud VPN. (correct answer)
  • BConfigure the project with Shared VPC.
  • CConfigure the project with Cloud Interconnect. (correct answer)
  • DConfigure the project with VPC peering.
  • EConfigure all Compute Engine instances with Private Access.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Configure the project with Cloud VPN. Option C: Configure the project with Cloud Interconnect.

Explanation

Cloud Interconnect provides a dedicated, private, high-bandwidth link between on premises and Google Cloud. Cloud VPN provides encrypted IPsec connectivity between on premises and a VPC.

Topic 1 Β· Question 8

A customer implements Cloud Identity-Aware Proxy for their ERP system hosted on Compute Engine. Their security team wants to add a security layer so that the ERP systems only accept traffic from Cloud Identity-Aware Proxy. What should the customer do to meet these requirements?

  • AMake sure that the ERP system can validate the JWT assertion in the HTTP requests. (correct answer)
  • BMake sure that the ERP system can validate the identity headers in the HTTP requests.
  • CMake sure that the ERP system can validate the x-forwarded-for headers in the HTTP requests.
  • DMake sure that the ERP system can validate the user's unique identifier headers in the HTTP requests.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Make sure that the ERP system can validate the JWT assertion in the HTTP requests.

Topic 1 Β· Question 9

A company has been running their application on Compute Engine. A bug in the application allowed a malicious user to repeatedly execute a script that results in the Compute Engine instance crashing. Although the bug has been fixed, you want to get notified in case this hack re-occurs. What should you do?

  • ACreate an Alerting Policy in Stackdriver using a Process Health condition, checking that the number of executions of the script remains below the desired threshold. Enable notifications. (correct answer)
  • BCreate an Alerting Policy in Stackdriver using the CPU usage metric. Set the threshold to 80% to be notified when the CPU usage goes above this 80%.
  • CLog every execution of the script to Stackdriver Logging. Create a User-defined metric in Stackdriver Logging on the logs, and create a Stackdriver Dashboard displaying the metric.
  • DLog every execution of the script to Stackdriver Logging. Configure BigQuery as a log sink, and create a BigQuery scheduled query to count the number of executions in a specific timeframe.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create an Alerting Policy in Stackdriver using a Process Health condition, checking that the number of executions of the script remains below the desired threshold. Enable notifications.

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 10

Your team needs to obtain a unified log view of all development cloud projects in your SIEM. The development projects are under the NONPROD organization folder with the test and pre-production projects. The development projects share the ABC-BILLING billing account with the rest of the organization. Which logging export strategy should you use to meet the requirements?

  • A1. Export logs to a Cloud Pub/Sub topic with folders/NONPROD parent and includeChildren property set to True in a dedicated SIEM project. 2. Subscribe SIEM to the topic. (correct answer)
  • B1. Create a Cloud Storage sink with billingAccounts/ABC-BILLING parent and includeChildren property set to False in a dedicated SIEM project. 2. Process Cloud Storage objects in SIEM.
  • C1. Export logs in each dev project to a Cloud Pub/Sub topic in a dedicated SIEM project. 2. Subscribe SIEM to the topic.
  • D1. Create a Cloud Storage sink with a publicly shared Cloud Storage bucket in each project. 2. Process Cloud Storage objects in SIEM.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Export logs to a Cloud Pub/Sub topic with folders/NONPROD parent and includeChildren property set to True in a dedicated SIEM project. 2. Subscribe SIEM to the topic.

Explanation

Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams.

Topic 1 Β· Question 11

A customer needs to prevent attackers from hijacking their domain/IP and redirecting users to a malicious site through a man-in-the-middle attack. Which solution should this customer use?

  • AVPC Flow Logs
  • BCloud Armor
  • CDNS Security Extensions (correct answer)
  • DCloud Identity-Aware Proxy
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: DNS Security Extensions.

Topic 1 Β· Question 12

A customer deploys an application to App Engine and needs to check for Open Web Application Security Project (OWASP) vulnerabilities. Which service should be used to accomplish this?

  • ACloud Armor
  • BGoogle Cloud Audit Logs
  • CWeb Security Scanner (correct answer)
  • DAnomaly Detection
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Web Security Scanner.

Topic 1 Β· Question 13

A customer's data science group wants to use Google Cloud Platform (GCP) for their analytics workloads. Company policy dictates that all data must be company-owned and all user authentications must go through their own Security Assertion Markup Language (SAML) 2.0 Identity Provider (IdP). The Infrastructure Operations Systems Engineer was trying to set up Cloud Identity for the customer and realized that their domain was already being used by G Suite. How should you best advise the Systems Engineer to proceed with the least disruption?

  • AContact Google Support and initiate the Domain Contestation Process to use the domain name in your new Cloud Identity domain.
  • BRegister a new domain name, and use that for the new Cloud Identity domain.
  • CAsk Google to provision the data science manager's account as a Super Administrator in the existing domain.
  • DAsk customer's management to discover any other uses of Google managed services, and work with the existing Super Administrator. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Ask customer's management to discover any other uses of Google managed services, and work with the existing Super Administrator.

Topic 1 Β· Question 14

A business unit at a multinational corporation signs up for GCP and starts moving workloads into GCP. The business unit creates a Cloud Identity domain with an organizational resource that has hundreds of projects. Your team becomes aware of this and wants to take over managing permissions and auditing the domain resources. Which type of access should your team grant to meet this requirement?

  • AOrganization Administrator (correct answer)
  • BSecurity Reviewer
  • COrganization Role Administrator
  • DOrganization Policy Administrator
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Organization Administrator.

Topic 1 Β· Question 15

An application running on a Compute Engine instance needs to read data from a Cloud Storage bucket. Your team does not allow Cloud Storage buckets to be globally readable and wants to ensure the principle of least privilege. Which option meets the requirement of your team?

  • ACreate a Cloud Storage ACL that allows read-only access from the Compute Engine instance's IP address and allows the application to read from the bucket without credentials.
  • BUse a service account with read-only access to the Cloud Storage bucket, and store the credentials to the service account in the config of the application on the Compute Engine instance.
  • CUse a service account with read-only access to the Cloud Storage bucket to retrieve the credentials from the instance metadata. (correct answer)
  • DEncrypt the data in the Cloud Storage bucket using Cloud KMS, and allow the application to decrypt the data with the KMS key.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use a service account with read-only access to the Cloud Storage bucket to retrieve the credentials from the instance metadata.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 16

An organization's typical network and security review consists of analyzing application transit routes, request handling, and firewall rules. They want to enable their developer teams to deploy new applications without the overhead of this full review. How should you advise this organization?

  • AUse Forseti with Firewall filters to catch any unwanted configurations in production.
  • BMandate use of infrastructure as code and provide static analysis in the CI/CD pipelines to enforce policies. (correct answer)
  • CRoute all VPC traffic through customer-managed routers to detect malicious patterns in production.
  • DAll production applications will run on-premises. Allow developers free rein in GCP as their dev and QA platforms.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Mandate use of infrastructure as code and provide static analysis in the CI/CD pipelines to enforce policies.

Topic 1 Β· Question 17

An employer wants to track how bonus compensations have changed over time to identify employee outliers and correct earning disparities. This task must be performed without exposing the sensitive compensation data for any individual and must be reversible to identify the outlier. Which Cloud Data Loss Prevention API technique should you use to accomplish this?

  • AGeneralization
  • BRedaction
  • CCryptoHashConfig
  • DCryptoReplaceFfxFpeConfig (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: CryptoReplaceFfxFpeConfig.

Topic 1 Β· Question 18

An organization adopts Google Cloud Platform (GCP) for application hosting services and needs guidance on setting up password requirements for their Cloud Identity account. The organization has a password policy requirement that corporate employee passwords must have a minimum number of characters. Which Cloud Identity password guidelines can the organization use to inform their new requirements?

  • ASet the minimum length for passwords to be 8 characters. (correct answer)
  • BSet the minimum length for passwords to be 10 characters.
  • CSet the minimum length for passwords to be 12 characters.
  • DSet the minimum length for passwords to be 6 characters.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Set the minimum length for passwords to be 8 characters.

Topic 1 Β· Question 19

You need to follow Google-recommended practices to leverage envelope encryption and encrypt data at the application layer. What should you do?

  • AGenerate a data encryption key (DEK) locally to encrypt the data, and generate a new key encryption key (KEK) in Cloud KMS to encrypt the DEK. Store both the encrypted data and the encrypted DEK. (correct answer)
  • BGenerate a data encryption key (DEK) locally to encrypt the data, and generate a new key encryption key (KEK) in Cloud KMS to encrypt the DEK. Store both the encrypted data and the KEK.
  • CGenerate a new data encryption key (DEK) in Cloud KMS to encrypt the data, and generate a key encryption key (KEK) locally to encrypt the key. Store both the encrypted data and the encrypted DEK.
  • DGenerate a new data encryption key (DEK) in Cloud KMS to encrypt the data, and generate a key encryption key (KEK) locally to encrypt the key. Store both the encrypted data and the KEK.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Generate a data encryption key (DEK) locally to encrypt the data, and generate a new key encryption key (KEK) in Cloud KMS to encrypt the DEK. Store both the encrypted data and the encrypted DEK.

Explanation

Cloud KMS manages encryption keys and integrates with Google Cloud services for encryption.

Topic 1 Β· Question 20

How should a customer reliably deliver Stackdriver logs from GCP to their on-premises SIEM system?

  • ASend all logs to the SIEM system via an existing protocol such as syslog.
  • BConfigure every project to export all their logs to a common BigQuery DataSet, which will be queried by the SIEM system.
  • CConfigure Organizational Log Sinks to export logs to a Cloud Pub/Sub Topic, which will be sent to the SIEM via Dataflow. (correct answer)
  • DBuild a connector for the SIEM to query for all logs in real time from the GCP RESTful JSON APIs.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Configure Organizational Log Sinks to export logs to a Cloud Pub/Sub Topic, which will be sent to the SIEM via Dataflow.

Explanation

Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams.

Showing questions 1–20 of 356 Β· Page 1 of 18