nerdexam
Amazon

SOA-C02 · Question #77

A company uses an AWS CloudForm tion 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…

The correct answer is B. Add the DependsOn attribute to the EC2 instance resource, and provide the logical name of the. 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…

Submitted by yaw92· Mar 30, 2026Deployment, Provisioning, and Automation

Question

A company uses an AWS CloudForm tion 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?

Options

  • AAdd a wait condition to the template.
  • BAdd the DependsOn attribute to the EC2 instance resource, and provide the logical name of the
  • CChange the order of the resources in the template so that the RDS resource is listed before the
  • DCreate multiple templates.

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    74% (20)
  • C
    15% (4)
  • D
    7% (2)

Explanation

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-

Topics

#CloudFormation#DependsOn#resource ordering#RDS EC2 dependency

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice