
2023 Realistic Verified Free Google Professional-Cloud-Developer Exam Questions
Professional-Cloud-Developer Real Exam Questions and Answers FREE
NEW QUESTION # 61
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?
- A. Use the copy method.
- B. Use the fields request parameter.
- C. Use the patch method.
- D. Use the compose method.
Answer: B
Explanation:
Explanation
https://cloud.google.com/storage/docs/json_api/v1/objects/get
NEW QUESTION # 62
Before promoting your new application code to production, you want to conduct testing across a variety of different users. Although this plan is risky, you want to test the new version of the application with production users and you want to control which users are forwarded to the new version of the application based on their operating system. If bugs are discovered in the new version, you want to roll back the newly deployed version of the application as quickly as possible.
What should you do?
- A. Deploy your application on Google Kubernetes Engine with Anthos Service Mesh. Use traffic splitting to direct a subset of user traffic to the new version based on the user-agent header.
- B. Deploy your application on Cloud Run. Use traffic splitting to direct a subset of user traffic to the new version based on the revision tag.
- C. Deploy your application on Compute Engine. Use Traffic Director to direct a subset of user traffic to the new version based on predefined weights.
- D. Deploy your application on App Engine. Use traffic splitting to direct a subset of user traffic to the new version based on the IP address.
Answer: A
NEW QUESTION # 63
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?
- A. Deploy from a source code repository and grant users the roles/cloudfunctions.viewer role.
- B. Deploy from a source code repository and grant users the roles/cloudfunctions.invoker role
- C. Deploy from your local machine using gcloud and grant users the roles/cloudfunctions.developer role
- D. Deploy from your local machine using gcloud and grant users the roles/cloudfunctions.admin role
Answer: D
NEW QUESTION # 64
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 failures
How should you configure the deployment parameters? (Choose two.)
- A. Distribute your workload evenly using a multi-zonal node pool.
- B. Create a managed instance group for Compute Engine with the cluster nodes. Configure autoscaling rules for the managed instance group.
- C. Distribute your workload evenly using multiple zonal node pools.
- D. 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.
- E. Use cluster autoscaler to resize the number of nodes in the node pool, and use a Horizontal Pod Autoscaler to scale the workload.
Answer: A,E
NEW QUESTION # 65
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. Add logging commands to the application and use Stackdriver Logging to check where the latency problem occurs.
- B. File a ticket with Cloud Support indicating that the application performs faster locally.
- C. Use Stackdriver Trace to determine which functions within the application have higher latency.
- D. Use Stackdriver Debugger Snapshots to look at a point-in-time execution of the application.
Answer: A
NEW QUESTION # 66
Your application is running in multiple Google Kubernetes Engine clusters. It is managed by a Deployment in each cluster. The Deployment has created multiple replicas of your Pod in each cluster. You want to view the logs sent to stdout for all of the replicas in your Deployment in all clusters. Which command should you use?
- A. kubectl exec -it [PARAM] journalctl
- B. gcloud compute ssh [PARAM] --command= "sudo journalctl"
- C. kubectl logs [PARAM]
- D. gcloud logging read [PARAM]
Answer: B
NEW QUESTION # 67
Your company wants to expand their users outside the United States for their popular application. The company wants to ensure 99.999% availability of the database for their application and also wants to minimize the read latency for their users across the globe.
Which two actions should they take? (Choose two.)
- A. Create a multi-regional Cloud Spanner instance with "nam3" configuration.
- B. Create a cluster with at least 3 Spanner nodes.
- C. Create a cluster with at least 1 Spanner node.
- D. Create a minimum of two Cloud Spanner instances in separate regions with at least one node.
- E. Create a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.
- F. Create a Cloud Dataflow pipeline to replicate data across different databases.
Answer: A,F
NEW QUESTION # 68
You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance.
Which command should you use?
gsutil cp --project "my-gcp-project" -r ~/local-scripts/ gcp-instance-name:~/
- A. instance-name:~/server-scripts/ --zone "us-east1-b"
- B. server-scripts/ --zone "us-east1-b"
gsutil cp --project "my-gcp-project" -R ~/local-scripts/ gcp-instance-name:~/ - C. server-scripts/ --zone "us-east1-b"
gcloud compute scp --project "my-gcp-project" --recurse ~/local-scripts/ gcp- - D. instance-name:~/server-scripts/ --zone "us-east1-b"
gcloud compute mv --project "my-gcp-project" --recurse ~/local-scripts/ gcp-
Answer: D
Explanation:
Explanation
Explanation/Reference: https://cloud.google.com/sdk/gcloud/reference/compute/copy-files
NEW QUESTION # 69
You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine.
What should you do?
- A. Use signed URLs to upload files.
- B. Use CPanel to upload files.
- C. Change the API to be a multipart file upload API.
- D. Use FTP to upload files.
Answer: A
Explanation:
Reference:
https://wiki.christophchamp.com/index.php?title=Google_Cloud_Platform
Topic 1, HipLocal Case Study
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 10,000 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
NEW QUESTION # 70
You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance.
Which command should you use?
- A. gcloud compute mv --project "my-gcp-project" --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone "us-east1-b"
- B. gsutil cp --project "my-gcp-project" -r ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone "us-east1-b"
- C. gsutil cp --project "my-gcp-project" -R ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone "us-east1-b"
- D. gcloud compute scp --project "my-gcp-project" --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone "us-east1-b"
Answer: D
Explanation:
Reference: https://cloud.google.com/sdk/gcloud/reference/compute/copy-files
NEW QUESTION # 71
You migrated your applications to Google Cloud Platform and kept your existing monitoring platform. You now find that your notification system is too slow for time critical problems.
What should you do?
- A. Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
- B. Replace your entire monitoring platform with Stackdriver.
- C. Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.
- D. Install the Stackdriver agents on your Compute Engine instances.
Answer: D
Explanation:
Reference: https://cloud.google.com/monitoring/
NEW QUESTION # 72
You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs.
Which alert condition should you configure?
- A. Process health
- B. Metric threshold
- C. Metric absence
- D. Uptime check
Answer: A
NEW QUESTION # 73
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. Manually trigger the build 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. Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
- D. Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
Answer: C
NEW QUESTION # 74
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 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.
- B. 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.
- C. 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.
- D. Set up a backend with Compute Engine web server instances with a private IP address behind a TCP proxy load balancer.
Answer: C
Explanation:
Reference: https://cloud.google.com/compute/docs/instances/connecting-advanced#cloud_iap
https://cloud.google.com/solutions/connecting-securely#storing_host_keys_by_enabling_guest_attributes
NEW QUESTION # 75
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 each component in a separate container. Use a script to orchestrate the launch of the components.
- C. Package each component in a separate container. Implement readiness and liveness probes.
- D. 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.
Answer: C
Explanation:
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 # 76
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 an A/B test of your new code and, if it is successful, deploy the container to production.
- C. Trigger a Spinnaker pipeline configured as a canary test of your new code and, if it is successful, deploy the container to production.
- D. 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.
Answer: D
Explanation:
Explanation
https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on-gke#perform_a_shado 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 # 77
You want to view the memory usage of your application deployed on Compute Engine. What should you do?
- A. Install the Stackdriver Monitoring Agent.
- B. Install the Stackdriver Client Library.
- C. Use the Stackdriver Metrics Explorer.
- D. Use the Google Cloud Platform Console.
Answer: C
Explanation:
Reference:
https://stackoverflow.com/questions/43991246/google-cloud-platform-how-to-monitor-memory-usage-of-vm-ins
NEW QUESTION # 78
You are running an application on App Engine that you inherited. You want to find out whether the application is using insecure binaries or is vulnerable to XSS attacks. Which service should you use?
- A. Stackdriver Debugger
- B. Cloud Amor
- C. Stackdriver Error Reporting
- D. Cloud Security Scanner
Answer: D
Explanation:
Reference: https://cloud.google.com/security-scanner
NEW QUESTION # 79
You configured your Compute Engine instance group to scale automatically according to overall CPU usage. However, your application's response latency increases sharply before the cluster has finished adding up instances. You want to provide a more consistent latency experience for your end users by changing the configuration ot the instance group autoscaler. Which two configuration changes should you make? (Choose two.)
- A. Add the label "AUTOSCALE" to the instance group template.
- B. Remove the health-check for individual VMs in the instance group.
- C. Increase the target CPU usage for the instance group autoscaler.
- D. Decrease the target CPU usage for the instance group autoscaler.
- E. Decrease the cool-down period for instances added to the group.
Answer: A,C
NEW QUESTION # 80
You work for a web development team at a small startup. Your team is developing a Node.js application using Google Cloud services, including Cloud Storage and Cloud Build. The team uses a Git repository for version control. Your manager calls you over the weekend and instructs you to make an emergency update to one of the company's websites, and you're the only developer available. You need to access Google Cloud to make the update, but you don't have your work laptop. You are not allowed to store source code locally on a non-corporate computer. How should you set up your developer environment?
- A. Use a Cloud Storage bucket to store the source code that you need to edit. Mount the bucket to a public computer as a drive, and use a code editor to update the code. Turn on versioning for the bucket, and point it to the team's Git repository.
- B. Use Cloud Shell and the built-in code editor for development. Send your source code updates as pull requests.
- C. Use a text editor and the Git command line to send your source code updates as pull requests from a public computer.
- D. Use a text editor and the Git command line to send your source code updates as pull requests from a virtual machine running on a public computer.
Answer: B
Explanation:
https://cloud.google.com/shell/docs
NEW QUESTION # 81
......
Exam Dumps Professional-Cloud-Developer Practice Free Latest Google Practice Tests: https://www.testkingpass.com/Professional-Cloud-Developer-testking-dumps.html
Professional-Cloud-Developer Exam Questions | Real Professional-Cloud-Developer Practice Dumps: https://drive.google.com/open?id=1VzsUkwS08pRB42Gbx0VaZIgfUjmzsrHM