Question 380
An AWS security team must satisfy TWO independent requirements. First: Security officers want AWS permissions to follow a person's organizational function instead of an explosion of unique user policies. Second: A role can list a bucket but should be prevented from deleting any objects under all circumstances. Which paired approach meets BOTH requirements?
- For the first requirement, define RBAC roles or IAM Identity Center permission sets for distinct job functions; for the second, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration.
- For the first requirement, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration; for the second, add a narrowly scoped explicit deny for destructive S3 object actions.
- For the first requirement, restrict iam:PassRole resource ARNs and the iam:PassedToService condition; for the second, restrict CloudFormation permissions to the relevant stack ARNs and approved actions.
- For the first requirement, define RBAC roles or IAM Identity Center permission sets for distinct job functions; for the second, add a narrowly scoped explicit deny for destructive S3 object actions.
Explanation
Correct Answer
D:RBAC maps responsibilities to reusable permission collections and simplifies entitlement review. An explicit deny provides a guardrail even if another applicable policy grants broad actions elsewhere.
Incorrect Answers
A:Add a narrowly scoped explicit deny for destructive S3 object actions.
B:Define RBAC roles or IAM Identity Center permission sets for distinct job functions.
C:To address both issues, define RBAC roles or IAM Identity Center permission sets for distinct job functions and add a narrowly scoped explicit deny for destructive S3 object actions, respectively.
Question 381
An AWS security team must satisfy TWO independent requirements. First: A vendor role can be assumed by anyone in the customer account because its trust policy names account root broadly. Second: An AWS service needs permission to publish to one SNS topic in another account. Which paired approach meets BOTH requirements?
- For the first requirement, tighten the role trust policy to the required principals and conditions; for the second, configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions.
- For the first requirement, tighten the role trust policy to the required principals and conditions; for the second, use IAM ABAC conditions comparing approved principal tags with resource tags.
- For the first requirement, remove or narrow the resource-policy explicit deny after validating the required access; for the second, configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions.
- For the first requirement, limit the trust principal and add relevant conditions such as an external ID; for the second, remove or narrow the resource-policy explicit deny after validating the required access.
Explanation
Correct Answer
A:A role trust policy controls who may assume the role; the role's permissions policy only defines actions after assumption. Cross-account service publishing often needs destination resource permission and confused-deputy constraints, not only a caller-side role policy.
Incorrect Answers
B:Configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions.
C:Tighten the role trust policy to the required principals and conditions.
D:To address both issues, tighten the role trust policy to the required principals and conditions and configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions, respectively.
Question 382
An AWS security team must satisfy TWO independent requirements. First: A cross-account API call fails although the destination role grants a resource action, because the caller lacks authorization to assume it. Second: A policy permits iam:PassRole on all roles, enabling an attacker to pass a highly privileged role to an authorized service. Which paired approach meets BOTH requirements?
- For the first requirement, grant the caller sts:AssumeRole as needed and verify the destination trust policy separately; for the second, add a supported aws:PrincipalOrgID condition in an appropriate resource policy.
- For the first requirement, grant the caller sts:AssumeRole as needed and verify the destination trust policy separately; for the second, restrict iam:PassRole resource ARNs and the iam:PassedToService condition.
- For the first requirement, restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies; for the second, restrict iam:PassRole resource ARNs and the iam:PassedToService condition.
- For the first requirement, evaluate the caller identity policy, KMS key policy or grants, applicable guardrails, and request context; for the second, run IAM Access Analyzer external-access analysis over supported resource policies.
Explanation
Correct Answer
B:Cross-account role assumption needs compatible caller authorization and target role trust, not just a destination action policy. Constrained PassRole limits which roles a principal can delegate to AWS services and reduces privilege escalation pathways.
Incorrect Answers
A:Restrict iam:PassRole resource ARNs and the iam:PassedToService condition.
C:Grant the caller sts:AssumeRole as needed and verify the destination trust policy separately.
D:To address both issues, grant the caller sts:AssumeRole as needed and verify the destination trust policy separately and restrict iam:PassRole resource ARNs and the iam:PassedToService condition, respectively.
Question 383
An AWS security team must satisfy TWO independent requirements. First: An internal application needs fine-grained authorization decisions for relationships between users, groups, and tenant resources. Second: An AWS role should only be assumable from a specific partner account and a unique trusted integration context. Which paired approach meets BOTH requirements?
- For the first requirement, model application permissions in Amazon Verified Permissions using Cedar policies; for the second, require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal.
- For the first requirement, restrict CloudFormation permissions to the relevant stack ARNs and approved actions; for the second, limit the trust principal and add relevant conditions such as an external ID.
- For the first requirement, model application permissions in Amazon Verified Permissions using Cedar policies; for the second, limit the trust principal and add relevant conditions such as an external ID.
- For the first requirement, update the boundary only if broader permissions are approved, because the role is restricted to the boundary intersection; for the second, use IAM ABAC conditions comparing approved principal tags with resource tags.
Explanation
Correct Answer
C:Verified Permissions provides externalized application authorization decisions; IAM policies are focused on AWS resource API authorization. Trust policy principal and context requirements prevent a broad role assumption surface across unrelated tenants.
Incorrect Answers
A:Limit the trust principal and add relevant conditions such as an external ID.
B:Model application permissions in Amazon Verified Permissions using Cedar policies.
D:To address both issues, model application permissions in Amazon Verified Permissions using Cedar policies and limit the trust principal and add relevant conditions such as an external ID, respectively.
Question 384
An AWS security team must satisfy TWO independent requirements. First: Developers need to ensure one role may change tags but cannot grant itself stronger permissions through the tag values. Second: An engineer needs a quick evaluation of a proposed IAM policy for an API call without making the call against production. Which paired approach meets BOTH requirements?
- For the first requirement, restrict iam:TagRole or related tag operations to approved keys and values with policy conditions; for the second, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration.
- For the first requirement, use IAM ABAC conditions comparing approved principal tags with resource tags; for the second, use IAM Policy Simulator or the supported policy-simulation API for the target request context.
- For the first requirement, restrict CloudFormation permissions to the relevant stack ARNs and approved actions; for the second, add a supported aws:PrincipalOrgID condition in an appropriate resource policy.
- For the first requirement, restrict iam:TagRole or related tag operations to approved keys and values with policy conditions; for the second, use IAM Policy Simulator or the supported policy-simulation API for the target request context.
Explanation
Correct Answer
D:If attributes determine ABAC access, modifying protected attributes can become a privilege-escalation path. Policy simulation models whether specified policies allow a request, but does not substitute for live service or resource-state verification.
Incorrect Answers
A:Use IAM Policy Simulator or the supported policy-simulation API for the target request context.
B:For the first requirement, use IAM ABAC conditions comparing approved principal tags with resource tags; for the second, use IAM Policy Simulator or the supported policy-simulation API for the target request context: restrict iam:TagRole or related tag operations to approved keys and values with policy conditions.
C:To address both issues, restrict iam:TagRole or related tag operations to approved keys and values with policy conditions and use IAM Policy Simulator or the supported policy-simulation API for the target request context, respectively.
Question 385
An AWS security team must satisfy TWO independent requirements. First: An IAM user unexpectedly receives permissions through a group attachment despite having no directly attached allow policy. Second: A role should only access an S3 bucket through a specific VPC endpoint, regardless of what broad identity policy it acquires later. Which paired approach meets BOTH requirements?
- For the first requirement, trace effective permissions across the user's group policies and attached managed policies; for the second, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy.
- For the first requirement, trace effective permissions across the user's group policies and attached managed policies; for the second, remove or narrow the resource-policy explicit deny after validating the required access.
- For the first requirement, evaluate resource control policies on applicable resource types and organizational scopes; for the second, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy.
- For the first requirement, run IAM Access Analyzer external-access analysis over supported resource policies; for the second, change the resource for the ListBucket statement to the bucket ARN.
Explanation
Correct Answer
A:Group policies contribute to user authorization, so reviewing only inline user policy documents misses effective grants. The resource-based network-path condition constrains access beyond identity grants, subject to carefully designed service exceptions.
Incorrect Answers
B:Add an appropriate source-VPC-endpoint restriction to the bucket's resource policy.
C:For the first requirement, evaluate resource control policies on applicable resource types and organizational scopes; for the second, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy: trace effective permissions across the user's group policies and attached managed policies.
D:To address both issues, trace effective permissions across the user's group policies and attached managed policies and add an appropriate source-VPC-endpoint restriction to the bucket's resource policy, respectively.
Question 386
An AWS security team must satisfy TWO independent requirements. First: A service role must write only to objects beneath one application prefix in a bucket. Second: A federated role uses principal tags to authorize resources, but a user can set arbitrary tags in their role session. Which paired approach meets BOTH requirements?
- For the first requirement, scope the S3 object ARN in its policy to the approved bucket prefix; for the second, grant the caller sts:AssumeRole as needed and verify the destination trust policy separately.
- For the first requirement, scope the S3 object ARN in its policy to the approved bucket prefix; for the second, restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies.
- For the first requirement, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy; for the second, restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies.
- For the first requirement, apply a scoped S3 bucket resource policy including explicit guardrail denies as needed; for the second, trace effective permissions across the user's group policies and attached managed policies.
Explanation
Correct Answer
B:Object ARN patterns can constrain GetObject or PutObject targets; bucket-level ListBucket is a distinct permission with different resource syntax. Session tags may affect ABAC, so untrusted session-tag assertion can turn a legitimate identity into unauthorized access.
Incorrect Answers
A:Restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies.
C:For the first requirement, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy; for the second, restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies: scope the S3 object ARN in its policy to the approved bucket prefix.
D:To address both issues, scope the S3 object ARN in its policy to the approved bucket prefix and restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies, respectively.
Question 387
An AWS security team must satisfy TWO independent requirements. First: An IAM policy allows s3:ListBucket on object ARNs but listing fails. Second: An AWS principal fails a read request because a policy condition tests the wrong encryption context key name. Which paired approach meets BOTH requirements?
- For the first requirement, change the resource for the ListBucket statement to the bucket ARN; for the second, model application permissions in Amazon Verified Permissions using Cedar policies.
- For the first requirement, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy; for the second, correct the condition key and expected context using the actual service request context.
- For the first requirement, change the resource for the ListBucket statement to the bucket ARN; for the second, correct the condition key and expected context using the actual service request context.
- For the first requirement, apply a scoped S3 bucket resource policy including explicit guardrail denies as needed; for the second, add a supported aws:PrincipalOrgID condition in an appropriate resource policy.
Explanation
Correct Answer
C:S3 bucket-level listing permissions apply to bucket ARNs, while object operations use object ARNs. Policy conditions must match valid keys and values present during the request; apparent textual intent does not override evaluation rules.
Incorrect Answers
A:Correct the condition key and expected context using the actual service request context.
B:For the first requirement, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy; for the second, correct the condition key and expected context using the actual service request context: change the resource for the ListBucket statement to the bucket ARN.
D:To address both issues, change the resource for the ListBucket statement to the bucket ARN and correct the condition key and expected context using the actual service request context, respectively.
Question 388
An AWS security team must satisfy TWO independent requirements. First: An engineer wants to permit S3 reads only from an approved organization of AWS principals. Second: An audit needs to identify unused IAM role permissions and recommend narrower policies. Which paired approach meets BOTH requirements?
- For the first requirement, add a supported aws:PrincipalOrgID condition in an appropriate resource policy; for the second, use a supported kms:ViaService condition where appropriate in the KMS authorization policy.
- For the first requirement, apply a scoped S3 bucket resource policy including explicit guardrail denies as needed; for the second, use IAM Access Analyzer policy generation and unused-access findings where supported.
- For the first requirement, restrict iam:PassRole resource ARNs and the iam:PassedToService condition; for the second, enable relevant S3 Block Public Access protections and remove the overly broad policy statement.
- For the first requirement, add a supported aws:PrincipalOrgID condition in an appropriate resource policy; for the second, use IAM Access Analyzer policy generation and unused-access findings where supported.
Explanation
Correct Answer
D:The organization ID condition evaluates principal organizational membership, reducing exposure to principals outside the intended organization. Analyzer can help derive permissions from usage and flag unused grants, supporting least privilege with human review.
Incorrect Answers
A:Use IAM Access Analyzer policy generation and unused-access findings where supported.
B:For the first requirement, apply a scoped S3 bucket resource policy including explicit guardrail denies as needed; for the second, use IAM Access Analyzer policy generation and unused-access findings where supported: add a supported aws:PrincipalOrgID condition in an appropriate resource policy.
C:To address both issues, add a supported aws:PrincipalOrgID condition in an appropriate resource policy and use IAM Access Analyzer policy generation and unused-access findings where supported, respectively.
Question 389
An AWS security team must satisfy TWO independent requirements. First: A privilege-review team must find S3 and KMS resources reachable from outside the organization's trust zone. Second: A production role may modify only its application deployment resources but can currently change every CloudFormation stack. Which paired approach meets BOTH requirements?
- For the first requirement, run IAM Access Analyzer external-access analysis over supported resource policies; for the second, restrict CloudFormation permissions to the relevant stack ARNs and approved actions.
- For the first requirement, run IAM Access Analyzer external-access analysis over supported resource policies; for the second, restrict iam:TagRole or related tag operations to approved keys and values with policy conditions.
- For the first requirement, restrict iam:PassRole resource ARNs and the iam:PassedToService condition; for the second, restrict CloudFormation permissions to the relevant stack ARNs and approved actions.
- For the first requirement, evaluate resource control policies on applicable resource types and organizational scopes; for the second, update the boundary only if broader permissions are approved, because the role is restricted to the boundary intersection.
Explanation
Correct Answer
A:Access Analyzer can detect policy-based external access opportunities, whereas an IAM policy simulator tests specified hypothetical requests. Resource scoping limits control-plane reach; an unrelated network security group does not restrict CloudFormation API authorization.
Incorrect Answers
B:Restrict CloudFormation permissions to the relevant stack ARNs and approved actions.
C:For the first requirement, restrict iam:PassRole resource ARNs and the iam:PassedToService condition; for the second, restrict CloudFormation permissions to the relevant stack ARNs and approved actions: run IAM Access Analyzer external-access analysis over supported resource policies.
D:To address both issues, run IAM Access Analyzer external-access analysis over supported resource policies and restrict CloudFormation permissions to the relevant stack ARNs and approved actions, respectively.
Question 390
An AWS security team must satisfy TWO independent requirements. First: A security team needs to understand why one known principal cannot call kms:Decrypt on a specific key. Second: A multi-account policy must prevent use of disallowed AWS Regions by member principals but preserve essential global services. Which paired approach meets BOTH requirements?
- For the first requirement, evaluate the caller identity policy, KMS key policy or grants, applicable guardrails, and request context; for the second, require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal.
- For the first requirement, evaluate the caller identity policy, KMS key policy or grants, applicable guardrails, and request context; for the second, use a carefully scoped SCP with requested-region conditions and documented global-service exceptions.
- For the first requirement, grant the caller sts:AssumeRole as needed and verify the destination trust policy separately; for the second, use a carefully scoped SCP with requested-region conditions and documented global-service exceptions.
- For the first requirement, evaluate resource control policies on applicable resource types and organizational scopes; for the second, configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions.
Explanation
Correct Answer
B:KMS authorization can depend on identity policies, key policies, grants, and explicit denies; adding an unrelated S3 policy does not repair KMS access. Region guardrails need exceptions for global AWS services; a simplistic deny can break necessary identity and account operations.
Incorrect Answers
A:Use a carefully scoped SCP with requested-region conditions and documented global-service exceptions.
C:For the first requirement, grant the caller sts:AssumeRole as needed and verify the destination trust policy separately; for the second, use a carefully scoped SCP with requested-region conditions and documented global-service exceptions: evaluate the caller identity policy, KMS key policy or grants, applicable guardrails, and request context.
D:To address both issues, evaluate the caller identity policy, KMS key policy or grants, applicable guardrails, and request context and use a carefully scoped SCP with requested-region conditions and documented global-service exceptions, respectively.
AWS Certified Security - Specialty SCS-C03 Practice Tests