An identity-based policy allows s3:GetObject on objects beneath arn:aws:s3:::example-reports/quarterly/*. A principal then requests s3:ListBucket on arn:aws:s3:::example-reports. Does that statement allow the request?
3 Policies and Permissions Online Quiz Questions
Use this free practice quiz with 20 questions to review 3 Policies and Permissions, test your knowledge, and prepare for your next test or exam.
A request matches both an applicable Allow statement and an applicable explicit Deny statement. Is the request allowed?
- A
True
- B
False
A role’s identity-based policy allows an action on a resource, but its permissions boundary does not allow that action. Can the role use the identity-based permission?
- A
The role can use the permission because an Allow in its identity policy is sufficient.
- B
The role cannot use the identity-based permission because the boundary does not allow the action.
- C
The boundary grants the action even though it does not allow it.
- D
The role can use the permission unless the boundary explicitly denies it.
Select all the request details that should be matched against applicable IAM policies when evaluating an access decision.
- A
The principal making the request
- B
The display name of the policy document
- C
The requested action
- D
The target resource
- E
The policy’s creation date
- F
Relevant conditions
What two-word term describes IAM’s default denial when no applicable Allow grants access?
In a resource-based policy, the field identifies the user, role, account, or other principal the policy addresses.
Which policy type can limit permissions for a session but does not grant permissions by itself?
Service control policies set permission limits for principals in organization accounts, but they do not permissions by themselves.
For a same-account request, select all statements that accurately describe how identity-based and resource-based policies may affect access.
- A
An identity-based policy and a resource-based policy can both contribute an Allow.
- B
A resource-based Allow always overrides an applicable explicit Deny.
- C
Applicable limits and explicit denies can still affect the result.
- D
Every allow and boundary is evaluated identically regardless of the principal named in a resource policy.
An AWS request returns AccessDenied even though one policy appears to allow it. Describe a systematic troubleshooting approach, including what to verify about the request, what policy controls to inspect, and how to use the policy simulator appropriately.
True or false: Because the IAM policy simulator tests selected policies and context values without sending a request to the service, a successful simulation proves that every real request with those inputs will succeed.
- A
True
- B
False
A request is denied even though a policy attached to a role appears to allow the action. What should you verify first about the request’s identity?
- A
Assume the role’s permissions are identical for every session and account.
- B
Confirm whether the request uses the intended user or assumed-role session and the expected account.
- C
Check only the resource owner’s policies because the principal is already known.
- D
Ignore the session identity if an Allow appears in any policy.
For an ordinary AWS request, what is the default access decision when no applicable policy allows the requested action on the resource?
An identity-based policy allows s3:GetObject on arn:aws:s3:::reports/quarterly/*. A user requests s3:GetObject on an object in the archive bucket. Why does this statement not allow the request?
- A
The action does not match because the request uses
s3:GetObject. - B
The resource does not match because the requested object is in a different bucket.
- C
A
Principalfield is missing from the identity-based policy. - D
The policy needs to use
s3:ListBucketfor every S3 request.
What AWS action is normally required to list the contents of an S3 bucket?
True or false: An identity-based IAM policy omits the Principal field because the attached identity is implied.
- A
True
- B
False
A role policy allows s3:GetObject on a matching resource only when the request context includes Project=Orion. The action and resource match, but the request has no Project tag. What follows from this statement?
- A
The request is allowed because the action and resource match; conditions are informational.
- B
The request is allowed if the user belongs to a group.
- C
The Allow does not apply because the required
Projecttag is missing. - D
The request is denied only if the policy also names a
Principal.
A role's identity-based policy allows an action on a resource, but its permissions boundary does not allow that action. Can the role use the identity-based permission?
- A
The request is allowed because an identity policy always takes precedence over a boundary.
- B
The role cannot use that identity-based permission because the boundary does not allow the action.
- C
The boundary grants the action if the resource policy also allows it.
- D
The request is allowed unless the boundary explicitly denies the action.
A request matches an applicable Allow and an applicable explicit Deny. What is the access decision?
- A
The request is allowed because an Allow is present.
- B
The result depends only on which statement appears first.
- C
The request is denied because an applicable explicit Deny overrides an Allow.
- D
The request is allowed unless the Deny is in a resource-based policy.
An SCP allows an action, but the principal has no applicable identity-based or resource-based Allow for it. Does the SCP by itself grant access?
- A
The request is allowed because the SCP allows the action.
- B
The SCP alone does not grant the action; another applicable policy must provide an Allow.
- C
The SCP automatically grants the action to every principal in the account.
- D
The SCP applies only to resource-based policies.
Related study packs and tools
- Quiz
1 Layer 2 Switching Fundamentals
A medium-difficulty quiz on how Layer 2 switches learn MAC addresses, forward and filter frames, and apply VLAN boundaries.
CCNA VLANs and SwitchingUpdated - Quiz
1 Routing Tables and Packet Forwarding
Practice interpreting routing-table entries and applying route selection and packet-forwarding rules, from basic route meanings to multi-step analysis.
CCNA Routing and OSPFUpdated - Study guide
1 Routing Tables and Packet Forwarding
Learn how routers read routing tables, select routes, and forward packets using destination prefixes, next hops, and outgoing interfaces.
CCNA Routing and OSPFUpdated - Quiz
2 Static Routing Practice
Practice configuring, verifying, and troubleshooting IPv4 static routes, including route selection and administrative distance.
CCNA Routing and OSPFUpdated - Study guide
2 Static Routing Practice
Learn how to configure, select, verify, and troubleshoot IPv4 static routes on Cisco IOS and IOS XE, including default and backup routes.
CCNA Routing and OSPFUpdated - Quiz
2 VLAN Configuration
A medium-difficulty quiz on VLAN concepts, access-port configuration, verification, and troubleshooting.
CCNA VLANs and SwitchingUpdated - Quiz
3 Trunk Configuration
A medium-difficulty quiz on configuring, verifying, and troubleshooting IEEE 802.1Q trunks.
CCNA VLANs and SwitchingUpdated - Quiz
4 Route Selection and Troubleshooting
A medium-difficulty quiz on route selection and troubleshooting, covering routing metrics, administrative distance, longest-prefix matching, route usability, and Cisco IOS diagnostic commands.
CCNA Routing and OSPFUpdated - Quiz
4 Spanning Tree Protocol
A medium-difficulty quiz on STP loop prevention, root and port selection, VLAN-specific operation, configuration, and troubleshooting.
CCNA VLANs and SwitchingUpdated - Flashcards
5 Layer 2 Switching Troubleshooting Scenarios
Review how to diagnose common Layer 2 switching problems by tracing VLANs, trunks, spanning tree, and MAC learning end to end.
CCNA VLANs and SwitchingUpdated - Quiz
5 Layer 2 Switching Troubleshooting Scenarios
Apply Layer 2 troubleshooting checks to diagnose VLAN, trunk, MAC-learning, and spanning-tree behavior. Work from the evidence and select corrections that address the underlying cause without disrupting unrelated traffic.
CCNA VLANs and SwitchingUpdated - Study guide
5 Layer 2 Switching Troubleshooting Scenarios
A practical guide to tracing Layer 2 traffic, diagnosing VLAN and spanning-tree problems, and verifying repairs on switches.
CCNA VLANs and SwitchingUpdated