Topic 1 Question 269
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?
Create a new project with a random name for every build. Load the required data. Delete the project after the test is run.
Create a new Cloud Spanner instance for every build. Load the required data. Delete the Cloud Spanner instance after the test is run.
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.
Start the Cloud Spanner emulator locally. Load the required data. Shut down the emulator after the test is run.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: B
Isolation of Test Environments: Creating a new Cloud Spanner instance for each build ensures complete isolation of test environments. This is crucial for accurate performance testing, as it avoids any interference from other concurrent test runs.
Consistency and Accuracy of Data: By loading the required data into each new instance, you ensure that every test starts with a consistent dataset, which is essential for reliable and repeatable performance testing.
Resource Management: Automatically deleting the Cloud Spanner instance after each test helps manage resources and costs effectively. It ensures that you are only using and paying for resources during the duration of the test.
Parallel Testing: This approach supports concurrent testing for multiple commits, as each test run has its own dedicated Cloud Spanner instance.
👍 2vspringe2023/11/13 - 正解だと思う選択肢: D
D. https://cloud.google.com/sdk/gcloud/reference/beta/emulators/spanner Use an emulator if possible when testing. B. It could work, but in real world, spanning an cluster of cloud spanner takes a lot of time, and also money
👍 2diegodoal2023/11/15 - 正解だと思う選択肢: B
B is the right choice in my opinion
👍 1Kadhem2023/11/26
シャッフルモード