Examtopics

AWS Certified DevOps Engineer - Professional
  • Topic 1 Question 194

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

    What changes should the engineer make to achieve a policy of least permission?

    • Add the following conditional expression:

    • Change "Resource": ""to "Resource": "arn:aws:ec2:::instance/"

    • Add the following conditional expression:

    • Add the following conditional expression:

    • Change "Action": "ec2:*"to "Action": "ec2:StopInstances"

    • Add the following conditional expression:


    シャッフルモード