Question 270
A generated policy excludes an emergency recovery operation never used during observation. What should reviewers do?
- Add justified recovery permissions after reviewing the required workflow
- Grant all services permanently without review
- Delete the recovery procedure
- Assume unused means permanently unnecessary
Explanation
Correct Answer
A:Usage-derived policies reflect the observation window, not every legitimate future task. Tested emergency paths need explicit consideration rather than blind removal.
Incorrect Answers
B:A missed recovery action justifies targeted correction, not unrestricted privilege across every unrelated AWS resource.
C:Removing a documented business requirement to fit an incomplete generated policy reverses the proper relationship between policy and authorized work.
D:Rare but essential recovery actions can be absent from ordinary usage while remaining necessary for the authorized operational role.
Question 271
An IAM group has a policy, but an application runs with an IAM role. Does the role inherit the group's policy?
- Yes; all identities in the account inherit every group
- Yes, if the role and group share an identical name
- No; IAM groups contain users rather than roles
- Yes; the role automatically joins matching group names
Explanation
Correct Answer
C:Role permissions must be attached or otherwise granted through the role's applicable authorization paths, not inferred from a workforce user's group membership.
Incorrect Answers
A:IAM groups do not create account-wide permission inheritance for unrelated users and roles.
B:IAM groups do not include roles, so naming the two objects alike does not transfer the group's user permissions to the workload.
D:Matching labels do not establish IAM group membership or transfer a user's group permissions into a workload role.
Question 272
A role may read a secret but should not change the policy that grants that access. What separation is appropriate?
- Allow value retrieval while withholding secret-policy administration
- Grant PutResourcePolicy because reads need it
- Allow every action except DeleteSecret
- Give the reader every Secrets Manager action
Explanation
Correct Answer
A:Data use and permission administration are different actions; separating them prevents a reader from broadening who else can access the secret.
Incorrect Answers
B:Reading a secret does not inherently require authority to rewrite the resource's access policy.
C:Excluding deletion still leaves policy administration available, so the role could broaden access despite the stated read-only business requirement.
D:A service-wide wildcard exceeds the specific retrieval need and includes management operations the requirement explicitly excludes.
Question 273
A request includes session tags used by ABAC. Which additional STS permission can be relevant?
- ec2:CreateTags only
- sts:TagSession
- s3:PutObjectAcl only
- iam:ChangePassword only
Explanation
Correct Answer
B:Passing session tags requires the supported tagging authorization in the trust path, and permitted tag values should be controlled to prevent attribute-based escalation.
Incorrect Answers
A:Tagging EC2 resources is a different API authority from supplying principal session tags during role assumption.
C:Object ACL changes do not authorize adding identity attributes to an STS role session.
D:Password self-management does not grant the STS tagging permission needed for the described federated session attributes.
Question 274
A session tag should persist through supported role chaining. What configuration is relevant?
- Increase only the target role's maximum session duration
- Store the attribute only in the first application's local memory
- Put the value only on the destination resource tag
- Mark the appropriate session tag as transitive
Explanation
Correct Answer
D:Transitive tag keys preserve selected identity attributes across the supported chained sessions, subject to tagging permissions and trust controls.
Incorrect Answers
A:Credential lifetime does not determine whether a specific identity attribute is marked for propagation into the next role session.
B:A locally held value is not automatically included in the authenticated principal context of a subsequent chained role session.
C:A resource attribute can participate in ABAC, but it does not cause the originating principal's session tag to persist through chaining.
Question 275
A bucket in a member account is covered by an applicable RCP explicitly denying GetObject to the external caller. The bucket policy otherwise allows that caller. The caller belongs to a different organization and is not subject to the bucket owner's SCPs. What happens?
- The request automatically assumes the bucket owner's root identity
- The bucket policy Allow always overrides the RCP Deny
- The request succeeds because only SCPs can restrict access
- The resource-side RCP deny blocks the supported bucket request
Explanation
Correct Answer
D:RCP scope follows the protected resource, so the external caller does not escape that explicit deny merely by residing outside the resource owner's organization.
Incorrect Answers
A:Cross-account resource access does not silently transform the caller into the owner's root principal.
B:An otherwise valid resource grant cannot cancel an applicable explicit resource-control-policy denial.
C:RCPs provide a distinct supported resource-side guardrail; the absence of an applicable owner SCP on the external principal does not remove the resource deny.
Question 276
A policy should allow an AWS service to assume a role. Which trust-policy principal type is relevant?
- The ARN of an unrelated workforce group
- The specific service principal with appropriate conditions
- An anonymous wildcard with no conditions
- The calling application's security group ID
Explanation
Correct Answer
B:The trust relationship identifies the intended service rather than an arbitrary human user, and source constraints can narrow supported service-to-service use.
Incorrect Answers
A:An IAM group is not the service principal that should be trusted to assume the service role in this workflow.
C:Unrestricted trust exceeds the required service identity and creates unnecessary exposure to unintended role assumption paths.
D:Network permission groups are not authenticated service principals that can be placed into the role trust as a substitute for the intended AWS service.
Question 277
A security review identifies an unused broad inline policy attached to a production role. What is the appropriate improvement?
- Remove or narrow it after validating legitimate and recovery requirements
- Archive only the policy's associated analyzer finding
- Keep it because inline policies cannot grant access
- Convert it to a wildcard managed policy without review
Explanation
Correct Answer
A:Unused broad access creates unnecessary compromise impact, but review should preserve documented operational paths before changing production permissions.
Incorrect Answers
B:Finding workflow does not remove the attached policy's actions and resources from the role's effective authority.
C:Inline policies are effective permission documents and can expand the role's authority just like applicable attached identity policies.
D:Changing packaging does not reduce excessive actions or resource scope and can make the same broad permission easier to reuse.
Question 278
A team assumes IAM policy validation proves a policy grants exactly the intended business access. What limitation matters?
- Policy intent and scenario review beyond syntax checks
- A policy's title determines its effective scope
- Valid JSON cannot contain broad privileges
- Every warning is a guaranteed exploit
Explanation
Correct Answer
A:A valid document can still allow too much or omit required actions; actual principals, resources, conditions, and service behavior must be assessed.
Incorrect Answers
B:Names such as ReadOnly or Restricted are descriptive and do not override the actual statements evaluated by IAM.
C:Syntactic correctness says nothing about whether an Action or Resource wildcard exceeds the business requirement.
D:Warnings guide review but need context; they are not proof that every flagged statement is exploitable in the deployed environment.
Question 279
An ALB HTTPS listener must reject obsolete TLS versions. Which configuration is directly relevant?
- Only the DNS record TTL
- Only the target group's health-check interval
- The listener's supported TLS security policy
- Only an HTTP redirect from port 80
Explanation
Correct Answer
C:The policy determines negotiated protocol versions and cipher suites for client connections, allowing the listener to enforce the required transport baseline.
Incorrect Answers
A:Name caching duration cannot enforce cryptographic protocol versions once the client connects to the listener.
B:Health-check timing does not set the TLS versions accepted by the client-facing HTTPS listener.
D:Redirecting plaintext clients encourages HTTPS but does not restrict which TLS versions the HTTPS listener itself accepts.
Question 280
TLS terminates at an ALB, but backend traffic also requires encryption. What must be configured?
- Only a longer client connection timeout
- Only a security-group rule allowing port 443 to an HTTP target
- An HTTPS target-group protocol with compatible backend service
- Only the viewer certificate on the ALB
Explanation
Correct Answer
C:Client-side TLS termination does not automatically encrypt the next hop; the target connection must use the required encrypted protocol as well.
Incorrect Answers
A:Timeout duration does not select an encrypted backend transport protocol or configure the target's TLS service.
B:A permitted port does not make an HTTP-speaking backend negotiate TLS; the target protocol and server behavior must actually support encryption.
D:That certificate protects the client-to-listener handshake and does not by itself establish TLS from the load balancer to the targets.