exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 313 discussion

A company has a mobile app. The app includes an Amazon API Gateway REST API that invokes AWS Lambda functions. The Lambda functions process data from the app.

The company needs to test updated Lambda functions that have new features. The company must conduct these tests with a subset of users before deployment. The tests must not affect other users of the app.

Which solution will meet these requirements with the LEAST amount of operational effort?

  • A. Create a new version of each Lambda function with a weighted alias. Configure a weight value for each version of the Lambda function. Update the new weighted alias Amazon Resource Name (ARN) in the REST API.
  • B. Create a new REST API in API Gateway. Set up a Lambda proxy integration to connect to multiple Lambda functions. Enable canary settings on the deployment stage. Specify a smaller percentage of API traffic to go to the new version of the Lambda function.
  • C. Create a new version of each Lambda function. Integrate a predefined canary deployment in AWS CodeDeploy to slowly shift the traffic to the new versions automatically.
  • D. Create a new REST API in API Gateway. Set up a Lambda non-proxy integration to connect to multiple Lambda functions. Specify the necessary parameters and properties in API Gateway. Enable canary settings on the deployment stage. Specify a smaller percentage of API traffic to go to the new version of the Lambda function.
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
DeaconStJohn
Highly Voted 11 months, 3 weeks ago
Selected Answer: A
The wording is screaming out weighted alias. During a canary deployment, we are moving code from testing to prod. We can define a subset of users i.e. 10% for a set period of time. After this the other users will be impacted as the percentage will increment or the deployment will push new code to 100% of users. With a weighted alias we can define a subset of users and use this as our guinea pigs to test new code. As this isn't a canary deployment we have no risk of more users becoming impacted. Operational overhead is minimal as we only need to point to a new alias. With weighted alias we can deploy for testing purposes. From my understanding lambda proxy is grouping lambda functions. the traffic splitting would need to be set at the lambda level as this is testing prior to deployment.
upvoted 9 times
albert_kuo
7 months, 3 weeks ago
1. create new version aws lambda publish-version --function-name MyFunction 2. create weighted alias aws lambda create-alias --function-name MyFunction \ --name MyAlias \ --function-version 1 \ --routing-config '{"AdditionalVersionWeights": {"2": 0.1}}'
upvoted 2 times
...
...
ethanluvsbooks
Highly Voted 11 months, 2 weeks ago
Selected Answer: B
This is the least amount of effort. I originally thought answer A but then you will have more effort because will have to update API Gateway configuration to use new ARN etc. Unless there are other thoughts on this?
upvoted 5 times
...
Shamalka
Most Recent 3 days, 1 hour ago
Selected Answer: A
The simple answer is A. The Simple reason for the answer to not be D is why you would need to create a new Rest API endpoint.?
upvoted 1 times
...
examuserss
2 months, 3 weeks ago
Selected Answer: A
Best Solution: Option A: Create a new version of each Lambda function with a weighted alias. Configure a weight value for each version of the Lambda function. Update the new weighted alias Amazon Resource Name (ARN) in the REST API. This is the least complex and most efficient solution. By using weighted aliases for Lambda versions, you can control the traffic sent to the new version of the function, and it can be done with minimal operational overhead, without the need to create a new API or involve other services like AWS CodeDeploy.
upvoted 1 times
...
ShakthiGCP
3 months, 3 weeks ago
Selected Answer: A
Weight ed alias
upvoted 1 times
...
ShakthiGCP
4 months ago
Selected Answer: A
Yes. Answer is Option A. B will eventually push all users to new alias as part of canary deployment.
upvoted 1 times
...
Saudis
4 months, 1 week ago
Selected Answer: B
B provides the least operational effort
upvoted 1 times
...
abdulla203
5 months, 2 weeks ago
Selected Answer: A
I think A is direct
upvoted 1 times
...
wh1t4k3r
6 months, 2 weeks ago
I am going with A, not sure if creating a new rest api is less effort then just managing the existing API config for the weight.
upvoted 2 times
...
tomchandler077
8 months ago
Option A is typically the most straightforward and requires the least operational effort while providing high control over traffic distribution directly from the Lambda configuration. This method avoids the overhead of managing additional services or creating new APIs and is directly supported by AWS services for testing purposes with actual users.
upvoted 1 times
...
65703c1
9 months, 3 weeks ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
a1971h
11 months ago
Selected Answer: B
It says: with the LEAST amount of operational effort B --- NEVER A!!!
upvoted 3 times
...
yingying920928
12 months ago
Selected Answer: A
Prefer A, because creating a new REST API (B) involves more operational overhead and complexity compared to using weighted aliases. Moreover, setting up a Lambda proxy integration to connect to multiple Lambda functions can increase complexity, especially when handling different versions for canary testing.
upvoted 4 times
...
KarBiswa
1 year ago
Selected Answer: B
https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html
upvoted 3 times
be1dca8
11 months, 1 week ago
This is possible but the question stated less operational effort.
upvoted 1 times
...
...
ANDRES715
1 year ago
Selected Answer: D
} El desarrollador debe crear una nueva API REST en Amazon API Gateway y configurar una integración Lambda sin proxy para conectarse a múltiples funciones Lambda. Luego, debe especificar los parámetros y propiedades necesarios en API Gateway y habilitar la configuración canary en la etapa de implementación. Especifique un porcentaje menor de tráfico API para ir a la nueva versión de la función Lambda. Al utilizar una nueva API REST en API Gateway con una configuración canary, el desarrollador puede probar las funciones Lambda actualizadas con nuevas características con un subconjunto de usuarios antes de la implementación completa. Esto permite realizar pruebas sin afectar a otros usuarios de la aplicación y con un menor esfuerzo operativo.
upvoted 1 times
...
monishvster
1 year ago
Selected Answer: B
Should be B
upvoted 5 times
...
CrescentShared
1 year ago
Selected Answer: B
Option A involves using weighted aliases for Lambda functions, which is a valid approach but requires more effort to manage and update the aliases in the API Gateway configuration.
upvoted 5 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