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.
Question 391
An AWS security team must satisfy TWO independent requirements. First: A role can list a bucket but should be prevented from deleting any objects under all circumstances. Second: A role has both identity permission and resource access but a session originated under a stricter organizational OU. Which paired approach meets BOTH requirements?
- For the first requirement, add a narrowly scoped explicit deny for destructive S3 object actions; for the second, add a supported aws:PrincipalOrgID condition in an appropriate resource policy.
- For the first requirement, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration; for the second, evaluate the SCP path affecting the principal's AWS account as an additional policy limit.
- For the first requirement, add a narrowly scoped explicit deny for destructive S3 object actions; for the second, evaluate the SCP path affecting the principal's AWS account as an additional policy limit.
- For the first requirement, restrict CloudFormation permissions to the relevant stack ARNs and approved actions; for the second, evaluate the caller identity policy, KMS key policy or grants, applicable guardrails, and request context.
Explanation
Correct Answer
C:An explicit deny provides a guardrail even if another applicable policy grants broad actions elsewhere. SCPs operate as organization-level guardrails independently of the role's attached identity and resource permissions.
Incorrect Answers
A:Evaluate the SCP path affecting the principal's AWS account as an additional policy limit.
B:For the first requirement, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration; for the second, evaluate the SCP path affecting the principal's AWS account as an additional policy limit: add a narrowly scoped explicit deny for destructive S3 object actions.
D:To address both issues, add a narrowly scoped explicit deny for destructive S3 object actions and evaluate the SCP path affecting the principal's AWS account as an additional policy limit, respectively.
Question 392
An AWS security team must satisfy TWO independent requirements. First: An AWS service needs permission to publish to one SNS topic in another account. Second: An S3 bucket policy accidentally grants public read to all principals and a security team needs rapid containment. Which paired approach meets BOTH requirements?
- For the first requirement, configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions; for the second, use IAM Access Analyzer policy generation and unused-access findings where supported.
- For the first requirement, use IAM ABAC conditions comparing approved principal tags with resource tags; for the second, enable relevant S3 Block Public Access protections and remove the overly broad policy statement.
- For the first requirement, remove or narrow the resource-policy explicit deny after validating the required access; for the second, run IAM Access Analyzer external-access analysis over supported resource policies.
- For the first requirement, configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions; for the second, enable relevant S3 Block Public Access protections and remove the overly broad policy statement.
Explanation
Correct Answer
D:Cross-account service publishing often needs destination resource permission and confused-deputy constraints, not only a caller-side role policy. Block Public Access can prevent supported public exposure while policy correction removes the underlying authorization defect.
Incorrect Answers
A:Enable relevant S3 Block Public Access protections and remove the overly broad policy statement.
B:For the first requirement, use IAM ABAC conditions comparing approved principal tags with resource tags; for the second, enable relevant S3 Block Public Access protections and remove the overly broad policy statement: configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions.
C:To address both issues, configure the SNS topic resource policy to allow the specific service principal with appropriate source conditions and enable relevant S3 Block Public Access protections and remove the overly broad policy statement, respectively.
Question 393
An AWS security team must satisfy TWO independent requirements. First: A policy permits iam:PassRole on all roles, enabling an attacker to pass a highly privileged role to an authorized service. Second: A resource policy must allow only the AWS service delivering approved account events and avoid another customer's service requests. Which paired approach meets BOTH requirements?
- For the first requirement, restrict iam:PassRole resource ARNs and the iam:PassedToService condition; for the second, require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal.
- For the first requirement, restrict iam:PassRole resource ARNs and the iam:PassedToService condition; for the second, limit the trust principal and add relevant conditions such as an external ID.
- For the first requirement, add a supported aws:PrincipalOrgID condition in an appropriate resource policy; for the second, require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal.
- For the first requirement, run IAM Access Analyzer external-access analysis over supported resource policies; for the second, use a carefully scoped SCP with requested-region conditions and documented global-service exceptions.
Explanation
Correct Answer
A:Constrained PassRole limits which roles a principal can delegate to AWS services and reduces privilege escalation pathways. Source conditions help defend against a confused-deputy scenario when services act on behalf of different customers.
Incorrect Answers
B:Require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal.
C:For the first requirement, add a supported aws:PrincipalOrgID condition in an appropriate resource policy; for the second, require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal: restrict iam:PassRole resource ARNs and the iam:PassedToService condition.
D:To address both issues, restrict iam:PassRole resource ARNs and the iam:PassedToService condition and require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal, respectively.
Question 394
An AWS security team must satisfy TWO independent requirements. First: An AWS role should only be assumable from a specific partner account and a unique trusted integration context. Second: A delegated operations role must not create new IAM users even though it can administer application compute resources. Which paired approach meets BOTH requirements?
- For the first requirement, limit the trust principal and add relevant conditions such as an external ID; for the second, use IAM Policy Simulator or the supported policy-simulation API for the target request context.
- For the first requirement, limit the trust principal and add relevant conditions such as an external ID; for the second, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration.
- For the first requirement, require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal; 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, add a narrowly scoped explicit deny for destructive S3 object actions.
Explanation
Correct Answer
B:Trust policy principal and context requirements prevent a broad role assumption surface across unrelated tenants. Least-privilege operations roles should not inherit unrelated identity administration rights through wildcard service actions.
Incorrect Answers
A:Exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration.
C:For the first requirement, require suitable aws:SourceArn or aws:SourceAccount conditions for the service principal; for the second, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration: limit the trust principal and add relevant conditions such as an external ID.
D:To address both issues, limit the trust principal and add relevant conditions such as an external ID and exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration, respectively.
Question 395
An AWS security team must satisfy TWO independent requirements. First: An engineer needs a quick evaluation of a proposed IAM policy for an API call without making the call against production. Second: An IAM role is meant for emergency recovery and must be used only with a tagged break-glass change ticket context. Which paired approach meets BOTH requirements?
- For the first requirement, use IAM Policy Simulator or the supported policy-simulation API for the target request context; for the second, apply a scoped S3 bucket resource policy including explicit guardrail denies as needed.
- For the first requirement, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration; for the second, apply and enforce an auditable conditional-assumption workflow with scoped session tags.
- For the first requirement, use IAM Policy Simulator or the supported policy-simulation API for the target request context; for the second, apply and enforce an auditable conditional-assumption workflow with scoped session tags.
- For the first requirement, add a supported aws:PrincipalOrgID condition in an appropriate resource policy; for the second, inspect and adjust the session policy intersection, not only the role's identity policy.
Explanation
Correct Answer
C:Policy simulation models whether specified policies allow a request, but does not substitute for live service or resource-state verification. An explicit auditable condition reduces routine misuse of emergency privileges; tags must be issued by a trusted workflow.
Incorrect Answers
A:Apply and enforce an auditable conditional-assumption workflow with scoped session tags.
B:For the first requirement, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration; for the second, apply and enforce an auditable conditional-assumption workflow with scoped session tags: use IAM Policy Simulator or the supported policy-simulation API for the target request context.
D:To address both issues, use IAM Policy Simulator or the supported policy-simulation API for the target request context and apply and enforce an auditable conditional-assumption workflow with scoped session tags, respectively.
Question 396
An AWS security team must satisfy TWO independent requirements. First: A role should only access an S3 bucket through a specific VPC endpoint, regardless of what broad identity policy it acquires later. Second: A software team needs access to KMS decrypt only when a request is made through an approved AWS service. Which paired approach meets BOTH requirements?
- For the first requirement, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy; for the second, use IAM Access Analyzer policy generation and unused-access findings where supported.
- For the first requirement, remove or narrow the resource-policy explicit deny after validating the required access; for the second, use a supported kms:ViaService condition where appropriate in the KMS authorization policy.
- For the first requirement, change the resource for the ListBucket statement to the bucket ARN; for the second, use IAM Policy Simulator or the supported policy-simulation API for the target request context.
- For the first requirement, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy; for the second, use a supported kms:ViaService condition where appropriate in the KMS authorization policy.
Explanation
Correct Answer
D:The resource-based network-path condition constrains access beyond identity grants, subject to carefully designed service exceptions. KMS ViaService can restrict cryptographic use to specified service integrations, narrowing direct key access.
Incorrect Answers
A:Use a supported kms:ViaService condition where appropriate in the KMS authorization policy.
B:For the first requirement, remove or narrow the resource-policy explicit deny after validating the required access; for the second, use a supported kms:ViaService condition where appropriate in the KMS authorization policy: add an appropriate source-VPC-endpoint restriction to the bucket's resource policy.
C:To address both issues, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy and use a supported kms:ViaService condition where appropriate in the KMS authorization policy, respectively.
Question 397
An AWS security team must satisfy TWO independent requirements. First: A federated role uses principal tags to authorize resources, but a user can set arbitrary tags in their role session. Second: A user has administrator access but a resource is blocked by an AWS Organizations RCP explicit deny. Which paired approach meets BOTH requirements?
- For the first requirement, restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies; for the second, check the effective RCP attached to the resource account or OU and narrow it only if approved.
- For the first requirement, restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies; for the second, remove or narrow the resource-policy explicit deny after validating the required access.
- For the first requirement, grant the caller sts:AssumeRole as needed and verify the destination trust policy separately; for the second, check the effective RCP attached to the resource account or OU and narrow it only if approved.
- For the first requirement, trace effective permissions across the user's group policies and attached managed policies; for the second, trace effective permissions across the user's group policies and attached managed policies.
Explanation
Correct Answer
A:Session tags may affect ABAC, so untrusted session-tag assertion can turn a legitimate identity into unauthorized access. Resource control policies impose resource-side limits even when the identity has broad administrative permissions.
Incorrect Answers
B:Check the effective RCP attached to the resource account or OU and narrow it only if approved.
C:For the first requirement, grant the caller sts:AssumeRole as needed and verify the destination trust policy separately; for the second, check the effective RCP attached to the resource account or OU and narrow it only if approved: restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies.
D:To address both issues, restrict sts:TagSession and allowable transitive tag keys and values in the trust and identity policies and check the effective RCP attached to the resource account or OU and narrow it only if approved, respectively.
Question 398
An AWS security team must satisfy TWO independent requirements. First: An AWS principal fails a read request because a policy condition tests the wrong encryption context key name. Second: An AWS account user has an identity policy allowing S3 GetObject but an explicit deny in the bucket policy matches the request. Which paired approach meets BOTH requirements?
- For the first requirement, correct the condition key and expected context using the actual service request context; for the second, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy.
- For the first requirement, correct the condition key and expected context using the actual service request context; for the second, remove or narrow the resource-policy explicit deny after validating the required access.
- For the first requirement, model application permissions in Amazon Verified Permissions using Cedar policies; for the second, remove or narrow the resource-policy explicit deny after validating the required access.
- For the first requirement, add a supported aws:PrincipalOrgID condition in an appropriate resource policy; for the second, check the effective RCP attached to the resource account or OU and narrow it only if approved.
Explanation
Correct Answer
B:Policy conditions must match valid keys and values present during the request; apparent textual intent does not override evaluation rules. An explicit deny overrides otherwise applicable allows in IAM policy evaluation; adding another allow cannot overcome it.
Incorrect Answers
A:For the first requirement, correct the condition key and expected context using the actual service request context; for the second, add an appropriate source-VPC-endpoint restriction to the bucket's resource policy: remove or narrow the resource-policy explicit deny after validating the required access.
C:For the first requirement, model application permissions in Amazon Verified Permissions using Cedar policies; for the second, remove or narrow the resource-policy explicit deny after validating the required access: correct the condition key and expected context using the actual service request context.
D:To address both issues, correct the condition key and expected context using the actual service request context and remove or narrow the resource-policy explicit deny after validating the required access, respectively.
Question 399
An AWS security team must satisfy TWO independent requirements. First: An audit needs to identify unused IAM role permissions and recommend narrower policies. Second: An IAM role's identity policy allows all EC2 actions, but its permissions boundary permits only Describe operations. Which paired approach meets BOTH requirements?
- For the first requirement, use IAM Access Analyzer policy generation and unused-access findings where supported; for the second, restrict CloudFormation permissions to the relevant stack ARNs and approved actions.
- For the first requirement, use a supported kms:ViaService condition where appropriate in the KMS authorization policy; for the second, update the boundary only if broader permissions are approved, because the role is restricted to the boundary intersection.
- For the first requirement, use IAM Access Analyzer policy generation and unused-access findings where supported; for the second, update the boundary only if broader permissions are approved, because the role is restricted to the boundary intersection.
- For the first requirement, enable relevant S3 Block Public Access protections and remove the overly broad policy statement; for the second, model application permissions in Amazon Verified Permissions using Cedar policies.
Explanation
Correct Answer
C:Analyzer can help derive permissions from usage and flag unused grants, supporting least privilege with human review. A permissions boundary limits maximum permissions granted by identity policies but does not grant rights by itself.
Incorrect Answers
A:For the first requirement, use IAM Access Analyzer policy generation and unused-access findings where supported; for the second, restrict CloudFormation permissions to the relevant stack ARNs and approved actions: update the boundary only if broader permissions are approved, because the role is restricted to the boundary intersection.
B:For the first requirement, use a supported kms:ViaService condition where appropriate in the KMS authorization policy; for the second, update the boundary only if broader permissions are approved, because the role is restricted to the boundary intersection: use IAM Access Analyzer policy generation and unused-access findings where supported.
D:To address both issues, use IAM Access Analyzer policy generation and unused-access findings where supported and update the boundary only if broader permissions are approved, because the role is restricted to the boundary intersection, respectively.
Question 400
An AWS security team must satisfy TWO independent requirements. First: A production role may modify only its application deployment resources but can currently change every CloudFormation stack. Second: A federated role session has base permission for PutObject, but a session policy forbids uploads to sensitive buckets. Which paired approach meets BOTH requirements?
- For the first requirement, restrict CloudFormation permissions to the relevant stack ARNs and approved actions; for the second, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration.
- For the first requirement, restrict iam:TagRole or related tag operations to approved keys and values with policy conditions; for the second, inspect and adjust the session policy intersection, not only the role's identity policy.
- 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, apply and enforce an auditable conditional-assumption workflow with scoped session tags.
- For the first requirement, restrict CloudFormation permissions to the relevant stack ARNs and approved actions; for the second, inspect and adjust the session policy intersection, not only the role's identity policy.
Explanation
Correct Answer
D:Resource scoping limits control-plane reach; an unrelated network security group does not restrict CloudFormation API authorization. Temporary session permissions are limited by the applicable session policy even when the base role allows more.
Incorrect Answers
A:For the first requirement, restrict CloudFormation permissions to the relevant stack ARNs and approved actions; for the second, exclude IAM identity-creation actions from its policy and use explicit boundaries for delegated administration: inspect and adjust the session policy intersection, not only the role's identity policy.
B:For the first requirement, restrict iam:TagRole or related tag operations to approved keys and values with policy conditions; for the second, inspect and adjust the session policy intersection, not only the role's identity policy: restrict CloudFormation permissions to the relevant stack ARNs and approved actions.
C:To address both issues, restrict CloudFormation permissions to the relevant stack ARNs and approved actions and inspect and adjust the session policy intersection, not only the role's identity policy, respectively.
AWS Certified Security - Specialty SCS-C03 Practice Tests