Question-20: End-to-end testing is a methodology used in the software development lifecycle (SDLC) to test the functionality and performance of an application under product-like circumstances and data to replicate live settings. The goal is to simulate what a real user scenario looks like from start to finish. QuickTechie Inc. has end-to-end tests covering 100% of their endpoints. They want to ensure that the move to the cloud does not introduce any new bugs. Which additional testing methods should the developers employ to prevent an outage?
A. They should turn on Google Stackdriver Debugger on the application code to find errors in the code.
B. On their cloud staging environment, they should add more unit tests and load tests at the production scale.
C. They should run the end-to-end tests in the cloud staging environment to see if the code works as planned.
D. They should add canary tests so that developers can see how much the new release affects latency.
Correct Answer
Get All 340 Questions and Answer for Google Professional Cloud Architect
: 3 Explanation: Running at production-scale would not only show what breaks but also when it breaks. Option-3 is a good answer except that they're asking for an additional testing method. Since they're already testing endpoints specifically, you'd literally be running the exact same test after migration. That said, for B, I'm still at a loss of why we'd need to do additional unit testing--best explanation is that some of the applications will have needed to be retooled for PaaS offerings if they're doing more than a lift-and-shift, thereby actually changing the underlying code; but the production-level load testing is like the most GCP thing you can do here. Question mention that end-to-end tests covering 100% of their endpoints, ensure that the move to the cloud does not introduce any new bugs, and additional testing methods should the developers employ to prevent an outage A - Not Correct. Developer can debug the problem, but cannot prevent the outage. Option-2 - Correct. Developers are responsible for writing unit tests. They already have end-to-end tests for endpoints but nothing mentioned about the unit tests. Cloud will auto-scale but you need to define your auto-scaling configuration (desired count, max count etc) and production scale load test will help you to configure the auto-scaling policies Option-3 - Not Correct. They already have end-to-end test. Running it on staging environment will not prevent an outage Option-4 - Not Correct. Answers says an impact the new release causes to latency but question ask for preventing. As we want to test the code in the cloud for new bugs. (from question: They want to ensure that the move to the cloud does not introduce any new bugs.) Why not B? - Unit tests are used to check individual codes are working fine or not and scaling not properly impact Scalability not reliability. Why not D? can be the closest one, but answer is checking for latency. Again increased latency does not impact reliability or availability. (in question they are looking to prevent the outage).