A company uses an flaws CloudFormation template to provision an Amazon EC2 instance and an Amazon RDS DB instance. A SysOps administrator must update the template to ensure that the DB instance is created before the EC2 instance is launched. What should the SysOps administrator do to meet this requirement?

QuestionsCategory: SOA-C02A company uses an flaws CloudFormation template to provision an Amazon EC2 instance and an Amazon RDS DB instance. A SysOps administrator must update the template to ensure that the DB instance is created before the EC2 instance is launched. What should the SysOps administrator do to meet this requirement?
Admin Staff asked 8 months ago
A company uses an flaws CloudFormation template to provision an Amazon EC2 instance and an Amazon RDS DB instance. A SysOps administrator must update the template to ensure that the DB instance is created before the EC2 instance is launched.
What should the SysOps administrator do to meet this requirement?

A. Add a wait condition to the template. Update the EC2 instance user data script to send a signal after the EC2 instance is started.

B. Add the DependsOn attribute to the EC2 instance resource, and provide the logical name of the RDS resource.

C. Change the order of the resources in the template so that the RDS resource is listed before the EC2 instance resource.

D. Create multiple templates. Use flaws CloudFormation StackSets to wait for one stack to complete before the second stack is created.








 

Correct Answer: B

This question is in SOA-C02 exam
For getting AWS Certified SysOps Administrator - Associate

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.