Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Amazon Web Services AWS Certified CloudOps Engineer - Associate SOA-C03 Question # 23 Topic 3 Discussion

Amazon Web Services AWS Certified CloudOps Engineer - Associate SOA-C03 Question # 23 Topic 3 Discussion

SOA-C03 Exam Topic 3 Question 23 Discussion:
Question #: 23
Topic #: 3

A company has an AWS CloudFormation template that includes an AWS::EC2::Instance resource and a custom resource (Lambda function). The Lambda function fails because it runs before the EC2 instance is launched.

Which solution will resolve this issue?


A.

Add a DependsOn attribute to the custom resource. Specify the EC2 instance in the DependsOn attribute.


B.

Update the custom resource's service token to point to a valid Lambda function.


C.

Update the Lambda function to use the cfn-response module to send a response to the custom resource.


D.

Use the Fn::If intrinsic function to check for the EC2 instance before the custom resource runs.


Get Premium SOA-C03 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.