exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 3 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 3
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A DevOps engineer used an AWS CloudFormation custom resource to set up AD Connector. The AWS Lambda function executed and created AD Connector, but
CloudFormation is not transitioning from CREATE_IN_PROGRESS to CREATE_COMPLETE.
Which action should the engineer take to resolve this issue?

  • A. Ensure the Lambda function code has exited successfully.
  • B. Ensure the Lambda function code returns a response to the pre-signed URL.
  • C. Ensure the Lambda function IAM role has cloudformation:UpdateStack permissions for the stack ARN.
  • D. Ensure the Lambda function IAM role has ds:ConnectDirectory permissions for the AWS account.
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
WhyIronMan
Highly Voted 3 years, 6 months ago
I'll go with B because it is right Reference: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref-responses.html
upvoted 14 times
...
[Removed]
Highly Voted 7 months, 3 weeks ago
Yes B is Correct
upvoted 9 times
...
jyrajan69
Most Recent 1 year, 3 months ago
There is no mention of S3 so why are using pre signed url? Seems that D is a better option
upvoted 1 times
...
nicat
1 year, 11 months ago
Selected Answer: B
Yes B is Correct
upvoted 1 times
...
easytoo
2 years, 1 month ago
When AWS CloudFormation invokes a Lambda function using a custom resource, it provides a pre-signed URL as part of the request. The Lambda function must return a response to the pre-signed URL to signal the success or failure of the resource creation. If the Lambda function does not return a response to the pre-signed URL, the CloudFormation stack will remain in the CREATE_IN_PROGRESS state, waiting for a response.
upvoted 7 times
...
okm1997_2
2 years, 1 month ago
Selected Answer: B
Yes B is Correct Custom Resources needs a response to provided through Lambda
upvoted 1 times
...
Bulti
2 years, 4 months ago
Answer is B- Cloudformation expect the Lambda function invoked using a custom resource to call back at the signed URL
upvoted 1 times
...
Goozian
2 years, 7 months ago
Selected Answer: B
these passed to the lambda as event and invoked : { "RequestType" : "Create", "ResponseURL" : "http://pre-signed-S3-url-for-response", "StackId" : "arn:aws:cloudformation:us-west-2:123456789012:stack/stack-name/guid", "RequestId" : "unique id for this create request", "ResourceType" : "Custom::TestResource", "LogicalResourceId" : "MyTestResource", "ResourceProperties" : { "Name" : "Value", "List" : [ "1", "2", "3" ] } } and the response has to have: event['ResponseURL']
upvoted 3 times
...
SHAAHIBHUSHANAWS
2 years, 10 months ago
B I thinks its B as Cloudformation stack needs to be updated of the status using helper scripts
upvoted 1 times
...
francisco_guerra
3 years, 5 months ago
I think its A it's not enough with code returns a response to the pre-signed URL it would need to be successfully
upvoted 1 times
...
shammous
3 years, 5 months ago
Option A is broad but could be the right answer. For option B, I'm skeptical as it says "pre-signed URL" (which is for S3) instead of callback URL or ResponseURL.
upvoted 1 times
...
shwetapathak2301
3 years, 5 months ago
The answer is B As noted in the CloudFormation documentation, CloudFormation expects your Lambda function to callback to it once it has completed its operation; CloudFormation will pause execution until this callback is received. The event sent to your Lambda function by CloudFormation contains the callback URL (ResponseURL)
upvoted 3 times
...
Wrd123456789
3 years, 6 months ago
I'd say B, but the question is a bit light on details. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html
upvoted 2 times
...
Bmaster
3 years, 7 months ago
I will go with D
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:
SY0-701
London, 1 minute ago