AWS OpsWorks Deployment Strategies
NOTE: Only advanced topics are allowed for the DevOps Professional Exam
All at once Deployment
OpsWorks Stacks doesn’t automatically deploy updated code for online instances. This must be done manually
The Deploy command (for applications) and the Update Custom Cookbooks command, (for cookbooks), allow you to deploy each update simultaneously.
The approach is quick and easy, but it can lead to downtime in case of error
OpsWorks allows you to rollback and restore an app version previously deployed
AWS OpsWorks Stacks defaults to storing the five most recent deployments. This allows you to roll back up four versions of Rolling Deployment
Rolling deployment is a method of updating an application on multiple instances of the stack’s online applications server instances in multiple phases.
Each phase can include a subset online instances that can be updated and verified as successful before moving on to the next phase.
If there are any issues, the instances that run the older app version can continue to handle traffic until they are resolved.
Steps to roll deployment
To stop it serving traffic, the instance can be removed from the load balancer
Verify that the app is functioning properly
Install the update on the remaining instancesBlue Green Deployment
Blue Green deployment can be accomplished using separate stacks for each phase in the application’s lifecycle.
Different stacks can be referred to as environments, such as development, staging and production. The blue environment hosts the current application.
The staging stack is Green Environment, which hosts the new application.
Stacks are available for testing and development, but they are not publically accessible. Once the stack is ready, traffic can be switched.
Steps to deploy Blue Green with OpsWorks Stacks stacks in conjunction with Route 53. A pool of ELB loadbalers is also used.
Once all instances of green stack have passed the ELB health test, Route 53 weights can be modified to gradually change the route traffic from Blue to Green stack.
Once the Green stack is set up, it can handle all traffic.
Reattach the load balancer to the pool’s application server layer of the blue stack.
Blue stack can be retained for a while so that any issues can be rolled back. This is done by inverting the procedure to redirect incoming traffic back towards the blue stackOpsWorks Green Deployment AW Certification Exam Practice Questions
Questions are collected via the Internet. The answers are marked according to my knowledge and understanding (which may differ from yours).
AWS services are constantly updated and the answers and questions may be out of date soon. So make sure to research accordingly.
AWS exam questions cannot be updated to keep up with AWS updates. This means that even if the underlying feature has been changed, the question may not be updated.
You are open to further discussion, feedback, and correction. Your company has a complex customer relationship management system. It consists of approximately 10 software components that are all backed up by the same Amazon Relational Database. To make it easier to manage and deploy the application, you adopted AWS OpsWorks and created an AWS OpsWorks stack that included layers for each component. A policy governing internal security requires that all instances run on the latest Amazon Linux AMI. Instances must be replaced within one calendar month of the release of the latest Amazon Linux AMI. AMI replacements must be performed without causing application downtime or capacity issues. You decide to create a script that will be executed as soon as an Amazon Linux AMI is available. Which solutions meet your security policy? Select 2 answers. Assign a custom recipe for each layer. This will replace the underlying AMI. Use AWS OpsW

AWS OpsWorks Deployment Strategies Certification