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

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

A developer is setting up the deployment of application stacks to new test environments by using the AWS Cloud Development Kit (AWS CDK). The application contains the code for several AWS Lambda functions that will be deployed as assets. Each Lambda function is defined by using the AWS CDK Lambda construct library.

The developer has already successfully deployed the application stacks to the alpha environment in the first account by using the AWS CDK CLI’s cdk deploy command. The developer is preparing to deploy to the beta environment in a second account for the first time. The developer makes no significant changes to the CDK code between deployments, but the initial deployment in the second account is unsuccessful and returns a NoSuchBucket error.

Which command should the developer run before redeployment to resolve this error?

  • A. cdk synth
  • B. cdk bootstrap
  • C. cdk init
  • D. cdk destroy
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
sanketshah
2 years, 1 month ago
Selected Answer: B
upvoted 1 times
...
JulietHsu
2 years, 3 months ago
Selected Answer: B
It's B. You must explicitly bootstrap each environment into which you will deploy.
upvoted 2 times
...
KT_Yu
2 years, 3 months ago
Selected Answer: B
Ans: B https://docs.aws.amazon.com/cdk/v2/guide/troubleshooting.html#troubleshooting_nobucket
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