Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon DOP-C02 Exam - Topic 2 Question 69 Discussion

Posted by Starr on Oct 01, 2026 at 05:54 PM

A company is reviewing its 1AM policies. One policy written by the DevOps engineer has been (lagged as too permissive. The policy is used by an AWS Lambda function that issues a stop command to Amazon EC2 instances tagged with Environment: NonProduccion over the weekend. The current policy is:

What changes should the engineer make to achieve a policy ot least permission? (Select THREE.)

Suggested Answer: A, B, D

The engineer should make the following changes to achieve a policy of least permission:

A: Add a condition to ensure that the principal making the request is an AWS Lambda function. This ensures that only Lambda functions can execute this policy.

B: Narrow down the resources by specifying the ARN of EC2 instances instead of allowing all resources. This ensures that the policy only affects EC2 instances.

D: Add a condition to ensure that this policy only applies to EC2 instances tagged with ''Environment: NonProduction''. This ensures that production environments are not affected by this policy.

:

AWS Identity and Access Management (IAM) - AWS Documentation

Certified DevOps Engineer - Professional (DOP-C02) Study Guide (page 179)


Get Premium DOP-C02 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
AD
Aditya Bansal 6 days ago
Maybe B is not correct because the tricky part is combining principal type and ARN scope with tags, and A or D might constrain scope.
SU
Sumayya Malik 22 days ago
Going with A, B, D since the tricky part is restricting the principal and resources.
HA
Harsh Nair 2 days ago
↳ replying to Sumayya Malik
Not sure about A, the question seems to focus on least privilege and I’d consider C for stricter scope.
DA
Daniel Baker 7 days ago
↳ replying to Sumayya Malik
Why does restricting the principal to Lambda outweigh the resource restriction, given the weekend scope?
AN
Annette 3 days ago
Totally agree, we need least privilege for sure!
CH
Chaya 8 days ago
Surprised it was ever that permissive!
AL
Alesia 13 days ago
Not sure if that's the right approach, though.
DE
Deeanna 19 days ago
I think Option C is the best choice here!
KA
Kaitlyn 24 days ago
The policy definitely needs tightening up.
RO
Rolland 29 days ago
I definitely remember that we should avoid wildcard permissions, but I’m unsure which options specifically address that in this scenario.
PH
Phyliss 1 month ago
I feel like options that limit the scope to just the tagged instances are key, but I can't recall if we need to specify the exact stop command.
PA
Patrick 1 month ago
I think we practiced a similar question where we had to limit permissions for an S3 bucket. Maybe we need to focus on the actions related to EC2 instances here too?
LU
Lucina 1 month ago
I remember we discussed the principle of least privilege in class, but I'm not sure which specific actions to restrict in this case.
0/2000 characters

Save Cancel