exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 223 discussion

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?

  • A. Create a script by using the AWS CLI to run the aws cloudformation put-dashboard command with the name of the dashboard. Run the command each time a new CloudFormation stack is created.
  • B. Export the existing CloudWatch dashboard as JSON. Update the CloudFormation template to define an AWS::CloudWatch::Dashboard resource. Include the exported JSON in the resource’s DashboardBody property.
  • C. Update the CloudFormation template to define an AWS::CloudWatch::Dashboard resource. Use the Intrinsic Ref function to reference the ID of the existing CloudWatch dashboard.
  • D. Update the CloudFormation template to define an AWS::CloudWatch::Dashboard resource. Specify the name of the existing dashboard in the DashboardName property.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
yeacuz
Highly Voted 1 year, 3 months ago
Selected Answer: B
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 reference the existing CloudWatch dashboard in the CloudFormation template. You would need 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). Therefore, the answer is B.
upvoted 13 times
...
zolthar_z
Highly Voted 1 year, 3 months ago
Selected Answer: B
Ans is B
upvoted 5 times
...
walala97
Most Recent 6 months ago
btw,by click dashboard-->action-->edit source ,you will get the json file
upvoted 2 times
...
jipark
8 months, 1 week ago
Selected Answer: B
"name of the existing dashboard" seems key. it will just referenece existing dashboard.
upvoted 2 times
...
Christina666
9 months ago
Selected Answer: B
Option B is the appropriate approach to automate the creation of the CloudWatch dashboard. The SysOps administrator can follow these steps: Export the existing CloudWatch dashboard as JSON: In the AWS Management Console, export the dashboard as a JSON file. This JSON file will contain the configuration and settings of the existing dashboard. Update the CloudFormation template: In the CloudFormation template that defines the application stack, add an AWS::CloudWatch::Dashboard resource. Use the DashboardBody property to include the exported JSON from the existing dashboard. By doing this, when the CloudFormation stack is deployed, it will create a new CloudWatch dashboard based on the JSON configuration provided in the DashboardBody property. Each time a new stack is created, it will automatically generate a new CloudWatch dashboard for that specific application deployment
upvoted 5 times
...
Gomer
11 months, 1 week ago
Selected Answer: B
These links show exactly how to export dashboard to json and also use json define dashboard in template: https://catalog.workshops.aws/observability/en-US/aws-native/dashboards/createcli https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-cloudwatch.html#cloudwatch-sample-dashboard-basic
upvoted 3 times
...
joanneli77
1 year, 2 months ago
B - you cannot !Ref an existing resource.
upvoted 3 times
...
skywalker
1 year, 3 months ago
Selected Answer: C
CCCCCC
upvoted 1 times
...
cmctssg
1 year, 3 months ago
Selected Answer: C
Ans is C
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago