Google Professional Cloud Security Engineer Exam Questions

Page: 1 / 14
Total 331 questions
Question 1

You have just created a new log bucket to replace the _Default log bucket. You want to route all log entries that are currently routed to the _Default log bucket to this new log bucket in the most efficient manner. What should you do?



Answer : D

In Google Cloud's Logging service, log entries are automatically routed to the _Default log bucket unless configured otherwise. When you create a new log bucket and intend to redirect all log entries from the _Default bucket to this new bucket, the most efficient approach is to modify the existing _Default sink to point to the new log bucket.

Option A: Creating a new user-defined sink with filters replicated from the _Default sink is redundant and may lead to configuration complexities.

Option B: Implementing exclusion filters on the _Default sink and then creating a new sink introduces unnecessary steps and potential for misconfiguration.

Option C: Disabling the _Default sink would stop all log routing to it, but creating a new sink to replicate its functionality is inefficient.

Option D: Editing the _Default sink to change its destination to the new log bucket ensures a seamless transition of log routing without additional configurations.

Therefore, Option D is the most efficient and straightforward method to achieve the desired log routing.


Routing and Storage Overview

Configure Default Log Router Settings

Question 2

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?



Answer : A

The minimum length for passwords in Cloud Identity can be set to 8 characters. This aligns with common security best practices for password policies, ensuring a basic level of complexity and security.

Step-by-Step:

Access Admin Console: Log in to the Google Admin console.

Navigate to Security Settings: Go to Security > Password Management.

Set Minimum Length: Set the minimum length for passwords to 8 characters.

Save Changes: Save the settings and ensure that all user accounts adhere to the new policy.

Google Cloud Identity Security Settings

Password Policy Best Practices


Question 3

You want to make sure that your organization's Cloud Storage buckets cannot have data publicly available to the internet. You want to enforce this across all Cloud Storage buckets. What should you do?



Answer : C

Uniform Bucket-Level Access: Enable uniform bucket-level access for all your Cloud Storage buckets. This feature ensures that access control is applied consistently at the bucket level, simplifying management and improving security.

Domain Restricted Sharing: Enforce domain-restricted sharing through an organization policy. This policy ensures that only users within your organization's domain can access the data in the buckets, preventing public exposure.

Policy Enforcement: Apply the necessary IAM policies and ensure that no buckets are configured to allow public access. This combination of settings ensures that data in Cloud Storage buckets remains private and accessible only to authorized users within your organization. Reference:

Google Cloud - Uniform Bucket-Level Access

Google Cloud - Organization Policy Service


Question 4

You are backing up application logs to a shared Cloud Storage bucket that is accessible to both the administrator and analysts. Analysts should not have access to logs that contain any personally identifiable information (PII). Log files containing PII should be stored in another bucket that is only accessible to the administrator. What should you do?



Answer : D

Use Pub/Sub and Cloud Functions to trigger a Cloud Data Loss Prevention scan every time a file is uploaded to the administrator's bucket. If the scan does not detect PII, have the function move the objects into the shared Cloud Storage bucket:

Configure a Pub/Sub topic to publish notifications when new files are uploaded to the administrator's bucket.

Create a Cloud Function that is triggered by the Pub/Sub topic. This function uses the Cloud Data Loss Prevention (DLP) API to scan the uploaded files for PII.

If the scan does not detect PII, the function moves the file to the shared Cloud Storage bucket. This ensures that only non-sensitive data is accessible to analysts, while PII remains secure in the administrator's bucket.


Using Pub/Sub with Cloud Functions

Cloud Data Loss Prevention API

Question 5

You are a security engineer at a finance company. Your organization plans to store data on Google Cloud, but your leadership team is worried about the security of their highly sensitive data Specifically, your

company is concerned about internal Google employees' ability to access your company's data on Google Cloud. What solution should you propose?



Answer : D

https://cloud.google.com/access-transparency Access approval Explicitly approve access to your data or configurations on Google Cloud. Access Approval requests, when combined with Access Transparency logs, can be used to audit an end-to-end chain from support ticket to access request to approval, to eventual access.


Question 6

You are responsible for the operation of your company's application that runs on Google Cloud. The database for the application will be maintained by an external partner. You need to give the partner team access to the database. This access must be restricted solely to the database and cannot extend to any other resources within your company's network. Your solution should follow Google-recommended practices. What should you do?



