Curated

Identity and Access Management (4.1–4.2)

0 votes

Questions60

  1. Question 51

    Identity and Access Management

    An audit finds that an unintended role can decrypt with a KMS key through a specific grant, even after its identity-policy Allow was removed. Other grants support production services, and the key must remain usable; which correction most narrowly removes the unintended access?

    Show the answer

    Correct answerD. Revoke the identified grant

    AWhy not this: Removing key administrators does not revoke the role's existing grant and could impair key management.

    BWhy not this: Disabling the key would also stop legitimate production cryptographic operations.

    CWhy not this: Revoking every grant would unnecessarily remove grants required by production services.

    DWhy this is right: Revoking the specific grant removes the identified authorization while preserving the key and unrelated grants.

    A KMS grant independently authorizes supported key operations, so removing an identity-policy Allow does not necessarily remove grant-based access. Revoking the identified grant removes that authorization without disrupting unrelated grants; disabling the key would disrupt production use.

    Open this question
  2. Question 52

    Identity and Access Management

    IAM Access Analyzer reports an S3 bucket policy grant to an external account. The owner confirms the grant is obsolete; which action removes the unintended authorization?

    Show the answer

    Correct answerD. Remove the external account's bucket policy grant

    AWhy not this: Archiving records a finding-management decision without revoking resource access.

    BWhy not this: An archive rule suppresses matching findings without removing the permissions that caused them.

    CWhy not this: Policy validation can identify policy issues but does not remove an existing grant.

    DWhy this is right: Removing the obsolete grant changes the resource's authorization policy and eliminates that access path.

    Removing the obsolete bucket policy grant removes the identified authorization. Archiving a finding, manually or with an archive rule, only changes finding management and leaves the resource policy unchanged.

    Open this question
  3. Question 53

    Identity and Access Management

    An organization-level IAM Access Analyzer external access analyzer reports no findings for an S3 bucket in account A, although its bucket policy grants a role in another member account read access. The security team wants grants like this to appear as external access findings for account A's resources. What should the team do?

    Show the answer

    Correct answerC. Create an external access analyzer with account A as its zone of trust.

    AWhy not this: Unused access analyzers report unused roles, keys and permissions, not cross-account grants.

    BWhy not this: Another organization-level analyzer has the same zone of trust, so member accounts stay inside it.

    CWhy this is right: With account A as the zone of trust, access from any other account produces an external access finding.

    DWhy not this: An archive rule hides findings; it would suppress, not reveal, this kind of access.

    An analyzer's zone of trust decides what counts as external. With the organization as the zone of trust, other member accounts are inside it; an account-level analyzer in account A treats every other account, including member accounts, as external. An unused access analyzer reports unused permissions instead.

    Open this question
  4. Question 54

    Identity and Access Management

    A role can read an S3 object through a public service endpoint but receives AccessDenied through a VPC endpoint. Its identity policies and the bucket policy are unchanged; which policy should be examined first?

    Show the answer

    Correct answerA. The VPC endpoint policy

    AWhy this is right: The endpoint policy adds an authorization control specifically to requests traversing the VPC endpoint.

    BWhy not this: A session policy limits the session's permissions across both paths rather than only requests through the endpoint.

    CWhy not this: A permissions boundary limits the role across both paths and does not by itself explain the path-specific failure.

    DWhy not this: A trust policy controls who can assume the role, not which network path an S3 request can use.

    A VPC endpoint policy can restrict requests passing through that endpoint, explaining why only that path fails. A role trust policy controls role assumption, not an already assumed role's S3 requests.

    Open this question
  5. Question 55

    Identity and Access Management

    Which tool evaluates whether an IAM identity's policies allow a specified action without making the actual service request?

    Show the answer

    Correct answerD. IAM Policy Simulator

    AWhy not this: Policy validation identifies syntax errors and security recommendations, not an identity's authorization result.

    BWhy not this: External access analysis identifies resource policies that allow access from outside a zone of trust.

    CWhy not this: Event history records actual API activity rather than evaluating hypothetical requests.

    DWhy this is right: The simulator evaluates specified actions and resources against applicable supported policies without executing service requests.

    IAM Policy Simulator evaluates policy permissions for specified actions and resources without executing the actions. IAM Access Analyzer policy validation checks policy grammar and security practices rather than simulating an identity's request.

    Open this question
  6. Question 56

    Identity and Access Management

    An IAM Access Analyzer unused access finding identifies unused actions in a production role that also has actively used permissions. After confirming application requirements, what is the BEST remediation?

    Show the answer

    Correct answerD. Remove the unused actions while retaining the permissions the application needs.

    AWhy not this: A permissions boundary does not grant permissions, so replacing the role's policies with it would break required access.

    BWhy not this: Tags do not reduce existing permissions unless applicable policies use them to constrain authorization.

    CWhy not this: Deleting an actively used role disrupts required access rather than selectively removing unnecessary permissions.

    DWhy this is right: Confirmed unused actions can be removed without discarding the permissions required by the application.

    Removing verified unused actions reduces unintended privileges while preserving required application access. A permissions boundary limits permissions but does not grant the permissions that replacing the role's policies would remove.

    Open this question
  7. Question 57

    Identity and Access Management

    IAM Access Analyzer reports separate S3 bucket policy grants to an approved vendor and an unauthorized external account. Which actions preserve approved access while remediating the unauthorized access and appropriately handling the findings? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Archive the approved vendor's finding after verifying its scope.B. Remove the bucket policy grant to the unauthorized account.

    AWhy this is right: Archiving records that the reviewed external access is intended without removing the vendor's permissions.

    BWhy this is right: Removing the resource policy grant eliminates the identified source of unauthorized access.

    CWhy not this: Archiving suppresses the finding but does not change the bucket policy or revoke access.

    DWhy not this: An administrator's permissions boundary does not restrict permissions granted to an external account by a bucket policy.

    Archiving is appropriate for reviewed, intended access; removing the unauthorized bucket policy grant remediates the unwanted access. Archiving a finding changes its status, not the permissions that caused it.

    Open this question
  8. Question 58

    Identity and Access Management

    An organization-scoped IAM Access Analyzer external access analyzer reports no findings for an S3 bucket, but its policy unintentionally grants access to another member account. Which response BEST explains and corrects the oversight?

    Show the answer

    Correct answerC. Member accounts are inside the trust zone; narrow the bucket policy to intended principals.

    AWhy not this: Principal tags are not required for external access analysis and do not independently constrain the bucket policy.

    BWhy not this: A bucket policy can grant cross-account access without requiring assumption of the bucket administrator's role.

    CWhy this is right: Organization members are inside the analyzer's trust zone, but unintended grants in the bucket policy still require correction.

    DWhy not this: External access analysis examines supported resource policies, not just identity policies.

    An organization-scoped external access analyzer treats member accounts as inside its zone of trust, so no external finding is expected. The bucket policy must still be narrowed; absence of an external finding does not establish that internal access is intended.

    Open this question
  9. Question 59

    Identity and Access Management

    A review finds that a Lambda function's resource-based policy allows the s3.amazonaws.com service principal to invoke the function with no conditions. Only the company's bucket uploads-prod in account 111122223333 should be able to trigger it. Which correction removes the unintended authorization while keeping the trigger working?

    Show the answer

    Correct answerA. Add aws:SourceArn for the bucket and aws:SourceAccount for 111122223333 to the statement.

    AWhy this is right: The source conditions restrict the S3 service principal to invocations caused by that one bucket in that account.

    BWhy not this: The execution role governs the function's own calls, not invocations of the function.

    CWhy not this: Archiving a finding only changes how it is tracked; the policy still grants the access.

    DWhy not this: S3 invokes the function as its service principal, so an account-principal grant would break the trigger.

    Without conditions, any bucket in any account could cause S3 to invoke the function (a confused deputy). Adding aws:SourceArn for the bucket and aws:SourceAccount for the owning account limits the grant to that bucket. The execution role controls what the function can do, not who can invoke it, and archiving a finding changes nothing.

    Open this question
  10. Question 60

    Identity and Access Management

    A KMS key administrator discovers an unauthorized grant allowing a retired vendor role to decrypt; removing the vendor's key policy statement did not remove the grant's authorization. The provisioning role can still create arbitrary grants, and legitimate service grants must remain; which remediation BEST meets these constraints?

    Show the answer

    Correct answerB. Revoke the vendor grant and constrain the provisioning role's CreateGrant permissions.

    AWhy not this: Restricting future grant creation does not revoke existing grants, and KMS grants do not automatically expire.

    BWhy this is right: Targeted revocation removes the vendor's grant, while constrained grant creation reduces recurrence without removing service grants.

    CWhy not this: Disabling the key and removing legitimate grants would disrupt service access unnecessarily.

    DWhy not this: Changing the provisioning role's Decrypt permissions does not revoke a grant authorizing the vendor role.

    Revoking the specific grant removes its authorization while preserving legitimate grants; constraining CreateGrant addresses recurrence. KMS grants do not expire automatically, so restricting future grant creation alone leaves the existing exposure.

    Open this question