exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 46 discussion

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?

  • A. Use AWS CodeBuild to test the application. Use bash scripts invoked by AWS CodeDeploy's appspec.yml file to restart services, and deregister and register instances with the ALB. Use the appspec.yml file to update file permissions without a custom script.
  • B. Use AWS CodePipeline to move the application from the AWS CodeCommit repository to AWS CodeDeploy. Use CodeDeploy's deployment group to test the application, unregister and re-register instances with the ALand restart services. Use the appspec.yml file to update file permissions without a custom script.
  • C. Use AWS CodePipeline to move the application source code from the AWS CodeCommit repository to AWS CodeDeploy. Use CodeDeploy to test the application. Use CodeDeploy's appspec.yml file to restart services and update permissions without a custom script. Use AWS CodeBuild to unregister and re-register instances with the ALB.
  • D. Use AWS CodePipeline to trigger AWS CodeBuild to test the application. Use bash scripts invoked by AWS CodeDeploy's appspec.yml file to restart services. Unregister and re-register the instances in the AWS CodeDeploy deployment group with the ALB. Update the appspec.yml file to update file permissions without a custom script.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
madperro
Highly Voted 1 year, 10 months ago
Selected Answer: D
D is better than A. You need to include CodePipeline to move execution from CodeBuild to CodeDeploy.
upvoted 9 times
...
haazybanj
Highly Voted 2 years ago
Selected Answer: D
Option D is also a viable solution. 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
upvoted 5 times
...
GripZA
Most Recent 2 weeks, 3 days ago
Selected Answer: D
why not: a - need some way orchestrating source - build - deploy steps. b - says codedeploys deployment group does testing — not true. Testing should happen in codebuild c - suggests using codebuild to unregister/reregister instances — not the right service for that.that’s something codedeploy handles natively via its ALB integration
upvoted 1 times
...
rk0509
8 months, 3 weeks ago
Selected Answer: B
Answer is B. company want to replace its bash deployment scripts so option D is not suitable
upvoted 1 times
SabeloM
4 months, 3 weeks ago
Options D is suitable since it includes "Update the appspec.yml file to update file permissions without a custom script".
upvoted 1 times
...
...
rk0509
8 months, 3 weeks ago
Answer is B. company want to replace its bash deployment scripts so option D is not suitable
upvoted 2 times
...
jamesf
9 months, 2 weeks ago
Selected Answer: D
Should be D CodePipeline - execute from CodeBuild to CodeDeploy CodeBuild - test the application CodeDeploy - deploy app, restart services, Unregister and re-register instance Not Option A: not using CodePipeline Not Option BC: using CodeCommit repo, not relevant with question.
upvoted 3 times
...
zijo
1 year, 1 month ago
codebuild to test not codedeploy D is correct
upvoted 1 times
...
thanhnv142
1 year, 3 months ago
D: is correct: need codepipeline for a seamless deployment. Need codebuild to test and codedeploy to deploy the app on EC2 A: no mention of codepipeline B and C both mention AWS CodeCommit repository, which is irrelevant
upvoted 4 times
thanhnv142
1 year, 2 months ago
A: <deregister and register instances with the ALB>: we need to unregister, not deregister it
upvoted 1 times
...
thanhnv142
1 year, 3 months ago
B and C: The question doesnt mention the need for a source code repository. B: move the application from the AWS CodeCommit repository to AWS CodeDeploy -> Cannot do this, codecommit does not store apps, only code C: move the application source code from the AWS CodeCommit repository to AWS CodeDeploy -> cannot do this, code deploy does not store code
upvoted 1 times
...
...
tartarus23
1 year, 10 months ago
Selected Answer: A
Explanation: AWS CodeBuild is a fully managed build service that compiles source code, runs tests, and produces software packages that are ready to deploy, which is perfect for unit testing the application. AWS CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances. You can specify scripts to be run at set points during a deployment lifecycle, such as deregistering and registering instances with a load balancer, stopping and starting services, or changing file permissions, by defining them in the appspec.yml file.
upvoted 2 times
c3518fc
1 year ago
but it says to deregister
upvoted 1 times
...
...
bakamon
1 year, 10 months ago
Selected Answer: D
D is the correct bubamon
upvoted 2 times
...
Akaza
1 year, 11 months ago
D for sure
upvoted 1 times
...
alce2020
2 years ago
Selected Answer: D
D it is
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago