ExamGecko
Home Home / Google / Professional Cloud Developer

Google Professional Cloud Developer Practice Test - Questions Answers, Page 5

Question list
Search
Search

List of questions

Search

Related questions











In order for HipLocal to store application state and meet their stated business requirements, which database service should they migrate to?

A.
Cloud Spanner
A.
Cloud Spanner
Answers
B.
Cloud Datastore
B.
Cloud Datastore
Answers
C.
Cloud Memorystore as a cache
C.
Cloud Memorystore as a cache
Answers
D.
Separate Cloud SQL clusters for each region
D.
Separate Cloud SQL clusters for each region
Answers
Suggested answer: D

For this question, refer to the HipLocal case study.

How should HipLocal redesign their architecture to ensure that the application scales to support a large increase in users?

A.
Use Google Kubernetes Engine (GKE) to run the application as a microservice. Run the MySQL database on a dedicated GKE node.
A.
Use Google Kubernetes Engine (GKE) to run the application as a microservice. Run the MySQL database on a dedicated GKE node.
Answers
B.
Use multiple Compute Engine instances to run MySQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling.
B.
Use multiple Compute Engine instances to run MySQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling.
Answers
C.
Use Memorystore to store session information and CloudSQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling.
C.
Use Memorystore to store session information and CloudSQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling.
Answers
D.
Use a Cloud Storage bucket to serve the application as a static website, and use another Cloud Storage bucket to store user state information.
D.
Use a Cloud Storage bucket to serve the application as a static website, and use another Cloud Storage bucket to store user state information.
Answers
Suggested answer: D

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

For this question, refer to the HipLocal case study.

HipLocal's application uses Cloud Client Libraries to interact with Google Cloud. HipLocal needs to configure authentication and authorization in the Cloud Client Libraries to implement least privileged access for the application. What should they do?

A.
Create an API key. Use the API key to interact with Google Cloud.
A.
Create an API key. Use the API key to interact with Google Cloud.
Answers
B.
Use the default compute service account to interact with Google Cloud.
B.
Use the default compute service account to interact with Google Cloud.
Answers
C.
Create a service account for the application. Export and deploy the private key for the application. Use the service account to interact with Google Cloud.
C.
Create a service account for the application. Export and deploy the private key for the application. Use the service account to interact with Google Cloud.
Answers
D.
Create a service account for the application and for each Google Cloud API used by the application. Export and deploy the private keys used by the application. Use the service account with one Google Cloud API to interact with Google Cloud.
D.
Create a service account for the application and for each Google Cloud API used by the application. Export and deploy the private keys used by the application. Use the service account with one Google Cloud API to interact with Google Cloud.
Answers
Suggested answer: A

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 database to Bigtable and use it to serve all global user traffic.
A.
Migrate the database to Bigtable and use it to serve all global user traffic.
Answers
B.
Migrate the database to Cloud Spanner and use it to serve all global user traffic.
B.
Migrate the database to Cloud Spanner and use it to serve all global user traffic.
Answers
C.
Migrate the database to Firestore in Datastore mode and use it to serve all global user traffic.
C.
Migrate the database to Firestore in Datastore mode and use it to serve all global user traffic.
Answers
D.
Migrate the services to Google Kubernetes Engine and use a load balancer service to better scale the application.
D.
Migrate the services to Google Kubernetes Engine and use a load balancer service to better scale the application.
Answers
Suggested answer: D

For this question, refer to the HipLocal case study.

Which Google Cloud product addresses HipLocal's business requirements for service level indicators and objectives?

A.
Cloud Profiler
A.
Cloud Profiler
Answers
B.
Cloud Monitoring
B.
Cloud Monitoring
Answers
C.
Cloud Trace
C.
Cloud Trace
Answers
D.
Cloud Logging
D.
Cloud Logging
Answers
Suggested answer: B

Explanation:

https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring#defn-sli

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?

A.
Create a service account and download its key. Use the key to authenticate to Cloud Key Management Service (KMS) to obtain the database credentials.
A.
Create a service account and download its key. Use the key to authenticate to Cloud Key Management Service (KMS) to obtain the database credentials.
Answers
B.
Create a service account and download its key. Use the key to authenticate to Cloud Key Management Service (KMS) to obtain a key used to decrypt the database credentials.
B.
Create a service account and download its key. Use the key to authenticate to Cloud Key Management Service (KMS) to obtain a key used to decrypt the database credentials.
Answers
C.
Create a service account and grant it the roles/iam.serviceAccountUser role. Impersonate as this account and authenticate using the Cloud SQL Proxy.
C.
Create a service account and grant it the roles/iam.serviceAccountUser role. Impersonate as this account and authenticate using the Cloud SQL Proxy.
Answers
D.
Grant the roles/secretmanager.secretAccessor role to the Compute Engine service account. Store and access the database credentials with the Secret Manager API.
D.
Grant the roles/secretmanager.secretAccessor role to the Compute Engine service account. Store and access the database credentials with the Secret Manager API.
Answers
Suggested answer: D

Explanation:

https://cloud.google.com/secret-manager/docs/overview

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?

A.
Create new Cloud SQL instances in Europe and North America for testing and deployment. Provide developers with local MySQL instances to conduct testing on the application changes.
A.
Create new Cloud SQL instances in Europe and North America for testing and deployment. Provide developers with local MySQL instances to conduct testing on the application changes.
Answers
B.
Migrate data to Bigtable. Instruct the development teams to use the Cloud SDK to emulate a local Bigtable development environment.
B.
Migrate data to Bigtable. Instruct the development teams to use the Cloud SDK to emulate a local Bigtable development environment.
Answers
C.
Move from Cloud SQL to MySQL hosted on Compute Engine. Replicate hosts across regions in the Americas and Europe. Provide developers with local MySQL instances to conduct testing on the application changes.
C.
Move from Cloud SQL to MySQL hosted on Compute Engine. Replicate hosts across regions in the Americas and Europe. Provide developers with local MySQL instances to conduct testing on the application changes.
Answers
D.
Migrate data to Firestore in Native mode and set up instan
D.
Migrate data to Firestore in Native mode and set up instan
Answers
Suggested answer: B

You want to upload files from an on-premises virtual machine to Google Cloud Storage as part of a data migration. These files will be consumed by Cloud DataProc Hadoop cluster in a GCP environment.

Which command should you use?

A.
gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
A.
gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
Answers
B.
gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
B.
gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
Answers
C.
hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
C.
hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
Answers
D.
gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
D.
gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
Answers
Suggested answer: A

Explanation:

The gsutil cp command allows you to copy data between your local file. storage. boto files generated by running 'gsutil config'

Your team is developing an application in Google Cloud that executes with user identities maintained by Cloud Identity. Each of your application's users will have an associated Pub/Sub topic to which messages are published, and a Pub/Sub subscription where the same user will retrieve published messages. You need to ensure that only authorized users can publish and subscribe to their own specific Pub/Sub topic and subscription. What should you do?

A.
Bind the user identity to the pubsub.publisher and pubsub.subscriber roles at the resource level.
A.
Bind the user identity to the pubsub.publisher and pubsub.subscriber roles at the resource level.
Answers
B.
Grant the user identity the pubsub.publisher and pubsub.subscriber roles at the project level.
B.
Grant the user identity the pubsub.publisher and pubsub.subscriber roles at the project level.
Answers
C.
Grant the user identity a custom role that contains the pubsub.topics.create and pubsub.subscriptions.create permissions.
C.
Grant the user identity a custom role that contains the pubsub.topics.create and pubsub.subscriptions.create permissions.
Answers
D.
Configure the application to run as a service account that has the pubsub.publisher and pubsub.subscriber roles.
D.
Configure the application to run as a service account that has the pubsub.publisher and pubsub.subscriber roles.
Answers
Suggested answer: C
Total 265 questions
Go to page: of 27