exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 407 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 407
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company runs an application on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Amazon EC2 Auto Scaling group. The company has configured the Amazon CloudWatch agent to capture custom metrics within the instances. When the company launches new instances, the agent starts successfully, but it does not deliver any custom metrics to CloudWatch.

Which action will deliver the custom metrics to CloudWatch?

  • A. Ensure that the CloudWatch agent JSON configuration file has an IAM policy that has the CloudWatch:PutMetricLogs permission attached.
  • B. Ensure that the role used in the EC2 Auto Scaling launch template has the CloudWatchAgentServerPolicy IAM policy attached.
  • C. Attach the CloudWatchAgentServerPolicy IAM policy directly to the EC2 Auto Scaling launch template in the AWS Management Console.
  • D. Attach a JSON script with the CloudWatch:PutMetricLogs permission to the EC2 Auto Scaling launch template in the AVVS Management Console.
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
AWSdeveloper08
1 year, 10 months ago
Selected Answer: B
To deliver the custom metrics captured by the Amazon CloudWatch agent to CloudWatch, the correct action would be: B. Ensure that the role used in the EC2 Auto Scaling launch template has the CloudWatchAgentServerPolicy IAM policy attached. By attaching the CloudWatchAgentServerPolicy IAM policy to the role used in the EC2 Auto Scaling launch template, you grant the necessary permissions for the CloudWatch agent to send custom metrics to CloudWatch. This policy includes permissions such as cloudwatch:PutMetricData that allow the agent to publish custom metrics.
upvoted 2 times
...
breathingcloud
2 years, 3 months ago
Selected Answer: B
Agree with B , it has to be the role
upvoted 2 times
...
KT_Yu
2 years, 3 months ago
Selected Answer: B
You cannot attach a policy in a template, instead attaching it to a role
upvoted 4 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