Google Professional Cloud Developer Exam Practice Questions (P. 4)
- Full Access (361 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #31
You have an application in production. It is deployed on Compute Engine virtual machine instances controlled by a managed instance group. Traffic is routed to the instances via a HTTP(s) load balancer. Your users are unable to access your application. You want to implement a monitoring technique to alert you when the application is unavailable.
Which technique should you choose?
Which technique should you choose?
- ASmoke tests
- BStackdriver uptime checksMost Voted
- CCloud Load Balancing - heath checks
- DManaged instance group - heath checks
Correct Answer:
B
Reference:
https://medium.com/google-cloud/stackdriver-monitoring-automation-part-3-uptime-checks-476b8507f59c
B
Reference:
https://medium.com/google-cloud/stackdriver-monitoring-automation-part-3-uptime-checks-476b8507f59c
send
light_mode
delete
Question #32
You are load testing your server application. During the first 30 seconds, you observe that a previously inactive Cloud Storage bucket is now servicing 2000 write requests per second and 7500 read requests per second. Your application is now receiving intermittent 5xx and 429 HTTP responses from the Cloud Storage
JSON API as the demand escalates. You want to decrease the failed responses from the Cloud Storage API.
What should you do?
JSON API as the demand escalates. You want to decrease the failed responses from the Cloud Storage API.
What should you do?
- ADistribute the uploads across a large number of individual storage buckets.
- BUse the XML API instead of the JSON API for interfacing with Cloud Storage.
- CPass the HTTP response codes back to clients that are invoking the uploads from your application.
- DLimit the upload rate from your application clients so that the dormant bucket's peak request rate is reached more gradually.Most Voted
Correct Answer:
A
Reference:
https://cloud.google.com/storage/docs/request-rate
A
Reference:
https://cloud.google.com/storage/docs/request-rate
send
light_mode
delete
Question #33
Your application is controlled by a managed instance group. You want to share a large read-only data set between all the instances in the managed instance group. You want to ensure that each instance can start quickly and can access the data set via its filesystem with very low latency. You also want to minimize the total cost of the solution.
What should you do?
What should you do?
- AMove the data to a Cloud Storage bucket, and mount the bucket on the filesystem using Cloud Storage FUSE.
- BMove the data to a Cloud Storage bucket, and copy the data to the boot disk of the instance via a startup script.
- CMove the data to a Compute Engine persistent disk, and attach the disk in read-only mode to multiple Compute Engine virtual machine instances.Most Voted
- DMove the data to a Compute Engine persistent disk, take a snapshot, create multiple disks from the snapshot, and attach each disk to its own instance.
Correct Answer:
C
C

Option C is the most suitable solution for sharing large datasets between multiple instances with low latency and cost efficiency. Attaching a Compute Engine persistent disk in read-only mode to multiple VMs allows all instances access to the data without the need for duplication across individual disks. This method not only streamlines deployment but also reduces costs, since there's no need to maintain separate storage for each instance. Additionally, persistent disks offer better performance compared to mounting Cloud Storage buckets via FUSE, particularly in terms of latency, making it optimal for rapid data access across instances.
send
light_mode
delete
Question #34
You are developing an HTTP API hosted on a Compute Engine virtual machine instance that needs to be invoked by multiple clients within the same Virtual
Private Cloud (VPC). You want clients to be able to get the IP address of the service.
What should you do?
Private Cloud (VPC). You want clients to be able to get the IP address of the service.
What should you do?
- AReserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Clients should use this IP address to connect to the service.
- BReserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Then, define an A record in Cloud DNS. Clients should use the name of the A record to connect to the service.
- CEnsure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[INSTANCE_NAME].[ZONE].c. [PROJECT_ID].internal/.Most Voted
- DEnsure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[API_NAME]/[API_VERSION]/.
Correct Answer:
D
D

For services within the same Virtual Private Cloud (VPC), leveraging Compute Engine's internal DNS is a streamlined method to facilitate communication without the complexities of external IP management or load balancing. The URL format https://[INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal/ allows direct access to the instance’s internal IP address, ensuring low latency and increased security as traffic remains within Google's network infrastructure. This approach bypasses the need for additional DNS configurations, making it efficient for intra-VPC connectivity.
send
light_mode
delete
Question #35
Your application is logging to Stackdriver. You want to get the count of all requests on all /api/alpha/* endpoints.
What should you do?
What should you do?
- AAdd a Stackdriver counter metric for path:/api/alpha/.
- BAdd a Stackdriver counter metric for endpoint:/api/alpha/*.Most Voted
- CExport the logs to Cloud Storage and count lines matching /api/alpha.
- DExport the logs to Cloud Pub/Sub and count lines matching /api/alpha.
Correct Answer:
C
C

In cases where you're dealing with capturing data for endpoints like /api/alpha/*, directly utilizing Stackdriver counter metrics seems straightforward, but it actually might lack the capacity to filter by wildcard paths directly within metrics. Therefore, the correct approach involves exporting the logs to a service like Cloud Storage. Here, you can utilize more flexible querying capabilities to accurately count occurrences across multiple paths matching the /api/alpha/ pattern. This method provides a comprehensive capture and counting mechanism vital for dynamic path monitoring in cloud environments.
send
light_mode
delete
Question #36
You want to re-architect a monolithic application so that it follows a microservices model. You want to accomplish this efficiently while minimizing the impact of this change to the business.
Which approach should you take?
Which approach should you take?
- ADeploy the application to Compute Engine and turn on autoscaling.
- BReplace the application's features with appropriate microservices in phases.Most Voted
- CRefactor the monolithic application with appropriate microservices in a single effort and deploy it.
- DBuild a new application with the appropriate microservices separate from the monolith and replace it when it is complete.
Correct Answer:
C
Reference:
https://cloud.google.com/solutions/migrating-a-monolithic-app-to-microservices-gke
C
Reference:
https://cloud.google.com/solutions/migrating-a-monolithic-app-to-microservices-gke
send
light_mode
delete
Question #37
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?
Which storage option should you choose?
- ACloud SQL
- BCloud Storage
- CCloud Spanner
- DCloud Datastore/FirestoreMost Voted
Correct Answer:
A
Reference:
https://cloud.google.com/solutions/migrating-mysql-to-cloudsql-concept
A
Reference:
https://cloud.google.com/solutions/migrating-mysql-to-cloudsql-concept
send
light_mode
delete
Question #38
You are building a new API. You want to minimize the cost of storing and reduce the latency of serving images.
Which architecture should you use?
Which architecture should you use?
- AApp Engine backed by Cloud Storage
- BCompute Engine backed by Persistent Disk
- CTransfer Appliance backed by Cloud Filestore
- DCloud Content Delivery Network (CDN) backed by Cloud StorageMost Voted
Correct Answer:
B
B

The most suitable architecture for minimizing storage costs and reducing latency in serving images is to use a Cloud Content Delivery Network (CDN) backed by Cloud Storage. This configuration leverages the CDN's ability to serve content rapidly from locations close to users, enhancing performance and user experience. Simultaneously, Cloud Storage offers a cost-effective solution for storing large volumes of images, making this combination optimal for your needs. While Compute Engine and Persistent Disk could technically support the application, they do not inherently optimize for the low latency and cost efficiency necessary for image serving at scale.
send
light_mode
delete
Question #39
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?
What should you do?
- AUse 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.
- BCreate 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.Most Voted
- CCreate 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.
- DCreate 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.
Correct Answer:
A
Reference:
https://cloud.google.com/container-registry/
A
Reference:
https://cloud.google.com/container-registry/
send
light_mode
delete
Question #40
You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. Your application can scale horizontally, and each instance of your application needs to have a stable network identity and its own persistent disk.
Which GKE object should you use?
Which GKE object should you use?
- ADeployment
- BStatefulSetMost Voted
- CReplicaSet
- DReplicaController
Correct Answer:
B
Reference:
https://livebook.manning.com/book/kubernetes-in-action/chapter-10/46
B
Reference:
https://livebook.manning.com/book/kubernetes-in-action/chapter-10/46
send
light_mode
delete
All Pages