Question 260

Verified Permissions evaluates one matching Cedar permit policy and one matching Cedar forbid policy for the same invoice approval request. Neither policy has an evaluation error. What decision follows?

  1. Allow, because any permit always overrides a forbid
  2. Use whichever policy was created most recently
  3. Alternate between allow and deny across retries
  4. Deny, because the matching forbid takes precedence

Explanation

Correct Answer

D:

A satisfied forbid overrides satisfied permits for the request. The application must enforce the returned decision rather than treating successful user authentication as sufficient approval authority.

Incorrect Answers

A:

That reverses Cedar's conflict behavior and would incorrectly authorize an operation that a matching prohibition blocks.

B:

Policy creation time does not replace the defined evaluation semantics when both matching effects are present.

C:

The same policies and request context are not resolved by random selection; retrying does not cancel the matching forbid.

Question 261

A boundary is attached to a user with no identity-policy allows and no other grants. Does the boundary alone allow its listed actions?

  1. No; a boundary is a ceiling rather than an independent grant
  2. Yes, when the boundary is an AWS managed policy
  3. Yes; every boundary statement grants direct access
  4. Yes; attaching a boundary implies administrator trust

Explanation

Correct Answer

A:

It limits the identity-based permissions that can be exercised, but the principal still needs an applicable permission grant for the action.

Incorrect Answers

B:

The policy's source does not change its role as a permissions ceiling rather than an independent identity permission grant.

C:

Treating the maximum permission set as an identity grant confuses two distinct policy roles in evaluation.

D:

The attachment establishes a restriction and does not itself confer broad resource access.

Question 262

In one account, an S3 bucket policy directly allows PutObject to a specific assumed-role session ARN. The role permissions boundary omits PutObject but contains no explicit deny. No SCP, RCP, or other applicable policy denies the action. What is the relevant evaluation rule?

  1. The direct session grant is not limited by that implicit boundary omission
  2. The boundary omission is automatically an explicit deny in every policy path
  3. The bucket policy is ignored because the caller uses a role session
  4. The session must first become the account root user

Explanation

Correct Answer

A:

A same-account resource policy can grant directly to the session principal. Such a grant is not limited by the implicit omission in the identity policy, boundary, or session policy, while applicable explicit denies still take precedence.

Incorrect Answers

B:

An omitted action is an implicit restriction in that policy, not an explicit Deny statement. Direct session-principal resource grants have different evaluation behavior from ordinary identity-policy grants.

C:

Supported resource policies are evaluated for session principals. The exact Principal form matters, so ignoring the policy would miss the direct permission path stated in the scenario.

D:

The permission path is the bucket policy grant to the authenticated session. Root identity is neither required nor an appropriate replacement for understanding the stated authorization evaluation.

Question 263

A policy uses NotAction in an Allow statement. What review prevents accidental overgranting?

  1. Count only the named actions as allowed
  2. Ignore the Resource element
  3. Determine all actions included by the complement within the resource scope
  4. Assume NotAction always means explicit denial

Explanation

Correct Answer

C:

NotAction can allow a broad set of actions except those named, so reviewers must evaluate its actual scope rather than reading it as a deny list.

Incorrect Answers

A:

That reverses the complement semantics and can conceal permissions granted to actions absent from the list.

B:

Resource applicability still affects evaluation and cannot be discarded when interpreting the statement's actual permission scope.

D:

Its effect depends on the statement's Effect; in an Allow it defines which actions are included in the grant.

Question 264

An identity should be denied access outside approved Regions, but global services need exceptions. What must the policy consider?

  1. Only the instance Availability Zone
  2. Only the role creation Region
  3. The requested-Region condition and necessary global-service exclusions
  4. Only the account's preferred console Region

Explanation

Correct Answer

C:

Region restrictions need careful service semantics because global endpoints can use a designated Region and otherwise be blocked unintentionally.

Incorrect Answers

A:

One workload's zone does not define the authorization context for all regional and global service requests by the principal.

B:

IAM roles are not ordinary Regional workload resources whose creation location automatically supplies a complete Region-deny strategy.

D:

A UI preference does not enforce where API requests are permitted or account for global-service endpoint behavior.

Question 265

A principal should access a bucket only through a specified VPC endpoint. Which bucket-policy condition is relevant?

  1. Only aws:SourceIp matching the instance's private address
  2. Only the object's last-modified time
  3. Only the bucket's storage Region
  4. aws:SourceVpce with carefully designed deny logic

