Google CloudProfessional levelPage 2 of 5

Google Professional Cloud Developer exam dumps: questions 101 to 200 of 480

Page 2 of the free Google Professional Cloud Developer question bank for the Professional Cloud Developer exam. Questions 101 to 200 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 December 2024

Free Google Professional Cloud Developer practice questions

Questions 101 to 105 of 480

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

Google Professional Cloud Developer Question 101

Select 3Google Cloud Platform

You are developing a containerized application that will be deployed on Google Kubernetes Engine (GKE). To enhance security, you want to ensure that the container images used in your application are free from known vulnerabilities in application binaries, dependencies, and manifests. Which steps should you take to achieve this using Google Cloud services?

  1. A

    Enable Container Analysis to automatically scan container images for vulnerabilities.

  2. B

    Use Binary Authorization to only allow deployment of trusted container images.

  3. C

    Manually inspect each dependency in your container images for known vulnerabilities.

  4. D

    Integrate Cloud Build with Container Analysis to scan images during the CI/CD pipeline.

  5. E

    Store container images in a third-party registry to reduce vulnerability risks.

Show answer and explanation

Correct answers: A, B, D

Explanation

To secure your application binaries, dependencies, and manifests, you should leverage Google Cloud services like Container Analysis and Binary Authorization. These tools automate the detection of vulnerabilities and enforce security policies, reducing the risk of deploying vulnerable images. Integrating these tools into your CI/CD pipeline ensures a secure development lifecycle.

  • A. Correct.

    Enabling Container Analysis is a critical step to automatically scan container images for vulnerabilities. This is a primary service provided by Google Cloud to assess potential risks.

  • B. Correct.

    Binary Authorization ensures that only trusted container images that meet security policies are deployed. It provides an additional layer of security.

  • C. Incorrect.

    Manually inspecting dependencies is not practical or scalable, especially in modern CI/CD workflows. Automated tools like Container Analysis should be used instead.

  • D. Correct.

    Integrating Cloud Build with Container Analysis allows for vulnerability scanning at the build stage, ensuring that insecure images do not progress further in the pipeline.

  • E. Incorrect.

    Storing container images in a third-party registry does not inherently reduce vulnerability risks and does not utilize Google Cloud's security mechanisms for scanning.

Google Professional Cloud Developer Question 102

Single answerGoogle Cloud Platform

You are deploying a containerized application to Google Kubernetes Engine (GKE). To ensure the security of your application binaries and dependencies, you want to implement a solution that scans your container images for vulnerabilities before they are deployed. Which security mechanism should you use?

  1. A

    Google Cloud Container Analysis

  2. B

    IAM Policies

  3. C

    Cloud Armor

  4. D

    Cloud Logging

Show answer and explanation

Correct answer: A

Explanation

Google Cloud Container Analysis integrates with Artifact Registry and Container Registry to scan container images for vulnerabilities. It identifies issues in application binaries, dependencies, and manifests, ensuring that only secure images are deployed. This makes it the most suitable mechanism for securing containerized applications in GKE.

  • A. Correct.

    Google Cloud Container Analysis is the correct choice as it provides vulnerability scanning for container images stored in Artifact Registry or Container Registry, ensuring that application binaries and dependencies are secure before deployment.

  • B. Incorrect.

    IAM Policies are used for access control and permissions management but do not scan or secure application binaries and dependencies.

  • C. Incorrect.

    Cloud Armor provides DDoS protection and web application firewall capabilities but does not perform vulnerability scanning for application binaries or dependencies.

  • D. Incorrect.

    Cloud Logging is used for storing and analyzing logs but does not provide any functionality to scan or secure application binaries and dependencies.

Google Professional Cloud Developer Question 103

Single answerGoogle Cloud Platform

You are developing a cloud-native application that requires secure storage and access to API keys and database credentials. The application is deployed to Google Cloud and needs to ensure secrets are rotated automatically to meet compliance requirements. Which solution should you implement to meet these requirements?

  1. A

    Use Google Secret Manager to securely store secrets, configure IAM roles for access, and set up automatic secret rotation.

  2. B

    Store secrets in a Cloud Storage bucket, encrypt them with Cloud Key Management Service (Cloud KMS), and manage rotation manually.

  3. C

    Embed the secrets directly in the application code and redeploy the application whenever the secrets change.

  4. D

    Use Compute Engine instance metadata to store secrets and access them only from the application’s host VM.

Show answer and explanation

Correct answer: A

Explanation

The best solution for securely storing, accessing, and automatically rotating secrets in Google Cloud is to use Google Secret Manager. It is designed specifically for secret management, supports automatic rotation, integrates with IAM for fine-grained access control, and ensures compliance with security and regulatory requirements. The other options either lack essential features like automatic rotation or introduce significant security risks.

  • A. Correct.

    Google Secret Manager is the recommended solution for securely storing and accessing application secrets. It supports automatic rotation and integrates with IAM for granular access control, meeting both security and compliance requirements.

  • B. Incorrect.

    Storing secrets in Cloud Storage with Cloud KMS encryption is a possible solution, but it requires manual rotation of secrets, which does not fulfill the automatic rotation requirement.

  • C. Incorrect.

    Embedding secrets directly in application code is highly insecure and violates best practices for managing secrets, as it exposes sensitive data and complicates updates.

  • D. Incorrect.

    Using Compute Engine instance metadata for storing secrets is not intended for secret management and poses security risks, as it does not provide robust access control or automatic rotation.

Google Professional Cloud Developer Question 104

Select 3Google Cloud Platform

You are developing a cloud-native application running on Google Kubernetes Engine (GKE). The application needs to access a database, and the database credentials must be securely stored, accessed, and rotated without manual intervention. Which combination of services should you use to securely manage the database credentials?

  1. A

    Use Secret Manager to store and manage the database credentials, and configure the application to access the secrets programmatically.

  2. B

    Store the database credentials in a Kubernetes ConfigMap and mount it as an environment variable in your application.

  3. C

    Use Cloud Key Management Service (KMS) to encrypt the database credentials before storing them in a secure storage solution.

  4. D

    Manually rotate the database credentials every 90 days and redeploy the application with the updated credentials.

  5. E

    Use Secret Manager with automatic rotation policies to update the database credentials and notify the application.

Show answer and explanation

Correct answers: A, C, E

Explanation

The combination of Secret Manager and Cloud KMS provides a secure and automated approach to managing application secrets. Secret Manager is designed to store sensitive data securely, while Cloud KMS ensures that the data is encrypted. Additionally, Secret Manager's automatic rotation feature ensures that credentials are updated without manual intervention, aligning with security best practices.

  • A. Correct.

    Using Secret Manager is a secure and recommended approach for storing and managing sensitive data like database credentials. The application can programmatically retrieve these secrets at runtime, ensuring a secure and scalable solution.

  • B. Incorrect.

    Kubernetes ConfigMaps are not designed for storing sensitive data because they are not encrypted and provide limited access control. This approach is insecure for database credentials.

  • C. Correct.

    Cloud Key Management Service (KMS) is ideal for encrypting sensitive data before storing it in a secure location. This ensures that the credentials remain secure even if the storage is compromised.

  • D. Incorrect.

    Manually rotating credentials introduces human error and operational overhead, making it a less secure and less scalable solution.

  • E. Correct.

    Secret Manager supports automatic rotation policies, which can securely update the database credentials. This minimizes manual effort and ensures that the application always uses updated, secure credentials.

Google Professional Cloud Developer Question 105

Select 3Google Cloud Platform

You are developing a serverless application that uses sensitive API keys to connect to external services. To securely store, access, and rotate these secrets, you decide to use Google Cloud Secret Manager. How should you implement this to ensure secure access and proper key rotation?

  1. A

    Store the API keys in Secret Manager and grant the application service account 'Secret Manager Secret Accessor' role to access the secrets.

  2. B

    Store the API keys in environment variables for the application, and update them manually during key rotation.

  3. C

    Configure automatic secret version rotation in Secret Manager by setting a rotation policy and using a Cloud Function to update the secret.

  4. D

    Encrypt the API keys using Cloud Key Management Service (KMS) and store the encrypted keys in Cloud Storage.

  5. E

    Use the Secret Manager API in your application code to fetch the secrets dynamically during runtime instead of hardcoding them.

Show answer and explanation

Correct answers: A, C, E

Explanation

To securely store, access, and rotate application secrets, Secret Manager is the recommended solution on Google Cloud. By granting the application service account appropriate roles, configuring automatic secret rotation, and fetching secrets dynamically at runtime, you ensure both security and ease of management. Avoid insecure practices like hardcoding secrets or using environment variables, as they increase the risk of exposure.

  • A. Correct.

    Correct: Granting the application service account the 'Secret Manager Secret Accessor' role ensures the application can securely access the secrets stored in Secret Manager without exposing them unnecessarily.

  • B. Incorrect.

    Incorrect: Storing sensitive secrets in environment variables is not a secure practice as it increases the risk of unintentional exposure. Manual key rotation is error-prone and lacks automation.

  • C. Correct.

    Correct: Configuring automatic secret version rotation in Secret Manager ensures secrets are rotated securely and consistently. Using a Cloud Function for rotation helps automate the process.

  • D. Incorrect.

    Incorrect: While encrypting keys with Cloud KMS and storing them in Cloud Storage is secure, this approach is less practical for managing dynamic secrets like API keys compared to using Secret Manager.

  • E. Correct.

    Correct: Fetching secrets dynamically at runtime using the Secret Manager API prevents hardcoding and ensures the application always uses the latest version of the secret.

