exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 159 discussion

A company manages AWS accounts for application teams in AWS Control Tower. Individual application teams are responsible for securing their respective AWS accounts.

A DevOps engineer needs to enable Amazon GuardDuty for all AWS accounts in which the application teams have not already enabled GuardDuty. The DevOps engineer is using AWS CloudFormation StackSets from the AWS Control Tower management account.

How should the DevOps engineer configure the CloudFormation template to prevent failure during the StackSets deployment?

  • A. Create a CloudFormation custom resource that invokes an AWS Lambda function. Configure the Lambda function to conditionally enable GuardDuty if GuardDuty is not already enabled in the accounts.
  • B. Use the Conditions section of the CloudFormation template to enable GuardDuty in accounts where GuardDuty is not already enabled.
  • C. Use the CloudFormation Fn::GetAtt intrinsic function to check whether GuardDuty is already enabled. If GuardDuty is not already enabled, use the Resources section of the CloudFormation template to enable GuardDuty.
  • D. Manually discover the list of AWS account IDs where GuardDuty is not enabled. Use the CloudFormation Fn::ImportValue intrinsic function to import the list of account IDs into the CloudFormation template to skip deployment for the listed AWS accounts.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
thanhnv142
Highly Voted 8 months, 3 weeks ago
Selected Answer: A
A is correct: <configure the CloudFormation template> is the requirement of the question. By default, cloudformation doesnot support turning on Guarduty. To turn it on, need to use ACF template in combination with lambda. A: perfectly correct B: no mention of lambda C: Fn::GetAtt intrinsic: This is used to check only. No mention of using lambda to enable Guarduty D: This might work. However, a manual approach is not recommeded
upvoted 7 times
...
d262e67
Highly Voted 10 months ago
Selected Answer: A
A is correct. Conditions are designed to decide whether or not create resources. GetAtt is to retrieve the value of an attribute from a resource in the same template. and manual processes are usually not good.
upvoted 5 times
...
dkp
Most Recent 6 months, 2 weeks ago
Selected Answer: A
answer A
upvoted 2 times
...
DanShone
7 months, 1 week ago
Selected Answer: A
A is correct
upvoted 2 times
...
a54b16f
9 months, 2 weeks ago
Selected Answer: A
standard pattern: use lambda to conditional DO something
upvoted 2 times
...
PrasannaBalaji
10 months ago
Selected Answer: A
A is correct
upvoted 2 times
...
csG13
10 months ago
Selected Answer: A
It's a standard pattern, so A Here is a reference: https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/enable-amazon-guardduty-conditionally-by-using-aws-cloudformation-templates.html
upvoted 5 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