UPDATED [Apr 23, 2024] Pass Google Certified Professional - Cloud Developer Exam with Latest Questions [Q152-Q175]

Share

UPDATED [Apr 23, 2024] Pass Google Certified Professional - Cloud Developer Exam with Latest Questions

Professional-Cloud-Developer Exam Practice Questions prepared by Google Professionals


To prepare for the exam, candidates can take advantage of Google's official training resources, including online courses, practice labs, and documentation. Additionally, Google offers a certification handbook that provides an overview of the exam's structure, study tips, and sample questions. Passing the Professional-Cloud-Developer exam demonstrates a developer's ability to build and deploy robust, scalable, and secure cloud-based applications using Google Cloud Platform, making them a valuable asset to any organization using Google technologies.

 

NEW QUESTION # 152
Your company is planning to migrate their on-premises Hadoop environment to the cloud. Increasing storage cost and maintenance of data stored in HDFS is a major concern for your company. You also want to make minimal changes to existing data analytics jobs and existing architecture.
How should you proceed with the migration?

  • A. Create Compute Engine instances with HDD instead of SSD to save costs. Then perform a full migration of your existing environment into the new one in Compute Engine instances.
  • B. Create a Cloud Dataproc cluster on Google Cloud Platform, and then migrate your Hadoop environment to the new Cloud Dataproc cluster. Move your HDFS data into larger HDD disks to save on storage costs.
  • C. Create a Cloud Dataproc cluster on Google Cloud Platform, and then migrate your Hadoop code objects to the new cluster. Move your data to Cloud Storage and leverage the Cloud Dataproc connector to run jobs on that data.
  • D. Migrate your data stored in Hadoop to BigQuery. Change your jobs to source their information from BigQuery instead of the on-premises Hadoop environment.

Answer: C


NEW QUESTION # 153
You are building a CI/CD pipeline that consists of a version control system, Cloud Build, and Container Registry. Each time a new tag is pushed to the repository, a Cloud Build job is triggered, which runs unit tests on the new code builds a new Docker container image, and pushes it into Container Registry. The last step of your pipeline should deploy the new container to your production Google Kubernetes Engine (GKE) cluster. You need to select a tool and deployment strategy that meets the following requirements:
* Zero downtime is incurred
* Testing is fully automated
* Allows for testing before being rolled out to users
* Can quickly rollback if needed
What should you do?

  • A. Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a canary test.
  • B. Trigger a Spinnaker pipeline configured as a canary test of your new code and, if it is successful, deploy the container to production.
  • C. Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a shadow test.
  • D. Trigger a Spinnaker pipeline configured as an A/B test of your new code and, if it is successful, deploy the container to production.

Answer: C

Explanation:
https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on-gke#perform_a_shadow_test With a shadow test, you test the new version of your application by mirroring user traffic from the current application version without impacting the user requests.


NEW QUESTION # 154
You are using Cloud Build to build and test application source code stored in Cloud Source Repositories. The build process requires a build tool not available in the Cloud Build environment.
What should you do?

  • A. Download the binary from the internet during the build process.
  • B. Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud
  • C. Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
  • D. Build a custom cloud builder image and reference the image in your build steps.

Answer: D

Explanation:
Build public Issue Tracker.


NEW QUESTION # 155
Your team is setting up a build pipeline for an application that will run in Google Kubernetes Engine (GKE). For security reasons, you only want images produced by the pipeline to be deployed to your GKE cluster. Which combination of Google Cloud services should you use?

  • A. Google Cloud Deploy. Artifact Registry, and Google Cloud Armor
  • B. Google Cloud Deploy, Cloud Storage and Google Cloud Armor
  • C. Cloud Build, Cloud Storage, and Binary Authorization
  • D. Cloud Build. Artifact Registry and Binary Authorization

Answer: A


NEW QUESTION # 156
Your company has created an application that uploads a report to a Cloud Storage bucket. When the report is uploaded to the bucket, you want to publish a message to a Cloud Pub/Sub topic. You want to implement a solution that will take a small amount to effort to implement. What should you do?

  • A. Create an application deployed in a Google Kubernetes Engine cluster to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
  • B. Create an App Engine application to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
  • C. Create a Cloud Function that is triggered by the Cloud Storage bucket. In the Cloud Function, publish a message to the Cloud Pub/Sub topic.
  • D. Configure the Cloud Storage bucket to trigger Cloud Pub/Sub notifications when objects are modified.

