[Q52-Q74] Google Professional-Cloud-Developer Practice Verified Answers - Pass Your Exams For Sure! [2024]

Share

Google Professional-Cloud-Developer Practice Verified Answers - Pass Your Exams For Sure! [2024]

Valid Way To Pass Cloud Developer's Professional-Cloud-Developer Exam

NEW QUESTION # 52
You are creating a Google Kubernetes Engine (GKE) cluster and run this command:

The command fails with the error:

You want to resolve the issue. What should you do?

  • A. Decouple services in the cluster, and rewrite new clusters to function with fewer cores.
  • B. Request additional GKE quota in the GCP Console.
  • C. Open a support case to request additional GKE quota.
  • D. Request additional Compute Engine quota in the GCP Console.

Answer: B


NEW QUESTION # 53
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. server-scripts/ --zone "us-east1-b"
    gsutil cp --project "my-gcp-project" -R ~/local-scripts/ gcp-instance-name:~/
  • B. server-scripts/ --zone "us-east1-b"
    gcloud compute scp --project "my-gcp-project" --recurse ~/local-scripts/ gcp-
  • C. instance-name:~/server-scripts/ --zone "us-east1-b"
    gcloud compute mv --project "my-gcp-project" --recurse ~/local-scripts/ gcp-
  • D. instance-name:~/server-scripts/ --zone "us-east1-b"

Answer: C

Explanation:
Explanation/Reference: https://cloud.google.com/sdk/gcloud/reference/compute/copy-files


NEW QUESTION # 54
You recently developed a new application. You want to deploy the application on Cloud Run without a Dockerfile. Your organization requires that all container images are pushed to a centrally managed container repository. How should you build your container using Google Cloud services? (Choose two.)

  • A. Push your source code to Artifact Registry.
  • B. Include the --source flag with the gcloud run deploy CLI command.
  • C. Submit a Cloud Build job to push the image.
  • D. Use the pack build command with pack CLI.
  • E. Include the --platform=kubernetes flag with the gcloud run deploy CLI command.

Answer: A,D

Explanation:
https://cloud.google.com/run/docs/deploying#images
https://cloud.google.com/blog/products/containers-kubernetes/google-cloud-now-supports-buildpacks


NEW QUESTION # 55
Your development team has been tasked with maintaining a .NET legacy application. The application incurs occasional changes and was recently updated. Your goal is to ensure that the application provides consistent results while moving through the CI/CD pipeline from environment to environment. You want to minimize the cost of deployment while making sure that external factors and dependencies between hosting environments are not problematic. Containers are not yet approved in your organization. What should you do?

  • A. Use Cloud Build to deploy the application as a new Compute Engine image for each build. Use this image in each environment.
  • B. Use Cloud Build to package the application, and deploy to a Google Kubernetes Engine cluster. Use namespaces to separate the environments.
  • C. Rewrite the application using .NET Core, and deploy to Cloud Run. Use revisions to separate the environments.
  • D. Deploy the application using MS Web Deploy, and make sure to always use the latest, patched MS Windows Server base image in Compute Engine.

Answer: A

Explanation:
https://cloud.google.com/architecture/modernization-path-dotnet-applications-google-cloud#phase_1_rehost_in_the_cloud
https://cloud.google.com/architecture/modernization-path-dotnet-applications-google-cloud


NEW QUESTION # 56
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. Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
  • C. Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud Build public Issue Tracker.
  • D. Build a custom cloud builder image and reference the image in your build steps.

Answer: D


NEW QUESTION # 57
You manage an application that runs in a Compute Engine instance. You also have multiple backend services executing in stand-alone Docker containers running in Compute Engine instances. The Compute Engine instances supporting the backend services are scaled by managed instance groups in multiple regions. You want your calling application to be loosely coupled. You need to be able to invoke distinct service implementations that are chosen based on the value of an HTTP header found in the request. Which Google Cloud feature should you use to invoke the backend services?

  • A. Internal HTTP(S) Load Balancing
  • B. Anthos Service Mesh
  • C. Traffic Director
  • D. Service Directory

Answer: A


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

  • A. Migrate the services to Google Kubernetes Engine and use a load balancer service to better scale the application.
  • B. Migrate the database to Cloud Spanner and use it to serve all global user traffic.
  • C. Migrate the database to Bigtable and use it to serve all global user traffic.
  • D. Migrate the database to Firestore in Datastore mode and use it to serve all global user traffic.

Answer: A


NEW QUESTION # 59
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. Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
  • D. Manually trigger the build for new releases.

Answer: A

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


NEW QUESTION # 60
Your analytics system executes queries against a BigQuery dataset. The SQL query is executed in batch and passes the contents of a SQL file to the BigQuery CLI. Then it redirects the BigQuery CLI output to another process. However, you are getting a permission error from the BigQuery CLI when the queries are executed.
You want to resolve the issue. What should you do?

  • A. Grant the service account BigQuery Data Viewer and BigQuery Job User roles.
  • B. Grant the service account BigQuery Data Editor and BigQuery Data Viewer roles.
  • C. Create a view in BigQuery from the SQL query and SELECT*from the view in the CLI.
  • D. Create a new dataset in BigQuery, and copy the source table to the new dataset Query the new dataset and table from the CLI.

Answer: B


NEW QUESTION # 61
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. Blue/green deployment
  • B. Rolling deployment
  • C. Recreate deployment
  • D. Canary deployment

Answer: A


NEW QUESTION # 62
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. 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.
  • B. 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.
  • C. Set up a backend with Compute Engine web server instances with a private IP address behind a TCP proxy load balancer.
  • 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: A

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 # 63
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?

  • A. Write to Cloud Spanner using a custom gRPC client library.
  • B. Write to Cloud Spanner using Google API Client Libraries
  • C. Write to Cloud Spanner using Cloud Client Libraries.
  • D. Write to Cloud Spanner using a third-party HTTP client library.

