Google Cloud Professional Cloud DevOps Engineer — Question 9
You deploy a new release of an internal application during a weekend maintenance window when there is minimal user tragic. After the window ends, you learn that one of the new features isn't working as expected in the production environment. After an extended outage, you roll back the new release and deploy a fix.
You want to modify your release process to reduce the mean time to recovery so you can avoid extended outages in the future. What should you do? (Choose two.)
Answer options
- A. Before merging new code, require 2 different peers to review the code changes.
- B. Adopt the blue/green deployment strategy when releasing new code via a CD server.
- C. Integrate a code linting tool to validate coding standards before any code is accepted into the repository.
- D. Require developers to run automated integration tests on their local development environments before release.
- E. Configure a CI server. Add a suite of unit tests to your code and have your CI server run them on commit and verify any changes.
Correct answer: B, E
Explanation
Option B is correct because the blue/green deployment strategy allows for safer releases by having two environments, which can reduce downtime. Option E is also correct since running unit tests on a CI server ensures that code changes are validated, catching issues earlier in the development process. Options A, C, and D, while beneficial for overall code quality, do not directly target reducing the mean time to recovery in the context of deployment failures.