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

A company built an application based on AWS Lambda deployed in an AWS CloudFormation stack. The last production release of the web application introduced an issue that resulted in an outage lasting several minutes. A solutions architect must adjust the deployment process to support a canary release.

Which solution will meet these requirements?

  • A. Create an alias for every new deployed version of the Lambda function. Use the AWS CLI update-alias command with the routing-config parameter to distribute the load.
  • B. Deploy the application into a new CloudFormation stack. Use an Amazon Route 53 weighted routing policy to distribute the load.
  • C. Create a version for every new deployed Lambda function. Use the AWS CLI update-function-configuration command with the routing-config parameter to distribute the load.
  • D. Configure AWS CodeDeploy and use CodeDeployDefault.OneAtATime in the Deployment configuration to distribute the load.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
masetromain
Highly Voted 2 years ago
Selected Answer: A
A. Create an alias for every new deployed version of the Lambda function. Use the AWS CLI update-alias command with the routing-config parameter to distribute the load is the correct answer as it meets the requirement of supporting a canary release. Option B is not correct because while it would allow for a canary release, it would involve deploying the new version of the application into a separate CloudFormation stack, which would be a more complex and time-consuming process compared to creating an alias for a new version of the Lambda function. Option C is not correct because while it would allow for a canary release, it would involve creating a version for every new deployed Lambda function, which would be more complex and time-consuming process compared to creating an alias for a new version of the Lambda function.
upvoted 20 times
masetromain
2 years ago
Option D is not correct because AWS CodeDeploy is a deployment service that allows you to automate code deployments to a variety of compute services like EC2 and on-premises servers, but it does not support routing configuration for a canary release on AWS Lambda.
upvoted 6 times
karma4moksha
1 year, 8 months ago
Thank you masetromain, you have been really helpful for taking the time and providing explanation.
upvoted 1 times
Jesuisleon
1 year, 8 months ago
He copied from chatgpt, you didn't find it ?
upvoted 8 times
...
...
ninomfr64
1 year, 1 month ago
This is not 100% correct. Actually CodeDeploy support deploy to an AWS Lambda compute platform, the deployment configuration specifies the way traffic is shifted to the new Lambda function versions in your application. You can shift traffic using a canary, linear, or all-at-once deployment configuration. The following lists the predefined configurations available for AWS Lambda canary deployments: - CodeDeployDefault.LambdaCanary10Percent5Minutes - CodeDeployDefault.LambdaCanary10Percent10Minutes - CodeDeployDefault.LambdaCanary10Percent15Minutes - CodeDeployDefault.LambdaCanary10Percent30Minutes
upvoted 3 times
Jason666888
6 months ago
Yeah the reason D is wrong is not because CodeDeploy doesn't support lambda canary deployment, it's because `OneAtATime` deployment strategy is only for EC2 instances but not for lambdas
upvoted 2 times
...
...
...
...
Atila50
Highly Voted 2 years ago
Selected Answer: A
https://www.examtopics.com/discussions/amazon/view/28312-exam-aws-certified-solutions-architect-professional-topic-1/
upvoted 10 times
...
d401c0d
Most Recent 1 week, 4 days ago
Selected Answer: A
A. Create an alias for every new deployed version of the Lambda function. Use the AWS CLI update-alias command with the routing-config parameter to distribute the load
upvoted 1 times
...
Heman31in
1 month, 3 weeks ago
Selected Answer: A
Not D because, the CodeDeployDefault.OneAtATime deployment configuration is primarily designed for EC2 and on-premises instances. For AWS Lambda functions, AWS CodeDeploy provides deployment strategies specific to Lambda, such as Canary, Linear, and All-at-Once.
upvoted 1 times
...
Aritra88
2 months ago
Selected Answer: A
Using Lambda Aliases for Canary Releases: * Lambda aliases are pointers to specific versions of a Lambda function. * You can use the update-alias command with the routing-config parameter to configure traffic shifting between the current version and the newly deployed version. * This allows a gradual shift of traffic to the new version while maintaining traffic to the current version. AWS CLI Example: * Create a new alias or update an existing alias to shift a portion of the traffic Testing and Monitoring: Gradually increase the percentage of traffic to the new version. Use Amazon CloudWatch metrics to monitor errors, latency, or other performance issues. Roll back traffic to the previous version if any issues are detected. aws lambda update-alias \ --function-name MyFunction \ --name MyAlias \ --routing-config '{"AdditionalVersionWeights": {"2": 0.10}}'
upvoted 1 times
...
amministrazione
5 months, 1 week ago
A. Create an alias for every new deployed version of the Lambda function. Use the AWS CLI update-alias command with the routing-config parameter to distribute the load.
upvoted 1 times
...
Chakanetsa
6 months, 1 week ago
Selected Answer: A
A. Create an alias for every new deployed version of the Lambda function. Use the AWS CLI update-alias command with the routing-config parameter to distribute the load.   Explanation: This option provides a granular level of control for canary deployments: Versioning: Creating a new version for each deployment ensures that you have a clear record of changes. Alias: An alias acts as a stable endpoint, allowing you to gradually shift traffic to the new version. Routing configuration: The routing-config parameter provides fine-grained control over traffic distribution between versions. By using this approach, you can gradually increase the percentage of traffic to the new version, monitor its performance, and roll back if necessary, minimizing the impact of potential issues.
upvoted 2 times
Chakanetsa
6 months, 1 week ago
Breakdown of other options: B: While Route 53 weighted routing can distribute traffic, it's less granular than using Lambda aliases and doesn't provide the same level of control. C: Using the update-function-configuration command doesn't provide the flexibility to gradually shift traffic. D: CodeDeploy is primarily for deploying code to EC2 instances, not for managing Lambda function traffic. By using Lambda aliases and the routing-config parameter, you can effectively implement a canary release strategy for your Lambda functions.
upvoted 1 times
...
...
ninomfr64
1 year, 1 month ago
Selected Answer: A
Not B. This introduces R53 in the scenario, but we are not sure if R53 fits in the scenario. To combine R53 and Lambda we should use function URL that is not mentioned and we don't know if the app is public. A lot of uncertainty here Not C. routing-config is an Alias specific configuration aka Weighted Alias and it is not available for the update-function-configuration command https://docs.aws.amazon.com/cli/latest/reference/lambda/update-function-configuration.html Not D. CodeDeployDefault.OneAtATime is a CodeDeploy option for EC2/on-premise, while in this scenario we need a canary option for Lambda such as CodeDeployDefault.LambdaCanary10Percent5Minutes A does the job https://docs.aws.amazon.com/cli/latest/reference/lambda/update-alias.html and https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing
upvoted 1 times
...
JMAN1
1 year, 1 month ago
100% A is correct. :) I was confused between D and A. But, this url says Codedeployee.AllatOnce deploy option is not for 'canary release'. https://docs.aws.amazon.com/ko_kr/codedeploy/latest/userguide/deployment-configurations.html
upvoted 2 times
...
totten
1 year, 4 months ago
Selected Answer: A
Here's why Option A is suitable: Create an alias: For every new version of your Lambda function, create an alias. Aliases allow you to associate a user-friendly name with a specific version of the function. Routing configuration: AWS Lambda supports routing configurations that allow you to gradually shift traffic from one alias to another. Using the "routing-config" parameter with the AWS CLI "update-alias" command, you can specify how much traffic each alias should receive. Gradual release: By configuring the routing, you can control the percentage of traffic directed to the new version (canary). You can gradually increase the traffic percentage as you gain confidence in the new release. If issues arise, you can quickly roll back by adjusting the routing configuration.
upvoted 3 times
...
Christina666
1 year, 7 months ago
Selected Answer: A
new release-> lambda alias-> update-alias: aws lambda update-alias --function-name my-function --name alias-name --function-version version-number
upvoted 2 times
...
NikkyDicky
1 year, 7 months ago
Selected Answer: A
D would be an optionn if used Lambda-specific config
upvoted 2 times
...
SkyZeroZx
1 year, 7 months ago
Selected Answer: A
keyword = alias for every new deployed version is a classic usage for deployment canary for lambdas other option usually is codeDeploy but in this options AllAtOnce then A
upvoted 3 times
...
AMEJack
1 year, 9 months ago
Sorry OneAtTime
upvoted 1 times
...
AMEJack
1 year, 9 months ago
Selected Answer: A
CodeDeploy: Although CodeDeploy can help but AllAtOnce is not used for canary traffic shifting.
upvoted 1 times
...
God_Is_Love
1 year, 11 months ago
Selected Answer: A
aws update-alias command has routing-config option to route the weighted % traffic As is correct https://aws.amazon.com/blogs/compute/implementing-canary-deployments-of-aws-lambda-functions-with-alias-traffic-shifting/ # Point alias to new version, weighted at 5% (original version at 95% of traffic) aws lambda update-alias --function-name myfunction --name myalias --routing-config '{"AdditionalVersionWeights" : {"2" : 0.05} }'
upvoted 5 times
...
moota
1 year, 11 months ago
Selected Answer: A
According to ChatGPT, The "update-alias" command is a feature of AWS Lambda service. It is used to update the configuration of a Lambda alias, including the routing configuration which can be used for canary releases, blue/green deployments, and other deployment strategies.
upvoted 4 times
Perkuns
1 year, 7 months ago
or you know, you could start thinking yourself rather than use glorified rubbish google
upvoted 1 times
aliasdoe110
1 year, 7 months ago
Dont get mad, get Glad.
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