Answer: C

Explanation:
https://cloud.google.com/apis/docs/cloud-client-libraries
"Cloud Client Libraries are the recommended option for accessing Cloud APIs programmatically, where available. Cloud Client Libraries use the latest client library models"
https://cloud.google.com/apis/docs/client-libraries-explained
https://cloud.google.com/go/docs/reference


NEW QUESTION # 64
Elizabeth would rather not answer phone calls using her iMac. Where in macOS can Elizabeth turn off iPhone Cellular Calls?

  • A. Turn off iPhone Cellular Calls in Messages preferences.
  • B. Turn off iPhone Cellular Calls in System Preferences.
  • C. Turn off iPhone Cellular Calls in iCloud preferences.
  • D. Turn off iPhone Cellular Calls in FaceTime preferences.

Answer: D

Explanation:
Explanation/Reference: https://discussions.apple.com/thread/6836476


NEW QUESTION # 65
Your development team is using Cloud Build to promote a Node.js application built on App Engine from your staging environment to production. The application relies on several directories of photos stored in a Cloud Storage bucket named webphotos-staging in the staging environment. After the promotion, these photos must be available in a Cloud Storage bucket named webphotos-prod in the production environment. You want to automate the process where possible. What should you do?
A)
Manually copy the photos to webphotos-prod.
B)
Add a startup script in the application's app.yami file to move the photos from webphotos-staging to webphotos-prod.
C)
Add a build step in the cloudbuild.yaml file before the promotion step with the arguments:

D)
Add a build step in the cloudbuild.yaml file before the promotion step with the arguments:

  • A. Option C
  • B. Option A
  • C. Option D
  • D. Option B

Answer: A

Explanation:
https://cloud.google.com/storage/docs/gsutil/commands/cp


NEW QUESTION # 66
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. Separate Cloud SQL clusters for each region
  • B. Cloud Datastore
  • C. Cloud Memorystore as a cache
  • D. Cloud Spanner

Answer: D

Explanation:
Explanation/Reference:


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

  • A. Generate a signed URL that grants read access to the bucket. Allow users to access the URL after authenticating through your web application.
  • B. Cache each web application user's IP address to create a named IP table using Google Cloud Armor.
    Create a Google Cloud Armor security policy that allows users to access the backend bucket.
  • C. Grant the Storage Object Viewer IAM role to allUsers. Allow users to access the bucket after authenticating through your web application.
  • D. Configure Identity-Aware Proxy (IAP) to authenticate users into the web application. Allow users to access the bucket after authenticating through IAP.

Answer: A

Explanation:
Explanation
https://cloud.google.com/storage/docs/access-control/signed-urls#should-you-use In some scenarios, you might not want to require your users to have a Google account in order to access Cloud Storage, but you still want to control access using your application-specific logic. The typical way to address this use case is to provide a signed URL to a user, which gives the user read, write, or delete access to that resource for a limited time. You specify an expiration time when you create the signed URL. Anyone who knows the URL can access the resource until the expiration time for the URL is reached or the key used to sign the URL is rotated.


NEW QUESTION # 68
You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.

Health checks to port 80 on the Compute Engine virtual machine instance are failing and no traffic is sent to your instances. You want to resolve the problem.
Which commands should you run?

  • A. gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --source-ranges 130.211.0.0/22,35.191.0.0/16 --direction INGRESS
  • B. gcloud compute instances add-tags ${NAME}-backend-instance-1 --tags http-server
  • C. gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --destination-ranges 130.211.0.0/22,35.191.0.0/16 --direction EGRESS
  • D. gcloud compute instances add-access-config ${NAME}-backend-instance-1

Answer: A

Explanation:
Reference: https://cloud.google.com/vpc/docs/special-configurations


NEW QUESTION # 69
Which of the following types of data are backed up to iCloud? (Choose two.)

  • A. iCloud Music Library
  • B. Apple Pay information and settings
  • C. Device Settings
  • D. Touch ID Settings
  • E. Messages

Answer: C,E


NEW QUESTION # 70
You are creating a Google Kubernetes Engine (GKE) cluster and run this command:

The command fails with the error:

You want to resolve the issue. What should you do?

  • A. Open a support case to request additional GKE quotA.
  • B. Request additional GKE quota is the GCP Console.
  • C. Decouple services in the cluster, and rewrite new clusters to function with fewer cores.
  • D. Request additional Compute Engine quota in the GCP Console.

Answer: B


NEW QUESTION # 71
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 Trace
  • B. Cloud Monitoring
  • C. Cloud Debugger logpoints
  • D. Cloud Debugger snapshots

Answer: C

Explanation:
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 # 72
You are creating a Google Kubernetes Engine (GKE) cluster and run this command:

The command fails with the error:

You want to resolve the issue. What should you do?

  • A. Open a support case to request additional GKE quotA.
  • B. Request additional GKE quota is the GCP Console.
  • C. Decouple services in the cluster, and rewrite new clusters to function with fewer cores.
  • D. Request additional Compute Engine quota in the GCP Console.

Answer: B


NEW QUESTION # 73
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.
Which database should HipLocal use for storing user activity?

  • A. Cloud Datastore
  • B. Cloud SQL
  • C. Cloud Spanner
  • D. BigQuery

Answer: C


NEW QUESTION # 74
......

Google Professional-Cloud-Developer Pre-Exam Practice Tests | DumpsValid: https://examcollection.dumpsvalid.com/Professional-Cloud-Developer-brain-dumps.html