New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DOP-C02 Exam - Topic 8 Question 34 Discussion

Actual exam question for Amazon's DOP-C02 exam
Question #: 34
Topic #: 8
[All DOP-C02 Questions]

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.)

Show Suggested Answer Hide Answer
Suggested Answer: D

Step 2: Using an SQS Dead-Letter Queue (DLQ) Configuring a dead-letter queue (DLQ) for SQS will ensure that messages with invalid data, or those that cannot be processed successfully, are moved to the DLQ. This prevents such messages from clogging the queue and allows the system to focus on processing valid messages.

Action: Configure an SQS dead-letter queue for the main queue.

Why: A DLQ helps isolate problematic messages, preventing them from continuously reappearing in the queue and causing processing delays for valid messages.

Step 3: Maintaining the Lambda Function's Batch Size Keeping the current batch size allows the Lambda function to continue processing multiple messages at once. By addressing the failed items separately, there's no need to increase or reduce the batch size.

Action: Maintain the Lambda function's current batch size.

Why: Changing the batch size is unnecessary if the invalid messages are properly handled by reporting failed items and using a DLQ.

This corresponds to Option D: Keep the Lambda function's batch size the same. Configure the Lambda function to report failed batch items. Configure an SQS dead-letter queue.

Contribute your Thoughts:

0/2000 characters
Laticia
3 months ago
I’m not sure about E, seems redundant with D.
upvoted 0 times
...
Ira
3 months ago
Totally agree, CodeDeploy is essential here!
upvoted 0 times
...
Tess
3 months ago
Wait, why do we need manual approval? Isn't that counterproductive?
upvoted 0 times
...
Eleonore
4 months ago
I think D and E are both solid choices.
upvoted 0 times
...
Markus
4 months ago
Sounds like CodePipeline is the way to go for automation!
upvoted 0 times
...
Clay
4 months ago
I feel like option D could work since it involves CloudFormation change sets and a manual approval step, but I’m not entirely sure if it’s the best choice compared to E.
upvoted 0 times
...
Glenna
4 months ago
I practiced a similar question where we had to set up CodeDeploy, but I can't recall if we needed to create an environment in CodeDeploy or just a deployment group.
upvoted 0 times
...
Von
4 months ago
I think option C sounds familiar because it mentions a manual approval step, which is what the company wants. But I’m a bit confused about the exact sequence of actions.
upvoted 0 times
...
Herman
5 months ago
I remember we discussed using AWS CodePipeline to automate deployments, but I'm not sure if it should be paired with CodeDeploy or just CloudFormation updates.
upvoted 0 times
...
Kristel
5 months ago
Yeah, option D seems the most comprehensive and aligned with the requirements. The combination of CodePipeline, CloudFormation, and CodeDeploy should give us the automation and control we need.
upvoted 0 times
...
Devon
5 months ago
I think options C and D both sound like they could work. The manual approval step is important, and using CodePipeline to orchestrate the deployment process seems like a good approach.
upvoted 0 times
...
Annelle
5 months ago
Okay, let's break this down step-by-step. We need to automate the deployment process while retaining a manual approval step. The company has already set up CodeCommit, CodeBuild, and CodeDeploy, so we can leverage those services.
upvoted 0 times
...
Carman
5 months ago
This question seems straightforward, but I want to make sure I understand the requirements correctly before attempting to answer.
upvoted 0 times
...
Rosendo
5 months ago
I'm leaning towards option D. Creating CloudFormation change sets and pausing for manual approval before running them seems like a safer way to update the application and resources.
upvoted 0 times
...
Reta
5 months ago
Hmm, option B about liability seems sketchy. I'm not sure health information networks would automatically increase legal risk.
upvoted 0 times
...
Arlene
9 months ago
Bring in the CodeDeploy agent! It's like sending in the robot vacuum to clean up after all those manual deployments. Much more efficient.
upvoted 0 times
Ammie
8 months ago
Yes, using the CodeDeploy agent will definitely help automate the deployment process and make it more efficient.
upvoted 0 times
...
Portia
8 months ago
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.
upvoted 0 times
...
Wade
8 months ago
A) Create an application group and a deployment group in AWS CodeDeploy. Install the CodeDeploy agent on the EC2 instances.
upvoted 0 times
...
Mirta
8 months ago
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.
upvoted 0 times
...
Billye
8 months ago
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.
upvoted 0 times
...
Lorrine
9 months ago
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.
upvoted 0 times
...
Nguyet
9 months ago
A: Create an application group and a deployment group in AWS CodeDeploy. Install the CodeDeploy agent on the EC2 instances.
upvoted 0 times
...
...
Lindsey
10 months ago
Hmm, I guess the developers are finally learning to automate their deployments. About time - no more SSH-ing into each instance like a bunch of sysadmins!
upvoted 0 times
...
Angelo
10 months ago
Option E is tempting, but I'd want to ensure the CloudFormation change sets are reviewed before deployment. Better safe than sorry when it comes to production systems.
upvoted 0 times
Tess
8 months ago
User 3: Yeah, I think Option D provides a good balance between automation and manual approval to ensure a smooth deployment process.
upvoted 0 times
...
Ethan
9 months ago
User 2: I agree. It's important to have that extra review step in place to prevent any potential issues in production.
upvoted 0 times
...
Laurel
9 months ago
User 1: Option D sounds like a good choice. It includes a manual approval step before running the CloudFormation change sets.
upvoted 0 times
...
...
Tanesha
10 months ago
I like the idea of using CodePipeline to orchestrate the deployment. Pausing for manual approval before making changes to the production environment is a smart move.
upvoted 0 times
Leah
9 months ago
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.
upvoted 0 times
...
Alonzo
9 months ago
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.
upvoted 0 times
...
Virgie
10 months ago
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.
upvoted 0 times
...
...
Ria
10 months ago
C and D seem like the best options to automate the deployment process while retaining manual approval. CodePipeline can handle the integration of the different AWS services to streamline the process.
upvoted 0 times
...
Royce
11 months ago
I prefer option D because it not only automates the deployment process with AWS CodePipeline but also creates CloudFormation change sets for each application stack before the manual approval step.
upvoted 0 times
...
Kathrine
11 months ago
I agree with Wynell. Option C seems like the best option to streamline the deployment process while still having control over when the changes are made.
upvoted 0 times
...
Wynell
11 months ago
I think option C is a good choice because it uses AWS CodePipeline to automate the deployment process and includes a manual approval step.
upvoted 0 times
...

Save Cancel