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 166 discussion

A company deploys a web application on Amazon EC2 instances that are behind an Application Load Balancer (ALB). The company stores the application code in an AWS CodeCommit repository. When code is merged to the main branch, an AWS Lambda function invokes an AWS CodeBuild project. The CodeBuild project packages the code, stores the packaged code in AWS CodeArtifact, and invokes AWS Systems Manager Run Command to deploy the packaged code to the EC2 instances.

Previous deployments have resulted in defects, EC2 instances that are not running the latest version of the packaged code, and inconsistencies between instances.

Which combination of actions should a DevOps engineer take to implement a more reliable deployment solution? (Choose two.)

  • A. Create a pipeline in AWS CodePipeline that uses the CodeCommit repository as a source provider. Configure pipeline stages that run the CodeBuild project in parallel to build and test the application. In the pipeline, pass the CodeBuild project output artifact to an AWS CodeDeploy action.
  • B. Create a pipeline in AWS CodePipeline that uses the CodeCommit repository as a source provider. Create separate pipeline stages that run a CodeBuild project to build and then test the application. In the pipeline, pass the CodeBuild project output artifact to an AWS CodeDeploy action.
  • C. Create an AWS CodeDeploy application and a deployment group to deploy the packaged code to the EC2 instances. Configure the ALB for the deployment group.
  • D. Create individual Lambda functions that use AWS CodeDeploy instead of Systems Manager to run build, test, and deploy actions.
  • E. Create an Amazon S3 bucket. Modify the CodeBuild project to store the packages in the S3 bucket instead of in CodeArtifact. Use deploy actions in CodeDeploy to deploy the artifact to the EC2 instances.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

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
jamesf
9 months, 1 week ago
Selected Answer: BC
BC CodePipeline, CodeCommit, CodeDeploy
upvoted 1 times
...
dkp
1 year ago
Selected Answer: BC
B (Sequential Stages) if: Build and test stages have dependencies (tests rely on build output). You need manual approvals or gates between stages for control.
upvoted 2 times
...
WhyIronMan
1 year, 1 month ago
Selected Answer: BC
B,C A is wrong because doesn't make sense to do it in parallel since it'll cause more problems. D and E are dumb
upvoted 1 times
...
DanShone
1 year, 1 month ago
Selected Answer: BC
B and C CodePipeline and CodeDeploy
upvoted 1 times
...
thanhnv142
1 year, 2 months ago
Selected Answer: BC
B and C are correct: We need to use codedeploy to build instead of using codebuild A: <run the CodeBuild project in parallel> - this is in correct. Should run the pipiline respectedly D: Should not use lambda E: Codeartifact is good, no need to change to S3
upvoted 4 times
...
denccc
1 year, 3 months ago
B & C BeCause
upvoted 1 times
...
yuliaqwerty
1 year, 3 months ago
Selected Answer: BC
Answer B and C
upvoted 1 times
...
kabary
1 year, 4 months ago
Selected Answer: BC
B & C for sure.
upvoted 1 times
...
d262e67
1 year, 4 months ago
Selected Answer: BC
B. because in this case sequential approach is more reliable and ensures consistency. C. Because in the only possible next step in the process.
upvoted 1 times
...
PrasannaBalaji
1 year, 4 months ago
Selected Answer: BC
B and C
upvoted 1 times
...
csG13
1 year, 4 months ago
Selected Answer: BC
Use Codepipeline to orchestrate the build and codedeploy to deploy it on EC2.
upvoted 1 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