Google Professional Cloud Developer exam dumps

Google Professional Cloud Developer practice question 9 of 481

Professional Cloud Developer. Professional level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Developer Question 9

Single answerGoogle Cloud Platform

You are designing a microservices-based application on Google Cloud. One of your services, responsible for processing user uploads, needs to communicate asynchronously with another service that handles data transformations. Which Google Cloud service would be the most appropriate to implement asynchronous communication between these two microservices?

  1. A

    Cloud Pub/Sub

  2. B

    Cloud Storage

  3. C

    Cloud Spanner

  4. D

    Cloud Functions

Show answer and explanation

Correct answer: A

Explanation

In a microservices architecture, asynchronous communication between services can be effectively implemented using a messaging service. Cloud Pub/Sub enables decoupled communication by allowing services to publish messages to a topic and other services to subscribe and process them independently. This ensures scalability and fault tolerance in the system, making it the most appropriate choice for the given scenario.

  • A. Correct.

    Cloud Pub/Sub is a fully managed messaging service designed for asynchronous communication between independent components in a microservices architecture. It supports decoupling and scalability, making it the best choice for this use case.

  • B. Incorrect.

    Cloud Storage is a file storage service and is not designed for messaging or asynchronous communication. It is more suitable for storing and retrieving files.

  • C. Incorrect.

    Cloud Spanner is a globally-distributed database service and is not designed for messaging or asynchronous communication between microservices.

  • D. Incorrect.

    Cloud Functions is a serverless compute service for running code in response to events. While it can be used in event-driven architectures, it is not a messaging service for enabling asynchronous communication between microservices.

Timed practice exam

Take a Google Professional Cloud Developer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam