exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 20 discussion

A company uses an AWS 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 AWS CloudFormation StackSets to wait for one stack to complete before the second stack is created.
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
RicardoD
Highly Voted 3 years, 1 month ago
B is the answer With the DependsOn attribute you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute.
upvoted 18 times
...
jkwek
Highly Voted 2 years, 12 months ago
Answer is B. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html Syntax The DependsOn attribute can take a single string or list of strings. "DependsOn" : [ String, ... ] Example The following template contains an AWS::EC2::Instance resource with a DependsOn attribute that specifies myDB, an AWS::RDS::DBInstance. When CloudFormation creates this stack, it first creates myDB, then creates Ec2Instance.
upvoted 8 times
...
jepwi
Most Recent 3 weeks, 1 day ago
Selected Answer: B
Depends on basically tells you that it will provision this resource right after the one that it depends on
upvoted 1 times
...
james2033
8 months ago
Selected Answer: B
Question's keyword: 'DB instances is created before the EC2 instance'. Answer's keyword: DependsOn
upvoted 2 times
...
Mangesh_XI_mumbai
11 months, 2 weeks ago
Selected Answer: B
dependsOn correct answer.
upvoted 1 times
...
michaldavid
1 year, 11 months ago
Selected Answer: B
bbbbbb
upvoted 1 times
...
Liongeek
1 year, 11 months ago
Ans: B
upvoted 1 times
...
Surferbolt
2 years ago
Selected Answer: B
B. DependsOn attribute.
upvoted 1 times
...
Finger41
2 years, 5 months ago
Selected Answer: B
B - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html
upvoted 2 times
...
roka_ua
2 years, 8 months ago
Selected Answer: B
Answer is B
upvoted 1 times
...
MrkJobs
2 years, 10 months ago
Selected Answer: B
B is the answer: "With the DependsOn attribute you can specify that the creation of a specific resource follows another. When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute." https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html
upvoted 2 times
...
szl0144
2 years, 10 months ago
vote B
upvoted 1 times
...
nqthien041292
2 years, 11 months ago
Selected Answer: B
Vote B
upvoted 2 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