exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 269 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 269
Topic #: 1
[All Professional Cloud Developer Questions]

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.
  • 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.
  • D. Start the Cloud Spanner emulator locally. Load the required data. Shut down the emulator after the test is run.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
wanrltw
10 months, 2 weeks ago
Selected Answer: B
I'd go with B. Sure it may be costly but this option is far more adequate than A or C. Not D because performance and scalability for the Cloud Spanner emulator is not comparable to the real service: https://cloud.google.com/spanner/docs/emulator#limitations
upvoted 2 times
...
plutonians123
11 months ago
Selected Answer: B
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.
upvoted 2 times
...
Kadhem
11 months, 1 week ago
Selected Answer: B
B is the right choice in my opinion
upvoted 1 times
cloud_maraud
11 months, 1 week ago
in case of multiple tests running concurrently, won't this choice be time and resource consuming?
upvoted 1 times
...
...
diegodoal
11 months, 3 weeks ago
Selected Answer: 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
upvoted 3 times
Kadhem
11 months, 1 week ago
the question say "You want to prevent performance issues by running an automated performance test with Cloud Build for each commit made". Where is the automated test is respone D ?
upvoted 1 times
...
...
vspringe
11 months, 3 weeks ago
Selected Answer: 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.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago