ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 257 - Professional Cloud Developer discussion

Report
Export

You work on an application that relies on Cloud Spanner as its main datastore. New application features have occasionally caused performance regressions. You want to prevent performance issues by running an automated performance test with Cloud Build for each commit made. If multiple commits are made at the same time, the tests might run concurrently. What should you do?

A.
Create a new project with a random name for every build. Load the required data. Delete the project after the test is run.
Answers
A.
Create a new project with a random name for every build. Load the required data. Delete the project after the test is run.
B.
Create a new Cloud Spanner instance for every build. Load the required data. Delete the Cloud Spanner instance after the test is run.
Answers
B.
Create a new Cloud Spanner instance for every build. Load the required data. Delete the Cloud Spanner instance after the test is run.
C.
Create a project with a Cloud Spanner instance and the required data. Adjust the Cloud Build build file to automatically restore the data to its previous state after the test is run.
Answers
C.
Create a project with a Cloud Spanner instance and the required data. Adjust the Cloud Build build file to automatically restore the data to its previous state after the test is run.
D.
Start the Cloud Spanner emulator locally. Load the required data. Shut down the emulator after the test is run.
Answers
D.
Start the Cloud Spanner emulator locally. Load the required data. Shut down the emulator after the test is run.
Suggested answer: B

Explanation:

Since the testing needs to accommodate scenarios where multiple commits are made simultaneously, and hence multiple tests might run concurrently, the testing environment should support isolated and independent testing instances to avoid interference among tests. Given these requirements, using the Cloud Spanner emulator would not be the best choice for this scenario. The emulator is primarily suited for local development, unit, and integration testing, and is not built for production-scale performance testing. It may not accurately replicate performance characteristics at scale or under load, which are crucial aspects in this case.

asked 18/09/2024
Mohit Mohit
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first