
[2023] Pass Google Professional-Cloud-Developer Test Practice Test Questions Exam Dumps
Verified Professional-Cloud-Developer dumps Q&As - Professional-Cloud-Developer dumps with Correct Answers
To prepare for the Professional-Cloud-Developer exam, candidates should have a solid understanding of cloud computing concepts and be familiar with the Google Cloud platform. They should also have experience in one or more programming languages, such as Java, Python, or JavaScript, as well as experience in developing and deploying applications on Google Cloud.
NEW QUESTION # 43
April states she would like to use the cellular network from her iPhone to access the Internet for free on her Mac. What true statement can you give April?
- A. "Personal Hotspot only works on CDMA networks."
- B. "Personal Hotspot can come with additional charges. You should contact your carrier."
- C. "Personal Hotspot is a great way to access the Internet for free!"
- D. "You must enable Personal Hotspot on your iPhone before the feature can work for free."
Answer: B
NEW QUESTION # 44
Laura is performing a visual inspection of an embedded battery. What kinds of cosmetic issues should she look for? (Choose two.)
- A. Scratches
- B. Apple product serial number
- C. QR Code
- D. Dents or dot imprints
- E. IATA complice label
- F. Apple logo
- G. UPC Code
Answer: A,D
Explanation:
Explanation/Reference: https://docplayer.net/50514766-Embedded-battery-safety.html
NEW QUESTION # 45
Your existing application keeps user state information in a single MySQL database. This state information is very user-specific and depends heavily on how long a user has been using an application. The MySQL database is causing challenges to maintain and enhance the schema for various users.
Which storage option should you choose?
- A. Cloud SQL
- B. Cloud Storage
- C. Cloud Datastore/Firestore
- D. Cloud Spanner
Answer: A
NEW QUESTION # 46
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. Decrease the cool-down period for instances added to the group.
- C. Decrease the target CPU usage for the instance group autoscaler.
- D. Increase the target CPU usage for the instance group autoscaler.
- E. Remove the health-check for individual VMs in the instance group.
Answer: A,D
NEW QUESTION # 47
You are designing a deployment technique for your new applications on Google Cloud. As part of your deployment planning, you want to use live traffic to gather performance metrics for both new and existing applications. You need to test against the full production load prior to launch. What should you do?
- A. Use blue/green deployment
- B. Use rolling updates deployment
- C. Use canary deployment
- D. Use A/B testing with traffic mirroring during deployment
Answer: C
Explanation:
Reference: https://cloud.google.com/architecture/application-deployment-and-testing-strategies
NEW QUESTION # 48
Your company has a data warehouse that keeps your application information in BigQuery. The BigQuery data warehouse keeps 2 PBs of user data. Recently, your company expanded your user base to include EU users and needs to comply with these requirements:
Your company must be able to delete all user account information upon user request.
All EU user data must be stored in a single region specifically for EU users.
Which two actions should you take? (Choose two.)
- A. Use BigQuery federated queries to query data from Cloud Storage.
- B. Re-upload your data using to a Cloud Dataflow pipeline by filtering your user records out.
- C. Create a dataset in the EU region that will keep information about EU users only.
- D. Create a Cloud Storage bucket in the EU region to store information for EU users only.
- E. Use DML statements in BigQuery to update/delete user records based on their requests.
Answer: D,E
Explanation:
Reference: https://cloud.google.com/solutions/bigquery-data-warehouse
NEW QUESTION # 49
You are developing an application that needs to store files belonging to users in Cloud Storage. You want each user to have their own subdirectory in Cloud Storage. When a new user is created, the corresponding empty subdirectory should also be created. What should you do?
- A. Create an object with the name of the subdirectory ending with a trailing slash ('/') that is zero bytes in length.
- B. Create an object with the name of the subdirectory, and then immediately delete the object within that subdirectory.
- C. Create an object with the name of the subdirectory that is zero bytes in length. Set the Content-Type metadata to CLOUDSTORAGE_FOLDER.
- D. Create an object with the name of the subdirectory that is zero bytes in length and has WRITER access control list permission.
Answer: A
Explanation:
Explanation
https://cloud.google.com/storage/docs/folders
If you create an empty folder using the Google Cloud console, Cloud Storage creates a zero-byte object as a placeholder. For example, if you create a folder called folder in a bucket called my-bucket, a zero- byte object called gs://my-bucket/folder/ is created. This placeholder is discoverable by other tools when listing the objects in the bucket, for example when using the gsutil ls command.
NEW QUESTION # 50
You need to deploy a new European version of a website hosted on Google Kubernetes Engine. The current and new websites must be accessed via the same HTTP(S) load balancer's external IP address, but have different domain names. What should you do?
- A. Modify the existing Ingress resource with a host rule matching the new domain
- B. Define a new Ingress resource with a host rule matching the new domain
- C. Generate a new Ingress resource and specify the existing IP address as the kubernetes.io/ingress.global-static-ip-name annotation value
- D. Create a new Service of type LoadBalancer specifying the existing IP address as the loadBalancerIP
Answer: A
Explanation:
Explanation
https://kubernetes.io/docs/concepts/services-networking/ingress/#name-based-virtual-hosting Name-based virtual hosts support routing HTTP traffic to multiple host names at the same IP address.
NEW QUESTION # 51
Your development team has built several Cloud Functions using Java along with corresponding integration and service tests. You are building and deploying the functions and launching the tests using Cloud Build.
Your Cloud Build job is reporting deployment failures immediately after successfully validating the code.
What should you do?
- A. Retry the tests using the truncated exponential backoff polling strategy.
- B. Check the maximum number of Cloud Function instances.
- C. Verify that the Cloud Build service account is assigned the Cloud Functions Developer role.
- D. Verify that your Cloud Build trigger has the correct build parameters.
Answer: C
Explanation:
Explanation
https://cloud.google.com/build/docs/securing-builds/configure-access-for-cloud-build-service-account
NEW QUESTION # 52
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 Error Reporting
- B. Stackdriver Debugger
- C. Cloud Security Scanner
- D. Cloud Amor
Answer: C
NEW QUESTION # 53
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 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 to meet their business requirements, how should HipLocal store their application state?
- A. Use local SSDs to store state.
- B. Move the state storage to Cloud Spanner.
- C. Replace the MySQL instance with Cloud SQL.
- D. Put a memcache layer in front of MySQL.
Answer: D
Explanation:
Explanation/Reference:
NEW QUESTION # 54
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 the STRING data type for arbitrary-precision values.
- B. The use of LIKE instead of STARTS_WITH keyword for parameterized SQL queries.
- C. The use of Version 1 UUIDs as primary keys that increase monotonically.
- D. The use of 64-bit numeric types for 32-bit numbers.
Answer: C
NEW QUESTION # 55
Your code is running on Cloud Functions in project A.
It is supposed to write an object in a Cloud Storage bucket owned by project B.
However, the write call is failing with the error "403 Forbidden".
What should you do to correct the problem?
- A. Grant the [email protected] service account the roles/ storage.objectCreator role for the Cloud Storage bucket.
- B. Enable the Cloud Storage API in project B.
- C. Grant your user account the roles/iam.serviceAccountUser role for the service-PROJECTA@gcf-adminrobot.
iam.gserviceaccount.com service account. - D. Grant your user account the roles/storage.objectCreator role for the Cloud Storage bucket.
Answer: C
NEW QUESTION # 56
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?
- A. Create the Deployment with a livenessProbe for the container that will fail if the container can't connect to the database. Configure a Prestop lifecycle handler that runs the shutdown script if the container is failing.
- B. Create two jobs: one that checks whether the container can connect to the database, and another that runs the shutdown script if the Pod is failing.
- C. Create the Deployment with an initContainer that checks the service availability. Configure a Prestop lifecycle handler that runs the shutdown script if the Pod is failing.
- D. Create the Deployment with a PostStart lifecycle handler that checks the service availability. Configure a PreStop lifecycle handler that runs the shutdown script if the container is failing.
Answer: A
Explanation:
Explanation
https://cloud.google.com/architecture/best-practices-for-running-cost-effective-kubernetes-applications-on-gke#m
NEW QUESTION # 57
You are using Cloud Build build to promote a Docker image to Development, Test, and Production environments. You need to ensure that the same Docker image is deployed to each of these environments. How should you identify the Docker image in your build?
- A. Use a semantic version Docker image tag.
- B. Use a unique Docker image name.
- C. Use the digest of the Docker image.
- D. Use the latest Docker image tag.
Answer: A
NEW QUESTION # 58
Your company's development teams want to use Cloud Build in their projects to build and push Docker images to Container Registry. The operations team requires all Docker images to be published to a centralized, securely managed Docker registry that the operations team manages.
What should you do?
- A. Create a separate project for the operations team that has Container Registry configured. Assign appropriate permissions to the Cloud Build service account in each developer team's project to allow access to the operation team's registry.
- B. Create a separate project for the operations team that has the open source Docker Registry deployed on a Compute Engine virtual machine instance. Create a username and password for each development team.
Store the username and password in the source code repository and use it to authenticate against the operations team's Docker registry. - C. Create a separate project for the operations team that has Container Registry configured. Create a Service Account for each development team and assign the appropriate permissions to allow it access to the operations team's registry. Store the service account key file in the source code repository and use it to authenticate against the operations team's registry.
- D. Use Container Registry to create a registry in each development team's project. Configure the Cloud Build build to push the Docker image to the project's registry. Grant the operations team access to each development team's registry.
Answer: D
Explanation:
Reference: https://cloud.google.com/container-registry/
NEW QUESTION # 59
Your team is developing a new application using a PostgreSQL database and Cloud Run. You are responsible for ensuring that all traffic is kept private on Google Cloud. You want to use managed services and follow Google-recommended best practices. What should you do?
- A. 1. Install PostgreSQL on a Compute Engine virtual machine (VM), and enable Cloud Run in the same project.
2. Configure a private IP address for the VM. Enable private services access.
3. Create a Serverless VPC Access connector.
4. Configure Cloud Run to use the connector to connect to the VM hosting PostgreSQL. - B. 1. Use Cloud SQL and Cloud Run in different projects.
2. Configure a private IP address for Cloud SQL. Enable private services access.
3. Create a Serverless VPC Access connector.
4. Set up a VPN connection between the two projects. Configure Cloud Run to use the connector to connect to Cloud SQL. - C. 1. Install PostgreSQL on a Compute Engine VM, and enable Cloud Run in different projects.
2. Configure a private IP address for the VM. Enable private services access.
3. Create a Serverless VPC Access connector.
4. Set up a VPN connection between the two projects. Configure Cloud Run to use the connector to access the VM hosting PostgreSQL - D. 1. Enable Cloud SQL and Cloud Run in the same project.
2. Configure a private IP address for Cloud SQL. Enable private services access.
3. Create a Serverless VPC Access connector.
4. Configure Cloud Run to use the connector to connect to Cloud SQL.
Answer: D
Explanation:
https://cloud.google.com/sql/docs/postgres/connect-run#private-ip
NEW QUESTION # 60
You are deploying a single website on App Engine that needs to be accessible via the URL http://www.altostrat.com/. What should you do?
- A. Verify domain ownership with Webmaster Central. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
- B. Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Define an A record pointing to the single global App Engine IP address.
- C. Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
- D. Verify domain ownership with Webmaster Central. Define an A record pointing to the single global App Engine IP address.
Answer: A
Explanation:
Reference:
https://cloud.google.com/appengine/docs/flexible/dotnet/mapping-custom-domains?hl=fa
NEW QUESTION # 61
......
Professional-Cloud-Developer certification guide Q&A from Training Expert Actual4Exams: https://torrentpdf.actual4exams.com/Professional-Cloud-Developer-real-braindumps.html