Google CloudExpert levelPage 4 of 5

Google Professional Cloud Security Engineer exam dumps: questions 301 to 400 of 500

Page 4 of the free Google Professional Cloud Security Engineer question bank for the Professional Cloud Security Engineer exam. Questions 301 to 400 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated January 2025

Free Google Professional Cloud Security Engineer practice questions

Questions 301 to 305 of 500

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

Google Professional Cloud Security Engineer Question 301

Select 4Google Cloud Platform

You are a security engineer at an organization that stores sensitive data in Google Cloud Storage, BigQuery, and Cloud SQL. A recent audit revealed that some employees have more access than necessary to these data services. To follow the principle of least privilege and mitigate this risk, what steps should you take to restrict access appropriately?

  1. A

    Implement Identity and Access Management (IAM) roles with the minimum required permissions for users.

  2. B

    Enable Public Access Prevention on Cloud Storage buckets.

  3. C

    Use VPC Service Controls to define service perimeters around your data services.

  4. D

    Grant the 'roles/owner' IAM role to all team members to ensure they have broad access to troubleshoot any issues.

  5. E

    Review and remove any unused service accounts with access to your data services.

Show answer and explanation

Correct answers: A, B, C, E

Explanation

To restrict access to Google Cloud data services like Cloud Storage, BigQuery, and Cloud SQL, it's crucial to follow the principle of least privilege by assigning minimal IAM roles, enabling Public Access Prevention for sensitive data, implementing VPC Service Controls, and removing unused service accounts. Avoid granting over-permissive roles like 'roles/owner' to prevent unnecessary access and potential misuse.

  • A. Correct.

    Correct: Assigning IAM roles with the minimum required permissions ensures that users have only the necessary access to perform their tasks, following the principle of least privilege.

  • B. Correct.

    Correct: Enabling Public Access Prevention on Cloud Storage buckets minimizes the risk of unauthorized access by ensuring that buckets cannot be publicly accessible.

  • C. Correct.

    Correct: VPC Service Controls add an additional layer of security by creating service perimeters that restrict unauthorized data movement between services and external networks.

  • D. Incorrect.

    Incorrect: Granting the 'roles/owner' IAM role provides excessive permissions, violating the principle of least privilege. This role should only be used sparingly for administrative purposes.

  • E. Correct.

    Correct: Reviewing and removing unused service accounts is a best practice to reduce the attack surface and prevent unauthorized access to data services.

Google Professional Cloud Security Engineer Question 302

Select 3Google Cloud Platform

You are a security engineer at a company that uses Google Cloud for its data storage and analytics needs. The organization has a BigQuery dataset containing sensitive customer data. Only members of the 'Data Analysts' group should have read access to the dataset, while members of the 'Data Engineers' group should have full control over it. Additionally, the dataset must not be publicly accessible. What steps should you take to enforce these access restrictions?

  1. A

    Grant the 'roles/bigquery.dataViewer' role to the 'Data Analysts' group at the dataset level.

  2. B

    Grant the 'roles/bigquery.admin' role to the 'Data Engineers' group at the dataset level.

  3. C

    Ensure the dataset’s IAM policy does not include 'allUsers' or 'allAuthenticatedUsers' as members.

  4. D

    Grant the 'roles/storage.objectViewer' role to the 'Data Analysts' group at the project level.

  5. E

    Enable VPC Service Controls to restrict access to the dataset.

Show answer and explanation

Correct answers: A, B, C

Explanation

To restrict access to BigQuery datasets, you should use IAM roles to define granular permissions for specific groups. In this case, 'roles/bigquery.dataViewer' provides read-only access for the 'Data Analysts' group, while 'roles/bigquery.admin' grants full control to the 'Data Engineers' group. Ensuring the dataset’s IAM policy does not include 'allUsers' or 'allAuthenticatedUsers' prevents public access. VPC Service Controls can be an additional layer of security, but they are not explicitly required in this scenario.

  • A. Correct.

    This grants read-only access to the BigQuery dataset for the 'Data Analysts' group, which aligns with the requirement.

  • B. Correct.

    This grants full control over the BigQuery dataset to the 'Data Engineers' group, which aligns with the requirement.

  • C. Correct.

    Including 'allUsers' or 'allAuthenticatedUsers' in the IAM policy would make the dataset publicly accessible, violating the requirement.

  • D. Incorrect.

    This role applies to Cloud Storage objects, not BigQuery datasets, so it is irrelevant to the scenario.

  • E. Incorrect.

    While VPC Service Controls can help restrict access in a broader sense, the scenario specifically focuses on IAM role assignments and public access restrictions.

Google Professional Cloud Security Engineer Question 303

Select 3Google Cloud Platform

Your organization uses Google Cloud Storage to store sensitive financial records. To comply with your organization's security policy, you must ensure that only members of the 'FinanceTeam' Google Group can access these records, and their access must be read-only. Additionally, external access should be blocked entirely. Which of the following steps should you take to achieve this?

  1. A

    Create a bucket-level IAM policy granting the 'roles/storage.objectViewer' role to the 'FinanceTeam' Google Group.

  2. B

    Use a VPC Service Controls perimeter to restrict access to the bucket from external networks.

  3. C

    Grant the 'roles/storage.admin' role to the 'FinanceTeam' Google Group to allow full access to the bucket.

  4. D

    Remove the 'allUsers' and 'allAuthenticatedUsers' members, if present, from the bucket's IAM policy.

  5. E

    Enable Object Versioning on the bucket to track changes to stored files.

Show answer and explanation

Correct answers: A, B, D

Explanation

To restrict access to Google Cloud Storage for sensitive data, you must carefully configure IAM roles and policies to ensure that only authorized users or groups have appropriate access. In this scenario, granting 'roles/storage.objectViewer' to the 'FinanceTeam' satisfies the read-only requirement. Additionally, removing broad permissions (such as 'allUsers' and 'allAuthenticatedUsers') and implementing a VPC Service Controls perimeter ensures external access is fully blocked. These combined steps meet the organization's security requirements effectively.

  • A. Correct.

    Correct. Granting the 'roles/storage.objectViewer' role to the 'FinanceTeam' Google Group ensures that group members have read-only access to the bucket's objects, fulfilling the requirement of the security policy.

  • B. Correct.

    Correct. Using a VPC Service Controls perimeter helps prevent unauthorized external access to the bucket, enhancing security compliance.

  • C. Incorrect.

    Incorrect. Granting the 'roles/storage.admin' role would provide full administrative access, which violates the requirement of read-only access for the 'FinanceTeam'.

  • D. Correct.

    Correct. Removing the 'allUsers' and 'allAuthenticatedUsers' members from the bucket's IAM policy ensures that no unauthorized external access is permitted, meeting part of the security requirement.

  • E. Incorrect.

    Incorrect. While enabling Object Versioning can be useful for tracking changes, it does not address access restrictions or external access controls, which are the focus of this scenario.

Google Professional Cloud Security Engineer Question 304

Select 3Google Cloud Platform

You are a security engineer at an organization that uses Google Cloud. You need to restrict access to sensitive data stored in BigQuery, Cloud Storage, and Cloud SQL while ensuring that only authorized users can access specific datasets, buckets, or instances. What are the most appropriate actions to achieve this?

  1. A

    Assign predefined roles such as 'roles/storage.objectViewer' or 'roles/bigquery.dataViewer' to specific users or groups.

  2. B

    Use VPC Service Controls to define service perimeters around your Google Cloud data services to prevent unauthorized access.

  3. C

    Encrypt the data in BigQuery, Cloud Storage, and Cloud SQL with Customer-Managed Encryption Keys (CMEK) and share the key with all users.

  4. D

    Configure IAM Conditions to enforce access restrictions based on attributes like time, IP address, or resource name.

  5. E

    Grant the 'roles/owner' role at the project level to ensure all authorized users can access the required resources.

Show answer and explanation

Correct answers: A, B, D

Explanation

