Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 19 discussion

A company has a serverless application comprised of Amazon CloudFront, Amazon API Gateway, and AWS Lambda functions. The current deployment process of the application code is to create a new version number of the Lambda function and run an AWS CLI script to update. If the new function version has errors, another CLI script reverts by deploying the previous working version of the function. The company would like to decrease the time to deploy new versions of the application logic provided by the Lambda functions, and also reduce the time to detect and revert when errors are identified.
How can this be accomplished?

  • A. Create and deploy nested AWS CloudFormation stacks with the parent stack consisting of the AWS CloudFront distribution and API Gateway, and the child stack containing the Lambda function. For changes to Lambda, create an AWS CloudFormation change set and deploy; if errors are triggered, revert the AWS CloudFormation change set to the previous version.
  • B. Use AWS SAM and built-in AWS CodeDeploy to deploy the new Lambda version, gradually shift traffic to the new version, and use pre-traffic and post-traffic test functions to verify code. Rollback if Amazon CloudWatch alarms are triggered.
  • C. Refactor the AWS CLI scripts into a single script that deploys the new Lambda version. When deployment is completed, the script tests execute. If errors are detected, revert to the previous Lambda version.
  • D. Create and deploy an AWS CloudFormation stack that consists of a new API Gateway endpoint that references the new Lambda version. Change the CloudFront origin to the new API Gateway endpoint, monitor errors and if detected, change the AWS CloudFront origin to the previous API Gateway endpoint.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
masetromain
Highly Voted 1 year, 9 months ago
Selected Answer: B
AWS Serverless Application Model (SAM) is a framework that helps you build, test and deploy your serverless applications. It uses CloudFormation under the hood, so it is a way to simplify the process of creating, updating, and deploying CloudFormation templates. CodeDeploy is a service that automates code deployments to any instance, including on-premises instances and Lambda functions. With AWS SAM you can use the built-in CodeDeploy to deploy new versions of the Lambda function, gradually shift traffic to the new version, and use pre-traffic and post-traffic test functions to verify code. You can also define CloudWatch Alarms to trigger a rollback in case of any issues. This allows for a faster and more efficient deployment process, as well as a more reliable rollback process when errors are identified. This way you can increase the speed of deployment and reduce the time to detect and revert when errors are identified.
upvoted 29 times
...
5up3rm4n
Most Recent 1 month, 2 weeks ago
Selected Answer: B
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html AWS Serverless Application Model (AWS SAM) comes built-in with CodeDeploy to provide gradual AWS Lambda deployments. With just a few lines of configuration, AWS SAM does the following for you: Deploys new versions of your Lambda function, and automatically creates aliases that point to the new version. Gradually shifts customer traffic to the new version until you're satisfied that it's working as expected. If an update doesn't work correctly, you can roll back the changes. Defines pre-traffic and post-traffic test functions to verify that the newly deployed code is configured correctly and that your application operates as expected. Automatically rolls back the deployment if CloudWatch alarms are triggered.
upvoted 2 times
...
atirado
1 month, 2 weeks ago
Selected Answer: B
Option A - This work will allow reverting to previous versions of the Lambda functions but reverting means all functions will be reverted. This does not minimize the the time needed to detect and revert errors. Option B - This option minimizes the time needed to deploy functions and detect and revert errors: As each function is deployed it can be tested and reverted individually. Moreover, the option provides a straightforward mechanism to detect and revert errors: Detect errors in CloudWatch, fix the functions' code in SAM, redeploy with AWS CodeDeploy. Option C - This option does not minimize the time needed to detect and revert errors. It only automates the current process. Option D - This option does not minimize the time needed to detect and revert errors: It takes time for CloudFormation to switch origins and nothing has been done to about the current process for deploying and testing functions.
upvoted 3 times
...
AWSum1
1 month, 4 weeks ago
Selected Answer: B
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html Pretty much what the question wants
upvoted 1 times
...
amministrazione
2 months, 1 week ago
B. Use AWS SAM and built-in AWS CodeDeploy to deploy the new Lambda version, gradually shift traffic to the new version, and use pre-traffic and post-traffic test functions to verify code. Rollback if Amazon CloudWatch alarms are triggered.
upvoted 1 times
...
AwsZora
4 months, 3 weeks ago
why not a?
upvoted 2 times
...
gofavad926
7 months, 3 weeks ago
Selected Answer: B
B, use SAM to deploy serverless applications on aws
upvoted 1 times
...
shaaam80
11 months, 1 week ago
Selected Answer: B
Answer B. Use SAM and Codedeploy. Revert if any errors to the previous version.
upvoted 1 times
...
severlight
12 months ago
Selected Answer: B
obvious
upvoted 1 times
...
whenthan
1 year, 2 months ago
Selected Answer: B
requirmeents : decrease the time to deploy new versions of the application logic provided by the Lambda functions, revert when erros identified
upvoted 1 times
...
NikkyDicky
1 year, 4 months ago
Selected Answer: B
B no do0ubt
upvoted 1 times
...
Jonalb
1 year, 4 months ago
Selected Answer: B
100% B
upvoted 1 times
...
gameoflove
1 year, 6 months ago
Selected Answer: B
B solve the problem which is causing in the current scenario
upvoted 1 times
...
2aldous
1 year, 6 months ago
Selected Answer: B
Definitile B https://docs.aws.amazon.com/es_es/serverless-application-model/latest/developerguide/automating-updates-to-serverless-apps.html
upvoted 1 times
...
mfsec
1 year, 7 months ago
Selected Answer: B
Use AWS SAM and built-in AWS CodeDeploy
upvoted 1 times
...
kiran15789
1 year, 8 months ago
Selected Answer: B
AWS Serverless Application Model (SAM)
upvoted 1 times
...
spencer_sharp
1 year, 10 months ago
Selected Answer: B
sam typical use case
upvoted 3 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 ...