exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 373 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 373
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company has a web application that contains an Amazon API Gateway REST API. A developer has created an AWS CloudFormation template for the initial deployment of the application. The developer has deployed the application successfully as part of an AWS CodePipeline continuous integration and continuous delivery (CI/CD) process. All resources and methods are available through the deployed stage endpoint.

The CloudFormation template contains the following resource types:

• AWS::ApiGateway::RestApi
• AWS::ApiGateway::Resource
• AWS::ApiGateway::Method
• AWS::ApiGateway::Stage
• AWS::ApiGateway::Deployment

The developer adds a new resource to the REST API with additional methods and redeploys the template. CloudFormation reports that the deployment is successful and that the stack is in the UPDATE_COMPLETE state. However, calls to all new methods are returning 404 (Not Found) errors.

What should the developer do to make the new methods available?

  • A. Specify the disable-rollback option during the update-stack operation.
  • B. Unset the CloudFormation stack failure options.
  • C. Add an AWS CodeBuild stage to CodePipeline to run the aws apigateway create-deployment AWS CLI command.
  • D. Add an action to CodePipeline to run the aws cloudfront create-invalidation AWS CLI command.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
JagpreetLM10
Highly Voted 2 years, 3 months ago
Selected Answer: C
C. Add an AWS CodeBuild stage to CodePipeline to run the aws apigateway create-deployment AWS CLI command. The developer should add an AWS CodeBuild stage to their existing CodePipeline that runs the AWS CLI command aws apigateway create-deployment to create a new deployment for the updated REST API, including the new resource and methods. This will make the new methods available through the deployed stage endpoint.
upvoted 6 times
...
KT_Yu
Most Recent 2 years, 3 months ago
Selected Answer: C
C seems the best option
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