Google Cloud Professional Cloud Developer — Question 277
You are developing an application that uses microservices architecture that includes Cloud Run, Bigtable, and Pub/Sub. You want to conduct the testing and debugging process as quickly as possible to create a minimally viable product with minimal cost. What should you do?
Answer options
- A. Use Cloud Shell Editor and Cloud Shell to deploy the application, and test the functionality by using the Google Cloud console in the project.
- B. Use emulators to test the functionality of cloud resources locally, and deploy the code to your Google Cloud project.
- C. Use Cloud Build to create a pipeline, and add the unit testing stage and the manual approval stage. Deploy the code to your Google Cloud project.
- D. Use Cloud Code to develop, deploy, and test microservices resources. Use Cloud Logging to review the resource logs.
Correct answer: B
Explanation
The correct answer is B because using emulators allows you to test the functionality of cloud resources locally, which is faster and more cost-effective for developing a minimally viable product. The other options, while useful, either involve more complex deployment processes or do not focus on local testing, which can slow down the development cycle.