Free Certification Practice Questions

GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER

Loading…
Google's Professional Cloud Developer You are a developer working on an internal application for payroll processing. You are building a component of the application that allows an employee to submit a timesheet, which then initiates several steps:• An email is sent to the employee and manager, notifying them that the timesheet was submitted.• A timesheet is sent to payroll processing for the vendor's API.• A timesheet is sent to the data warehouse for headcount planning.These steps are not dependent on each other and can be completed in any order. New steps are being considered and will be implemented by different development teams. Each development team will implement the error handling specific to their step. What should you do?
#151
Google's Professional Cloud Developer You are designing an application that uses a microservices architecture. You are planning to deploy the application in the cloud and on-premises. You want to make sure the application can scale up on demand and also use managed services as much as possible. What should you do?
#152
Google's Professional Cloud Developer You want to migrate an on-premises container running in Knative to Google Cloud. You need to make sure that the migration doesn't affect your application's deployment strategy, and you want to use a fully managed service. Which Google Cloud service should you use to deploy your container?
#153
Google's Professional Cloud Developer This architectural diagram depicts a system that streams data from thousands of devices. You want to ingest data into a pipeline, store the data, and analyze the data using SQL statements. Which Google Cloud services should you use for steps 1, 2, 3, and 4?
#154
Google's Professional Cloud Developer Your company just experienced a Google Kubernetes Engine (GKE) API outage due to a zone failure. You want to deploy a highly available GKE architecture that minimizes service interruption to users in the event of a future zone failure. What should you do?
#155
Google's Professional Cloud Developer Your team develops services that run on Google Cloud. You want to process messages sent to a Pub/Sub topic, and then store them. Each message must be processed exactly once to avoid duplication of data and any data conflicts. You need to use the cheapest and most simple solution. What should you do?
#156
Google's Professional Cloud Developer You are running a containerized application on Google Kubernetes Engine. Your container images are stored in Container Registry. Your team uses CI/CD practices. You need to prevent the deployment of containers with known critical vulnerabilities. What should you do?
#157
Google's Professional Cloud Developer You have an on-premises application that authenticates to the Cloud Storage API using a user-managed service account with a user-managed key. The application connects to Cloud Storage using Private Google Access over a Dedicated Interconnect link. You discover that requests from the application to access objects in the Cloud Storage bucket are failing with a 403 Permission Denied error code. What is the likely cause of this issue?
#158
Google's Professional Cloud Developer You are using the Cloud Client Library to upload an image in your application to Cloud Storage. Users of the application report that occasionally the upload does not complete and the client library reports an HTTP 504 Gateway Timeout error. You want to make the application more resilient to errors. What changes to the application should you make?
#159
Google's Professional Cloud Developer You are building a mobile application that will store hierarchical data structures in a database. The application will enable users working offline to sync changes when they are back online. A backend service will enrich the data in the database using a service account. The application is expected to be very popular and needs to scale seamlessly and securely. Which database and IAM role should you use?
#160
Google's Professional Cloud Developer Your application is deployed on hundreds of Compute Engine instances in a managed instance group (MIG) in multiple zones. You need to deploy a new instance template to fix a critical vulnerability immediately but must avoid impact to your service. What setting should be made to the MIG after updating the instance template?
#161
Google's Professional Cloud Developer You made a typo in a low-level Linux configuration file that prevents your Compute Engine instance from booting to a normal run level. You just created the Compute Engine instance today and have done no other maintenance on it, other than tweaking files. How should you correct this error?
#162
Google's Professional Cloud Developer You are developing an application that needs to store files belonging to users in Cloud Storage. You want each user to have their own subdirectory in Cloud Storage. When a new user is created, the corresponding empty subdirectory should also be created. What should you do?
#163
Google's Professional Cloud Developer Your company’s corporate policy states that there must be a copyright comment at the very beginning of all source files. You want to write a custom step in Cloud Build that is triggered by each source commit. You need the trigger to validate that the source contains a copyright and add one for subsequent steps if not there. What should you do?
#164
Google's Professional Cloud Developer One of your deployed applications in Google Kubernetes Engine (GKE) is having intermittent performance issues. Your team uses a third-party logging solution. You want to install this solution on each node in your GKE cluster so you can view the logs. What should you do?
#165
Google's Professional Cloud Developer Case study -This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.To start the case study -To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.Company Overview -HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world.Executive Statement -We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other.Solution Concept -HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data, and that they analyze and respond to any issues that occur.Existing Technical Environment -HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform. The HipLocal team understands their application well, but has limited experience in global scale applications. Their existing technical environment is as follows:• Existing APIs run on Compute Engine virtual machine instances hosted in GCP.• State is stored in a single instance MySQL database in GCP.• Release cycles include development freezes to allow for QA testing.• The application has no logging.• Applications are manually deployed by infrastructure engineers during periods of slow traffic on weekday evenings.• There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive.Business Requirements -HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are:• Expand availability of the application to new regions.• Support 10x as many concurrent users.• Ensure a consistent experience for users when they travel to different regions.• Obtain user activity metrics to better understand how to monetize their product.• Ensure compliance with regulations in the new regions (for example, GDPR).• Reduce infrastructure management time and cost.• Adopt the Google-recommended practices for cloud computing.○ Develop standardized workflows and processes around application lifecycle management.○ Define service level indicators (SLIs) and service level objectives (SLOs).Technical Requirements -• Provide secure communications between the on-premises data center and cloud-hosted applications and infrastructure.• The application must provide usage metrics and monitoring.• APIs require authentication and authorization.• Implement faster and more accurate validation of new features.• Logging and performance metrics must provide actionable information to be able to provide debugging information and alerts.• Must scale to meet user demand.For this question, refer to the HipLocal case study.How should HipLocal redesign their architecture to ensure that the application scales to support a large increase in users?
#166
Google's Professional Cloud Developer Case study -This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.To start the case study -To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.Company Overview -HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world.Executive Statement -We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other.Solution Concept -HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data, and that they analyze and respond to any issues that occur.Existing Technical Environment -HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform. The HipLocal team understands their application well, but has limited experience in global scale applications. Their existing technical environment is as follows:• Existing APIs run on Compute Engine virtual machine instances hosted in GCP.• State is stored in a single instance MySQL database in GCP.• Release cycles include development freezes to allow for QA testing.• The application has no logging.• Applications are manually deployed by infrastructure engineers during periods of slow traffic on weekday evenings.• There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive.Business Requirements -HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are:• Expand availability of the application to new regions.• Support 10x as many concurrent users.• Ensure a consistent experience for users when they travel to different regions.• Obtain user activity metrics to better understand how to monetize their product.• Ensure compliance with regulations in the new regions (for example, GDPR).• Reduce infrastructure management time and cost.• Adopt the Google-recommended practices for cloud computing.○ Develop standardized workflows and processes around application lifecycle management.○ Define service level indicators (SLIs) and service level objectives (SLOs).Technical Requirements -• Provide secure communications between the on-premises data center and cloud-hosted applications and infrastructure.• The application must provide usage metrics and monitoring.• APIs require authentication and authorization.• Implement faster and more accurate validation of new features.• Logging and performance metrics must provide actionable information to be able to provide debugging information and alerts.• Must scale to meet user demand.For this question, refer to the HipLocal case study.How should HipLocal increase their API development speed while continuing to provide the QA team with a stable testing environment that meets feature requirements?
#167
Google's Professional Cloud Developer Case study -This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.To start the case study -To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.Company Overview -HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world.Executive Statement -We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other.Solution Concept -HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data, and that they analyze and respond to any issues that occur.Existing Technical Environment -HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform. The HipLocal team understands their application well, but has limited experience in global scale applications. Their existing technical environment is as follows:• Existing APIs run on Compute Engine virtual machine instances hosted in GCP.• State is stored in a single instance MySQL database in GCP.• Release cycles include development freezes to allow for QA testing.• The application has no logging.• Applications are manually deployed by infrastructure engineers during periods of slow traffic on weekday evenings.• There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive.Business Requirements -HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are:• Expand availability of the application to new regions.• Support 10x as many concurrent users.• Ensure a consistent experience for users when they travel to different regions.• Obtain user activity metrics to better understand how to monetize their product.• Ensure compliance with regulations in the new regions (for example, GDPR).• Reduce infrastructure management time and cost.• Adopt the Google-recommended practices for cloud computing.○ Develop standardized workflows and processes around application lifecycle management.○ Define service level indicators (SLIs) and service level objectives (SLOs).Technical Requirements -• Provide secure communications between the on-premises data center and cloud-hosted applications and infrastructure.• The application must provide usage metrics and monitoring.• APIs require authentication and authorization.• Implement faster and more accurate validation of new features.• Logging and performance metrics must provide actionable information to be able to provide debugging information and alerts.• Must scale to meet user demand.For this question, refer to the HipLocal case study.HipLocal's application uses Cloud Client Libraries to interact with Google Cloud. HipLocal needs to configure authentication and authorization in the Cloud Client Libraries to implement least privileged access for the application. What should they do?
#168
Google's Professional Cloud Developer You are in the final stage of migrating an on-premises data center to Google Cloud. You are quickly approaching your deadline, and discover that a web API is running on a server slated for decommissioning. You need to recommend a solution to modernize this API while migrating to Google Cloud. The modernized web API must meet the following requirements:• Autoscales during high traffic periods at the end of each month• Written in Python 3.x• Developers must be able to rapidly deploy new versions in response to frequent code changesYou want to minimize cost, effort, and operational overhead of this migration. What should you do?
#169
Google's Professional Cloud Developer You are developing an application that consists of several microservices running in a Google Kubernetes Engine cluster. One microservice needs to connect to a third-party database running on-premises. You need to store credentials to the database and ensure that these credentials can be rotated while following security best practices. What should you do?
#170
Google's Professional Cloud Developer You manage your company's ecommerce platform's payment system, which runs on Google Cloud. Your company must retain user logs for 1 year for internal auditing purposes and for 3 years to meet compliance requirements. You need to store new user logs on Google Cloud to minimize on-premises storage usage and ensure that they are easily searchable. You want to minimize effort while ensuring that the logs are stored correctly. What should you do?
#171
Google's Professional Cloud Developer Your company has a new security initiative that requires all data stored in Google Cloud to be encrypted by customer-managed encryption keys. You plan to use Cloud Key Management Service (KMS) to configure access to the keys. You need to follow the "separation of duties" principle and Google-recommended best practices. What should you do? (Choose two.) E. Grant an owner role for the Cloud KMS project to a different user than the owner of the project where the keys from Cloud KMS are being used.
#172
Google's Professional Cloud Developer You need to migrate a standalone Java application running in an on-premises Linux virtual machine (VM) to Google Cloud in a cost-effective manner. You decide not to take the lift-and-shift approach, and instead you plan to modernize the application by converting it to a container. How should you accomplish this task?
#173
Google's Professional Cloud Developer Your organization has recently begun an initiative to replatform their legacy applications onto Google Kubernetes Engine. You need to decompose a monolithic application into microservices. Multiple instances have read and write access to a configuration file, which is stored on a shared file system. You want to minimize the effort required to manage this transition, and you want to avoid rewriting the application code. What should you do?
#174
Google's Professional Cloud Developer Your development team has built several Cloud Functions using Java along with corresponding integration and service tests. You are building and deploying the functions and launching the tests using Cloud Build. Your Cloud Build job is reporting deployment failures immediately after successfully validating the code. What should you do?
#175
Google's Professional Cloud Developer You manage a microservices application on Google Kubernetes Engine (GKE) using Istio. You secure the communication channels between your microservices by implementing an Istio AuthorizationPolicy, a Kubernetes NetworkPolicy, and mTLS on your GKE cluster. You discover that HTTP requests between two Pods to specific URLs fail, while other requests to other URLs succeed. What is the cause of the connection issue?
#176
Google's Professional Cloud Developer You recently migrated an on-premises monolithic application to a microservices application on Google Kubernetes Engine (GKE). The application has dependencies on backend services on-premises, including a CRM system and a MySQL database that contains personally identifiable information (PII). The backend services must remain on-premises to meet regulatory requirements.You established a Cloud VPN connection between your on-premises data center and Google Cloud. You notice that some requests from your microservices application on GKE to the backend services are failing due to latency issues caused by fluctuating bandwidth, which is causing the application to crash. How should you address the latency issues?
#177
Google's Professional Cloud Developer Your company has deployed a new API to a Compute Engine instance. During testing, the API is not behaving as expected. You want to monitor the application over 12 hours to diagnose the problem within the application code without redeploying the application. Which tool should you use?
#178
Google's Professional Cloud Developer You are designing an application that consists of several microservices. Each microservice has its own RESTful API and will be deployed as a separate Kubernetes Service. You want to ensure that the consumers of these APIs aren't impacted when there is a change to your API, and also ensure that third-party systems aren't interrupted when new versions of the API are released. How should you configure the connection to the application following Google-recommended best practices?
#179
Google's Professional Cloud Developer Your team is building an application for a financial institution. The application's frontend runs on Compute Engine, and the data resides in Cloud SQL and one Cloud Storage bucket. The application will collect data containing PII, which will be stored in the Cloud SQL database and the Cloud Storage bucket. You need to secure the PII data. What should you do?
#180