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

A company runs an application on Amazon EC2 instances. The company uses a series of AWS CloudFormation stacks to define the application resources. A developer performs updates by building and testing the application on a laptop and then uploading the build output and CloudFormation stack templates to Amazon S3. The developer's peers review the changes before the developer performs the CloudFormation stack update and installs a new version of the application onto the EC2 instances.
The deployment process is prone to errors and is time-consuming when the developer updates each EC2 instance with the new application. The company wants to automate as much of the application deployment process as possible while retaining a final manual approval step before the modification of the application or resources.
The company already has moved the source code for the application and the CloudFormation templates to AWS CodeCommit. The company also has created an AWS CodeBuild project to build and test the application.
Which combination of steps will meet the company’s requirements? (Choose two.)

  • A. Create an application group and a deployment group in AWS CodeDeploy. Install the CodeDeploy agent on the EC2 instances.
  • B. Create an application revision and a deployment group in AWS CodeDeploy. Create an environment in CodeDeploy. Register the EC2 instances to the CodeDeploy environment.
  • C. Use AWS CodePipeline to invoke the CodeBuild job, run the CloudFormation update, and pause for a manual approval step. After approval, start the AWS CodeDeploy deployment.
  • D. Use AWS CodePipeline to invoke the CodeBuild job, create CloudFormation change sets for each of the application stacks, and pause for a manual approval step. After approval, run the CloudFormation change sets and start the AWS CodeDeploy deployment.
  • E. Use AWS CodePipeline to invoke the CodeBuild job, create CloudFormation change sets for each of the application stacks, and pause for a manual approval step. After approval, start the AWS CodeDeploy deployment.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

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
tartarus23
Highly Voted 1 year, 10 months ago
Selected Answer: AD
(A) This step sets up the environment to use AWS CodeDeploy for application deployments. CodeDeploy uses an agent installed on the EC2 instances to perform the deployment tasks. (D) This option uses CodePipeline to orchestrate the process. CodeBuild is used to build and test the application. CloudFormation is used to prepare the infrastructure updates as change sets. A manual approval step is inserted before applying the changes. After approval, the CloudFormation change sets are applied, and then CodeDeploy is invoked to deploy the new version of the application to the EC2 instances.
upvoted 15 times
...
ky11223344
Highly Voted 1 year, 8 months ago
Selected Answer: BD
There is no application group in CodeDeploy
upvoted 5 times
fanq10
1 year, 8 months ago
- EC2 needs to install the CodeDeploy agent. - CodeDeploy does not need to register EC2 instances, instead of it uses tag filter. Therefore, B is incorrect, A is correct. Final answer: AD
upvoted 8 times
Karamen
1 year, 5 months ago
@fanq10 you are right. CodeDeploy doesn't require registering EC2 instances, it fillters by tag
upvoted 3 times
...
...
...
Srikantha
Most Recent 2 weeks, 6 days ago
Selected Answer: CD
Both options automate the application deployment process, trigger manual approval, and ensure controlled updates and deployments to EC2 instances using CodePipeline, CodeBuild, CloudFormation, and CodeDeploy
upvoted 1 times
...
jamesf
8 months, 3 weeks ago
Selected Answer: AD
AD A - To run CodeDeploy on EC2, need agent. D - The approval step will trigger both CloudFormation and CodeDeploy B incorrect as no mention of installing agent on EC2 and CodeDeploy doesn't require registering EC2 instances, it filters by tag. C incorrect as The approval step does not affect CloudFormation updates, which is not accepted E incorrect as The approval step only allows CodeDeploy but no have CloudFormation updates
upvoted 2 times
...
alex_heavy
9 months, 1 week ago
Selected Answer: BD
B: https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent.html You can configure automatic installation and updates of the CodeDeploy agent when you create your deployment group in the console. https://docs.aws.amazon.com/codedeploy/latest/userguide/applications.html After you configure instances, but before you can deploy a revision, you must create an application in CodeDeploy. An application is simply a name or container used by CodeDeploy to ensure the correct revision, deployment configuration, and deployment group are referenced during a deployment. https://docs.aws.amazon.com/codedeploy/latest/userguide/application-revisions.html In CodeDeploy, a revision contains a version of the source files CodeDeploy will deploy to your instances or scripts CodeDeploy will run on your instances. https://aws.amazon.com/ru/blogs/devops/using-codedeploy-environment-variables/
upvoted 2 times
...
xdkonorek2
9 months, 3 weeks ago
Selected Answer: AD
for those who vote B: what is creating environment in code deploy? I think application group means application and registering instances with code deploy is basically creating deployment group, and instance is not registered manually it has to be tagged
upvoted 1 times
...
seetpt
11 months, 3 weeks ago
Selected Answer: AD
AD is ok
upvoted 1 times
...
4555894
1 year, 1 month ago
Selected Answer: AD
A- https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent.html D - This option correctly utilizes AWS CodePipeline to invoke the CodeBuild job and create CloudFormationchange sets. It adds a manual approval step before executing the change sets and starting the AWSCodeDeploy deployment. This ensures that the deployment process is automated while retaining the final manual approval step.
upvoted 3 times
...
Shasha1
1 year, 1 month ago
AD Needs to install code deploy agent and give necessary permission for access S3 bucket where it will be stored the application revision. then EC2 instance will download the application revision from the S3 bucket. Therefore Answer A is correct. if we use System manager only the EC2 instance can be installed and updated automatically.
upvoted 1 times
...
thanhnv142
1 year, 2 months ago
A and D are correct: A - To run codedploy on EC2, need agent. D - The approval step will trigger both cloudformation and codedeploy B: no mention of installing agent on EC2 C: The approval step doesnot affect CloudFormation updates, which is not accepted E: The approval step only allows codedeploy but not CloudFormation updates
upvoted 2 times
...
Jaguaroooo
1 year, 3 months ago
AD is the correct answer, you need the CD agent in order to use code deploy. And D is correct also because you can do your testing during codebuild and finally do a change set review and then approval.
upvoted 1 times
...
2pk
1 year, 5 months ago
Selected Answer: BD
Code deploy agent installation can be skipped when you setting up Code Deploy group .. e.g. You can configure automatic installation and updates of the CodeDeploy agent when you create your deployment group in the console. Why A is wrong - cause there is no application group only deployment group and when setting up deployment group you can setup agent installation automatically. https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-ec2-create.html#:~:text=Note-,You%20can%20configure%20automatic%20installation%20and%20updates%20of%20the%20CodeDeploy%20agent%20when%20you%20create%20your%20deployment%20group%20in%20the%20console.,-Did%20this%20page
upvoted 4 times
Jaguaroooo
1 year, 3 months ago
i agree with you on the explanation that there are no application group. but how can you use code deploy to push code to the EC2's if they have no agents on them?
upvoted 1 times
...
...
madperro
1 year, 10 months ago
Selected Answer: AD
AD is right.
upvoted 2 times
...
noriknic
1 year, 10 months ago
The CodeDeploy agent must be installed on your Amazon EC2 instance before using it in CodeDeploy deployments
upvoted 1 times
...
Flyingdagger
1 year, 10 months ago
There is nothing like application group in code deploy answer is BD
upvoted 2 times
...
ele
1 year, 11 months ago
Selected Answer: AD
AD need codedeploy agent, and review CFN changes set, before run update
upvoted 2 times
...
PhuocT
1 year, 11 months ago
Selected Answer: AD
A and D are correct
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