To restrict access to Google Cloud data services like BigQuery, Cloud Storage, and Cloud SQL, it is essential to follow the principle of least privilege by assigning only the necessary predefined roles to users. Additionally, you can enhance security by implementing VPC Service Controls to create secure perimeters and using IAM Conditions for fine-grained access control. Avoid overly permissive roles or sharing encryption keys indiscriminately, as these practices can expose your resources to unauthorized access.

  • A. Correct.

    Correct: Assigning predefined roles such as 'roles/storage.objectViewer' or 'roles/bigquery.dataViewer' provides the least-privilege access required for users to access specific data services.

  • B. Correct.

    Correct: VPC Service Controls help create a secure perimeter around your data services, preventing unauthorized access from outside the defined perimeter.

  • C. Incorrect.

    Incorrect: While CMEK enhances encryption, sharing the key with all users does not restrict access and could lead to unauthorized access.

  • D. Correct.

    Correct: IAM Conditions allow you to implement fine-grained access control, restricting access based on specific attributes like time, IP address, or resource name.

  • E. Incorrect.

    Incorrect: Granting the 'roles/owner' role at the project level provides excessive permissions, violating the principle of least privilege.

Google Professional Cloud Security Engineer Question 305

Select 3Google Cloud Platform

You are a Professional Cloud Security Engineer tasked with securing an application running in Google Cloud. The application needs access to sensitive API keys to interact with third-party services. You decide to use Secret Manager to store and manage these secrets. Which of the following steps should you take to ensure the secrets remain secure and are accessed only by authorized components?

  1. A

    Grant the application’s service account the 'Secret Manager Admin' role for the secret.

  2. B

    Use Secret Manager to store the API keys and ensure they are encrypted at rest using Google-managed encryption keys.

  3. C

    Grant the application’s service account the 'Secret Manager Secret Accessor' role for the secret.

  4. D

    Enable audit logging for Secret Manager to track access and modifications to the secrets.

  5. E

    Embed the API keys directly into the application’s code to reduce external dependencies.

Show answer and explanation

Correct answers: B, C, D

Explanation

To secure secrets with Secret Manager, you should store the secrets securely in Secret Manager and ensure they are encrypted at rest. The application should be granted only the 'Secret Manager Secret Accessor' role to ensure least privilege access. Enabling audit logging provides visibility into access and modifications for security monitoring. Avoid practices like embedding secrets in code as they expose the application to unnecessary risks.

  • A. Incorrect.

    Granting the 'Secret Manager Admin' role is overly permissive and violates the principle of least privilege. This role allows not only access but also the ability to modify and delete secrets, which is unnecessary for the application.

  • B. Correct.

    Using Secret Manager to store the API keys ensures the secrets are stored and encrypted securely at rest. Google-managed encryption keys are automatically used unless you specify a customer-managed encryption key (CMEK).

  • C. Correct.

    Granting the 'Secret Manager Secret Accessor' role allows the application to read the secrets without providing unnecessary permissions. This adheres to the principle of least privilege.

  • D. Correct.

    Enabling audit logging for Secret Manager is a best practice for tracking access and modifications to secrets, which helps in identifying and responding to unauthorized access attempts.

  • E. Incorrect.

    Embedding API keys directly into the application’s code is a security anti-pattern as it increases the risk of accidental exposure and makes it harder to rotate credentials.

Timed practice exam

Take a Google Professional Cloud Security Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

Google Professional Cloud Security Engineer practice questions 301 to 400 of 500

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 5 pages of up to 100 questions.

  1. 301.You are a security engineer at an organization that stores sensitive data in Google Cloud Storage, BigQuery,...
  2. 302.You are a security engineer at a company that uses Google Cloud for its data storage and analytics needs. The...
  3. 303.Your organization uses Google Cloud Storage to store sensitive financial records. To comply with your...
  4. 304.You are a security engineer at an organization that uses Google Cloud. You need to restrict access to...
  5. 305.You are a Professional Cloud Security Engineer tasked with securing an application running in Google Cloud....
  6. 306.Your organization uses Google Cloud Secret Manager to store sensitive credentials such as API keys and...
  7. 307.You are a Professional Cloud Security Engineer at a company that uses Google Cloud. The development team...
  8. 308.Your organization uses Google Cloud Secret Manager to manage sensitive credentials such as API keys and...
  9. 309.Your organization is building a cloud-native application that requires storing API keys and database...
  10. 310.Your team is building an application on Google Cloud that needs access to a database. The database...
  11. 311.You are responsible for securing the metadata of your Compute Engine instances in a project. A developer has...
  12. 312.Your organization uses Compute Engine instances to run critical workloads. You want to ensure that...
  13. 313.You are a security engineer managing a Google Cloud project. To prevent unauthorized access to sensitive...
  14. 314.You are a security engineer tasked with securing the metadata of Compute Engine instances in your Google...
  15. 315.You are a security engineer managing a Google Cloud environment with several Compute Engine instances. To...
  16. 316.You are configuring a Compute Engine instance in Google Cloud and want to ensure that the instance's metadata...
  17. 317.Your organization processes sensitive customer data using Google Cloud services, and you need to ensure that...
  18. 318.Your organization uses Google Cloud to host sensitive customer data and must comply with strict regulatory...
  19. 319.Your company uses Google Cloud to host sensitive customer data, including personal identifiable information...
  20. 320.You are designing a secure data storage solution for a financial services application on Google Cloud. The...
  21. 321.You are designing a data storage solution for a healthcare application on Google Cloud. The application must...
  22. 322.You are designing a secure application on Google Cloud that processes sensitive customer data. The...
  23. 323.Your organization is storing sensitive financial data in Google Cloud Storage and needs to ensure compliance...
  24. 324.Your organization is deploying a new application on Google Cloud that stores highly sensitive user data in...
  25. 325.Your organization is storing sensitive customer data in Google Cloud Storage. The data must comply with...
  26. 326.Your organization stores sensitive customer data in Google Cloud Storage. Due to compliance requirements, you...
  27. 327.Your organization is migrating sensitive financial data to Google Cloud. Regulatory compliance requires you...
  28. 328.Your organization is migrating a sensitive financial application to Google Cloud. The application handles...
  29. 329.Your organization is deploying a new application that handles highly sensitive financial transactions. The...
  30. 330.Your organization needs to implement key management for a sensitive financial application hosted on Google...
  31. 331.Your organization is building a highly sensitive financial application on Google Cloud that handles customer...
  32. 332.Your organization needs to implement a key management solution for encrypting sensitive customer data stored...
  33. 333.Your organization is developing a highly sensitive financial application on Google Cloud. The application...
  34. 334.Your organization is implementing a secure system for encrypting sensitive data in Google Cloud. The security...
  35. 335.Your organization stores sensitive customer data in Google Cloud Storage and uses Customer-Managed Encryption...
  36. 336.Your organization uses Google Cloud and has implemented Customer-Managed Encryption Keys (CMEK) for securing...
  37. 337.A financial services company is using Google Cloud and has configured a Cloud Storage bucket with a...
  38. 338.Your organization is using Google Cloud's Customer-Managed Encryption Keys (CMEK) to secure sensitive data...
  39. 339.Your organization is using Google Cloud's Customer-Managed Encryption Keys (CMEK) to encrypt data in...
  40. 340.A financial services company is using Google Cloud to store sensitive customer data. They have opted to use...
  41. 341.You are designing a secure data storage solution for a healthcare application hosted on Google Cloud. The...
  42. 342.Your organization stores sensitive customer data in Google Cloud Storage and requires encryption at rest to...
  43. 343.Your company is storing sensitive customer data in Google Cloud Storage. Compliance requirements mandate that...
  44. 344.You are managing a healthcare application that processes sensitive patient data. To meet regulatory...
  45. 345.Your organization processes sensitive customer data and stores it in Google Cloud Storage. To comply with...
  46. 346.Your organization stores sensitive customer data in Google Cloud Storage and wants to ensure this data is...
  47. 347.Your organization stores large amounts of data in a Google Cloud Storage bucket, and you have been tasked...
  48. 348.Your organization has a Google Cloud Storage bucket that stores archived logs which must be retained for 180...
  49. 349.Your organization has a Cloud Storage bucket that stores log files. Due to regulatory requirements, these...
  50. 350.You are managing a Cloud Storage bucket that stores sensitive customer data. To optimize storage costs while...
  51. 351.You are a Cloud Security Engineer for a company that stores sensitive data in Google Cloud Storage. Your...
  52. 352.Your organization processes sensitive data and wants to ensure that workloads running in Google Cloud...
  53. 353.Your organization processes sensitive customer data in Google Cloud and is required to ensure that data...
  54. 354.Your organization processes sensitive data in Google Cloud, and you are tasked with implementing a solution...
  55. 355.Your organization processes highly sensitive financial data and requires a solution to ensure that data...
  56. 356.Your organization handles sensitive financial data and wants to ensure that this data remains encrypted not...
  57. 357.Your organization handles highly sensitive customer data and wants to ensure that data remains encrypted not...
  58. 358.You are deploying a machine learning model on Google Cloud AI Platform and need to ensure the workload is...
  59. 359.You are deploying a machine learning model on Google Cloud AI Platform. The model processes sensitive data,...
  60. 360.Your organization is deploying a machine learning model on Google Cloud that processes sensitive financial...
  61. 361.Your organization has deployed a machine learning model on Google Cloud AI Platform. The model processes...
  62. 362.Your organization is deploying a machine learning model on Google Cloud to process sensitive personal data....
  63. 363.You are tasked with securing an AI workload running on Google Cloud that processes sensitive user data. The...
  64. 364.Your organization is deploying a machine learning model on Google Cloud to predict customer purchase...
  65. 365.Your organization is deploying a machine learning model on Google Cloud to analyze user financial data. To...
  66. 366.Your company is deploying an AI/ML system on Google Cloud to analyze sensitive customer data, including...
  67. 367.You are responsible for implementing security and privacy controls for an AI/ML system that processes...
  68. 368.You are a Cloud Security Engineer tasked with securing an AI/ML system on Google Cloud that processes...
  69. 369.Your organization is deploying a machine learning model on Google Cloud AI Platform. The model uses sensitive...
  70. 370.You are tasked with designing a secure machine learning (ML) training environment for a financial services...
  71. 371.Your team is deploying a machine learning model for training using both IaaS-hosted and PaaS-hosted...
  72. 372.Your organization is building a machine learning training model hosted on Google Cloud. The team is...
  73. 373.You are tasked with deploying a machine learning model for training on Google Cloud. The model will be hosted...
  74. 374.You are tasked with deploying a machine learning training model on Google Cloud. The model will be hosted...
  75. 375.You are designing a machine learning model training solution for your organization. The model will be hosted...
  76. 376.You are a Professional Cloud Security Engineer tasked with securing a Vertex AI environment used by your...
  77. 377.Your organization is using Vertex AI to deploy a machine learning model that processes sensitive customer...
  78. 378.Your organization is using Vertex AI to train and deploy machine learning models. You are tasked with...
  79. 379.Your organization is using Vertex AI for training machine learning models. You need to ensure that sensitive...
  80. 380.Your organization is using Vertex AI to deploy machine learning models. As a security engineer, you are...
  81. 381.You are designing a Vertex AI solution for your organization to train and deploy machine learning models. The...
  82. 382.Your organization has implemented Google Cloud for hosting its workloads. To enhance security and ensure...
  83. 383.Your organization is deploying a new application on Google Cloud and wants to ensure security best practices...
  84. 384.Your organization is deploying a new application on Google Cloud and wants to ensure that security is...
  85. 385.You are tasked with improving the security posture of your organization's Google Cloud environment by...
  86. 386.You are a security engineer tasked with automating the security controls for a Google Cloud environment. The...
  87. 387.Your organization is deploying a critical application on Google Cloud. To ensure infrastructure and...
  88. 388.You are tasked with setting up a CI/CD pipeline in Google Cloud to automatically scan container images for...
  89. 389.You are a security engineer at a company that uses Google Cloud for its infrastructure. The company wants to...
  90. 390.Your organization is implementing a CI/CD pipeline to deploy containerized applications on Google Kubernetes...
  91. 391.Your organization is building a CI/CD pipeline to deploy containerized applications on Google Kubernetes...
  92. 392.Your organization has implemented a CI/CD pipeline to build and deploy containerized applications on Google...
  93. 393.Your organization uses Google Cloud and wants to automate security scanning for Common Vulnerabilities and...
  94. 394.Your organization is using Google Kubernetes Engine (GKE) to deploy containerized workloads. To meet security...
  95. 395.Your organization uses Google Kubernetes Engine (GKE) to deploy containerized workloads. To comply with...
  96. 396.You are a security engineer tasked with securing a Google Kubernetes Engine (GKE) cluster that runs...
  97. 397.Your organization is deploying containerized applications on Google Kubernetes Engine (GKE) and wants to...
  98. 398.Your organization uses Google Kubernetes Engine (GKE) to deploy containerized applications. To enhance...
  99. 399.Your organization uses Google Kubernetes Engine (GKE) to deploy containerized applications. The security team...
  100. 400.Your organization wants to automate the process of creating hardened virtual machine (VM) images to ensure...