Timed practice exam

Take a Google Professional Cloud Developer 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 Developer practice questions 101 to 200 of 480

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. 101.You are developing a containerized application that will be deployed on Google Kubernetes Engine (GKE). To...
  2. 102.You are deploying a containerized application to Google Kubernetes Engine (GKE). To ensure the security of...
  3. 103.You are developing a cloud-native application that requires secure storage and access to API keys and...
  4. 104.You are developing a cloud-native application running on Google Kubernetes Engine (GKE). The application...
  5. 105.You are developing a serverless application that uses sensitive API keys to connect to external services. To...
  6. 106.You are developing a cloud-based application that needs to securely store API keys, database credentials, and...
  7. 107.You are developing a cloud-native application that needs to securely store API keys and database credentials....
  8. 108.You are developing a cloud-based application that requires secure access to an external API. The API key for...
  9. 109.You are developing a web application hosted on Google Cloud and need to authenticate it to access a Google...
  10. 110.You are developing a serverless application running on Cloud Run. The application needs to access a Google...
  11. 111.You are deploying a web application on Google Kubernetes Engine (GKE) that needs to access a Google Cloud...
  12. 112.You are developing a serverless application on Google Cloud that uses Cloud Storage to store user-uploaded...
  13. 113.You are developing a serverless application on Google Cloud that needs to access multiple Google Cloud APIs,...
  14. 114.You are developing a serverless application on Google Cloud that needs to access multiple Google Cloud...
  15. 115.You are building a web application that requires secure user authentication and account management. You...
  16. 116.You are developing a multi-platform web and mobile application that requires authentication for end users....
  17. 117.You are developing a mobile application that uses Google Cloud's Identity Platform to manage end-user...
  18. 118.You are developing a web application that requires end-users to sign in using their Google accounts. You...
  19. 119.You are developing a web application for a SaaS product and need to implement end-user authentication. The...
  20. 120.You are developing a web application that requires end-user authentication. The application must support...
  21. 121.A company is deploying a serverless application on Google Cloud that uses Cloud Functions to process user...
  22. 122.You are developing a serverless application on Google Cloud that uses Cloud Functions to process images and...
  23. 123.Your development team is working on a Google Cloud project that uses a Cloud Storage bucket to store...
  24. 124.A company is building a serverless application on Google Cloud using Cloud Functions. They want to ensure...
  25. 125.You are deploying a serverless application on Google Cloud that requires access to a Cloud Storage bucket for...
  26. 126.You are a cloud developer working on a serverless application hosted on Google Cloud. The application uses a...
  27. 127.You are designing a microservices-based application deployed on Google Kubernetes Engine (GKE). The...
  28. 128.You are deploying a set of microservices on Google Kubernetes Engine (GKE). These services need to...
  29. 129.You are deploying a set of microservices on Google Kubernetes Engine (GKE). Each service communicates with...
  30. 130.You are deploying a microservices application on Google Kubernetes Engine (GKE). Your team requires secure...
  31. 131.You are deploying a microservices-based application on Google Kubernetes Engine (GKE). To ensure secure...
  32. 132.You are developing a cloud-native application deployed on a Google Kubernetes Engine (GKE) cluster. The...
  33. 133.You are developing a serverless application on Google Cloud that needs to access a Google Cloud Storage...
  34. 134.You are deploying a microservice on Google Kubernetes Engine (GKE) that needs to access resources in Google...
  35. 135.You are a developer tasked with deploying a containerized application on Google Kubernetes Engine (GKE). The...
  36. 136.You are deploying a serverless application on Google Cloud using Cloud Run. The application needs to access a...
  37. 137.You are developing a serverless application that runs on Google Cloud Run and needs to access a private Cloud...
  38. 138.You are deploying a serverless application on Google Cloud using Cloud Run. The application needs to access a...
  39. 139.You are developing a microservices-based application on Google Cloud that requires secure communication...
  40. 140.You are developing a secure API running on Google Kubernetes Engine (GKE) that will be consumed by external...
  41. 141.You are developing a backend service on Google Cloud that communicates with another internal microservice...
  42. 142.You are designing a secure API that must only allow trusted client applications to access it. The API is...
  43. 143.You are developing a microservices-based application on Google Kubernetes Engine (GKE) where secure...
  44. 144.You are developing a cloud-based API hosted on Google Cloud and want to secure client-server communication...
  45. 145.You are a developer at a company that wants to improve the security of its software supply chain. To meet...
  46. 146.Your team is developing a critical cloud-native application and wants to ensure the integrity and security of...
  47. 147.Your team is developing a CI/CD pipeline to build and deploy a microservice on Google Cloud. As part of...
  48. 148.Your team is developing and deploying a critical application on Google Cloud, and you want to ensure the...
  49. 149.You are developing a CI/CD pipeline for your organization's software development process. Your security team...
  50. 150.Your company is developing a critical microservice that will be used in financial transactions. To ensure the...
  51. 151.You are developing a cloud-native application that requires low-latency access to structured data, high...
  52. 152.You are building a financial application that requires strong consistency for transaction data, low-latency...
  53. 153.You are building a real-time analytics application that processes large amounts of structured data and...
  54. 154.You are developing an e-commerce application on Google Cloud that requires storing user data, including...
  55. 155.You are building a real-time analytics application that processes high volumes of sensor data from IoT...
  56. 156.You are developing a new e-commerce application that needs to store different types of data: user profiles,...
  57. 157.You are developing an application that stores sensitive files in a Google Cloud Storage bucket. To comply...
  58. 158.You are developing an application that temporarily shares access to a file stored in a Google Cloud Storage...
  59. 159.You are developing an application that needs to grant time-limited access to specific objects stored in a...
  60. 160.You are developing a web application that needs to provide users with time-limited access to specific files...
  61. 161.You are developing an application that serves media files from Google Cloud Storage. For security reasons,...
  62. 162.You are developing an application that allows users to download files stored in a Google Cloud Storage...
  63. 163.Your organization has a regulatory requirement to retain user activity logs for 7 years. You are building an...
  64. 164.Your company requires storing user activity logs for 7 years to comply with regulatory data retention...
  65. 165.You are developing a cloud-native application that processes sensitive user data and are required to comply...
  66. 166.Your team is building a cloud-native application on Google Cloud that processes sensitive customer data. The...
  67. 167.Your organization has a regulatory requirement to retain customer data for 7 years. You are using Google...
  68. 168.Your organization has a regulatory requirement to retain user transaction data for a minimum of 7 years and...
  69. 169.You are designing a cloud-native application for an e-commerce platform that needs to store customer order...
  70. 170.You are developing an e-commerce application on Google Cloud and need to choose a database for storing...
  71. 171.You are designing a cloud-based e-commerce application on Google Cloud that needs to store customer orders...
  72. 172.You are developing a web application for an e-commerce platform. The application needs to store user...
  73. 173.You are designing a cloud-native application that needs to store user profile data, such as names, email...
  74. 174.You are developing an e-commerce application that needs to store user profiles, product catalogs, and...
  75. 175.You are designing a cloud-native application on Google Cloud that processes inventory updates from multiple...
  76. 176.You are developing a cloud-based e-commerce application on Google Cloud. The application uses a global...
  77. 177.You are designing a cloud-based inventory management system using Google Cloud Datastore. The application...
  78. 178.You are building a global e-commerce application on Google Cloud that uses Cloud Spanner as the database. The...
  79. 179.You are developing a distributed application on Google Cloud using Cloud Spanner as the database. The...
  80. 180.You are designing a distributed application on Google Cloud that uses Cloud Spanner as the database. The...
  81. 181.You are developing an application on Google Cloud that processes high volumes of transactional data from...
  82. 182.You are developing a real-time analytics application on Google Cloud that processes a high volume of...
  83. 183.Your application processes user-uploaded images and stores them in a Google Cloud Storage bucket. You are...
  84. 184.Your team is developing a streaming analytics application on Google Cloud that processes high volumes of...
  85. 185.You are designing a serverless application on Google Cloud that processes large volumes of real-time...
  86. 186.You are designing a serverless data processing pipeline on Google Cloud to handle real-time streaming data...
  87. 187.You are developing a cloud-native e-commerce application on Google Cloud. The application requires frequent...
  88. 188.You are designing a new application on Google Cloud that requires high performance for querying user data...
  89. 189.You are designing a serverless application on Google Cloud that processes large volumes of user data. The...
  90. 190.You are building a real-time analytics platform for an e-commerce application using Google Cloud. The...
  91. 191.You are developing a real-time stock trading application that needs to handle high-frequency trade requests...
  92. 192.You are developing a cloud-native application on Google Cloud that processes high volumes of user data. The...
  93. 193.Your team is building a financial application that processes thousands of real-time transactions per second...
  94. 194.Your team is building a cloud-based application that processes high-frequency customer transactions in real...
  95. 195.Your organization is developing a new e-commerce platform that requires real-time processing of customer...
  96. 196.You are designing a cloud-based application to manage an e-commerce platform. The application needs to...
  97. 197.You are designing a system for an e-commerce company that handles both transactional order processing and...
  98. 198.You are developing a payment processing system for an e-commerce platform that requires low-latency,...
  99. 199.You are developing a cloud-native application on Google Cloud and need to set up your local development...
  100. 200.You are setting up your local development environment to build and test a Python-based application using...