A development team manually builds an artifact locally and then places it in an Amazon S3 bucket. The application has a local cache that must be cleared when a deployment occurs. The team executes a command to do this, downloads the artifact from Amazon S3, and unzips the artifact to complete the deployment. A DevOps team wants to migrate to a CI/CD process and build in checks to stop and roll back the deployment when a failure occurs. This requires the team to track the progression of the deployment. Which combination of actions will accomplish this? (Choose three.)
A) Allow developers to check the code into a code repository. Using Amazon CloudWatch Events, on every pull into master, trigger an AWS Lambda function to build the artifact and store it in Amazon S3.
B) Create a custom script to clear the cache. Specify the script in the BeforeInstall lifecycle hook in the AppSpec file.
C) Create user data for each Amazon EC2 instance that contains the clear cache script. Once deployed, test the application. If it is not successful, deploy it again.
D) Set up AWS CodePipeline to deploy the application. Allow developers to check the code into a code repository as a source for the pipeline.
E) Use AWS CodeBuild to build the artifact and place it in Amazon S3. Use AWS CodeDeploy to deploy the artifact to Amazon EC2 instances.
F) Use AWS Systems Manager to fetch the artifact from Amazon S3 and deploy it to all the instances.
Correct Answer:
Verified
Q336: For AWS CloudFormation, which stack state refuses
Q337: You are experiencing performance issues writing to
Q338: You need to know when you spend
Q339: Which of these is not a CloudFormation
Q340: What is the scope of an EBS
Q342: A company runs an application with an
Q343: A DevOps Engineer needs to back up
Q344: A Development team wants to deploy an
Q345: A retail company has adopted AWS OpsWorks
Q346: A DevOps Engineer is researching the least-expensive
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents