Question 50:
Your team uses a CloudFormation stack for an application. There are a large amount of AWS resources created in the stack, including Auto Scaling groups, Lambda functions, Security groups and Route 53 domain names, which make the CloudFormation template hard to maintain. You want to divide the template into several parts and inherit the resources. In the meantime, you still want to manage all resources in a single stack. Which of the following options is the most appropriate?
Answer options:
A.Ensure that the stack template uses the YAML format and uses the “---” symbol to divide the template into several partitions. B.Use the “AWS::CloudFormation::Stack” resources to divide the stack into several nested stacks. C.Use the “AWS::CloudFormation::SubStack” resources to create sub-stacks and export the values in the sub-stacks for other stacks to import. D.Divide the stack into a CloudFormation StackSet by using the “AWS::CloudFormation::StackSet” resource.