Free Certification Practice Questions

GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER

Loading…
Google's Professional Cloud Developer You are designing a chat room application that will host multiple rooms and retain the message history for each room. You have selected Firestore as your database. How should you represent the data in Firestore?
#181
Google's Professional Cloud Developer You are developing an application that will handle requests from end users. You need to secure a Cloud Function called by the application to allow authorized end users to authenticate to the function via the application while restricting access to unauthorized users. You will integrate Google Sign-In as part of the solution and want to follow Google-recommended best practices. What should you do?
#182
Google's Professional Cloud Developer You are running a web application on Google Kubernetes Engine that you inherited. You want to determine whether the application is using libraries with known vulnerabilities or is vulnerable to XSS attacks. Which service should you use?
#183
Google's Professional Cloud Developer You are building a highly available and globally accessible application that will serve static content to users. You need to configure the storage and serving components. You want to minimize management overhead and latency while maximizing reliability for users. What should you do?
#184
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 wants to reduce the latency of their services for users in global locations. They have created read replicas of their database in locations where their users reside and configured their service to read traffic using those replicas. How should they further reduce latency for all database interactions with the least amount of effort?
#185
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.Which Google Cloud product addresses HipLocal’s business requirements for service level indicators and objectives?
#186
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.A recent security audit discovers that HipLocal’s database credentials for their Compute Engine-hosted MySQL databases are stored in plain text on persistent disks. HipLocal needs to reduce the risk of these credentials being stolen. What should they do?
#187
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 is expanding into new locations. They must capture additional data each time the application is launched in a new European country. This is causing delays in the development process due to constant schema changes and a lack of environments for conducting testing on the application changes. How should they resolve the issue while meeting the business requirements?
#188
Google's Professional Cloud Developer You are writing from a Go application to a Cloud Spanner database. You want to optimize your application’s performance using Google-recommended best practices. What should you do?
#189
Google's Professional Cloud Developer You have an application deployed in Google Kubernetes Engine (GKE). You need to update the application to make authorized requests to Google Cloud managed services. You want this to be a one-time setup, and you need to follow security best practices of auto-rotating your security keys and storing them in an encrypted store. You already created a service account with appropriate access to the Google Cloud service. What should you do next?
#190
Google's Professional Cloud Developer You are planning to deploy hundreds of microservices in your Google Kubernetes Engine (GKE) cluster. How should you secure communication between the microservices on GKE using a managed service?
#191
Google's Professional Cloud Developer You are developing an application that will store and access sensitive unstructured data objects in a Cloud Storage bucket. To comply with regulatory requirements, you need to ensure that all data objects are available for at least 7 years after their initial creation. Objects created more than 3 years ago are accessed very infrequently (less than once a year). You need to configure object storage while ensuring that storage cost is optimized. What should you do? (Choose two.) E. Implement a Cloud Function that checks the age of each object in the bucket and moves the objects older than 3 years to a second bucket with the Archive Storage class. Use Cloud Scheduler to trigger the Cloud Function on a daily schedule.
#192
Google's Professional Cloud Developer You are developing an application using different microservices that must remain internal to the cluster. You want the ability to configure each microservice with a specific number of replicas. You also want the ability to address a specific microservice from any other microservice in a uniform way, regardless of the number of replicas the microservice scales to. You plan to implement this solution on Google Kubernetes Engine. What should you do?
#193
Google's Professional Cloud Developer You are building an application that uses a distributed microservices architecture. You want to measure the performance and system resource utilization in one of the microservices written in Java. What should you do?
#194
Google's Professional Cloud Developer Your team is responsible for maintaining an application that aggregates news articles from many different sources. Your monitoring dashboard contains publicly accessible real-time reports and runs on a Compute Engine instance as a web application. External stakeholders and analysts need to access these reports via a secure channel without authentication. How should you configure this secure channel?
#195
Google's Professional Cloud Developer You are planning to add unit tests to your application. You need to be able to assert that published Pub/Sub messages are processed by your subscriber in order. You want the unit tests to be cost-effective and reliable. What should you do?
#196
Google's Professional Cloud Developer You have an application deployed in Google Kubernetes Engine (GKE) that reads and processes Pub/Sub messages. Each Pod handles a fixed number of messages per minute. The rate at which messages are published to the Pub/Sub topic varies considerably throughout the day and week, including occasional large batches of messages published at a single moment.You want to scale your GKE Deployment to be able to process messages in a timely manner. What GKE feature should you use to automatically adapt your workload?
#197
Google's Professional Cloud Developer You are using Cloud Run to host a web application. You need to securely obtain the application project ID and region where the application is running and display this information to users. You want to use the most performant approach. What should you do?
#198
Google's Professional Cloud Developer You need to deploy resources from your laptop to Google Cloud using Terraform. Resources in your Google Cloud environment must be created using a service account. Your Cloud Identity has the roles/iam.serviceAccountTokenCreator Identity and Access Management (IAM) role and the necessary permissions to deploy the resources using Terraform. You want to set up your development environment to deploy the desired resources following Google-recommended best practices. What should you do?
#199
Google's Professional Cloud Developer Your company uses Cloud Logging to manage large volumes of log data. You need to build a real-time log analysis architecture that pushes logs to a third-party application for processing. What should you do?
#200
Google's Professional Cloud Developer You are developing a new public-facing application that needs to retrieve specific properties in the metadata of users’ objects in their respective Cloud Storage buckets. Due to privacy and data residency requirements, you must retrieve only the metadata and not the object data. You want to maximize the performance of the retrieval process. How should you retrieve the metadata?
#201
Google's Professional Cloud Developer You are deploying a microservices application to Google Kubernetes Engine (GKE) that will broadcast livestreams. You expect unpredictable traffic patterns and large variations in the number of concurrent users. Your application must meet the following requirements:• Scales automatically during popular events and maintains high availability• Is resilient in the event of hardware failuresHow should you configure the deployment parameters? (Choose two.) E. Create alerting policies in Cloud Monitoring based on GKE CPU and memory utilization. Ask an on-duty engineer to scale the workload by executing a script when CPU and memory usage exceed predefined thresholds.
#202
Google's Professional Cloud Developer You work at a rapidly growing financial technology startup. You manage the payment processing application written in Go and hosted on Cloud Run in the Singapore region (asia-southeast1). The payment processing application processes data stored in a Cloud Storage bucket that is also located in the Singapore region.The startup plans to expand further into the Asia Pacific region. You plan to deploy the Payment Gateway in Jakarta, Hong Kong, and Taiwan over the next six months. Each location has data residency requirements that require customer data to reside in the country where the transaction was made. You want to minimize the cost of these deployments. What should you do?
#203
Google's Professional Cloud Developer You recently joined a new team that has a Cloud Spanner database instance running in production. Your manager has asked you to optimize the Spanner instance to reduce cost while maintaining high reliability and availability of the database. What should you do?
#204
Google's Professional Cloud Developer You recently deployed a Go application on Google Kubernetes Engine (GKE). The operations team has noticed that the application's CPU usage is high even when there is low production traffic. The operations team has asked you to optimize your application's CPU resource consumption. You want to determine which Go functions consume the largest amount of CPU. What should you do?
#205
Google's Professional Cloud Developer Your team manages a Google Kubernetes Engine (GKE) cluster where an application is running. A different team is planning to integrate with this application. Before they start the integration, you need to ensure that the other team cannot make changes to your application, but they can deploy the integration on GKE. What should you do?
#206
Google's Professional Cloud Developer You have recently instrumented a new application with OpenTelemetry, and you want to check the latency of your application requests in Trace. You want to ensure that a specific request is always traced. What should you do?
#207
Google's Professional Cloud Developer You are trying to connect to your Google Kubernetes Engine (GKE) cluster using kubectl from Cloud Shell. You have deployed your GKE cluster with a public endpoint. From Cloud Shell, you run the following command:You notice that the kubectl commands time out without returning an error message. What is the most likely cause of this issue?
#208
Google's Professional Cloud Developer You are developing a web application that contains private images and videos stored in a Cloud Storage bucket. Your users are anonymous and do not have Google Accounts. You want to use your application-specific logic to control access to the images and videos. How should you configure access?
#209
Google's Professional Cloud Developer You need to configure a Deployment on Google Kubernetes Engine (GKE). You want to include a check that verifies that the containers can connect to the database. If the Pod is failing to connect, you want a script on the container to run to complete a graceful shutdown. How should you configure the Deployment?
#210