Question 230

A role-chaining workflow requests a duration rejected by STS. What should be checked?

  1. The duration limit applicable to chained role sessions
  2. Only the target role's configured general maximum
  3. Only the ordinary duration accepted for a first non-chained role assumption
  4. Only the role's creation timestamp

Explanation

Correct Answer

A:

Role chaining has its own supported lifetime constraint, so the target role's general maximum is not the only limit on the requested session.

Incorrect Answers

B:

Chaining can impose a separate lower limit, so the role's ordinary maximum alone does not establish an accepted duration.

C:

The chaining flow can impose a separate limit, so success in the initial credential flow does not establish the allowed duration of the next one.

D:

The age of the IAM role does not exempt a chained session from its applicable service duration restriction.

Question 231

An application redirects users to an unapproved callback URL after login. Which configuration should be corrected?

  1. Only the database encryption key
  2. The approved OAuth callback destinations
  3. Only the instance AMI version
  4. Only the API's idle timeout

Explanation

Correct Answer

B:

Restricting redirect destinations prevents authentication artifacts from being sent to arbitrary endpoints selected by an attacker.

Incorrect Answers

A:

At-rest cryptography does not validate where browser authentication responses and authorization codes are redirected.

C:

An operating-system image update does not necessarily correct the identity application's allowed redirect destination list.

D:

Connection duration does not determine whether the identity provider accepts an unapproved callback destination.

Question 232

A workload rotated its user key, but a cached credential provider still signs with the old key. What should be fixed?

  1. Only the user's console password
  2. The deployed credential source and refresh behavior
  3. Only the log-group retention
  4. Only the new key's creation status in IAM

Explanation

Correct Answer

B:

Rotation is complete operationally only when authorized consumers load the intended credential and the retired key is no longer required.

Incorrect Answers

A:

Programmatic request signing uses the loaded access key material, so changing the console password does not update that cache.

C:

Retention affects diagnostics lifetime and does not change which credential the running client uses to authenticate API requests.

D:

The replacement can exist while the running application still loads the old values; consumer adoption and cache refresh must also be verified.

Question 233

One application uses the same IAM user key in development and production. Which change improves identity separation?

  1. Give the shared user a longer password
  2. Rotate the shared key but keep identical broad use
  3. Rename both environments identically
  4. Use distinct scoped workload roles for each environment

Explanation

Correct Answer

D:

Separate temporary identities confine permissions and revocation impact, reducing the chance that a development compromise grants production authority.

Incorrect Answers

A:

The workload uses API credentials, and password length does not isolate the permissions exercised by development and production.

B:

Rotation changes the secret value but preserves the cross-environment privilege coupling that creates the stated risk.

C:

Removing environment distinction makes administration harder and does not create separate authentication or authorization boundaries.

Question 234

A developer may create roles only when an approved boundary is attached. Which policy condition is relevant?

  1. Require only sts:AssumeRole permission on the creator
  2. Allow all CreateRole calls and inspect them monthly
  3. Require the approved iam:PermissionsBoundary value on role creation
  4. Require only a descriptive role name

Explanation

Correct Answer

C:

The condition constrains which boundary accompanies the new role; separate controls must prevent unauthorized removal or substitution afterward.

Incorrect Answers

A:

The ability to assume roles does not constrain which permissions boundary accompanies a newly created role or prevent unbounded role creation.

B:

After-the-fact review leaves a window for unbounded role creation and does not enforce the required condition at creation time.

D:

Names can organize roles but do not impose the maximum permissions that the delegated role creator may grant.

Question 235

A role can pass any administrator role to a compute service. What least-privilege control is needed?

  1. Allow PassRole on every role permanently
  2. Restrict iam:PassRole to approved role ARNs and intended services
  3. Rename the administrator role
  4. Remove only console access

Explanation

Correct Answer

B:

Passing a powerful role can transfer authority to service-executed code, so both the role scope and service context should match the delegated deployment need.

Incorrect Answers

A:

An unrestricted role-passing grant preserves the escalation path instead of limiting which authority the user can delegate to the service.

C:

A label change is not a dependable authorization boundary and does not narrow an existing wildcard PassRole grant.

D:

Programmatic credentials can still invoke allowed deployment APIs and pass a powerful role, so console restriction alone does not close the path.

Question 236

An IAM user can call CreatePolicyVersion on a managed policy attached to that user and can set the new version as default. No boundary or organization restriction limits the resulting actions. What risk exists?

  1. The new version becomes harmless because the old version still exists
  2. The user can activate a broader policy version for its own effective permissions
  3. The user also needs AttachUserPolicy for an already attached policy to change effect
  4. Policy versions affect only human-readable revision history

Explanation

Correct Answer

B:

The default managed-policy version is the one evaluated for attached identities. Creating a permissive version and making it default can escalate authority without a new policy attachment.

Incorrect Answers

A:

Retaining historical versions does not stop the new default from being evaluated for the user's requests.

C:

The attachment already exists. Changing the default version can alter its effective grant without creating another attachment.

D:

Versions contain actual permission statements, and selecting the default changes which statements attached identities use.

Question 237

A session policy allows more actions than the assumed role's identity policy. Does it expand the session's role permissions?

  1. Yes; STS always grants the union of all actions
  2. Yes, if the session policy uses Resource '*'
  3. No; the session policy restricts rather than independently expands authority
  4. Yes; the supplied policy replaces every role restriction

Explanation

Correct Answer

C:

The effective permission path is constrained by the role and session policy intersection, subject to other applicable policies.

Incorrect Answers

A:

Session policies are not a general additive privilege grant over the role's identity-based permissions.

B:

A broad resource selector cannot independently expand the role's base identity permissions through a restrictive session-policy mechanism.

D:

A caller cannot create additional authority merely by requesting a broader session policy than the role otherwise permits.

Question 238

An ABAC policy allows access when a resource Project tag matches the principal Project tag. What additional control is crucial?

  1. Remove all resource tags after deployment
  2. Restrict who may change the authorization-relevant tags
  3. Use Project tags only in documentation
  4. Allow every user to set any Project value

Explanation

Correct Answer

B:

If users can freely change the compared attributes, they may move themselves or resources into an unauthorized access category.

Incorrect Answers

A:

Deleting the attributes can break legitimate access and does not provide a controlled lifecycle for the authorization data.

C:

Documented labels that are not evaluated and controlled do not implement the requested attribute-based permission boundary.

D:

Unrestricted tag editing lets a caller manipulate the policy inputs and bypass the intended project isolation.

Question 239

A principal has Project=Blue. A tagged resource has Project=Green. The only allow requires equality. What result follows?

  1. Access succeeds because principal tags override resource tags
  2. Access creates a new matching resource tag
  3. Access is not granted through that ABAC statement
  4. Access succeeds because both tags exist

Explanation

Correct Answer

C:

The comparison fails, so the conditional allow does not apply. The result depends on other grants, which the stem excludes.

Incorrect Answers

A:

The two values are inputs to comparison; one does not automatically overwrite the other during authorization.

B:

Policy evaluation does not mutate resource metadata to manufacture a condition that would allow the caller.

D:

Existence alone does not satisfy the equality condition between the principal and resource attribute values.

Question 240

A bucket policy should permit only principals from the organization's current accounts. Which condition can reduce account-list maintenance?

  1. aws:PrincipalOrgID
  2. aws:SourceIp alone
  3. aws:CurrentTime alone
  4. aws:SourceAccount alone for every direct caller

Explanation

Correct Answer

A:

The organization identifier can constrain matching principals without enumerating every member account, though required service access and exceptions need careful treatment.

Incorrect Answers

B:

An address restriction describes network origin, not membership of the principal's AWS account in the organization.

C:

Time conditions can bound access periods but cannot establish organization membership of the authenticated caller.

D:

That key is particularly relevant to supported service-to-service contexts and is not a universal replacement for a principal's organization membership test.

AWS Certified Security - Specialty SCS-C03 Practice Tests