Question 850
Before closing the VPC connectivity and segmentation rollout, a team must demonstrate the following: Record mirrored packets from an EC2 network interface for deep analysis; plus Assess whether a prohibited network path is possible before deployment. Which paired change would complete the work?
- Configure VPC Traffic Mirroring to an approved traffic analysis target; and use VPC Network Access Analyzer with a defined access scope
- Configure VPC Traffic Mirroring to an approved traffic analysis target; and configure AWS Firewall Manager security-group policies
- Restrict Lambda's VPC security group and egress routes; and use VPC Network Access Analyzer with a defined access scope
- Configure AWS Firewall Manager security-group policies; and restrict Lambda's VPC security group and egress routes
Explanation
Correct Answer
A:The implementation has a specific control for each objective: Traffic Mirroring captures packet copies from supported ENIs, unlike Flow Logs which only publish traffic metadata for “Record mirrored packets from an EC2 network interface for deep analysis”; Network Access Analyzer checks configured resource paths against network access requirements rather than sampling live packets for “Assess whether a prohibited network path is possible before deployment”; the combined option satisfies the two-part request.
Incorrect Answers
B:The first check would be covered, since traffic Mirroring captures packet copies from supported ENIs, unlike Flow Logs which only publish traffic metadata; yet the second choice is associated with “Enforce uniform security-group policies across a multi-account organization,” for which firewall Manager applies centralized security policy management to in-scope accounts and resources, subject to organizational prerequisites; no corresponding control satisfies “Assess whether a prohibited network path is possible before deployment.”.
C:While network Access Analyzer checks configured resource paths against network access requirements rather than sampling live packets is relevant to “Assess whether a prohibited network path is possible before deployment,” the other component targets “Prevent a Lambda function in a VPC from having unnecessary internet egress,” where VPC-connected Lambda traffic follows configured network controls; attachment alone does not grant general outbound internet access; the first acceptance criterion (“Record mirrored packets from an EC2 network interface for deep analysis”) is not met.
D:The first proposed action addresses “Enforce uniform security-group policies across a multi-account organization”: Firewall Manager applies centralized security policy management to in-scope accounts and resources, subject to organizational prerequisites; the second addresses “Prevent a Lambda function in a VPC from having unnecessary internet egress”: VPC-connected Lambda traffic follows configured network controls; attachment alone does not grant general outbound internet access; the combination does not achieve the required “Record mirrored packets from an EC2 network interface for deep analysis” and “Assess whether a prohibited network path is possible before deployment” outcomes in this VPC connectivity and segmentation rollout.
Question 851
An assessment of the logging access troubleshooting session has two findings. Finding one: A Kinesis Firehose delivery stream cannot write log objects to S3. Finding two: An S3 log archive is editable by identities outside the security account. Which combination remediates both?
- Confirm the trail is an organization trail and organizational settings are active; and allow the needed logs query API actions on appropriate resources
- Allow the needed logs query API actions on appropriate resources; and add restrictive bucket controls and object retention, not just lifecycle rules
- Fix the delivery role's S3 write and applicable KMS permissions; and confirm the trail is an organization trail and organizational settings are active
- Fix the delivery role's S3 write and applicable KMS permissions; and add restrictive bucket controls and object retention, not just lifecycle rules
Explanation
Correct Answer
D:The implementation has a specific control for each objective: The Firehose role must be authorized for destination storage and encryption, separately from the upstream log producer for “A Kinesis Firehose delivery stream cannot write log objects to S3”; Access authorization and retention safeguards protect evidence; lifecycle configuration determines object aging rather than who can modify it for “An S3 log archive is editable by identities outside the security account”; the combined option satisfies the two-part request.
Incorrect Answers
A:The first proposed action addresses “An organization trail omits a recently joined account's events”: A standard account trail does not automatically provide comprehensive member-account management coverage across an organization; the second addresses “CloudWatch Logs Insights users receive an authorization error during queries”: Reading log streams and running Logs Insights queries involve different API permissions; query execution is subject to IAM authorization; the combination does not achieve the required “A Kinesis Firehose delivery stream cannot write log objects to S3” and “An S3 log archive is editable by identities outside the security account” outcomes in this logging access troubleshooting session.
B:While access authorization and retention safeguards protect evidence; lifecycle configuration determines object aging rather than who can modify it is relevant to “An S3 log archive is editable by identities outside the security account,” the other component targets “CloudWatch Logs Insights users receive an authorization error during queries,” where reading log streams and running Logs Insights queries involve different API permissions; query execution is subject to IAM authorization; the first acceptance criterion (“A Kinesis Firehose delivery stream cannot write log objects to S3”) is not met.
C:The first check would be covered, since the Firehose role must be authorized for destination storage and encryption, separately from the upstream log producer; yet the second choice is associated with “An organization trail omits a recently joined account's events,” for which A standard account trail does not automatically provide comprehensive member-account management coverage across an organization; no corresponding control satisfies “An S3 log archive is editable by identities outside the security account.”.
Question 852
During a private network troubleshooting exercise, reviewers document two independent acceptance criteria. First: Diagnose a rejected connection using VPC flow records. Second: Find which configured VPC component blocks a path between EC2 instances. Which combined implementation satisfies both?
- Add stateless NACL return-path rules for the relevant ephemeral ports; and examine routes, network ACLs, host firewalls, and application listeners
- Examine routes, network ACLs, host firewalls, and application listeners; and run VPC Reachability Analyzer from source to destination
- Review ENI-scoped Flow Log action and address/port fields; and add stateless NACL return-path rules for the relevant ephemeral ports
- Review ENI-scoped Flow Log action and address/port fields; and run VPC Reachability Analyzer from source to destination
Explanation
Correct Answer
D:The first control addresses the check “Diagnose a rejected connection using VPC flow records”: Flow Logs can reveal REJECT dispositions and traffic tuples but cannot prove which application payload triggered the rejection; the other addresses “Find which configured VPC component blocks a path between EC2 instances”: Reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers; these two mechanisms cover the complete private network troubleshooting exercise.
Incorrect Answers
A:The first action belongs to “Explain why return packets fail when a network ACL allows only the request port” because network ACLs evaluate inbound and outbound packets independently and cannot infer state from an allowed request; the second belongs to “Diagnose why a security-group rule permits ingress but the app still cannot connect” because security groups are only one enforcement layer; absence of a process listener or a blocked route can still break the connection; these are not the required checks, “Diagnose a rejected connection using VPC flow records” and “Find which configured VPC component blocks a path between EC2 instances.”.
B:Reachability Analyzer evaluates the modeled path through route tables, security groups and ACLs to explain configuration blockers; this fulfills the second objective (“Find which configured VPC component blocks a path between EC2 instances”); the other action is intended for “Diagnose why a security-group rule permits ingress but the app still cannot connect”: Security groups are only one enforcement layer; absence of a process listener or a blocked route can still break the connection; it does not meet the requested “Diagnose a rejected connection using VPC flow records” check.
C:Flow Logs can reveal REJECT dispositions and traffic tuples but cannot prove which application payload triggered the rejection; this is relevant to the first objective (“Diagnose a rejected connection using VPC flow records”); however, the other action is meant for “Explain why return packets fail when a network ACL allows only the request port”: Network ACLs evaluate inbound and outbound packets independently and cannot infer state from an allowed request; it leaves the required “Find which configured VPC component blocks a path between EC2 instances” behavior unimplemented.
Question 853
An AWS team is correcting two gaps in the backup and data retention program: Retain CloudWatch Logs events only for a fixed number of days; and Automate retention of daily EBS snapshots across matching volumes. Which proposed set of controls fixes both gaps?
- Configure the log group's retention setting; and configure separate versioned-bucket Lifecycle expiration rules
- Configure the log group's retention setting; and create an Amazon Data Lifecycle Manager policy
- Configure separate versioned-bucket Lifecycle expiration rules; and configure S3 Object Lock retention alongside lifecycle management
- Configure S3 Object Lock retention alongside lifecycle management; and create an Amazon Data Lifecycle Manager policy
Explanation
Correct Answer
B:For “Retain CloudWatch Logs events only for a fixed number of days,” the governing behavior is: CloudWatch deletes log events after the configured age, separate from S3 Lifecycle on archived objects; for the separate check “Automate retention of daily EBS snapshots across matching volumes,” it is: Data Lifecycle Manager orchestrates eligible EBS snapshot and AMI lifecycles using schedules and retention rules; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:The first part is appropriate for “Retain CloudWatch Logs events only for a fixed number of days” because CloudWatch deletes log events after the configured age, separate from S3 Lifecycle on archived objects; the second part addresses a different issue (“Delete expired object versions while keeping active S3 versions longer”) because versioned buckets can retain noncurrent versions with distinct expiration behavior from the current version; it does not fulfill the “Automate retention of daily EBS snapshots across matching volumes” test.
C:This combination targets different outcomes: Versioned buckets can retain noncurrent versions with distinct expiration behavior from the current version helps with “Delete expired object versions while keeping active S3 versions longer”; Retention protection can block deletion even if a lifecycle expiration rule targets an object version helps with “Prevent regulated records from being deleted until their retention date”; neither implements the required “Retain CloudWatch Logs events only for a fixed number of days” and “Automate retention of daily EBS snapshots across matching volumes” outcomes together.
D:Only the second requirement is covered: Data Lifecycle Manager orchestrates eligible EBS snapshot and AMI lifecycles using schedules and retention rules supports “Automate retention of daily EBS snapshots across matching volumes”; by contrast, Retention protection can block deletion even if a lifecycle expiration rule targets an object version concerns “Prevent regulated records from being deleted until their retention date,” leaving “Retain CloudWatch Logs events only for a fixed number of days” unresolved.
Question 854
The permissions and authorization review cannot pass unless both of these outcomes are demonstrated: An identity has an IAM allow but a matching explicit deny is also present; An IAM policy allows an action but an Organizations SCP excludes it. Which two-part plan is suitable?
- Evaluate the intersection of identity policy permissions and the role's boundary; and update the SCP guardrail or choose an allowed operation while retaining least privilege
- Add a narrowly scoped explicit allow where the policy model requires it; and evaluate the intersection of identity policy permissions and the role's boundary
- Remove or narrow the applicable explicit deny only after validating policy intent; and update the SCP guardrail or choose an allowed operation while retaining least privilege
- Remove or narrow the applicable explicit deny only after validating policy intent; and add a narrowly scoped explicit allow where the policy model requires it
Explanation
Correct Answer
C:Two different security outcomes are required in this permissions and authorization review; IAM explicit deny takes precedence over allows from other applicable permission policies for the same request supports “An identity has an IAM allow but a matching explicit deny is also present,” while SCPs restrict the maximum available permissions of affected member-account identities; an IAM allow cannot exceed the guardrail supports “An IAM policy allows an action but an Organizations SCP excludes it”; neither check is assumed to follow from the other.
Incorrect Answers
A:The option has a useful control for “An IAM policy allows an action but an Organizations SCP excludes it” because SCPs restrict the maximum available permissions of affected member-account identities; an IAM allow cannot exceed the guardrail; its other control applies to “An IAM role has broad permissions but a permissions boundary limits it” because A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges; it misses the first requirement, “An identity has an IAM allow but a matching explicit deny is also present.”.
B:IAM starts from implicit denial for ordinary principals, so an absent allow leaves the operation unauthorized is pertinent to “An identity has no applicable allow for an AWS operation,” and A permissions boundary caps identity-based permissions and does not itself grant additional AWS API privileges is pertinent to “An IAM role has broad permissions but a permissions boundary limits it”; the requested controls for “An identity has an IAM allow but a matching explicit deny is also present” and “An IAM policy allows an action but an Organizations SCP excludes it” are absent.
D:This option is only partly effective: IAM explicit deny takes precedence over allows from other applicable permission policies for the same request supports “An identity has an IAM allow but a matching explicit deny is also present”; but IAM starts from implicit denial for ordinary principals, so an absent allow leaves the operation unauthorized supports “An identity has no applicable allow for an AWS operation,” not the required “An IAM policy allows an action but an Organizations SCP excludes it” outcome.
Question 855
Two security control owners share a managed threat detection rollout. One is responsible for this outcome: Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence. The other needs: Find S3 objects containing regulated identifiers at scale. Which implementation covers both?
- Run IAM Access Analyzer external-access analysis; and enable GuardDuty S3 Protection for supported object activity
- Enable GuardDuty S3 Protection for supported object activity; and run Amazon Macie sensitive-data discovery on selected S3 buckets
- Enable GuardDuty threat detection for the relevant AWS accounts and Regions; and run IAM Access Analyzer external-access analysis
- Enable GuardDuty threat detection for the relevant AWS accounts and Regions; and run Amazon Macie sensitive-data discovery on selected S3 buckets
Explanation
Correct Answer
D:Two different security outcomes are required in this managed threat detection rollout; GuardDuty analyzes supported account and workload signals to generate threat findings without requiring a custom event-correlation pipeline supports “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence,” while Macie discovers sensitive data in Amazon S3 and reports locations and categories that need protection or review supports “Find S3 objects containing regulated identifiers at scale”; neither check is assumed to follow from the other.
Incorrect Answers
A:Access Analyzer evaluates supported resource policies for access outside the configured zone of trust, highlighting unexpected sharing is pertinent to “Identify externally accessible resources implied by resource policies,” and GuardDuty S3 Protection analyzes relevant S3 object activity for potential threats, while ordinary CloudTrail management history does not cover all object operations is pertinent to “Detect anomalous API activity against S3 objects with managed threat monitoring”; the requested controls for “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence” and “Find S3 objects containing regulated identifiers at scale” are absent.
B:The option has a useful control for “Find S3 objects containing regulated identifiers at scale” because macie discovers sensitive data in Amazon S3 and reports locations and categories that need protection or review; its other control applies to “Detect anomalous API activity against S3 objects with managed threat monitoring” because GuardDuty S3 Protection analyzes relevant S3 object activity for potential threats, while ordinary CloudTrail management history does not cover all object operations; it misses the first requirement, “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence.”.
C:This option is only partly effective: GuardDuty analyzes supported account and workload signals to generate threat findings without requiring a custom event-correlation pipeline supports “Detect anomalous AWS API usage and suspicious VPC or DNS patterns from managed threat intelligence”; but Access Analyzer evaluates supported resource policies for access outside the configured zone of trust, highlighting unexpected sharing supports “Identify externally accessible resources implied by resource policies,” not the required “Find S3 objects containing regulated identifiers at scale” outcome.
Question 856
An assessment of the multi-account infrastructure deployment has two findings. Finding one: Enforce standard firewall and WAF policies for many accounts centrally. Finding two: Group AWS resources using consistent key-value business metadata. Which combination remediates both?
- Use AWS Resource Access Manager with explicit shares; and use AWS Resource Groups with matching resource tags
- Use AWS Resource Groups with matching resource tags; and define and enforce a tagging strategy with AWS Organizations tag policies where applicable
- Apply AWS Firewall Manager organization policies; and use AWS Resource Access Manager with explicit shares
- Apply AWS Firewall Manager organization policies; and define and enforce a tagging strategy with AWS Organizations tag policies where applicable
Explanation
Correct Answer
D:The implementation has a specific control for each objective: Firewall Manager centrally scopes security policy enforcement across accounts and supported resource types for “Enforce standard firewall and WAF policies for many accounts centrally”; Tag policies standardize compliant tag keys and values on supported resources, while separate controls may be needed to require tags at creation for “Group AWS resources using consistent key-value business metadata”; the combined option satisfies the two-part request.
Incorrect Answers
A:The first proposed action addresses “Share a supported network resource with other member accounts without duplicating it”: RAM supports cross-account sharing of eligible resources, subject to organization and resource-specific controls; the second addresses “Manage a fleet of AWS instances as an operational grouping without a new account”: Resource Groups presents collections of resources for management; it does not create new IAM or VPC security boundaries; the combination does not achieve the required “Enforce standard firewall and WAF policies for many accounts centrally” and “Group AWS resources using consistent key-value business metadata” outcomes in this multi-account infrastructure deployment.
B:While tag policies standardize compliant tag keys and values on supported resources, while separate controls may be needed to require tags at creation is relevant to “Group AWS resources using consistent key-value business metadata,” the other component targets “Manage a fleet of AWS instances as an operational grouping without a new account,” where resource Groups presents collections of resources for management; it does not create new IAM or VPC security boundaries; the first acceptance criterion (“Enforce standard firewall and WAF policies for many accounts centrally”) is not met.
C:The first check would be covered, since firewall Manager centrally scopes security policy enforcement across accounts and supported resource types; yet the second choice is associated with “Share a supported network resource with other member accounts without duplicating it,” for which RAM supports cross-account sharing of eligible resources, subject to organization and resource-specific controls; no corresponding control satisfies “Group AWS resources using consistent key-value business metadata.”.
Question 857
A change request in the VPC connectivity and segmentation rollout will be approved only if it delivers both outcomes: Allow only an application tier's security group to connect to database port 5432; Permit response traffic automatically for an established EC2 connection. What should be included?
- Configure ordered subnet network ACL rules with an explicit deny; and use a stateful VPC security group
- Create an S3 gateway VPC endpoint and update applicable route tables; and configure ordered subnet network ACL rules with an explicit deny
- Reference the application security group in the database security group's inbound rule; and use a stateful VPC security group
- Reference the application security group in the database security group's inbound rule; and create an S3 gateway VPC endpoint and update applicable route tables
Explanation
Correct Answer
C:For the first acceptance test, “Allow only an application tier's security group to connect to database port 5432,” referencing an allowed source security group avoids a broad CIDR and adapts to changing instance IP addresses; for the second, “Permit response traffic automatically for an established EC2 connection,” security groups track connection state for allowed traffic, so separate explicit return-path rules generally are not needed; the proposed configuration implements both rather than using one control as a substitute for another.
Incorrect Answers
A:The mechanism for “Permit response traffic automatically for an established EC2 connection” is present: Security groups track connection state for allowed traffic, so separate explicit return-path rules generally are not needed; the additional mechanism relates to “Deny a specific unwanted subnet CIDR while allowing other traffic”: Network ACLs support stateless allow and deny entries evaluated in rule-number order at the subnet boundary; nothing here completes “Allow only an application tier's security group to connect to database port 5432.”.
B:Neither action is targeted at the two acceptance tests: A gateway endpoint supplies a private route for supported S3 traffic in the VPC, with endpoint policy restrictions available is about “Allow egress to S3 without crossing the public internet through NAT,” and Network ACLs support stateless allow and deny entries evaluated in rule-number order at the subnet boundary is about “Deny a specific unwanted subnet CIDR while allowing other traffic”; the intended “Allow only an application tier's security group to connect to database port 5432” and “Permit response traffic automatically for an established EC2 connection” requirements remain unsatisfied.
D:Referencing an allowed source security group avoids a broad CIDR and adapts to changing instance IP addresses supports the “Allow only an application tier's security group to connect to database port 5432” acceptance test; A gateway endpoint supplies a private route for supported S3 traffic in the VPC, with endpoint policy restrictions available is pertinent to “Allow egress to S3 without crossing the public internet through NAT” instead; the change therefore omits the separate requirement “Permit response traffic automatically for an established EC2 connection.”.
Question 858
A proposed solution for the telemetry and alarm repair exercise is incomplete unless it addresses both of these checks: An SNS alarm notification goes nowhere even though the alarm changes state; and A custom metric alarm ignores emitted points because their dimensions differ. Which choice provides the necessary controls?
- Fix the application's log delivery permissions and stream configuration; and query the detector and log group in the Region where they are configured
- Query the detector and log group in the Region where they are configured; and align the alarm's dimensions with the application's published dimensions
- Verify the subscription is confirmed and the alarm has the correct SNS action; and fix the application's log delivery permissions and stream configuration
- Verify the subscription is confirmed and the alarm has the correct SNS action; and align the alarm's dimensions with the application's published dimensions
Explanation
Correct Answer
D:For the first acceptance test, “An SNS alarm notification goes nowhere even though the alarm changes state,” A published alarm action still needs an active delivery subscription; the evaluated metric can be perfectly healthy while notification fails; for the second, “A custom metric alarm ignores emitted points because their dimensions differ,” CloudWatch metric identity includes namespace, name, and dimension set; a mismatch creates a different time series; the proposed configuration implements both rather than using one control as a substitute for another.
Incorrect Answers
A:Neither action is targeted at the two acceptance tests: Metric filters only match records that reach the selected log group; a missing ingestion path defeats downstream alarms is about “A CloudWatch metric filter is silent because the expected log group receives no events,” and Many AWS security and monitoring resources are Regional, so a dashboard in another Region can appear devoid of expected entries is about “A security dashboard seems empty because the wrong Region is selected”; the intended “An SNS alarm notification goes nowhere even though the alarm changes state” and “A custom metric alarm ignores emitted points because their dimensions differ” requirements remain unsatisfied.
B:The mechanism for “A custom metric alarm ignores emitted points because their dimensions differ” is present: CloudWatch metric identity includes namespace, name, and dimension set; a mismatch creates a different time series; the additional mechanism relates to “A security dashboard seems empty because the wrong Region is selected”: Many AWS security and monitoring resources are Regional, so a dashboard in another Region can appear devoid of expected entries; nothing here completes “An SNS alarm notification goes nowhere even though the alarm changes state.”.
C:A published alarm action still needs an active delivery subscription; the evaluated metric can be perfectly healthy while notification fails supports the “An SNS alarm notification goes nowhere even though the alarm changes state” acceptance test; Metric filters only match records that reach the selected log group; a missing ingestion path defeats downstream alarms is pertinent to “A CloudWatch metric filter is silent because the expected log group receives no events” instead; the change therefore omits the separate requirement “A custom metric alarm ignores emitted points because their dimensions differ.”.
Question 859
A review board evaluating the storage encryption control review rejects fixes that cover just one requirement. The requirements are: Prevent public reads of any S3 buckets in an AWS account; and Use a customer-managed KMS key for S3 object encryption with key-level access controls. Which configuration addresses both?
- Enable account-level S3 Block Public Access; and configure default bucket encryption with SSE-KMS and the chosen customer-managed key
- Enable account-level S3 Block Public Access; and apply client-side encryption with controlled client key management
- Deny noncompliant PutObject requests with S3 bucket-policy encryption conditions; and configure default bucket encryption with SSE-KMS and the chosen customer-managed key
- Apply client-side encryption with controlled client key management; and deny noncompliant PutObject requests with S3 bucket-policy encryption conditions
Explanation
Correct Answer
A:For “Prevent public reads of any S3 buckets in an AWS account,” the governing behavior is: Account-level controls provide a broad safety boundary against public bucket and access point configuration mistakes; for the separate check “Use a customer-managed KMS key for S3 object encryption with key-level access controls,” it is: SSE-KMS integrates S3 object encryption with KMS authorization and key-use auditing beyond S3-managed key controls; this is why the two controls belong together in the proposed change.
Incorrect Answers
B:The first part is appropriate for “Prevent public reads of any S3 buckets in an AWS account” because account-level controls provide a broad safety boundary against public bucket and access point configuration mistakes; the second part addresses a different issue (“Require clients to encrypt sensitive objects before uploading to AWS”) because client-side encryption transforms plaintext before the upload, so the AWS storage service does not receive the clear payload; it does not fulfill the “Use a customer-managed KMS key for S3 object encryption with key-level access controls” test.
C:Only the second requirement is covered: SSE-KMS integrates S3 object encryption with KMS authorization and key-use auditing beyond S3-managed key controls supports “Use a customer-managed KMS key for S3 object encryption with key-level access controls”; by contrast, Bucket policies can inspect encryption-related request headers and key IDs to reject uploads that violate mandated encryption settings concerns “Enforce a specific SSE-KMS key for new uploads,” leaving “Prevent public reads of any S3 buckets in an AWS account” unresolved.
D:This combination targets different outcomes: Client-side encryption transforms plaintext before the upload, so the AWS storage service does not receive the clear payload helps with “Require clients to encrypt sensitive objects before uploading to AWS”; Bucket policies can inspect encryption-related request headers and key IDs to reject uploads that violate mandated encryption settings helps with “Enforce a specific SSE-KMS key for new uploads”; neither implements the required “Prevent public reads of any S3 buckets in an AWS account” and “Use a customer-managed KMS key for S3 object encryption with key-level access controls” outcomes together.
Question 860
An AWS team is correcting two gaps in the credential and federation review: A federated role fails to assume despite the user being authenticated with a corporate identity; and An OIDC role assumption is denied because the token audience does not match. Which proposed set of controls fixes both gaps?
- Inspect the role trust policy, provider identifier, and assertion conditions; and adjust role session duration within allowed constraints and refresh credentials
- Inspect the role trust policy, provider identifier, and assertion conditions; and correct the identity provider client ID and role trust audience condition
- Adjust role session duration within allowed constraints and refresh credentials; and verify the instance profile attachment and IMDS availability
- Verify the instance profile attachment and IMDS availability; and correct the identity provider client ID and role trust audience condition
Explanation
Correct Answer
B:For “A federated role fails to assume despite the user being authenticated with a corporate identity,” the governing behavior is: Authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; for the separate check “An OIDC role assumption is denied because the token audience does not match,” it is: OIDC federation relies on token claims satisfying the trust policy, including the expected audience; this is why the two controls belong together in the proposed change.
Incorrect Answers
A:The first part is appropriate for “A federated role fails to assume despite the user being authenticated with a corporate identity” because authentication to the IdP does not automatically authorize STS role assumption; the trust must match the federation claims; the second part addresses a different issue (“A principal's temporary role credentials expire during a long-running process”) because STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys; it does not fulfill the “An OIDC role assumption is denied because the token audience does not match” test.
C:This combination targets different outcomes: STS sessions are time bounded and cannot be extended indefinitely by holding on to the original temporary access keys helps with “A principal's temporary role credentials expire during a long-running process”; Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel helps with “An EC2 SDK cannot retrieve credentials even though an IAM policy grants access”; neither implements the required “A federated role fails to assume despite the user being authenticated with a corporate identity” and “An OIDC role assumption is denied because the token audience does not match” outcomes together.
D:Only the second requirement is covered: OIDC federation relies on token claims satisfying the trust policy, including the expected audience supports “An OIDC role assumption is denied because the token audience does not match”; by contrast, Role policies are ineffective for a workload that cannot obtain credentials through the instance profile credential channel concerns “An EC2 SDK cannot retrieve credentials even though an IAM policy grants access,” leaving “A federated role fails to assume despite the user being authenticated with a corporate identity” unresolved.