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

A company is developing a new application. The application uses AWS Lambda functions for its compute tier. The company must use a canary deployment for any changes to the Lambda functions. Automated rollback must occur if any failures are reported.

The company’s DevOps team needs to create the infrastructure as code (IaC) and the CI/CD pipeline for this solution.

Which combination of steps will meet these requirements? (Choose three.)

  • A. Create an AWS CloudFormation template for the application. Define each Lambda function in the template by using the AWS::Lambda::Function resource type. In the template, include a version for the Lambda function by using the AWS::Lambda::Version resource type. Declare the CodeSha256 property. Configure an AWS::Lambda::Alias resource that references the latest version of the Lambda function.
  • B. Create an AWS Serverless Application Model (AWS SAM) template for the application. Define each Lambda function in the template by using the AWS::Serverless::Function resource type. For each function, include configurations for the AutoPublishAlias property and the DeploymentPreference property. Configure the deployment configuration type to LambdaCanary10Percent10Minutes.
  • C. Create an AWS CodeCommit repository. Create an AWS CodePipeline pipeline. Use the CodeCommit repository in a new source stage that starts the pipeline. Create an AWS CodeBuild project to deploy the AWS Serverless Application Model (AWS SAM) template. Upload the template and source code to the CodeCommit repository. In the CodeCommit repository, create a buildspec.yml file that includes the commands to build and deploy the SAM application.
  • D. Create an AWS CodeCommit repository. Create an AWS CodePipeline pipeline. Use the CodeCommit repository in a new source stage that starts the pipeline. Create an AWS CodeDeploy deployment group that is configured for canary deployments with a DeploymentPreference type of Canary10Percent10Minutes. Upload the AWS CloudFormation template and source code to the CodeCommit repository. In the CodeCommit repository, create an appspec.yml file that includes the commands to deploy the CloudFormation template.
  • E. Create an Amazon CloudWatch composite alarm for all the Lambda functions. Configure an evaluation period and dimensions for Lambda. Configure the alarm to enter the ALARM state if any errors are detected or if there is insufficient data.
  • F. Create an Amazon CloudWatch alarm for each Lambda function. Configure the alarms to enter the ALARM state if any errors are detected. Configure an evaluation period, dimensions for each Lambda function and version, and the namespace as AWS/Lambda on the Errors metric.
Show Suggested Answer Hide Answer
Suggested Answer: BCF 🗳️

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
2pk
Highly Voted 1 year, 5 months ago
Selected Answer: BCF
BCF correct
upvoted 5 times
...
thanhnv142
Most Recent 9 months ago
Selected Answer: BCF
BCF is my choice
upvoted 3 times
...
thanhnv142
9 months ago
BCF are correct: A is not correct: <needs to create the infrastructure as code (IaC)> means we prefer AWS SAM over ACF. ACF is used to deploy AWS instances, not for IaC D is wrong: no mention of AWS SAM E is wrong: <Amazon CloudWatch composite alarm for all the Lambda functions>, but we need alarm for each lambda func, not one alarm for all of them
upvoted 2 times
...
sarlos
10 months, 1 week ago
it should be BDF because code deploy can be configured for canary https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html
upvoted 2 times
...
HugoFM
11 months, 1 week ago
Selected Answer: BCF
BCF, E is not correct you need to monitor each lambda to do a rollback of a particular deploy
upvoted 3 times
...
AzureDP900
11 months, 1 week ago
BCF is right
upvoted 1 times
...
rlf
1 year ago
Answer is BCF. https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html
upvoted 1 times
...
sivre
1 year ago
Can someone please explain why not A and D? seem the same of B C without using SAM
upvoted 3 times
...
RVivek
1 year, 1 month ago
Selected Answer: BCF
A is wrong beacuse of AWS::Lambda::Function B - Can work C: is correct D: SAM or Lambda deployment in Codedeploy cannot be canary deployment. canaray deployment should be included in the Lambda code as mentioned in option B. E: Composite Alram is not required. if any Lambda fails , it should generate alarm F: works Basically select B from AB which is for lambda coding, Select C from CD for deploying and F from EF for monitoring and alerting
upvoted 2 times
hotblooded
9 months, 1 week ago
Why we cannot use code deploy for canary there are already few deployment percentage for codedeploy BDF is correct
upvoted 1 times
...
...
habros
1 year, 3 months ago
Selected Answer: BCF
Leaning to BCF. Lambda errors are standard although BCE is possible too. For server less it is giveaway question. Stick with SAM if possible
upvoted 2 times
habros
1 year, 3 months ago
I’ll stick with BCF still. Composite alarms does not apply in this context. https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Composite_Alarm.html
upvoted 2 times
...
...
sb333
1 year, 3 months ago
Selected Answer: BCF
BCF is correct.
upvoted 2 times
...
Blueee
1 year, 3 months ago
Selected Answer: BCF
BC and F
upvoted 3 times
...
Manny20
1 year, 4 months ago
Composite Alarm requires underlying metric alarms which requires one CloudWatch alarm for each lambda functions and then tie them back to a composite alarm. So BC and F makes sense.
upvoted 3 times
...
FunkyFresco
1 year, 4 months ago
Selected Answer: BCE
I think BCE makes more sense.
upvoted 1 times
...
ducluanxutrieu
1 year, 4 months ago
Selected Answer: BCE
F creates an Amazon CloudWatch alarm for each Lambda function. However, it is not necessary to create an alarm for each Lambda function. A single composite alarm can be used to monitor all the Lambda functions.
upvoted 1 times
sb333
1 year, 3 months ago
The issue with Answer E is that the alarm will also trigger on "insufficient data", which is not what you want. Answer F is correct.
upvoted 1 times
...
...
OrganizedChaos25
1 year, 5 months ago
BCF are correct
upvoted 1 times
...
2pk
1 year, 5 months ago
Cannot deploy the canary deployemnt in a pipeline for lambda creation, it has to be created in lambda resource file.
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