Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

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

A company's security policies require the use of security hardened AMIs in production environments. A DevOps engineer has used EC2 Image Builder to create a pipeline that builds the AMIs on a recurring schedule.

The DevOps engineer needs to update the launch templates of the company's Auto Scaling groups. The Auto Scaling groups must use the newest AMIs during the launch of Amazon EC2 instances.

Which solution will meet these requirements with the MOST operational efficiency?

  • A. Configure an Amazon EventBridge rule to receive new AMI events from Image Builder. Target an AWS Systems Manager Run Command document that updates the launch templates of the Auto Scaling groups with the newest AMI ID.
  • B. Configure an Amazon EventBridge rule to receive new AMI events from Image Builder. Target an AWS Lambda function that updates the launch templates of the Auto Scaling groups with the newest AMI ID.
  • C. Configure the launch template to use a value from AWS Systems Manager Parameter Store for the AMI ID. Configure the Image Builder pipeline to update the Parameter Store value with the newest AMI ID.
  • D. Configure the Image Builder distribution settings to update the launch templates with the newest AMI IConfigure the Auto Scaling groups to use the newest version of the launch template.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
thanhnv142
Highly Voted 7 months, 1 week ago
Selected Answer: D
D is correct: Image builder has a built-in that allow updating EC2 launch template A: AWS Systems Manager Run Command document is used for running scripts on EC2, not to update B: Lambda is used for other tasks, not this one C: This seems to be a feasible option, but we can update the launch template directly without using parameter store
upvoted 7 times
...
d262e67
Highly Voted 8 months, 2 weeks ago
Selected Answer: D
Definitely D according to this: https://docs.aws.amazon.com/imagebuilder/latest/userguide/dist-using-launch-template.html
upvoted 5 times
...
f4bi4n
Most Recent 3 weeks ago
Selected Answer: C
I would go with C even when D seems to be the primary choice. In D, you would need to maintain all of the launchTemplateConfigurations in a list, which means there is a lot of overhead. With C this is not the case
upvoted 1 times
...
Gomer
2 months, 2 weeks ago
Answers B, C, and D can work. I'm leaning towards "D", but I'm witholding a formal vote for now. It appears the "correct" answer may depend on how you interpret requirements. NOT B: EventBridge/Lamba can work, but not as simple as D or C. It DOES "update the launch templates of the company's Auto Scaling groups." NOT C: Answer C can work and is fairly simple, but it DOES NOT "update the launch templates of the company's Auto Scaling groups", because it does not need to, which could be argued is "operationally efficient". YES D: Seems like simple solution. ASG does need to be updated, but I don't know if that means defining someting like an $LATEST AMI alias (pointer) in ASG, or if ASG actually needs to be updated for each new version of Launch template. This solution could be more complex than C:.
upvoted 1 times
...
TEC1
4 months ago
Selected Answer: C
C: This involves configuring the launch template to reference the AMI ID stored in the AWS Systems Manager Parameter Store. The EC2 Image Builder pipeline is then set up to update this Parameter Store value each time a new AMI is built. By doing so, the launch template always points to the latest AMI without requiring manual updates each time a new AMI is built. This approach automates the update process and ensures that Auto Scaling groups always use the most recent and secure AMIs, with minimal manual intervention and operational overhead.
upvoted 1 times
...
dkp
5 months ago
Selected Answer: D
ans is D
upvoted 2 times
...
WhyIronMan
5 months, 2 weeks ago
Selected Answer: D
D is the correct and best practice suggested by aws https://docs.aws.amazon.com/imagebuilder/latest/userguide/dist-using-launch-template.html
upvoted 4 times
...
stoy123
5 months, 3 weeks ago
Selected Answer: B
answer B
upvoted 2 times
...
Seoyong
5 months, 3 weeks ago
Selected Answer: B
C is not efficiency . https://aws.amazon.com/blogs/compute/tracking-the-latest-server-images-in-amazon-ec2-image-builder-pipelines/
upvoted 1 times
...
ogerber
6 months ago
Selected Answer: D
its D, 100% Configure the Image Builder distribution settings to update the launch templates with the newest AMI IConfigure the Auto Scaling groups to use the newest version of the launch template.
upvoted 2 times
...
kyuhuck
7 months ago
Selected Answer: C
add Explanation 'c' cause = chat gpt4.0 = c and i think The most operationally efficient solution is to use AWS systems manager parameter store1 to store the ami di and reference it in the launch template2. this way, the launch template does not nned to be updated event titme a new ami is created by image buider, instead the image builder prpeline, can update the parameter store value with the newest ami id3,j and the auto scaling gorup can launch instances using the lastest value from parameter store
upvoted 2 times
WhyIronMan
5 months, 2 weeks ago
don't trust chat gpt to help you pass exam, studying is the right way. Question says "Which solution will meet these requirements with the MOST operational efficiency?" you are adding more steps than it needs in D. Option C involves using Systems Manager Parameter Store to manage the AMI ID, but it requires manual updates to the Parameter Store value, which may not be as efficient or automated as directly configuring Image Builder to update the launch templates remember that Parameter store is not supported in distribution settings of image builder
upvoted 2 times
...
...
kyuhuck
7 months ago
Selected Answer: C
Given these options, C represents the most operationally efficient solution that meets the requirements. It automates the process of using the newest AMIs for EC2 instance launches within Auto Scaling groups by leveraging the AWS Systems Manager Parameter Store and EC2 Image Builder. This method ensures that the Auto Scaling groups always use the latest security-hardened AMIs without needing to manually update launch templates for each new AMI release, thereby streamlining operations and maintaining compliance with the company's security policies.
upvoted 2 times
...
a54b16f
8 months, 1 week ago
Selected Answer: D
D is correct. Actually C is also a valid option to pass AMI ID into launch template, but it has lots of limitations and not used in enterprise environment
upvoted 3 times
...
kabary
8 months, 2 weeks ago
Selected Answer: D
Answer is D.
upvoted 2 times
...
PrasannaBalaji
8 months, 3 weeks ago
D is correct
upvoted 1 times
...
csG13
8 months, 3 weeks ago
Selected Answer: B
B seems like an option
upvoted 2 times
csG13
8 months, 3 weeks ago
now that I think twice about it, D seems to be the most operationally efficient. I change my answer to D.
upvoted 1 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 ...