SOA-C02 · Question #325
SOA-C02 Question #325: Real Exam Question with Answer & Explanation
The correct answer is B: Export the existing CloudWatch dashboard as JSON.. You can only use the Intrinsic Ref function to reference a resource that is being created at the same time as the current CloudFormation template. The question states that the CloudWatch dashboard was previously created using the AWS Management Console, so there is no ID to to ex
Question
A SysOps administrator creates an AWS CloudFormation template to define an application stack that can be deployed in multiple AWS Regions. The SysOps administrator also creates an Amazon CloudWatch dashboard by using the AWS Management Console. Each deployment of the application requires its own CloudWatch dashboard. How can the SysOps administrator automate the creation of the CloudWatch dashboard each time the application is deployed?
Options
- ACreate a script by using the AWS CLI to run the aws cloudformation put-dashboard command
- BExport the existing CloudWatch dashboard as JSON.
- CUpdate the CloudFormation template to define an resource.
- DUpdate the CloudFormation template to define an AWS::CloudWatch::Dashboard resource.
Explanation
You can only use the Intrinsic Ref function to reference a resource that is being created at the same time as the current CloudFormation template. The question states that the CloudWatch dashboard was previously created using the AWS Management Console, so there is no ID to to export the existing CloudWatch dashboard as JSON, then use the DashboardBody property in the CloudFormation template to replicate it upon each deployment. https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard- Body-Structure.html
Community Discussion
No community discussion yet for this question.