
Master 2025 Latest The Questions Google Cloud Certified and Pass Professional-Cloud-Security-Engineer Real Exam!
Penetration testers simulate Professional-Cloud-Security-Engineer exam PDF
NEW QUESTION # 28
A company migrated their entire data/center to Google Cloud Platform. It is running thousands of instances across multiple projects managed by different departments. You want to have a historical record of what was running in Google Cloud Platform at any point in time.
What should you do?
- A. Use Resource Manager on the organization level.
- B. Use Security Command Center to view all assets across the organization.
- C. Use Stackdriver to create a dashboard across all projects.
- D. Use Forseti Security to automate inventory snapshots.
Answer: D
Explanation:
To maintain a historical record of what was running in Google Cloud Platform at any point in time, you should use Forseti Security to automate inventory snapshots. Forseti Security is an open-source toolkit that helps to automate security and compliance in GCP by taking inventory snapshots of GCP resources.
Step-by-Step:
Install Forseti Security:
Follow the installation guide to deploy Forseti Security on your GCP environment.
Configure Inventory:
Set up the inventory module in Forseti to capture and store snapshots of GCP resources.
Schedule Snapshots:
Use Forseti's configuration to schedule regular inventory snapshots.
Access Historical Data:
Review and access historical records through Forseti's dashboard or by querying the Forseti database.
Compliance and Monitoring: Use Forseti to ensure compliance and monitor changes over time.
Reference:
Forseti Security Overview
Inventory Module
NEW QUESTION # 29
You are onboarding new users into Cloud Identity and discover that some users have created consumer user accounts using the corporate domain name. How should you manage these consumer user accounts with Cloud Identity?
- A. Use the transfer tool for unmanaged user accounts.
- B. Create a new managed user account for each consumer user account.
- C. Use Google Cloud Directory Sync to convert the unmanaged user accounts.
- D. Configure single sign-on using a customer's third-party provider.
Answer: A
Explanation:
https://support.google.com/a/answer/6178640?hl=en
The transfer tool enables you to see what unmanaged users exist, and then invite those unmanaged users to the domain.
NEW QUESTION # 30
A customer's internal security team must manage its own encryption keys for encrypting data on Cloud Storage and decides to use customer-supplied encryption keys (CSEK).
How should the team complete this task?
- A. Use the gsutil command line tool to upload the object to Cloud Storage, and specify the location of the encryption key.
- B. Encrypt the object, then use the gsutil command line tool or the Google Cloud Platform Console to upload the object to Cloud Storage.
- C. Generate an encryption key in the Google Cloud Platform Console, and upload an object to Cloud Storage using the specified key.
- D. Upload the encryption key to a Cloud Storage bucket, and then upload the object to the same bucket.
Answer: A
Explanation:
To use customer-supplied encryption keys (CSEK) for encrypting data on Cloud Storage, follow these steps:
Generate an Encryption Key: Generate a 256-bit AES encryption key. This key should be base64-encoded.
sh
Copy code
openssl rand -base64 32
Upload Object with CSEK: Use the gsutil command-line tool to upload the object to Cloud Storage, specifying the location of the encryption key using the -o option.
gsutil -o "GSUtil:encryption_key=<base64-encoded-key>" cp [LOCAL_OBJECT_PATH] gs://[BUCKET_NAME]/ Verify Encryption: After uploading the object, you can verify that it is encrypted using the provided CSEK by checking the object's metadata.
gsutil stat gs://[BUCKET_NAME]/[OBJECT_NAME]
Key Management: Ensure that the encryption key is securely stored and managed. It should not be hard-coded in scripts or applications.
By using the gsutil tool and specifying the encryption key, you ensure that the object is encrypted using the customer-supplied encryption key during the upload process.
Reference:
Customer-Supplied Encryption Keys (CSEK) Documentation
gsutil Command Line Tool Documentation
NEW QUESTION # 31
The security operations team needs access to the security-related logs for all projects in their organization.
They have the following requirements:
Follow the least privilege model by having only view access to logs.
Have access to Admin Activity logs.
Have access to Data Access logs.
Have access to Access Transparency logs.
Which Identity and Access Management (IAM) role should the security operations team be granted?
- A. roles/viewer
- B. roles/logging.privateLogViewer
- C. roles/logging.admin
- D. roles/logging.viewer
Answer: B
Explanation:
Explanation
https://cloud.google.com/logging/docs/access-control#considerations roles/logging.privateLogViewer (Private Logs Viewer) includes all the permissions contained by roles/logging.viewer, plus the ability to read Data Access audit logs in the _Default bucket.
NEW QUESTION # 32
You want data on Compute Engine disks to be encrypted at rest with keys managed by Cloud Key Management Service (KMS). Cloud Identity and Access Management (IAM) permissions to these keys must be managed in a grouped way because the permissions should be the same for all keys.
What should you do?
- A. Create a KeyRing per persistent disk, with each Keying containing a single Key. Manage the IAM permissions at the Key level.
- B. Create a single KeyRing for all persistent disks and all Keys in this KeyRing. Manage the IAM permissions at the Key level.
- C. Create a single KeyRing for all persistent disks and all Keys in this KeyRing. Manage the IAM permissions at the KeyRing level.
- D. Create a KeyRing per persistent disk, with each KeyRing containing a single Key. Manage the IAM permissions at the KeyRing level.
Answer: A
NEW QUESTION # 33
A customer wants to make it convenient for their mobile workforce to access a CRM web interface that is hosted on Google Cloud Platform (GCP). The CRM can only be accessed by someone on the corporate network. The customer wants to make it available over the internet. Your team requires an authentication layer in front of the application that supports two-factor authentication Which GCP product should the customer implement to meet these requirements?
- A. Cloud Endpoints
- B. Cloud Armor
- C. Cloud Identity-Aware Proxy
- D. Cloud VPN
Answer: C
Explanation:
Explanation
Cloud IAP is integrated with Google Sign-in which Multi-factor authentication can be enabled.
https://cloud.google.com/iap/docs/concepts-overview
NEW QUESTION # 34
You are the Security Admin in your company. You want to synchronize all security groups that have an email address from your LDAP directory in Cloud IAM.
What should you do?
- A. Configure Google Cloud Directory Sync to sync security groups using LDAP search rules that have "user email address" as the attribute to facilitate bidirectional sync.
- B. Configure Google Cloud Directory Sync to sync security groups using LDAP search rules that have "user email address" as the attribute to facilitate one-way sync.
- C. Use a management tool to sync the subset based on the email address attribute. Create a group in the Google domain. A group created in a Google domain will automatically have an explicit Google Cloud Identity and Access Management (IAM) role.
- D. Use a management tool to sync the subset based on group object class attribute. Create a group in the Google domain. A group created in a Google domain will automatically have an explicit Google Cloud Identity and Access Management (IAM) role.
Answer: B
Explanation:
search rules that have "user email address" as the attribute to facilitate one-way sync. Reference Links: https://support.google.com/a/answer/6126589?hl=en
NEW QUESTION # 35
A company allows every employee to use Google Cloud Platform. Each department has a Google Group, with all department members as group members. If a department member creates a new project, all members of that department should automatically have read-only access to all new project resources. Members of any other department should not have access to the project. You need to configure this behavior.
What should you do to meet these requirements?
- A. Create a Project per department under the Organization. For each department's Project, assign the Project Browser role to the Google Group related to that department.
- B. Create a Folder per department under the Organization. For each department's Folder, assign the Project Browser role to the Google Group related to that department.
- C. Create a Project per department under the Organization. For each department's Project, assign the Project Viewer role to the Google Group related to that department.
- D. Create a Folder per department under the Organization. For each department's Folder, assign the Project Viewer role to the Google Group related to that department.
Answer: D
Explanation:
To configure the behavior where each department member automatically has read-only access to all new project resources created by any department member, you should use Google Cloud's folder structure and IAM roles effectively. Here are the steps:
* Create Folders for Departments: Create a folder under your Organization for each department.
Folders help organize resources and provide a hierarchy for applying policies and permissions.
* Assign IAM Roles to Google Groups: Assign the Project Viewer role to the Google Group associated with each department at the folder level. This ensures that all members of the group have the necessary permissions.
* Inherited Permissions: When a department member creates a new project under their department's folder, the permissions assigned to the folder are inherited by the new project. Thus, all department members will automatically have read-only access to the project's resources.
* Navigate to IAM & Admin in the GCP Console.
* Select "Folders" from the left-hand menu.
* For each department, create a new folder under the organization.
* Select the newly created folder, and then go to the "Permissions" tab.
* Click on "Add" to assign a new role.
* Enter the email address of the Google Group for the department.
* Assign the "Project Viewer" role to the group.
* Access Restrictions: Since the permissions are applied at the folder level, only the members of the specific department's Google Group will have read-only access to the projects created in that folder.
Other departments will not have access unless explicitly granted.
By following these steps, you ensure that department members have the required access to their respective projects without manual configuration for each new project.
References:
* Google Cloud IAM Documentation
* Google Cloud Resource Manager Documentation
NEW QUESTION # 36
Your organization wants to be continuously evaluated against CIS Google Cloud Computing Foundations Benchmark v1.3.0 (CIS Google Cloud Foundation 1.3). Some of the controls are irrelevant to your organization and must be disregarded in evaluation. You need to create an automated system or process to ensure that only the relevant controls are evaluated.
What should you do?
- A. Download all findings from Security Command Center (SCC) to a CSV file. Mark the findings that are part of CIS Google Cloud Foundation 1.3 in the file. Ignore the entries that are irrelevant and out of scope for the company.
- B. Activate Security Command Center (SCC) Premium. Create a rule to mute the security findings in SCC so they are not evaluated.
- C. Mark all security findings that are irrelevant with a tag and a value that indicates a security exception. Select all marked findings, and mute them on the console every time they appear.
Activate Security Command Center (SCC) Premium. - D. Ask an external audit company to provide independent reports including needed CIS benchmarks.
In the scope of the audit, clarify that some of the controls are not needed and must be disregarded.
Answer: B
Explanation:
https://cloud.google.com/security-command-center/docs/how-to-mute-findings
NEW QUESTION # 37
Your organization has implemented synchronization and SAML federation between Cloud Identity and Microsoft Active Directory. You want to reduce the risk of Google Cloud user accounts being compromised. What should you do?
- A. Create an Active Directory domain password policy with strong password settings, and configure post-SSO (single sign-on) 2-Step Verification with security keys in the Google Admin console.
- B. Create a Cloud Identity password policy with strong password settings, and configure 2-Step Verification with security keys in the Google Admin console.
- C. Create an Active Directory domain password policy with strong password settings, and configure post-SSO (single sign-on) 2-Step Verification with verification codes via text or phone call in the Google Admin console.
- D. Create a Cloud Identity password policy with strong password settings, and configure 2-Step Verification with verification codes via text or phone call in the Google Admin console.
Answer: A
Explanation:
https://cloud.google.com/identity/solutions/enforce-mfa#use_security_keys Use security keys We recommend requiring security keys for those employees who create and access data that needs the highest level of security. You should require 2SV for all other employees and encourage them to use security keys.
Security keys offer the most secure form of 2SV. They are based on the open standard developed by Google as part of the Fast Identity Online (FIDO) Alliance. Security keys require a compatible browser on user devices.
NEW QUESTION # 38
Your organization is worried about recent news headlines regarding application vulnerabilities in production applications that have led to security breaches. You want to automatically scan your deployment pipeline for vulnerabilities and ensure only scanned and verified containers can run in the environment. What should you do?
- A. Enable Binary Authorization and create attestations of scans.
- B. Use gcloud artifacts docker images describe LOCATION-
docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE_ID@sha256:HASH --show-package- vulnerability in your CI/CD pipeline, and trigger a pipeline failure for critical vulnerabilities. - C. Enforce the use of Cloud Code for development so users receive real-time security feedback on vulnerable libraries and dependencies before they check in their code.
- D. Use Kubernetes role-based access control (RBAC) as the source of truth for cluster access by granting "container.clusters.get" to limited users. Restrict deployment access by allowing these users to generate a kubeconfig file containing the configuration access to the GKE cluster.
Answer: A
Explanation:
https://cloud.google.com/binary-authorization/docs/attestations
NEW QUESTION # 39
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?
- A. Set the organization policy constraint constraints/iam.serviceAccountKeyExpiryHours to one hour and inheritFromParent to false.
- B. Set the session duration for the Google session control to one hour.
- C. Set the reauthentication frequency for the Google Cloud Session Control to one hour.
- D. Set the organization policy constraint
constraints/iam.allowServiceAccountCredentialLifetimeExtension to one hour.
Answer: C
Explanation:
https://support.google.com/a/answer/9368756?hl=en
NEW QUESTION # 40
You recently joined the networking team supporting your company's Google Cloud implementation. You are tasked with familiarizing yourself with the firewall rules configuration and providing recommendations based on your networking and Google Cloud experience. What product should you recommend to detect firewall rules that are overlapped by attributes from other firewall rules with higher or equal priority?
- A. Firewall Insights
- B. Security Command Center
- C. Firewall Rules Logging
- D. VPC Flow Logs
Answer: A
Explanation:
Explanation
https://cloud.google.com/network-intelligence-center/docs/firewall-insights/concepts/overview#shadowed-firewa Firewall Insights analyzes your firewall rules to detect firewall rules that are shadowed by other rules. A shadowed rule is a firewall rule that has all of its relevant attributes, such as its IP address and port ranges, overlapped by attributes from one or more rules with higher or equal priority, called shadowing rules.
NEW QUESTION # 41
Your company uses Google Cloud and has publicly exposed network assets. You want to discover the assets and perform a security audit on these assets by using a software tool in the least amount of time.
What should you do?
- A. Contact a Google approved security vendor to perform the audit.
- B. Run a platform security scanner on all instances in the organization.
- C. Identify all external assets by using Cloud Asset Inventory and then run a network security scanner againstthem.
- D. Notify Google about the pending audit and wait for confirmation before performing the scan.
Answer: C
Explanation:
Explanation
Cloud Asset Inventory: Using Cloud Asset Inventory allows you to quickly identify all the external assets and resources in your Google Cloud environment. This includes information about your projects, instances, storage buckets, and more. This step is crucial for understanding the scope of your audit. Network Security Scanner:
Once you have identified the external assets, you can run a network security scanner to assess the security of these assets. Network security scanners can help identify vulnerabilities and potential security risks quickly.
NEW QUESTION # 42
You are on your company's development team. You noticed that your web application hosted in staging on GKE dynamically includes user data in web pages without first properly validating the inputted dat a. This could allow an attacker to execute gibberish commands and display arbitrary content in a victim user's browser in a production environment.
How should you prevent and fix this vulnerability?
- A. Use Web Security Scanner in staging to simulate an XSS injection attack, and then use a templating system that supports contextual auto-escaping.
- B. Use Web Security Scanner to validate the usage of an outdated library in the code, and then use a secured version of the included library.
- C. Use Cloud IAP based on IP address or end-user device attributes to prevent and fix the vulnerability.
- D. Set up an HTTPS load balancer, and then use Cloud Armor for the production environment to prevent the potential XSS attack.
Answer: A
NEW QUESTION # 43
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?
- A. Schedule 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.
- B. Set 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.
- C. Configure 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.
- D. 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.
Answer: D
Explanation:
https://cloud.google.com/dlp/docs/deidentify-storage?hl=pt-br
NEW QUESTION # 44
You are the security admin of your company. You have 3,000 objects in your Cloud Storage bucket. You do not want to manage access to each object individually. You also do not want the uploader of an object to always have full control of the object. However, you want to use Cloud Audit Logs to manage access to your bucket.
What should you do?
- A. Set up an ACL with OWNER permission to a scope of allUsers.
- B. Set up an ACL with READER permission to a scope of allUsers.
- C. Set up a default bucket ACL and manage access for users using IAM.
- D. Set up Uniform bucket-level access on the Cloud Storage bucket and manage access for users using IAM.
Answer: A
NEW QUESTION # 45
A customer wants to run a batch processing system on VMs and store the output files in a Cloud Storage bucket. The networking and security teams have decided that no VMs may reach the public internet.
How should this be accomplished?
- A. Enable Private Google Access on the VPC.
- B. Mount a Cloud Storage bucket as a local filesystem on every VM.
- C. Provision a NAT Gateway to access the Cloud Storage API endpoint.
- D. Create a firewall rule to block internet traffic from the VM.
Answer: A
Explanation:
https://cloud.google.com/vpc/docs/private-google-access
NEW QUESTION # 46
You manage your organization's Security Operations Center (SOC). You currently monitor and detect network traffic anomalies in your VPCs based on network logs. However, you want to explore your environment using network payloads and headers. Which Google Cloud product should you use?
- A. Google Cloud Armor
- B. Cloud IDS
- C. VPC Service Controls logs
- D. Packet Mirroring
- E. VPC Flow Logs
Answer: D
Explanation:
Explanation
https://cloud.google.com/vpc/docs/packet-mirroring
Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it for examination. Packet Mirroring captures all traffic and packet data, including payloads and headers.
NEW QUESTION # 47
Your company has been creating users manually in Cloud Identity to provide access to Google Cloud resources. Due to continued growth of the environment, you want to authorize the Google Cloud Directory Sync (GCDS) instance and integrate it with your on-premises LDAP server to onboard hundreds of users. You are required to:
Replicate user and group lifecycle changes from the on-premises LDAP server in Cloud Identity.
Disable any manually created users in Cloud Identity.
You have already configured the LDAP search attributes to include the users and security groups in scope for Google Cloud. What should you do next to complete this solution?
- A. 1. Configure the LDAP search attributes to exclude manually created Cloud Identity users not found in LDAP.
2. Set up a recurring GCDS task. - B. 1. Configure the LDAP search attributes to exclude manually created Cloud identity users not found in LDAP.
2. Run GCDS after user and group lifecycle changes. - C. 1. Configure the option to suspend domain users not found in LDAP.
2. Set up a recurring GCDS task. - D. 1. Configure the option to delete domain users not found in LDAP.
2. Run GCDS after user and group lifecycle changes.
Answer: C
Explanation:
To achieve the requirement "Disable any manually created users in Cloud Identity", configure GCDS to suspend rather than delete accounts if user accounts are not found in the LDAP directory in GCDS. Ref: https://support.google.com/a/answer/7177267
NEW QUESTION # 48
......
Penetration testers simulate Professional-Cloud-Security-Engineer exam: https://www.actual4labs.com/Google/Professional-Cloud-Security-Engineer-actual-exam-dumps.html
Bestselling On-The-Job Reference Exam Questions: https://drive.google.com/open?id=1Otzdu13K18CoJKxKBj1IsM50amo2gxWm