Cloud and Container Basics

Two environments with the same configuration as production are prepared; the current version keeps running in one while the new version is installed and checked in the other, and then the load balancer is switched over to it all at once. If there is a problem, switching back quickly returns to the old version. Which of the following is this release method?

  1. ABlue-green deployment
  2. BCanary release
  3. CRolling update
Show answer and explanation

Answer: A. Blue-green deployment

Blue-green deployment prepares two environments (blue and green) and switches user traffic to the new environment all at once. The old environment is left as it is for a while, so if a problem occurs, simply switching back restores the old version. On the other hand, resources for two environments are needed around the switch, and database schema changes must be made in a form that both the old and new versions can use. A canary release exposes the new version to only some of the requests, and a rolling update replaces servers a few at a time.

  • A. Correct. Two environments are prepared, and traffic is switched all at once.
  • B. A canary release first sends only some requests to the new version and increases the share while watching how it behaves.
  • C. A rolling update replaces the servers or Pods in one environment with the new version a few at a time.
Practice this topic Back to topic

Books on Cloud and Container Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Cloud and Container Basics questions

  1. A service that receives 12,000 requests per hour performs a canary release of a new version, sending only 5% of the requests to it. The new version has a bug that makes 3% of the requests it receives fail; it is noticed after one hour, and all requests are returned to the old version. Which of the following is the number of requests that failed because of the bug during that hour?
  2. A container image built by a CI/CD pipeline was tested in the staging environment and passed. Which of the following is the most appropriate way to release this image to production?
  3. As shown above, the database connection target is not written into the image but passed as an environment variable when the container starts. Which of the following is the most appropriate main advantage of this design?
  4. In a system in which several services work together, you want to find out which services a single user request passed through, in what order, and how much time it spent in each. Among the data used for observability, which of the following is the most suitable?
  5. Among the Linux kernel features that make containers possible, which of the following correctly pairs namespaces and cgroups (control groups) with their roles?