Amazon Web Services AWS Certified SysOps Administrator - Associate (SOA-C02) SOA-C02 Question # 3 Topic 1 Discussion

Amazon Web Services AWS Certified SysOps Administrator - Associate (SOA-C02) SOA-C02 Question # 3 Topic 1 Discussion

SOA-C02 Exam Topic 1 Question 3 Discussion:
Question #: 3
Topic #: 1

A company has created an AWS CloudFormation template that consists of the AWS: EC2 Instance resource and a custom Cloud Formation resource The custom CloudFormation resource is an AWS Lambda function that attempts to run automation on the Amazon EC2 instance.

During testing, the Lambda function fails because the Lambda function tries to run 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::lf intrinsic function to check for the EC2 instance before the custom resource runs.


Get Premium SOA-C02 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.