
Answer-first summary for fast verification
Answer: Use emulators to test the functionality of cloud resources locally, and deploy the code to your Google Cloud project.
The question focuses on testing and debugging quickly with minimal cost for an MVP using Cloud Run, Bigtable, and Pub/Sub. Option B is correct because using emulators (e.g., Bigtable and Pub/Sub emulators) allows local testing of cloud resource functionality without deploying to the cloud, reducing deployment time and costs. Once tested locally, the code can be deployed to Google Cloud. Options A, C, and D involve deploying to the cloud during testing (using Cloud Shell, Cloud Build pipelines, or Cloud Code), which incurs costs and delays. While Cloud Code (D) can integrate with emulators, the option does not explicitly mention local emulator usage, making B the clearer choice for minimizing cost and accelerating testing.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can you efficiently test and debug a microservices-based application using Cloud Run, Bigtable, and Pub/Sub to develop a minimally viable product with minimal cost?
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.