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

A developer is optimizing an AWS Lambda function and wants to test the changes in production on a small percentage of all traffic. The Lambda function serves requests to a RE ST API in Amazon API Gateway. The developer needs to deploy their changes and perform a test in production without changing the API Gateway URL.

Which solution will meet these requirements?

  • A. Define a function version for the currently deployed production Lambda function. Update the API Gateway endpoint to reference the new Lambda function version. Upload and publish the optimized Lambda function code. On the production API Gateway stage, define a canary release and set the percentage of traffic to direct to the canary release. Update the API Gateway endpoint to use the $LATEST version of the Lambda function. Publish the API to the canary stage.
  • B. Define a function version for the currently deployed production Lambda function. Update the API Gateway endpoint to reference the new Lambda function version. Upload and publish the optimized Lambda function code. Update the API Gateway endpoint to use the $LATEST version of the Lambda function. Deploy a new API Gateway stage.
  • C. Define an alias on the $LATEST version of the Lambda function. Update the API Gateway endpoint to reference the new Lambda function alias. Upload and publish the optimized Lambda function code. On the production API Gateway stage, define a canary release and set the percentage of traffic to direct to the canary release. Update the API Gateway endpoint to use the $LATEST version of the Lambda function. Publish to the canary stage.
  • D. Define a function version for the currently deployed production Lambda function. Update the API Gateway endpoint to reference the new Lambda function version. Upload and publish the optimized Lambda function code. Update the API Gateway endpoint to use the $LATEST version of the Lambda function. Deploy the API to the production API Gateway stage.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Community vote distribution
C (69%)
A (31%)

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
0bdf3af
22 hours, 47 minutes ago
Selected Answer: A
A. API Gateway Canary deployment by using versions
upvoted 1 times
...
Shamalka
6 days ago
Selected Answer: A
The answer is A. If you read carefully, in option C, the endpoint is going to be printed to the $LATEST version all the time. So caranr would not be in effective
upvoted 2 times
...
albert_kuo
4 months ago
Selected Answer: A
# create Lambda version aws lambda publish-version --function-name myFunction # Update API Gateway aws apigateway update-integration --rest-api-id api-id --resource-id resource-id --http-method GET --patch-operations op=replace,path=/uri,value=arn:aws:lambda:region:account-id:function:myFunction:1 # Canary Deployments { "percentTraffic": 10, "useStageCache": false }
upvoted 2 times
...
65703c1
9 months, 3 weeks ago
Selected Answer: C
C is the correct answer.
upvoted 2 times
...
KarBiswa
1 year ago
Selected Answer: C
C looks more perfect
upvoted 3 times
...
ANDRES715
1 year ago
Selected Answer: C
Al definir un alias en la versión $LATEST de la función Lambda, el desarrollador puede referenciar este alias en el punto final de API Gateway. Luego, al cargar y publicar el código de función Lambda optimizado, se asegura de que la API Gateway haga referencia al nuevo alias de la función Lambda. Después, en la etapa de producción de API Gateway, se puede definir una versión canary y establecer el porcentaje de tráfico que se dirigirá a la versión canary. Esto permite probar los cambios en producción en un pequeño porcentaje del tráfico sin cambiar la URL de API Gateway.
upvoted 3 times
...
CrescentShared
1 year ago
Selected Answer: C
A also looks good, C has an alias created and more like a practical way.
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 ...
exam
Someone Bought Contributor Access for:
SCS-C02
Atlanta, 1 minute ago