Answer : D

The problem requires granting an external partner team access solely to a database, without extending to other network resources, and following Google-recommended practices.

Workforce Identity Federation: This Google Cloud IAM feature is specifically designed for scenarios where an organization needs to grant Google Cloud access to external identities (like partners, contractors, or customers) who are managed by their own identity provider (IdP). It allows these external users to authenticate using their existing credentials and then gain access to specified Google Cloud resources.

Extract Reference: 'Workforce Identity Federation lets you use an external identity provider (IdP) to authenticate and authorize a workforce---a group of users, such as employees, partners, and contractors---using IAM, so that the users can access Google Cloud services.' (Google Cloud Documentation: 'Workforce Identity Federation | IAM Documentation' - https://cloud.google.com/iam/docs/workforce-identity-federation)

Extract Reference: 'Secure access for partners and vendors. Workforce Identity Federation can enable enterprises to selectively federate users from partner or vendor IdPs without requiring IT teams to sync or create a separate identity store to use Google Cloud resources.' (Google Cloud Documentation: 'Introducing Workforce Identity Federation...' - https://www.azalio.io/introducing-workforce-identity-federation-to-easily-manage-workforce-access-to-google-cloud/)

Least Privilege and Isolation: With Workforce Identity Federation, you create an identity pool and a provider that trusts the partner's IdP. You then grant IAM roles only to the workforce pool (or specific identities within it) on the specific database resource. This ensures fine-grained access control and prevents access to other resources in your network, directly addressing the least privilege and isolation requirements. The partner's identities are never synced into your internal Cloud Identity directory.

Let's evaluate the other options:

A . Add a public IP address... Securely distribute credentials: Adding a public IP address exposes the database to the internet, which is a major security risk and contradicts 'restricted solely to the database and can not extend to any other resources within your company's network' as it allows any external network to potentially reach it. Distributing credentials manually is also not a Google-recommended secure practice.

B . Create accounts for the partner team in your corporate identity provider. Synchronize these accounts with Google Cloud Identity: This means you become responsible for managing the partner's identities within your own corporate IdP and syncing them. This is an unnecessary operational burden and blurs the lines of identity management. It also may inadvertently grant them broader network access if your corporate IdP is connected to your internal network resources.

C . Ask the partner team to set up Cloud Identity accounts within their own corporate environment and identity provider. Grant the partner's Cloud Identity accounts access: While better than B, this implies the partner managing Cloud Identity accounts themselves and you directly granting IAM roles to their Cloud Identity users. Workforce Identity Federation is a more robust and scalable solution for federating any external IdP with Google Cloud IAM, rather than requiring partners to adopt Cloud Identity directly. Workforce Identity Federation is the explicit pattern for cross-organization access using existing external IdPs.

Therefore, Workforce Identity Federation is the most secure, scalable, and Google-recommended solution for granting restricted access to external partner teams.


Question 7

You are managing a set of Google Cloud projects that are contained in a folder named Data Warehouse A new data analysis team has been approved to perform data analysis for all BigQuery data in the projects within the Data Warehouse folder. They should only be able to read the data and not have permissions to modify or delete the data. You want to reduce the operational overhead of provisioning access while adhering to the principle of least privilege. What should you do?



Answer : B

The requirements are met by granting access at the highest point in the resource hierarchy that encompasses all the necessary resources, using the least privileged role required.

Least Privilege Role: The team needs to read data and not modify or delete it. The roles/bigquery.dataViewer role is the correct least privileged role for read-only access to data.

Minimize Operational Overhead: Granting the role at the Folder level ensures that the access is automatically inherited by all current and future projects within that folder, drastically reducing the operational overhead compared to granting the role per project (C) or per dataset (A).

Scope: The Folder scope (Data Warehouse folder) is the container for all BigQuery data in the projects within the folder, making it the ideal single point of granting access.

Extracts:

'IAM roles are inherited down the resource hierarchy... Granting a role at the folder level will grant the principal that role across all projects within that folder, including any projects created in the future.' (Source 10.1)

'The BigQuery Data Viewer (roles/bigquery.dataViewer) role grants permission to read data in BigQuery tables and views... It does not grant permissions to modify or delete the data, adhering to the principle of least privilege for read-only tasks.' (Source 10.2)


Page:    1 / 14   
Total 331 questions