DOP-C02 practice question 2 of 35
A company is developing a web application's infrastructure using AWS CloudFormation The database engineering team maintains the database resources in…
Full set: 449 questionsStack Export and Import: Use the Export feature in CloudFormation to share outputs from one stack (e.g., database resources) and use them as inputs in another stack (e.g., web application resources). Steps to Create Stack Export: Define the resources in the database CloudFormation template and use the Outputs section to export necessary values. Outputs: DBInstanceEndpoint: Value: !GetAtt DBInstance.Endpoint.Address Export: Name: DBInstanceEndpoint Steps to Import into Web Application Stack: In the web application CloudFormation template, use the ImportValue function to import these exported values. Resources: MyResource: Type: "AWS::SomeResourceType" Properties: SomeProperty: !ImportValue DBInstanceEndpoint Resource-Level Change-Set Reviews: Both teams can continue using their respective review processes, as changes to each stack are managed independently. Use CloudFormation change sets to preview changes before deploying. By exporting resources from the database stack and importing them into the web application stack, both teams can maintain their separate review and lifecycle management processes while sharing necessary resources.
Reference: AWS CloudFormation Export AWS CloudFormation ImportValue
Keep practicing
Take the free DOP-C02 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DOP-C02 practice questions
- Question 1A company has enabled all features for its organization in AWS Organizations. The organiz…
- Question 3A company uses Amazon Redshift as its data warehouse solution. The company wants to creat…
- Question 4A company recently deployed its web application on AWS. The company is preparing for a la…
- Question 5A company is migrating from its on-premises data center to AWS. The company currently use…
- Question 6A security team is concerned that a developer can unintentionally attach an Elastic IP ad…
- Question 7A company has an application that runs on Amazon EC2 instances behind an Application Load…
