D4: IAM Policy Language Deep Dive
AWS Certified Security – Specialty exam practice questions · 10 flashcards
Question
NotAction?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 IAM Policy Language Deep Dive practice questions and answers
- NotAction?Applies to all actions except listed; often with Deny for guardrails.
- NotPrincipal?Applies to all principals except listed (use carefully).
- Condition operators?StringEquals/Like, ArnLike, IpAddress, Bool, NumericLessThan, DateGreaterThan, Null.
- ForAllValues vs ForAnyValue?Set operators for multi-valued keys (all values must match vs any).
- aws:SourceIp gotcha?Doesn't apply to calls via VPC endpoints or AWS services on your behalf.
- aws:RequestedRegion?Restrict Regions for API calls.
- aws:CalledVia / aws:ViaAWSService?Identify requests made by AWS services on behalf of principal.
- iam:PassRole?Required to pass a role to a service; restrict to specific role ARNs.
- Policy size limits?Managed policy 6,144 chars; inline per user 2,048 / role 10,240.
- Scenario: allow S3 access only from corporate IPs except via VPC endpoint. Conditions?Deny unless aws:SourceIp in corporate range OR aws:SourceVpce matches.