nerdexam
Amazon

DOP-C02 · Question #143

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 runs a…

The correct answer is B. Create a custom script to clear the cache. Specify the script in the BeforeInstall lifecycle hook in the D. Set up AWS CodePipeline to deploy the application. Allow developers to check the code into a code E. Use AWS CodeBuild to build the artifact and place it in Amazon S3. Use AWS CodeDeploy to deploy. (B) This would help ensure that the local cache is cleared before the new version of the application is installed. AppSpec (Application Specification) file is a unique file to AWS CodeDeploy. It defines the deployment actions you want AWS CodeDeploy to execute. (D) This would…

Submitted by joshua94· Mar 6, 2026SDLC Automation

Question

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 runs 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.)

Options

  • AAllow developers to check the code into a code repository. Using Amazon EventBridge, on every pull
  • BCreate a custom script to clear the cache. Specify the script in the BeforeInstall lifecycle hook in the
  • CCreate user data for each Amazon EC2 instance that contains the clear cache script. Once deployed,
  • DSet up AWS CodePipeline to deploy the application. Allow developers to check the code into a code
  • EUse AWS CodeBuild to build the artifact and place it in Amazon S3. Use AWS CodeDeploy to deploy
  • FUse AWS Systems Manager to fetch the artifact from Amazon S3 and deploy it to all the instances.

How the community answered

(25 responses)
  • A
    28% (7)
  • B
    56% (14)
  • C
    12% (3)
  • F
    4% (1)

Explanation

(B) This would help ensure that the local cache is cleared before the new version of the application is installed. AppSpec (Application Specification) file is a unique file to AWS CodeDeploy. It defines the deployment actions you want AWS CodeDeploy to execute. (D) This would allow you to automate the build and deployment processes. AWS CodePipeline is a fully managed continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates. (E) This would allow you to automate the build process and ensure that the application is built in a consistent environment. AWS CodeBuild is a fully managed build service that compiles source code, runs tests, and produces software packages that are ready to deploy. AWS CodeDeploy automates software deployments to a variety of compute services including Amazon EC2, AWS Fargate, AWS Lambda, and your on-premises servers.

Topics

#CI/CD#AWS CodePipeline#AWS CodeBuild#AWS CodeDeploy

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice