exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 61 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 61
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

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 ALB, and restart services. Use the appspec.yml file to update the 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
LB
Highly Voted 3 years, 7 months ago
D is the correct answer. CodeBuild to test the appliction.
upvoted 15 times
happydaze
3 years, 6 months ago
You can test with codedeploy: https://aws.amazon.com/blogs/devops/how-to-test-and-debug-aws-codedeploy-locally-before-you-ship-your-code/#:~:text=You%20can%20test%20application%20code,local%20server%20or%20EC2%20instance.
upvoted 1 times
RightAnswers
3 years, 2 months ago
You can test application **code packages** (NOT application) on any machine that has the CodeDeploy agent installed before you deploy it through the service. Likewise, to debug locally, you just need to install the CodeDeploy agent on any machine, including your local server or EC2 instance. Where as CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. The correct answer is D
upvoted 3 times
...
...
...
Goozian
Highly Voted 2 years, 7 months ago
why not A ?
upvoted 5 times
...
jyrajan69
Most Recent 1 year, 1 month ago
Requirement is to replace the current bash script. Answer A and D are out because the solution uses the script. Between B and C, the answer is B
upvoted 1 times
...
DucSiu
1 year, 5 months ago
My answer is D
upvoted 1 times
...
bugincloud
1 year, 7 months ago
Selected Answer: D
you should use codebuild for testing
upvoted 1 times
...
availgopi
1 year, 9 months ago
which is correct, Correct answer or most votted.. bit confusing
upvoted 1 times
...
daheck
2 years ago
Selected Answer: B
Since the company wants to use AWS development tools to replace its current bash deployment scripts I don't see any point to choose D.
upvoted 1 times
daheck
2 years ago
I think it is better to assume that CodeDeploy agent is installed on EC2 it order to test the code with CodeDeploy than to go against the main requirement for replacement its current bash scripts, so that's why I marked B as an answer.
upvoted 1 times
...
...
krr_aws
2 years, 1 month ago
D is the most appropriate. However, the company wants to replace bash deployment scripts. D suggests using them. hence B serves the company's requirements.
upvoted 1 times
...
DevOpsJagadGuru
2 years, 2 months ago
Selected Answer: B
Option B is the most appropriate solution because it uses AWS CodePipeline to move the application from the AWS CodeCommit repository to AWS CodeDeploy, which can test the application, unregister and re-register instances with the ALB, and restart services. The appspec.yml file can be used to update the permissions without a custom script.
upvoted 2 times
...
Bulti
2 years, 3 months ago
D is correct.
upvoted 1 times
...
Chinta
2 years, 4 months ago
d is correct
upvoted 2 times
...
RightAnswers
2 years, 7 months ago
Selected Answer: D
Though Codedeploy can be used for unit testing applications, it requires Codedeploy agents installed on the machine (https://aws.amazon.com/blogs/devops/how-to-test-and-debug-aws-codedeploy-locally-before-you-ship-your-code/#:~:text=You%20can%20test%20application%20code,local%20server%20or%20EC2%20instance). However, the correct approach is to use Codebuild for unit testing. A: Incorrect: There is no deployment pipeline. Uses only Codebuild B and C: Incorrect: Codebuild is used for testing - not Codedeploy D: Correct. Has Codepipeline, Codebuild for unit testing and Codedeploy
upvoted 3 times
...
blueorca
3 years, 2 months ago
Selected Answer: D
D, use CodeBuild for unit tests, CodeDeploy to run scripts
upvoted 2 times
...
nsei
3 years, 5 months ago
D is correct. Unit testing should be done with CodeBuild
upvoted 3 times
...
D2
3 years, 5 months ago
D is correct
upvoted 2 times
...
happydaze
3 years, 5 months ago
B is correct, you can test with codedeploy as long as the agent is installed..
upvoted 5 times
GreatFunana
3 years, 4 months ago
If the question doesn't say the agent is installed, you assume it is not.
upvoted 3 times
Piccaso
2 years, 2 months ago
Gee ......
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