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

A company has a web application that is deployed on AWS. The application uses an Amazon API Gateway API and an AWS Lambda function as its backend.

The application recently demonstrated unexpected behavior. A developer examines the Lambda function code, finds an error, and modifies the code to resolve the problem. Before deploying the change to production, the developer needs to run tests to validate that the application operates properly.

The application has only a production environment available. The developer must create a new development environment to test the code changes. The developer must also prevent other developers from overwriting these changes during the test cycle.

Which combination of steps will meet these requirements with the LEAST development effort? (Choose two.)

  • A. Create a new resource in the current stage. Create a new method with Lambda proxy integration. Select the Lambda function. Add the hotfix alias. Redeploy the current stage. Test the backend.
  • B. Update the Lambda function in the API Gateway API integration request to use the hotfix alias. Deploy the API Gateway API to a new stage named hotfix. Test the backend.
  • C. Modify the Lambda function by fixing the code. Test the Lambda function. Create the alias hotfix. Point the alias to the $LATEST version.
  • D. Modify the Lambda function by fixing the code. Test the Lambda function. When the Lambda function is working as expected, publish the Lambda function as a new version. Create the alias hotfix. Point the alias to the new version.
  • E. Create a new API Gateway API for the development environment. Add a resource and method with Lambda integration. Choose the Lambda function and the hotfix alias. Deploy to a new stage. Test the backend.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

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
sumanshu
4 months ago
Selected Answer: BD
A) Eliminated - If we create a new resource (e.g., an API path like /new-feature) The current stage (prod) is being modified, which is risky because the production environment is shared. C) Eliminated - $LATEST is not stable. It is always the most recent version of the code, and other developers can overwrite it with new changes during the testing phase. E) Eliminated - Creating a completely new API Gateway API requires significant additional effort,
upvoted 1 times
...
65703c1
5 months, 1 week ago
Selected Answer: BD
BD is the correct answer.
upvoted 1 times
...
KillThemWithKindness
8 months, 1 week ago
Selected Answer: BD
Not C, you can't use an unqualified ARN ($LATEST) to create an alias.| https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html E After the initial deployment, you can add more stages and associate them with existing deployments. You can use the API Gateway console to create a new stage, or you can choose an existing stage while deploying an API. You can add a new stage to an API deployment before redeploying the API. https://docs.aws.amazon.com/apigateway/latest/developerguide/stages.html
upvoted 2 times
...
CrescentShared
8 months, 3 weeks ago
Selected Answer: BE
I cannot find another choice that meets this requirement. "The developer must create a new development environment to test the code changes. "
upvoted 1 times
...
SerialiDr
9 months, 3 weeks ago
Selected Answer: BD
The order is D and than B
upvoted 2 times
...
Ponyi
11 months, 4 weeks ago
Selected Answer: BD
Why D over C? Versions are immutable. $Latest is mutable, which means anyone access to Lambda can edit and deploy a new code. The question simply doesn't want that. Why B over E? You don't need to create a whole new API to test some new feature. You can simply achieve this by deploying it to a different stage. Afterwards, you can redirect the users to a new stage or do A/B testing.
upvoted 3 times
...
r3mo
1 year, 3 months ago
C - D. C vs B : option C is preferred over option B because it provides a more isolated and controlled environment for testing the hotfix without directly affecting the production environment. It gives you the flexibility to iterate on the hotfix if needed and promotes a safer development and testing process. D vs E : Option E is preferred over option D because it provides a more isolated and controlled environment for testing the hotfix. It avoids version management complexities and promotes a safer development and testing process by creating a dedicated development environment.
upvoted 4 times
...
tttamtttam
1 year, 3 months ago
Selected Answer: BD
D ==> change the lambda function. B ==> update the API gateway to use the updated lambda function & deploy it into another(new) stage. so that developers can use the newly deployed API endpoint.
upvoted 4 times
...
csG13
1 year, 4 months ago
Selected Answer: BD
It is B & D. Clearly E isn't operationally efficient. So we got to choose from A & B one, and C & D the second. Between A & B, we gotta pick B since in the question it clearly states that we don't want to touch the existing solution. Regarding C & D, seems like D is more thorough and also pointing to $LATEST is not sufficiently explicit when you troubleshoot.
upvoted 4 times
...
zodraz
1 year, 5 months ago
Selected Answer: BD
https://www.examtopics.com/discussions/amazon/view/89549-exam-aws-certified-developer-associate-topic-1-question-334/
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