Explanation

Correct Answer

D:

The request context can identify the endpoint used, allowing enforcement of the intended path while approved service and administrative exceptions are considered.

Incorrect Answers

A:

The public service request context does not universally expose that private address as the source; the endpoint identifier directly expresses the required path.

B:

Object timestamps do not identify or constrain the network endpoint used by the authenticated caller.

C:

Resource location is not evidence of which VPC endpoint carried a particular incoming request.

Question 266

A console administrator is locked out after an endpoint-only bucket deny. Why can this happen?

  1. The bucket became a local disk
  2. S3 automatically removed every administrator role
  3. Console users automatically bypass bucket policies
  4. Console requests may not use the specified VPC endpoint

Explanation

Correct Answer

D:

A path-based explicit deny can affect administrators too. Recovery requires the authorized policy-change path, not an assumption that console use bypasses resource conditions.

Incorrect Answers

A:

S3 remains a managed storage resource, and its policy evaluation does not change into operating-system filesystem permissions.

B:

A denied request does not imply deletion of IAM identities; the described condition can explain the access failure.

C:

Administrative sign-in does not universally exempt requests from applicable explicit resource-policy denies.

Question 267

An applicable IAM Deny statement has BoolIfExists: {"aws:MultiFactorAuthPresent": "false"}. A user signs a request with a long-term access key, so that context key is absent. How does this condition affect the request?

  1. The condition automatically converts the key into MFA-authenticated credentials
  2. An identity-policy Allow cancels this matching Deny
  3. The condition matches, so the applicable Deny blocks the request
  4. The missing key always causes the Deny statement to be skipped

Explanation

Correct Answer

C:

IfExists treats the missing key as satisfying this condition. In a Deny statement, this pattern can cover long-term-key requests that do not contain MFA session context.

Incorrect Answers

A:

Policy evaluation grants or denies a request; it does not perform an MFA exchange or issue a new temporary credential set.

B:

An applicable explicit deny takes precedence over an allow, including when the condition matched because of its defined missing-key behavior.

D:

That would be an unsafe assumption about IfExists. Missing-key behavior is precisely why it differs from an ordinary Boolean comparison.

Question 268

A service action does not support resource-level permissions. What does a valid least-privilege grant require?

  1. No Action element at all
  2. An unsupported custom condition key naming the desired resource
  3. Resource '*' with supported action and condition restrictions
  4. An invented resource ARN

Explanation

Correct Answer

C:

Some APIs cannot be scoped to individual resource ARNs; narrow actions and available conditions provide the practical restrictions instead.

Incorrect Answers

A:

Omitting the required action definition does not create a valid grant limited to the intended unsupported-resource operation.

B:

Inventing a condition does not add enforcement support; constraints must use the action's documented resource and condition capabilities.

D:

A syntactically plausible but unsupported ARN does not create resource-level authorization support for that API action.

Question 269

A team wants to derive a starting least-privilege policy from observed API usage. Which Access Analyzer capability is relevant?

  1. External-access finding archival
  2. An external-access archive rule
  3. A manually assigned ReadOnly policy name
  4. Policy generation from CloudTrail activity

Explanation

Correct Answer

D:

Observed actions can inform a candidate policy, but the review must consider unobserved legitimate paths and scope before treating it as a complete role definition.

Incorrect Answers

A:

Archiving a finding changes its workflow status rather than generating an identity policy from recorded API activity.

B:

Finding suppression documents expected external relationships and does not derive the workload's observed API action set from CloudTrail history.

C:

A descriptive policy label does not infer the workload's observed actions or generate a candidate policy from CloudTrail evidence.

Question 270

A generated policy excludes an emergency recovery operation never used during observation. What should reviewers do?

  1. Add justified recovery permissions after reviewing the required workflow
  2. Grant all services permanently without review
  3. Delete the recovery procedure
  4. Assume unused means permanently unnecessary

Explanation

Correct Answer

A:

Usage-derived policies reflect the observation window, not every legitimate future task. Tested emergency paths need explicit consideration rather than blind removal.

Incorrect Answers

B:

A missed recovery action justifies targeted correction, not unrestricted privilege across every unrelated AWS resource.

C:

Removing a documented business requirement to fit an incomplete generated policy reverses the proper relationship between policy and authorized work.

D:

Rare but essential recovery actions can be absent from ordinary usage while remaining necessary for the authorized operational role.

AWS Certified Security - Specialty SCS-C03 Practice Tests