Answer: C

Explanation:
Explanation
https://cloud.google.com/storage/docs/pubsub-notifications


NEW QUESTION # 157
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?

  • A. Cloud Monitoring
  • B. Cloud Debugger logpoints
  • C. Cloud Trace
  • D. Cloud Debugger snapshots

Answer: B

Explanation:
https://cloud.google.com/debugger/docs/using/logpoints
Logpoints allow you to inject logging into running services without restarting or interfering with the normal function of the service


NEW QUESTION # 158
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?

  • A. Redeploy the APIs to App Engine using Traffic Splitting. Do not move QA traffic to the new versions if errors are found.
  • B. Create health checks for the QA environment, and redeploy the APIs at a later time if the environment is unhealthy.
  • C. Include performance tests in their code, and prevent deployments to QA until all tests have a passing status.
  • D. Include unit tests in their code, and prevent deployments to QA until all tests have a passing status.

Answer: C


NEW QUESTION # 159
Your team develops services that run on Google Kubernetes Engine. You need to standardize their log data using Google-recommended practices and make the data more useful in the fewest number of steps. What should you do? (Choose two.)

  • A. Create aggregated exports on application logs to BigQuery to facilitate log analytics.
  • B. Mandate the use of the Logging API in the application code to write structured logs to Cloud Logging.
  • C. Write log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs.
  • D. Create aggregated exports on application logs to Cloud Storage to facilitate log analytics.
  • E. Mandate the use of the Pub/Sub API to write structured data to Pub/Sub and create a Dataflow streaming pipeline to normalize logs and write them to BigQuery for analytics.

Answer: A,C

Explanation:
https://cloud.google.com/stackdriver/docs/solutions/gke/managing-logs#best_practices


NEW QUESTION # 160
Your application performs well when tested locally, but it runs significantly slower when you deploy it to App Engine standard environment. You want to diagnose the problem.
What should you do?

  • A. Use Stackdriver Trace to determine which functions within the application have higher latency.
  • B. File a ticket with Cloud Support indicating that the application performs faster locally.
  • C. Add logging commands to the application and use Stackdriver Logging to check where the latency problem occurs.
  • D. Use Stackdriver Debugger Snapshots to look at a point-in-time execution of the application.

Answer: C

Explanation:
Explanation


NEW QUESTION # 161
Your application performs well when tested locally, but it runs significantly slower when you deploy it to App Engine standard environment. You want to diagnose the problem. What should you do?

  • A. Use Stackdriver Trace to determine which functions within the application have higher latency.
  • B. File a ticket with Cloud Support indicating that the application performs faster locally.
  • C. Add logging commands to the application and use Stackdriver Logging to check where the latency problem occurs.
  • D. Use Stackdriver Debugger Snapshots to look at a point-in-time execution of the application.

Answer: C


NEW QUESTION # 162
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.
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.
* Data is exported to an on-premises Teradata/Vertica data warehouse.
* Data analytics is performed in an on-premises Hadoop environment.
* The application has no logging.
* 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.
* Increase the number of concurrent users that can be supported.
* 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.
Technical Requirements
* The application and backend must provide usage metrics and monitoring.
* APIs require strong authentication and authorization.
* Logging must be increased, and data should be stored in a cloud analytics platform.
* Move to serverless architecture to facilitate elastic scaling.
* Provide authorized access to internal apps in a secure manner.
In order for HipLocal to store application state and meet their stated business requirements, which database service should they migrate to?

  • A. Cloud Memorystore as a cache
  • B. Cloud Spanner
  • C. Cloud Datastore
  • D. Separate Cloud SQL clusters for each region

Answer: B

Explanation:
Explanation/Reference:


NEW QUESTION # 163
Please refer to the following information to answer the questions on the right.
Rachel is starting a repair on a three-year-old MacBook Pro.
After opening the device, she takes some time to visually inspect the top case assembly with battery.
During an embedded battery inspection which of the following issues should Rachel look for? (Choose two.)

  • A. Updated battery firmware
  • B. Scratches
  • C. Battery-compliance shipping label
  • D. Dot imprints
  • E. Battery is the correct color

Answer: B,D


NEW QUESTION # 164
You are developing an ecommerce application that stores customer, order, and inventory data as relational tables inside Cloud Spanner. During a recent load test, you discover that Spanner performance is not scaling linearly as expected. Which of the following is the cause?

  • A. The use of 64-bit numeric types for 32-bit numbers.
  • B. The use of Version 1 UUIDs as primary keys that increase monotonically.
  • C. The use of LIKE instead of STARTS_WITH keyword for parameterized SQL queries.
  • D. The use of the STRING data type for arbitrary-precision values.

Answer: B


NEW QUESTION # 165
A computer service technician says, "I don't use ESD precautions and have never had a problem." Which of the following is the correct response to this statement?

  • A. ESD damage may not appear immediately.
  • B. ESD only occurs in very rare circumstances.
  • C. ESD damage is really not as bad as everyone thinks.
  • D. ESD happens only to inexperienced technicians.

Answer: B

Explanation:
Explanation/Reference: https://electronics.stackexchange.com/questions/2945/should-i-be-worried-about-electro-static- discharge


NEW QUESTION # 166
You have an application deployed in production. When a new version is deployed, some issues don't arise until the application receives traffic from users in production. You want to reduce both the impact and the number of users affected.
Which deployment strategy should you use?

  • A. Recreate deployment
  • B. Rolling deployment
  • C. Blue/green deployment
  • D. Canary deployment

Answer: C


NEW QUESTION # 167
You are developing a web application that will be accessible over both HTTP and HTTPS and will run on Compute Engine instances. On occasion, you will need to SSH from your remote laptop into one of the Compute Engine instances to conduct maintenance on the app. How should you configure the instances while following Google-recommended best practices?

  • A. Set up a backend with Compute Engine web server instances with a private IP address behind a TCP proxy load balancer.
  • B. Configure Cloud Identity-Aware Proxy API for SSH access. Then configure the Compute Engine servers with private IP addresses behind an HTTP(s) load balancer for the application web traffic.
  • C. Set up a backend with Compute Engine web server instances with a private IP address behind an HTTP(S) load balancer. Set up a bastion host with a public IP address and open firewall ports. Connect to the web instances using the bastion host.
  • D. Configure the firewall rules to allow all ingress traffic to connect to the Compute Engine web servers, with each server having a unique external IP address.

Answer: B

Explanation:
Reference:
https://cloud.google.com/solutions/connecting-securely#storing_host_keys_by_enabling_guest_attributes


NEW QUESTION # 168
You are designing a resource-sharing policy for applications used by different teams in a Google Kubernetes Engine cluster. You need to ensure that all applications can access the resources needed to run. What should you do? (Choose two.)

  • A. Create a Kubernetes service account (KSA) for each application, and assign each KSA to the namespace.
  • B. Specify the resource limits and requests in the object specifications.
  • C. Create a LimitRange to specify the default compute resource requirements for each namespace.
  • D. Create a namespace for each team, and attach resource quotas to each namespace.
  • E. Use the Anthos Policy Controller to enforce label annotations on all namespaces. Use taints and tolerations to allow resource sharing for namespaces.

Answer: C,D

Explanation:
Explanation
https://kubernetes.io/docs/concepts/policy/resource-quotas/
https://kubernetes.io/docs/concepts/policy/limit-range/
https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-resource-requests-and-li


NEW QUESTION # 169
You are porting an existing Apache/MySQL/PHP application stack from a single machine to Google Kubernetes Engine. You need to determine how to containerize the application. Your approach should follow Google-recommended best practices for availability. What should you do?

  • A. Package the application in a single container. Use a process management tool to manage each component.
  • B. Package the application in a single container. Use a bash script as an entrypoint to the container, and then spawn each component as a background job.
  • C. Package each component in a separate container. Implement readiness and liveness probes.
  • D. Package each component in a separate container. Use a script to orchestrate the launch of the components.

Answer: C

