nerdexam
Amazon

DOP-C02 · Question #10

A company wants to use AWS development tools to replace its current bash deployment scripts. The company currently deploys a LAMP application to a group of Amazon EC2 instances behind an Application…

The correct answer is D. Use AWS CodePipeline to trigger AWS CodeBuild to test the application. Use bash scripts. It suggests using AWS CodePipeline to trigger AWS CodeBuild to test the application, and then use bash scripts invoked by AWS CodeDeploy's appspec.yml file to restart services, unregister and re-register instances with the ALB, and update file permissions. This approach also…

Submitted by devops_kid· Mar 6, 2026Deployment and Migration

Question

A company wants to use AWS development tools to replace its current bash deployment scripts. The company currently deploys a LAMP application to a group of Amazon EC2 instances behind an Application Load Balancer (ALB). During the deployments, the company unit tests the committed application, stops and starts services, unregisters and re-registers instances with the load balancer, and updates file permissions. The company wants to maintain the same deployment functionality through the shift to using AWS services. Which solution will meet these requirements?

Options

  • AUse AWS CodeBuild to test the application. Use bash scripts invoked by AWS CodeDeploy's
  • BUse AWS CodePipeline to move the application from the AWS CodeCommit repository to AWS
  • CUse AWS CodePipeline to move the application source code from the AWS CodeCommit
  • DUse AWS CodePipeline to trigger AWS CodeBuild to test the application. Use bash scripts

How the community answered

(50 responses)
  • A
    4% (2)
  • B
    6% (3)
  • C
    14% (7)
  • D
    76% (38)

Explanation

It suggests using AWS CodePipeline to trigger AWS CodeBuild to test the application, and then use bash scripts invoked by AWS CodeDeploy's appspec.yml file to restart services, unregister and re-register instances with the ALB, and update file permissions. This approach also covers all the deployment functionality required by the company.

Topics

#CI/CD#CodePipeline#CodeBuild#CodeDeploy#Automated deployment

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice