AWS IAM Policy Flashcards
(207 cards)
What does IAM stand for in AWS?
Identity and Access Management
True or False: IAM policies can only be attached to users.
False
What is the primary purpose of IAM policy conditions?
To specify under what conditions a policy is in effect.
Fill in the blank: IAM policy conditions can be used to restrict actions based on __________.
specific attributes or context
Which operator allows you to specify multiple values for a condition key in IAM policies?
StringEquals
What is the effect of the ‘StringNotEquals’ operator in an IAM policy condition?
It allows access if the value does not match the specified string.
True or False: All IAM policies must include a condition element.
False
What is an example of a condition key used in IAM policies?
aws:SourceIp
What does the condition key ‘aws:MultiFactorAuthPresent’ check for?
Whether MFA authentication is present.
Which operator would you use to check if a string starts with a specific value?
StringLike
True or False: Conditions can be combined using logical operators in IAM policies.
True
What is the purpose of the ‘DateGreaterThan’ condition key?
To check if a date is later than a specified date.
Fill in the blank: The ‘StringEqualsIgnoreCase’ operator compares strings without considering __________.
case sensitivity
What is the effect of the ‘NumericLessThan’ condition operator?
It allows access if a numeric value is less than the specified number.
Which policy element defines the conditions under which a policy statement is effective?
Condition
True or False: The ‘aws:RequestTag’ condition key allows you to restrict actions based on tags attached to the request.
True
What does the condition key ‘aws:UserAgent’ represent?
The user agent string of the client making the request.
Fill in the blank: You can use the condition key ‘aws:PrincipalTag’ to restrict access based on __________.
tags associated with the principal
What is the purpose of the ‘StringContains’ condition operator?
To check if a string contains a specified substring.
True or False: IAM conditions can only be applied to resource-based policies.
False
What is the effect of using ‘NumericEquals’ in an IAM policy condition?
It allows access if a numeric value exactly matches the specified number.
Which condition key is used to restrict access based on the source IP address?
aws:SourceIp
Fill in the blank: The ‘aws:SecureTransport’ condition key verifies if the request is made using __________.
HTTPS
True or False: You can use conditions to limit actions based on the time of day.
True