Explanation:
https://cloud.google.com/blog/products/containers-kubernetes/7-best-practices-for-building-containers
https://cloud.google.com/architecture/best-practices-for-building-containers
"classic Apache/MySQL/PHP stack: you might be tempted to run all the components in a single container. However, the best practice is to use two or three different containers: one for Apache, one for MySQL, and potentially one for PHP if you are running PHP-FPM."


NEW QUESTION # 170
You are using Cloud Build to create a new Docker image on each source code commit to a Cloud Source Repositoties repository. Your application is built on every commit to the master branch. You want to release specific commits made to the master branch in an automated method. What should you do?

  • A. Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
  • B. Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.
  • C. Manually trigger the build for new releases.
  • D. Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.

Answer: A

Explanation:
Reference:
https://docs.docker.com/docker-hub/builds/


NEW QUESTION # 171
HipLocal's.net-based auth service fails under intermittent load.
What should they do?

  • A. Use App Engine for autoscaling.
  • B. Use a Compute Engine cluster for the service.
  • C. Use a dedicated Compute Engine virtual machine instance for the service.
  • D. Use Cloud Functions for autoscaling.

Answer: C

Explanation:
Reference:
https://www.qwiklabs.com/focuses/611?parent=catalog


NEW QUESTION # 172
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?

  • A. Add the X-Cloud-Trace-Context header to the request with the appropriate parameters.
  • B. Wait 10 minutes, then verify that Trace captures those types of requests automatically.
  • C. Write a custom script that sends this type of request repeatedly from your dev project.
  • D. Use the Trace API to apply custom attributes to the trace.

Answer: A

Explanation:
https://cloud.google.com/trace/docs/setup#force-trace
Cloud Trace doesn't sample every request. To force a specific request to be traced, add an X-Cloud-Trace-Context header to the request.


NEW QUESTION # 173
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?

  • A. Implement a mocking framework.
  • B. Add a filter by tester to the subscription.
  • C. Create a topic and subscription for each tester.
  • D. Use the Pub/Sub emulator.

Answer: D

Explanation:
Explanation
https://cloud.google.com/pubsub/docs/emulator, "Testing apps locally with the emulator".


NEW QUESTION # 174
You are working on a social media application. You plan to add a feature that allows users to upload images. These images will be 2 MB - 1 GB in size. You want to minimize their infrastructure operations overhead for this feature. What should you do?

  • A. Create a separate bucket for each user in Cloud Storage. Assign a separate service account to allow write access on each bucket. Transfer service account credentials to the client application based on user information. The application uses this service account to upload images to Cloud Storage.
  • B. Change the application to accept images directly and store them in the database that stores other user information.
  • C. Change the application to create signed URLs for Cloud Storage. Transfer these signed URLs to the client application to upload images to Cloud Storage.
  • D. Set up a web server on GCP to accept user images and create a file store to keep uploaded files. Change the application to retrieve images from the file store.

Answer: C

Explanation:
Reference:
https://cloud.google.com/blog/products/storage-data-transfer/uploading-images-directly-to-cloud-storage-by-using-signed-url


NEW QUESTION # 175
......


Google Professional-Cloud-Developer is a certification exam designed to validate the skills and knowledge of cloud developers who use Google Cloud technologies. Professional-Cloud-Developer exam is intended for developers who have experience in building and deploying applications on Google Cloud Platform (GCP) using various programming languages and tools. Professional-Cloud-Developer exam tests candidates on their ability to design, develop, and deploy highly scalable and reliable cloud applications using GCP.


Google Professional-Cloud-Developer exam covers a wide range of topics related to cloud development, including developing and deploying highly scalable, available, and fault-tolerant applications using Google Cloud Platform services. Professional-Cloud-Developer exam also tests the candidate's ability to use Google Cloud Platform tools and services such as Cloud Storage, Cloud SQL, and Cloud Functions, as well as their knowledge of best practices for security, performance, and cost optimization in cloud development.

 

Professional-Cloud-Developer Exam Practice Materials Collection: https://www.practicematerial.com/Professional-Cloud-Developer-exam-materials.html

Use Valid New Professional-Cloud-Developer Questions - Top choice Help You Gain Success: https://drive.google.com/open?id=13FrM5lffKmL05r0v0cn88nNHXi-KQrXv