nerdexam
Amazon

SOA-C02 · Question #325

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…

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…

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

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.

How the community answered

(54 responses)
  • A
    15% (8)
  • B
    72% (39)
  • C
    9% (5)
  • D
    4% (2)

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

Topics

#CloudFormation#CloudWatch dashboard#AWS::CloudWatch::Dashboard#infrastructure as code

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice