0 / 60 answered
Pick an answer to see the explanation. Fundamental questions refresh the basics; Advanced questions are short SAP-style scenarios.
Q1.An identity-based policy allows
s3:*, but a second policy attached to the same user denies s3:DeleteObject. What happens when the user tries to delete an object?
✓ Correct: D. The delete is denied because an explicit Deny overrides any Allow
How to think about it: Explicit Deny always wins over any Allow.
Why D is correct: IAM evaluation checks for an explicit Deny first; if one matches, no Allow anywhere can override it.
Why the others are wrong:
A) The delete succeeds because the broader Allow is evaluated last — Order of attachment or evaluation does not matter; a matching Deny is final.
B) The delete succeeds because Allow and Deny cancel each other out — There is no cancelling out; a single explicit Deny blocks the request.
C) The result depends on which policy was attached most recently — IAM has no recency rule; every applicable policy is evaluated together.
How to think about it: Explicit Deny always wins over any Allow.
Why D is correct: IAM evaluation checks for an explicit Deny first; if one matches, no Allow anywhere can override it.
Why the others are wrong:
A) The delete succeeds because the broader Allow is evaluated last — Order of attachment or evaluation does not matter; a matching Deny is final.
B) The delete succeeds because Allow and Deny cancel each other out — There is no cancelling out; a single explicit Deny blocks the request.
C) The result depends on which policy was attached most recently — IAM has no recency rule; every applicable policy is evaluated together.
Q2.If no policy mentions an action at all, what is the result when a user calls it?
✓ Correct: C. It is implicitly denied
How to think about it: Nothing says yes = implicit deny.
Why C is correct: IAM denies everything by default; a request needs an explicit Allow and no explicit Deny to succeed.
Why the others are wrong:
A) It is allowed because nothing denies it — IAM is default-deny, so silence never grants access.
B) It is allowed if the user has MFA enabled — MFA status alone grants nothing; it can only be checked in a condition.
D) It is allowed only for read-only actions — There is no special default for read actions; they also need an Allow.
How to think about it: Nothing says yes = implicit deny.
Why C is correct: IAM denies everything by default; a request needs an explicit Allow and no explicit Deny to succeed.
Why the others are wrong:
A) It is allowed because nothing denies it — IAM is default-deny, so silence never grants access.
B) It is allowed if the user has MFA enabled — MFA status alone grants nothing; it can only be checked in a condition.
D) It is allowed only for read-only actions — There is no special default for read actions; they also need an Allow.
Q3.The AWS managed policy PowerUserAccess grants broad access but excludes IAM and Organizations management. Which policy element makes that possible without writing a Deny?
✓ Correct: A. An Allow statement that uses NotAction
How to think about it: Allow everything except a list = NotAction with Effect Allow.
Why A is correct: NotAction with Allow grants every action except those listed, so IAM and Organizations simply are not granted.
Why the others are wrong:
B) A permissions boundary attached to the policy — Boundaries attach to users or roles, not to another managed policy.
C) A Deny statement scoped with a Condition — A Deny would block those actions even if another policy allowed them, which PowerUserAccess avoids.
D) An Allow statement that uses NotResource — NotResource excludes resources, not actions such as
How to think about it: Allow everything except a list = NotAction with Effect Allow.
Why A is correct: NotAction with Allow grants every action except those listed, so IAM and Organizations simply are not granted.
Why the others are wrong:
B) A permissions boundary attached to the policy — Boundaries attach to users or roles, not to another managed policy.
C) A Deny statement scoped with a Condition — A Deny would block those actions even if another policy allowed them, which PowerUserAccess avoids.
D) An Allow statement that uses NotResource — NotResource excludes resources, not actions such as
iam:*.
Q4.A bucket policy must reject any request that does not use HTTPS. Which condition key should it test?
✓ Correct: D. aws:SecureTransport with the Bool operator
How to think about it: Encrypted in transit = aws:SecureTransport (Bool).
Why D is correct: This key is true only when the request arrived over TLS, so a Deny when it is false blocks plain HTTP.
Why the others are wrong:
A) aws:SourceIp with the IpAddress operator — SourceIp checks where the request came from, not whether it was encrypted.
B) s3:x-amz-server-side-encryption — That key concerns encryption at rest of the uploaded object, not the transport protocol.
C) aws:MultiFactorAuthPresent with Bool — This checks whether the caller used MFA, which is unrelated to HTTPS.
How to think about it: Encrypted in transit = aws:SecureTransport (Bool).
Why D is correct: This key is true only when the request arrived over TLS, so a Deny when it is false blocks plain HTTP.
Why the others are wrong:
A) aws:SourceIp with the IpAddress operator — SourceIp checks where the request came from, not whether it was encrypted.
B) s3:x-amz-server-side-encryption — That key concerns encryption at rest of the uploaded object, not the transport protocol.
C) aws:MultiFactorAuthPresent with Bool — This checks whether the caller used MFA, which is unrelated to HTTPS.
Q5.One policy should give every IAM user access only to their own folder
home/<username>/ in a shared bucket. What makes this possible?
✓ Correct: D. The ${aws:username} variable in the Resource ARN
How to think about it: One policy, per-user paths = policy variable ${aws:username}.
Why D is correct: The variable is replaced with the caller's user name at evaluation time, so one policy serves every user.
Why the others are wrong:
A) An S3 access point per user with no IAM policy — Access points still need policies; they do not personalise paths on their own.
B) A separate inline policy written for each user — That works but defeats the goal of a single maintainable policy.
C) The aws:SourceIp condition key — Source IP identifies a network location, not which folder belongs to which user.
How to think about it: One policy, per-user paths = policy variable ${aws:username}.
Why D is correct: The variable is replaced with the caller's user name at evaluation time, so one policy serves every user.
Why the others are wrong:
A) An S3 access point per user with no IAM policy — Access points still need policies; they do not personalise paths on their own.
B) A separate inline policy written for each user — That works but defeats the goal of a single maintainable policy.
C) The aws:SourceIp condition key — Source IP identifies a network location, not which folder belongs to which user.
Q6.What does an IAM permissions boundary do?
✓ Correct: B. It caps the permissions a user or role can ever have
How to think about it: Boundary = maximum permissions ceiling; it never grants anything by itself.
Why B is correct: Effective permissions are the overlap of the boundary and the identity policies; the boundary alone grants nothing.
Why the others are wrong:
A) It limits every account in an organizational unit — Limiting accounts across an OU is the job of a service control policy.
C) It grants permissions to every member of an IAM group — Boundaries cannot be attached to groups and they do not grant access.
D) It lists which external accounts may assume a role — That is the role's trust policy, not a boundary.
How to think about it: Boundary = maximum permissions ceiling; it never grants anything by itself.
Why B is correct: Effective permissions are the overlap of the boundary and the identity policies; the boundary alone grants nothing.
Why the others are wrong:
A) It limits every account in an organizational unit — Limiting accounts across an OU is the job of a service control policy.
C) It grants permissions to every member of an IAM group — Boundaries cannot be attached to groups and they do not grant access.
D) It lists which external accounts may assume a role — That is the role's trust policy, not a boundary.
Q7.Developers must be allowed to create IAM roles for their Lambda functions, but must never be able to create a role more powerful than themselves. What is the standard control?
✓ Correct: C. Allow iam:CreateRole only when a specific permissions boundary is attached
How to think about it: Delegated IAM admin without privilege escalation = require a permissions boundary on what they create.
Why C is correct: A condition on
Why the others are wrong:
A) Give developers read-only IAM access and approve roles manually — This is safe but does not let developers self-serve as required.
B) Attach an SCP that denies iam:CreateRole in the account — This stops the developers from creating roles at all, which breaks the requirement.
D) Enable IAM Access Analyzer in the account — Access Analyzer reports external sharing; it does not stop escalation in real time.
How to think about it: Delegated IAM admin without privilege escalation = require a permissions boundary on what they create.
Why C is correct: A condition on
iam:PermissionsBoundary forces every new role under the same ceiling, so nobody can escalate.Why the others are wrong:
A) Give developers read-only IAM access and approve roles manually — This is safe but does not let developers self-serve as required.
B) Attach an SCP that denies iam:CreateRole in the account — This stops the developers from creating roles at all, which breaks the requirement.
D) Enable IAM Access Analyzer in the account — Access Analyzer reports external sharing; it does not stop escalation in real time.
Q8.Which IAM Access Analyzer capability reports that an S3 bucket or KMS key is reachable from outside your account or organization?
✓ Correct: B. External access findings
How to think about it: Outside the zone of trust = Access Analyzer external access findings.
Why B is correct: You set the account or organization as the zone of trust, and any resource shared outside it becomes a finding.
Why the others are wrong:
A) Policy validation checks — Validation checks grammar and best practices of a policy you are writing, not live sharing.
C) Access Advisor last-accessed data — Access Advisor shows when services were last used by an identity, not external exposure.
D) The IAM credential report — The credential report lists users and their credential status, not resource sharing.
How to think about it: Outside the zone of trust = Access Analyzer external access findings.
Why B is correct: You set the account or organization as the zone of trust, and any resource shared outside it becomes a finding.
Why the others are wrong:
A) Policy validation checks — Validation checks grammar and best practices of a policy you are writing, not live sharing.
C) Access Advisor last-accessed data — Access Advisor shows when services were last used by an identity, not external exposure.
D) The IAM credential report — The credential report lists users and their credential status, not resource sharing.
Q9.A team wants a least-privilege policy for a role, built from the API calls the role really made over recent weeks. Which feature helps?
✓ Correct: D. IAM Access Analyzer policy generation
How to think about it: Write the policy from real activity = Access Analyzer policy generation (reads CloudTrail).
Why D is correct: It reviews the role's CloudTrail history and drafts a policy with only the actions and services that were used.
Why the others are wrong:
A) IAM Access Analyzer policy validation — Validation checks a policy you already wrote; it does not create one from activity.
B) AWS Trusted Advisor security checks — Trusted Advisor flags risky settings but does not write fine-grained IAM policies.
C) The IAM policy simulator — The simulator tests what a policy allows; it does not build a policy from history.
How to think about it: Write the policy from real activity = Access Analyzer policy generation (reads CloudTrail).
Why D is correct: It reviews the role's CloudTrail history and drafts a policy with only the actions and services that were used.
Why the others are wrong:
A) IAM Access Analyzer policy validation — Validation checks a policy you already wrote; it does not create one from activity.
B) AWS Trusted Advisor security checks — Trusted Advisor flags risky settings but does not write fine-grained IAM policies.
C) The IAM policy simulator — The simulator tests what a policy allows; it does not build a policy from history.
Q10.Engineers may create EBS volumes only if the request includes both the
Env and CostCenter tag keys. Which condition approach enforces this?
✓ Correct: C. aws:TagKeys with ForAllValues plus aws:RequestTag checks
How to think about it: Every listed tag must be present = aws:TagKeys with ForAllValues plus a request-tag check.
Why C is correct: ForAllValues limits the request to approved keys, and RequestTag checks make sure both keys are actually supplied.
Why the others are wrong:
A) aws:PrincipalTag on the engineer — PrincipalTag checks the caller's own tags, not the tags on the new volume.
B) aws:ResourceTag on the volume being created — ResourceTag reads tags that already exist on a resource, not those in the create request.
D) ec2:Region with StringEquals — This only controls the Region; it does nothing about tags.
How to think about it: Every listed tag must be present = aws:TagKeys with ForAllValues plus a request-tag check.
Why C is correct: ForAllValues limits the request to approved keys, and RequestTag checks make sure both keys are actually supplied.
Why the others are wrong:
A) aws:PrincipalTag on the engineer — PrincipalTag checks the caller's own tags, not the tags on the new volume.
B) aws:ResourceTag on the volume being created — ResourceTag reads tags that already exist on a resource, not those in the create request.
D) ec2:Region with StringEquals — This only controls the Region; it does nothing about tags.
Q11.A role's sessions were exposed. You must cut off every session already issued for that role without deleting the role. What do you do?
✓ Correct: C. Revoke active sessions, denying tokens issued before now
How to think about it: Kill issued sessions = revoke active sessions (deny on aws:TokenIssueTime).
Why C is correct: The AWSRevokeOlderSessions inline policy denies all requests whose token was issued before the revoke time.
Why the others are wrong:
A) Rotate the role's access keys — Roles have no long-term access keys; their credentials are temporary.
B) Detach all permission policies from the role — This blocks old and new sessions alike, and the role becomes unusable.
D) Lower the role's maximum session duration to 15 minutes — This affects future sessions only; existing tokens stay valid until they expire.
How to think about it: Kill issued sessions = revoke active sessions (deny on aws:TokenIssueTime).
Why C is correct: The AWSRevokeOlderSessions inline policy denies all requests whose token was issued before the revoke time.
Why the others are wrong:
A) Rotate the role's access keys — Roles have no long-term access keys; their credentials are temporary.
B) Detach all permission policies from the role — This blocks old and new sessions alike, and the role becomes unusable.
D) Lower the role's maximum session duration to 15 minutes — This affects future sessions only; existing tokens stay valid until they expire.
Q12.What is the key difference between assuming a cross-account role and using a resource-based policy to grant access?
✓ Correct: B. A role swaps your permissions for the role's; a resource policy keeps yours
How to think about it: Assume a role = give up your own permissions. Resource policy = keep them.
Why B is correct: With a resource policy you act as yourself, so you can read in one account and write in the other in the same session.
Why the others are wrong:
A) Assuming a role keeps your permissions and adds the role's — Assuming a role replaces your permissions for that session; they are not merged.
C) Resource policies require the caller to have MFA — MFA is optional and can be required by condition in either approach.
D) Resource policies work only within one account; roles work across accounts — Resource policies such as bucket policies are commonly used to grant other accounts access.
How to think about it: Assume a role = give up your own permissions. Resource policy = keep them.
Why B is correct: With a resource policy you act as yourself, so you can read in one account and write in the other in the same session.
Why the others are wrong:
A) Assuming a role keeps your permissions and adds the role's — Assuming a role replaces your permissions for that session; they are not merged.
C) Resource policies require the caller to have MFA — MFA is optional and can be required by condition in either approach.
D) Resource policies work only within one account; roles work across accounts — Resource policies such as bucket policies are commonly used to grant other accounts access.
Q13.A user in Account A must scan a DynamoDB table in Account A and write the output into an S3 bucket in Account B in one process. What is the simplest design?
✓ Correct: B. Add an S3 bucket policy in Account B that allows the Account A user to write
How to think about it: Need both accounts at once = resource-based policy on the target (bucket policy).
Why B is correct: The user keeps Account A permissions to read DynamoDB and the bucket policy allows the write, so no role switch is needed.
Why the others are wrong:
A) Create a duplicate IAM user in Account B — Two sets of long-term credentials add risk and still need a copy step.
C) Use AWS RAM to share the S3 bucket with Account A — S3 buckets are not shared through RAM; bucket policies do this.
D) Have the user assume a role in Account B and then read DynamoDB — Once in the Account B role, the user loses Account A permissions and cannot read the table.
How to think about it: Need both accounts at once = resource-based policy on the target (bucket policy).
Why B is correct: The user keeps Account A permissions to read DynamoDB and the bucket policy allows the write, so no role switch is needed.
Why the others are wrong:
A) Create a duplicate IAM user in Account B — Two sets of long-term credentials add risk and still need a copy step.
C) Use AWS RAM to share the S3 bucket with Account A — S3 buckets are not shared through RAM; bucket policies do this.
D) Have the user assume a role in Account B and then read DynamoDB — Once in the Account B role, the user loses Account A permissions and cannot read the table.
Q14.Which STS API does an IAM user or application call to get temporary credentials for a role in the same or another account?
✓ Correct: B. AssumeRole
How to think about it: Plain role switch = AssumeRole.
Why B is correct: AssumeRole returns temporary credentials for the role, provided the trust policy names the caller.
Why the others are wrong:
A) GetSessionToken — GetSessionToken gives MFA-backed temporary credentials for your own user, not for a role.
C) AssumeRoleWithSAML — This is used after a SAML identity provider has authenticated the user.
D) AssumeRoleWithWebIdentity — This exchanges a token from an OIDC web identity provider, not an IAM user's credentials.
How to think about it: Plain role switch = AssumeRole.
Why B is correct: AssumeRole returns temporary credentials for the role, provided the trust policy names the caller.
Why the others are wrong:
A) GetSessionToken — GetSessionToken gives MFA-backed temporary credentials for your own user, not for a role.
C) AssumeRoleWithSAML — This is used after a SAML identity provider has authenticated the user.
D) AssumeRoleWithWebIdentity — This exchanges a token from an OIDC web identity provider, not an IAM user's credentials.
Q15.A user must use MFA before calling sensitive APIs from the CLI with their own IAM user permissions. Which STS call gives MFA-backed temporary credentials?
✓ Correct: D. GetSessionToken
How to think about it: MFA for your own user = GetSessionToken.
Why D is correct: It takes the MFA code and returns temporary credentials for the same user, so MFA conditions are satisfied.
Why the others are wrong:
A) AssumeRole — AssumeRole can include MFA, but it switches to a role rather than keeping the user's own permissions.
B) GetCallerIdentity — This only reports who you are; it returns no credentials.
C) GetFederationToken — This is meant for a broker issuing credentials to federated users.
How to think about it: MFA for your own user = GetSessionToken.
Why D is correct: It takes the MFA code and returns temporary credentials for the same user, so MFA conditions are satisfied.
Why the others are wrong:
A) AssumeRole — AssumeRole can include MFA, but it switches to a role rather than keeping the user's own permissions.
B) GetCallerIdentity — This only reports who you are; it returns no credentials.
C) GetFederationToken — This is meant for a broker issuing credentials to federated users.
Q16.A SaaS vendor needs a cross-account role in your account. What protects against the confused deputy problem?
✓ Correct: A. Require an External ID in the role's trust policy
How to think about it: Third-party role = External ID in the trust policy.
Why A is correct: The vendor supplies a unique External ID per customer, so another customer cannot trick the vendor into using your role.
Why the others are wrong:
B) Give the vendor an IAM user with access keys — Long-term keys for an outsider are the pattern roles are meant to replace.
C) Restrict the role with aws:SourceIp — IP limits help a little but do not tell one customer's request from another's.
D) Require MFA in the role's trust policy — The vendor's automation cannot provide MFA, and MFA does not stop the vendor being misused.
How to think about it: Third-party role = External ID in the trust policy.
Why A is correct: The vendor supplies a unique External ID per customer, so another customer cannot trick the vendor into using your role.
Why the others are wrong:
B) Give the vendor an IAM user with access keys — Long-term keys for an outsider are the pattern roles are meant to replace.
C) Restrict the role with aws:SourceIp — IP limits help a little but do not tell one customer's request from another's.
D) Require MFA in the role's trust policy — The vendor's automation cannot provide MFA, and MFA does not stop the vendor being misused.
Q17.An EC2 instance needs to call S3 without storing access keys. How does the application get credentials?
✓ Correct: A. Attach a role via an instance profile; the SDK reads it from metadata
How to think about it: EC2 credentials = instance profile role via the instance metadata service.
Why A is correct: The SDK fetches and refreshes temporary role credentials from the metadata service automatically.
Why the others are wrong:
B) Attach several roles to the instance, one per service — An instance profile holds a single role at a time.
C) Put access keys in EC2 user data — User data is readable from the instance and is not a secret store.
D) Bake an IAM user's access keys into the AMI at build time — Baked-in keys are long-lived, hard to rotate and easy to leak.
How to think about it: EC2 credentials = instance profile role via the instance metadata service.
Why A is correct: The SDK fetches and refreshes temporary role credentials from the metadata service automatically.
Why the others are wrong:
B) Attach several roles to the instance, one per service — An instance profile holds a single role at a time.
C) Put access keys in EC2 user data — User data is readable from the instance and is not a secret store.
D) Bake an IAM user's access keys into the AMI at build time — Baked-in keys are long-lived, hard to rotate and easy to leak.
Q18.In an S3 bucket policy you want to allow only principals whose session carries the tag
Department=HR, passed when they assumed the role. Which feature and key fit?
✓ Correct: B. STS session tags, checked with the aws:PrincipalTag condition key
How to think about it: Tags passed at AssumeRole = session tags, checked with aws:PrincipalTag.
Why B is correct: Session tags become principal tags for that session, so policies can match on them.
Why the others are wrong:
A) Cost allocation tags in the Billing console — Cost allocation tags affect billing reports, not access decisions.
C) An External ID set to HR on the role — External ID guards third-party trust; it does not carry user attributes.
D) Resource tags on the bucket, checked with aws:ResourceTag — ResourceTag checks the bucket's own tags, not the caller's department.
How to think about it: Tags passed at AssumeRole = session tags, checked with aws:PrincipalTag.
Why B is correct: Session tags become principal tags for that session, so policies can match on them.
Why the others are wrong:
A) Cost allocation tags in the Billing console — Cost allocation tags affect billing reports, not access decisions.
C) An External ID set to HR on the role — External ID guards third-party trust; it does not carry user attributes.
D) Resource tags on the bucket, checked with aws:ResourceTag — ResourceTag checks the bucket's own tags, not the caller's department.
Q19.What is the allowed range for the maximum session duration you can set on an IAM role?
✓ Correct: C. From 1 hour up to 12 hours
How to think about it: Role sessions: 1 hour default, up to 12 hours max (15 minutes minimum per request).
Why C is correct: You can raise a role's maximum session duration to 12 hours; callers may request as little as 15 minutes.
Why the others are wrong:
A) Credentials never expire until revoked — STS credentials are always temporary and expire on their own.
B) From 5 minutes up to 1 hour — Role sessions can be much longer than one hour if configured.
D) From 1 hour up to 7 days — Seven days exceeds what AssumeRole can issue.
How to think about it: Role sessions: 1 hour default, up to 12 hours max (15 minutes minimum per request).
Why C is correct: You can raise a role's maximum session duration to 12 hours; callers may request as little as 15 minutes.
Why the others are wrong:
A) Credentials never expire until revoked — STS credentials are always temporary and expire on their own.
B) From 5 minutes up to 1 hour — Role sessions can be much longer than one hour if configured.
D) From 1 hour up to 7 days — Seven days exceeds what AssumeRole can issue.
Q20.An application assumes Role A, then uses those credentials to assume Role B and asks for a 4-hour session. What happens?
✓ Correct: A. The call fails, because chained role sessions are limited to 1 hour
How to think about it: Role chaining = sessions capped at 1 hour, whatever the role's maximum.
Why A is correct: When a role assumes another role, STS allows at most one hour, so a longer request is rejected.
Why the others are wrong:
B) It succeeds if Role B's maximum session duration is 12 hours — Role B's own maximum does not apply to chained sessions.
C) It succeeds and inherits Role A's remaining session time — Sessions are not inherited; the chained session has its own one-hour limit.
D) It succeeds only if both roles are in the same account — The one-hour limit applies to role chaining in the same or another account.
How to think about it: Role chaining = sessions capped at 1 hour, whatever the role's maximum.
Why A is correct: When a role assumes another role, STS allows at most one hour, so a longer request is rejected.
Why the others are wrong:
B) It succeeds if Role B's maximum session duration is 12 hours — Role B's own maximum does not apply to chained sessions.
C) It succeeds and inherits Role A's remaining session time — Sessions are not inherited; the chained session has its own one-hour limit.
D) It succeeds only if both roles are in the same account — The one-hour limit applies to role chaining in the same or another account.
Q21.Employees authenticate against on-premises ADFS. They should reach the AWS console without IAM users. Which STS API works under the hood?
✓ Correct: D. AssumeRoleWithSAML
How to think about it: SAML 2.0 IdP such as ADFS = AssumeRoleWithSAML.
Why D is correct: The IdP issues a SAML assertion, and STS exchanges it for temporary credentials of a mapped role.
Why the others are wrong:
A) GetFederationToken — This is used by a custom broker when the IdP does not speak SAML.
B) AssumeRoleWithWebIdentity — This is for OIDC tokens from web or social providers, not SAML assertions.
C) GetSessionToken — This issues temporary credentials for an existing IAM user, which these employees do not have.
How to think about it: SAML 2.0 IdP such as ADFS = AssumeRoleWithSAML.
Why D is correct: The IdP issues a SAML assertion, and STS exchanges it for temporary credentials of a mapped role.
Why the others are wrong:
A) GetFederationToken — This is used by a custom broker when the IdP does not speak SAML.
B) AssumeRoleWithWebIdentity — This is for OIDC tokens from web or social providers, not SAML assertions.
C) GetSessionToken — This issues temporary credentials for an existing IAM user, which these employees do not have.
Q22.When setting up SAML 2.0 federation with AWS IAM, what trust must be configured?
✓ Correct: D. Both ways: AWS trusts the IdP and the IdP trusts AWS
How to think about it: SAML federation = two-way trust: IdP metadata in IAM, AWS as a relying party in the IdP.
Why D is correct: IAM gets a SAML provider from the IdP metadata, and the IdP is configured with AWS as the service provider.
Why the others are wrong:
A) A forest trust between Active Directory and IAM — Forest trusts link AD domains; IAM is not an AD forest.
B) One way only: the IdP trusts AWS — AWS must also know and trust the IdP before it accepts assertions.
C) A VPC peering connection to the IdP — SAML runs over the browser and HTTPS; no network peering is required.
How to think about it: SAML federation = two-way trust: IdP metadata in IAM, AWS as a relying party in the IdP.
Why D is correct: IAM gets a SAML provider from the IdP metadata, and the IdP is configured with AWS as the service provider.
Why the others are wrong:
A) A forest trust between Active Directory and IAM — Forest trusts link AD domains; IAM is not an AD forest.
B) One way only: the IdP trusts AWS — AWS must also know and trust the IdP before it accepts assertions.
C) A VPC peering connection to the IdP — SAML runs over the browser and HTTPS; no network peering is required.
Q23.A company's identity store is a legacy LDAP system that cannot issue SAML or OIDC. Users need temporary AWS credentials. What is the pattern?
✓ Correct: B. Build a custom identity broker that authenticates users and calls STS
How to think about it: IdP not SAML-compatible = custom identity broker calling AssumeRole or GetFederationToken.
Why B is correct: The broker checks LDAP, decides the right permissions, and requests temporary credentials from STS.
Why the others are wrong:
A) Use Cognito user pools with the LDAP server as an OIDC provider — The LDAP system cannot issue OIDC tokens, so Cognito cannot federate with it directly.
C) Create IAM users that mirror each LDAP account — This duplicates identities and long-term credentials, which federation is meant to avoid.
D) Configure a SAML provider in IAM pointing at the LDAP server — IAM SAML providers require a SAML 2.0 IdP, which this system is not.
How to think about it: IdP not SAML-compatible = custom identity broker calling AssumeRole or GetFederationToken.
Why B is correct: The broker checks LDAP, decides the right permissions, and requests temporary credentials from STS.
Why the others are wrong:
A) Use Cognito user pools with the LDAP server as an OIDC provider — The LDAP system cannot issue OIDC tokens, so Cognito cannot federate with it directly.
C) Create IAM users that mirror each LDAP account — This duplicates identities and long-term credentials, which federation is meant to avoid.
D) Configure a SAML provider in IAM pointing at the LDAP server — IAM SAML providers require a SAML 2.0 IdP, which this system is not.
Q24.For a mobile app whose users sign in with Google or Facebook, what does AWS recommend for getting AWS credentials?
✓ Correct: B. Amazon Cognito identity pools
How to think about it: Web/mobile federation = Amazon Cognito (identity pools), not raw web identity.
Why B is correct: Cognito exchanges the provider token for temporary credentials of least-privilege roles, and supports guest access.
Why the others are wrong:
A) SAML 2.0 federation with ADFS — ADFS serves corporate users, not consumer social logins.
C) IAM users created at sign-up — Long-term IAM users for app users do not scale and are a security risk.
D) Calling AssumeRoleWithWebIdentity directly from the app — It works, but AWS recommends Cognito because it handles providers, guests and token exchange for you.
How to think about it: Web/mobile federation = Amazon Cognito (identity pools), not raw web identity.
Why B is correct: Cognito exchanges the provider token for temporary credentials of least-privilege roles, and supports guest access.
Why the others are wrong:
A) SAML 2.0 federation with ADFS — ADFS serves corporate users, not consumer social logins.
C) IAM users created at sign-up — Long-term IAM users for app users do not scale and are a security risk.
D) Calling AssumeRoleWithWebIdentity directly from the app — It works, but AWS recommends Cognito because it handles providers, guests and token exchange for you.
Q25.Which Cognito capability lets a mobile app give limited AWS access to people who have not signed in yet?
✓ Correct: A. Guest identities in a Cognito identity pool
How to think about it: Not signed in = unauthenticated (guest) identities in an identity pool.
Why A is correct: The pool maps guests to a separate, tightly scoped IAM role.
Why the others are wrong:
B) A permissions boundary on the app role — A boundary limits a role but does not create guest identities.
C) An anonymous IAM user shared by every device — A shared IAM user means long-term keys embedded in the app.
D) S3 pre-signed URLs from IAM Identity Center — Identity Center serves workforce users, not anonymous app visitors.
How to think about it: Not signed in = unauthenticated (guest) identities in an identity pool.
Why A is correct: The pool maps guests to a separate, tightly scoped IAM role.
Why the others are wrong:
B) A permissions boundary on the app role — A boundary limits a role but does not create guest identities.
C) An anonymous IAM user shared by every device — A shared IAM user means long-term keys embedded in the app.
D) S3 pre-signed URLs from IAM Identity Center — Identity Center serves workforce users, not anonymous app visitors.
Q26.Web identity federation users should each read only their own prefix in an S3 bucket. What goes in the role policy?
✓ Correct: D. The ${cognito-identity.amazonaws.com:sub} variable
How to think about it: Per-federated-user paths = policy variable such as ${cognito-identity.amazonaws.com:sub}.
Why D is correct: The variable resolves to the caller's unique identity ID, so the same role restricts each user to their own prefix.
Why the others are wrong:
A) The ${aws:username} variable in the Resource ARN — Federated users are not IAM users, so aws:username is not set for them.
B) A separate IAM role created for every app user — This does not scale and needs role changes for every sign-up.
C) A dedicated S3 access point for each app user — Access points do not know the federated identity unless a policy variable is used anyway.
How to think about it: Per-federated-user paths = policy variable such as ${cognito-identity.amazonaws.com:sub}.
Why D is correct: The variable resolves to the caller's unique identity ID, so the same role restricts each user to their own prefix.
Why the others are wrong:
A) The ${aws:username} variable in the Resource ARN — Federated users are not IAM users, so aws:username is not set for them.
B) A separate IAM role created for every app user — This does not scale and needs role changes for every sign-up.
C) A dedicated S3 access point for each app user — Access points do not know the federated identity unless a policy variable is used anyway.
Q27.Which federation option is AWS's recommended managed way to give workforce users single sign-on to many AWS accounts?
✓ Correct: A. IAM Identity Center
How to think about it: Workforce SSO across accounts = IAM Identity Center; per-account SAML is the older way.
Why A is correct: It centralises workforce sign-in, connects to an external IdP or AD, and assigns access to every account in the organization.
Why the others are wrong:
B) A custom identity broker — A broker is a fallback for IdPs that cannot speak SAML, not the managed default.
C) A separate SAML provider in each account — This works but must be configured and maintained account by account.
D) Amazon Cognito user pools — Cognito is aimed at customer-facing apps, not workforce access to AWS accounts.
How to think about it: Workforce SSO across accounts = IAM Identity Center; per-account SAML is the older way.
Why A is correct: It centralises workforce sign-in, connects to an external IdP or AD, and assigns access to every account in the organization.
Why the others are wrong:
B) A custom identity broker — A broker is a fallback for IdPs that cannot speak SAML, not the managed default.
C) A separate SAML provider in each account — This works but must be configured and maintained account by account.
D) Amazon Cognito user pools — Cognito is aimed at customer-facing apps, not workforce access to AWS accounts.
Q28.A corporate proxy application authenticates users and must hand them temporary AWS credentials whose permissions are the intersection of its own and a policy it passes. Which call fits?
✓ Correct: A. GetFederationToken
How to think about it: Broker issues federated-user credentials = GetFederationToken.
Why A is correct: It returns temporary credentials for a federated user, scoped by the session policy passed in.
Why the others are wrong:
B) AssumeRoleWithWebIdentity — This requires an OIDC token from a web identity provider.
C) AssumeRoleWithSAML — This needs a SAML assertion from a SAML IdP, which a custom proxy may not produce.
D) GetSessionToken — This returns credentials for the calling user only and cannot take a session policy.
How to think about it: Broker issues federated-user credentials = GetFederationToken.
Why A is correct: It returns temporary credentials for a federated user, scoped by the session policy passed in.
Why the others are wrong:
B) AssumeRoleWithWebIdentity — This requires an OIDC token from a web identity provider.
C) AssumeRoleWithSAML — This needs a SAML assertion from a SAML IdP, which a custom proxy may not produce.
D) GetSessionToken — This returns credentials for the calling user only and cannot take a session policy.
Q29.A company wants a fully managed Microsoft AD in AWS that supports MFA and a two-way forest trust with its on-premises AD. Which option fits?
✓ Correct: D. AWS Managed Microsoft AD
How to think about it: Real AD in AWS + trust with on-prem = AWS Managed Microsoft AD.
Why D is correct: It runs actual Microsoft AD domain controllers in two AZs and supports MFA and forest trusts.
Why the others are wrong:
A) Amazon Cognito user pools — Cognito is a customer identity directory, not a Microsoft AD domain.
B) Simple AD — Simple AD is a low-cost AD-compatible directory that cannot trust an on-premises domain.
C) AD Connector — AD Connector only proxies to on-premises AD; it cannot hold users or form trusts.
How to think about it: Real AD in AWS + trust with on-prem = AWS Managed Microsoft AD.
Why D is correct: It runs actual Microsoft AD domain controllers in two AZs and supports MFA and forest trusts.
Why the others are wrong:
A) Amazon Cognito user pools — Cognito is a customer identity directory, not a Microsoft AD domain.
B) Simple AD — Simple AD is a low-cost AD-compatible directory that cannot trust an on-premises domain.
C) AD Connector — AD Connector only proxies to on-premises AD; it cannot hold users or form trusts.
Q30.Users must stay managed only in the on-premises AD, and AWS services should simply send authentication requests there. Which directory option fits?
✓ Correct: A. AD Connector
How to think about it: Proxy to on-prem, no users in AWS = AD Connector.
Why A is correct: AD Connector is a gateway that forwards directory requests to on-premises AD over VPN or Direct Connect, with no caching.
Why the others are wrong:
B) IAM SAML provider — A SAML provider federates sign-in but does not act as an LDAP gateway for AWS directory-aware services.
C) Simple AD — Simple AD is standalone and cannot authenticate against on-premises AD.
D) AWS Managed Microsoft AD — This creates a separate AD domain in AWS, which is more than a simple proxy.
How to think about it: Proxy to on-prem, no users in AWS = AD Connector.
Why A is correct: AD Connector is a gateway that forwards directory requests to on-premises AD over VPN or Direct Connect, with no caching.
Why the others are wrong:
B) IAM SAML provider — A SAML provider federates sign-in but does not act as an LDAP gateway for AWS directory-aware services.
C) Simple AD — Simple AD is standalone and cannot authenticate against on-premises AD.
D) AWS Managed Microsoft AD — This creates a separate AD domain in AWS, which is more than a simple proxy.
Q31.A small lab needs an inexpensive AD-compatible directory to join a few Linux and Windows instances. No on-premises link or MFA is required. Which option is cheapest?
✓ Correct: A. Simple AD
How to think about it: Cheap, basic, standalone = Simple AD (Samba-based).
Why A is correct: Simple AD is a low-cost Samba 4 based directory for basic user, group and domain-join needs.
Why the others are wrong:
B) Self-managed AD on EC2 in two AZs — You would run and patch the domain controllers yourself at higher cost.
C) AWS Managed Microsoft AD Enterprise edition — Enterprise edition is the largest and most expensive tier.
D) AD Connector — AD Connector needs an existing directory to proxy to, which this lab does not have.
How to think about it: Cheap, basic, standalone = Simple AD (Samba-based).
Why A is correct: Simple AD is a low-cost Samba 4 based directory for basic user, group and domain-join needs.
Why the others are wrong:
B) Self-managed AD on EC2 in two AZs — You would run and patch the domain controllers yourself at higher cost.
C) AWS Managed Microsoft AD Enterprise edition — Enterprise edition is the largest and most expensive tier.
D) AD Connector — AD Connector needs an existing directory to proxy to, which this lab does not have.
Q32.What network connectivity is needed to set up a forest trust between AWS Managed Microsoft AD and an on-premises AD?
✓ Correct: A. Site-to-Site VPN or Direct Connect to the data centre
How to think about it: AD trust needs a private path = Site-to-Site VPN or Direct Connect.
Why A is correct: Domain controllers must reach each other privately for trust traffic.
Why the others are wrong:
B) A VPC gateway endpoint for Directory Service — Gateway endpoints exist only for S3 and DynamoDB.
C) Only internet access from the domain controllers — Directory trust traffic is not sent over the open internet.
D) CloudFront in front of the on-premises domain controllers — CloudFront is a content delivery network, not a directory transport.
How to think about it: AD trust needs a private path = Site-to-Site VPN or Direct Connect.
Why A is correct: Domain controllers must reach each other privately for trust traffic.
Why the others are wrong:
B) A VPC gateway endpoint for Directory Service — Gateway endpoints exist only for S3 and DynamoDB.
C) Only internet access from the domain controllers — Directory trust traffic is not sent over the open internet.
D) CloudFront in front of the on-premises domain controllers — CloudFront is a content delivery network, not a directory transport.
Q33.RDS for SQL Server must use Windows authentication, and the users live in the on-premises AD. Which design works?
✓ Correct: D. Managed Microsoft AD with a trust to on-premises AD
How to think about it: RDS SQL Server Windows auth = Managed Microsoft AD (+ trust to on-prem).
Why D is correct: RDS for SQL Server joins the Managed AD domain, and the trust lets on-premises users sign in.
Why the others are wrong:
A) AD Connector pointing at the on-premises AD — RDS for SQL Server does not support AD Connector as its directory.
B) IAM database authentication — IAM database authentication is for MySQL and PostgreSQL engines, not Windows logins on SQL Server.
C) Simple AD synchronised from on-premises — Simple AD does not support RDS for SQL Server and cannot sync or trust.
How to think about it: RDS SQL Server Windows auth = Managed Microsoft AD (+ trust to on-prem).
Why D is correct: RDS for SQL Server joins the Managed AD domain, and the trust lets on-premises users sign in.
Why the others are wrong:
A) AD Connector pointing at the on-premises AD — RDS for SQL Server does not support AD Connector as its directory.
B) IAM database authentication — IAM database authentication is for MySQL and PostgreSQL engines, not Windows logins on SQL Server.
C) Simple AD synchronised from on-premises — Simple AD does not support RDS for SQL Server and cannot sync or trust.
Q34.A trust exists between on-premises AD and AWS Managed Microsoft AD, but the company worries about authentication if the Direct Connect link fails. What reduces that risk?
✓ Correct: A. A self-managed replica DC of the on-prem domain on EC2
How to think about it: Survive link loss = run a replica DC of the on-prem domain on EC2.
Why A is correct: Local replicas keep authenticating cloud workloads and cut latency even when the link is down.
Why the others are wrong:
B) Add more domain controllers to the Managed AD — Extra Managed AD controllers serve the AWS domain; they do not help reach the on-premises domain.
C) Switch the cloud directory to Simple AD — Simple AD cannot connect to on-premises AD at all.
D) Replace the trust with AD Connector — AD Connector has no cache, so it fails completely when the link drops.
How to think about it: Survive link loss = run a replica DC of the on-prem domain on EC2.
Why A is correct: Local replicas keep authenticating cloud workloads and cut latency even when the link is down.
Why the others are wrong:
B) Add more domain controllers to the Managed AD — Extra Managed AD controllers serve the AWS domain; they do not help reach the on-premises domain.
C) Switch the cloud directory to Simple AD — Simple AD cannot connect to on-premises AD at all.
D) Replace the trust with AD Connector — AD Connector has no cache, so it fails completely when the link drops.
Q35.How is AWS Managed Microsoft AD deployed for availability?
✓ Correct: B. Domain controllers in two Availability Zones, with more DCs addable for scale
How to think about it: Managed AD = domain controllers in two AZs, more can be added.
Why B is correct: AWS deploys at least two DCs in separate AZs and handles patching and backups.
Why the others are wrong:
A) A single domain controller with automatic replacement — It always starts with two DCs, not one.
C) One domain controller per Region, globally replicated by default — Multi-Region replication is optional and only for Enterprise edition.
D) Domain controllers on Lambda functions — AD domain controllers run on managed instances, not Lambda.
How to think about it: Managed AD = domain controllers in two AZs, more can be added.
Why B is correct: AWS deploys at least two DCs in separate AZs and handles patching and backups.
Why the others are wrong:
A) A single domain controller with automatic replacement — It always starts with two DCs, not one.
C) One domain controller per Region, globally replicated by default — Multi-Region replication is optional and only for Enterprise edition.
D) Domain controllers on Lambda functions — AD domain controllers run on managed instances, not Lambda.
Q36.Several accounts and VPCs need their EC2 Windows instances to join the same AWS Managed Microsoft AD domain. What is the simplest way?
✓ Correct: A. Share the directory with the other accounts and use seamless domain join
How to think about it: One Managed AD, many accounts = directory sharing + seamless domain join.
Why A is correct: Directory sharing lets other accounts' instances join the same domain without separate directories.
Why the others are wrong:
B) Share the directory's subnets through AWS RAM only — Sharing subnets does not share the directory itself.
C) Use Simple AD in each VPC — Separate Simple AD directories would be separate domains.
D) Create a new Managed AD in every account with trusts between them — Many directories and trusts add cost and complexity for no benefit.
How to think about it: One Managed AD, many accounts = directory sharing + seamless domain join.
Why A is correct: Directory sharing lets other accounts' instances join the same domain without separate directories.
Why the others are wrong:
B) Share the directory's subnets through AWS RAM only — Sharing subnets does not share the directory itself.
C) Use Simple AD in each VPC — Separate Simple AD directories would be separate domains.
D) Create a new Managed AD in every account with trusts between them — Many directories and trusts add cost and complexity for no benefit.
Q37.Which statement about service control policies is true?
✓ Correct: A. SCPs cap member account permissions but grant nothing
How to think about it: SCP = guardrail only; it grants nothing and does not touch the management account.
Why A is correct: Identities still need IAM policies; the SCP only caps what those policies can allow.
Why the others are wrong:
B) SCPs do not apply to a member account's root user — SCPs do apply to the member account root user.
C) SCPs grant permissions to every IAM user in an OU — SCPs never grant permissions on their own.
D) SCPs also restrict the management account — The management account is not affected by SCPs.
How to think about it: SCP = guardrail only; it grants nothing and does not touch the management account.
Why A is correct: Identities still need IAM policies; the SCP only caps what those policies can allow.
Why the others are wrong:
B) SCPs do not apply to a member account's root user — SCPs do apply to the member account root user.
C) SCPs grant permissions to every IAM user in an OU — SCPs never grant permissions on their own.
D) SCPs also restrict the management account — The management account is not affected by SCPs.
Q38.Which identities inside a member account are NOT restricted by service control policies?
✓ Correct: C. Service-linked roles
How to think about it: SCP exceptions = service-linked roles (and the management account).
Why C is correct: Service-linked roles let AWS services act for you and are exempt from SCPs.
Why the others are wrong:
A) The member account root user — The member root user is restricted by SCPs like any other principal.
B) IAM users with AdministratorAccess — Admin users are still capped by the SCPs above them.
D) IAM roles assumed from another account — Cross-account roles in the member account are still bound by its SCPs.
How to think about it: SCP exceptions = service-linked roles (and the management account).
Why C is correct: Service-linked roles let AWS services act for you and are exempt from SCPs.
Why the others are wrong:
A) The member account root user — The member root user is restricted by SCPs like any other principal.
B) IAM users with AdministratorAccess — Admin users are still capped by the SCPs above them.
D) IAM roles assumed from another account — Cross-account roles in the member account are still bound by its SCPs.
Q39.The root has FullAWSAccess. An OU has a policy allowing only EC2 and S3, replacing FullAWSAccess. An account inside that OU has FullAWSAccess. Can a user there with admin IAM rights use DynamoDB?
✓ Correct: B. No, because the OU in the path does not allow DynamoDB
How to think about it: Every level on the path must allow it; one missing allow = denied.
Why B is correct: SCP permissions are the intersection along the path, so an OU that omits DynamoDB blocks it below.
Why the others are wrong:
A) Yes, because the IAM admin policy allows everything — IAM permissions are capped by the SCPs above them.
C) Yes, because the account itself has FullAWSAccess — The account's own SCP cannot add back what a parent OU did not allow.
D) Only if the root user makes the request — The member root user is also limited by SCPs.
How to think about it: Every level on the path must allow it; one missing allow = denied.
Why B is correct: SCP permissions are the intersection along the path, so an OU that omits DynamoDB blocks it below.
Why the others are wrong:
A) Yes, because the IAM admin policy allows everything — IAM permissions are capped by the SCPs above them.
C) Yes, because the account itself has FullAWSAccess — The account's own SCP cannot add back what a parent OU did not allow.
D) Only if the root user makes the request — The member root user is also limited by SCPs.
Q40.Which condition key does an SCP typically use to stop workloads being created outside approved Regions?
✓ Correct: C. aws:RequestedRegion
How to think about it: Region lock = aws:RequestedRegion.
Why C is correct: A Deny when RequestedRegion is not in the approved list blocks API calls in other Regions; global services are usually exempted.
Why the others are wrong:
A) aws:PrincipalOrgID — This checks which organization the caller belongs to, not the Region.
B) aws:SourceIp — Source IP describes the caller's network, not the target Region.
D) ec2:AvailabilityZone — This key covers EC2 placement only, not every service's Region.
How to think about it: Region lock = aws:RequestedRegion.
Why C is correct: A Deny when RequestedRegion is not in the approved list blocks API calls in other Regions; global services are usually exempted.
Why the others are wrong:
A) aws:PrincipalOrgID — This checks which organization the caller belongs to, not the Region.
B) aws:SourceIp — Source IP describes the caller's network, not the target Region.
D) ec2:AvailabilityZone — This key covers EC2 placement only, not every service's Region.
Q41.What is the effect of switching an organization from consolidated billing only to all features?
✓ Correct: D. SCPs and other policies become available; no switching back
How to think about it: All features = SCPs and other policies; there is no going back.
Why D is correct: All features adds policy management, invited accounts must approve, and it is one-way.
Why the others are wrong:
A) Only accounts created after the switch can use SCPs — Existing accounts can use SCPs once they approve all features.
B) Member accounts lose volume discounts — Volume pricing is kept; all features includes consolidated billing.
C) Each account gets its own invoice again — Billing stays consolidated in the management account.
How to think about it: All features = SCPs and other policies; there is no going back.
Why D is correct: All features adds policy management, invited accounts must approve, and it is one-way.
Why the others are wrong:
A) Only accounts created after the switch can use SCPs — Existing accounts can use SCPs once they approve all features.
B) Member accounts lose volume discounts — Volume pricing is kept; all features includes consolidated billing.
C) Each account gets its own invoice again — Billing stays consolidated in the management account.
Q42.Account A in an organization bought EC2 Reserved Instances it does not fully use. Can Account B benefit?
✓ Correct: C. Yes, discounts are shared unless sharing is turned off
How to think about it: Consolidated billing = RI and Savings Plans discounts are shared unless sharing is turned off.
Why C is correct: The organization is billed as one account, and the payer can disable sharing for specific accounts.
Why the others are wrong:
A) Only if the RI is moved to Account B through AWS RAM — RAM is not used to share RI discounts.
B) No, RIs only ever apply to the account that bought them — Inside an organization the discount is shared by default.
D) Only if both accounts are in the same OU — OU placement has no effect on RI sharing.
How to think about it: Consolidated billing = RI and Savings Plans discounts are shared unless sharing is turned off.
Why C is correct: The organization is billed as one account, and the payer can disable sharing for specific accounts.
Why the others are wrong:
A) Only if the RI is moved to Account B through AWS RAM — RAM is not used to share RI discounts.
B) No, RIs only ever apply to the account that bought them — Inside an organization the discount is shared by default.
D) Only if both accounts are in the same OU — OU placement has no effect on RI sharing.
Q43.When a new member account is created through AWS Organizations, which role is created so the management account can administer it?
✓ Correct: B. OrganizationAccountAccessRole
How to think about it: Admin into new member accounts = OrganizationAccountAccessRole.
Why B is correct: It grants full admin in the member account and is assumable from the management account; invited accounts need it created manually.
Why the others are wrong:
A) AWSReservedSSO_AdministratorAccess — This kind of role is created by IAM Identity Center permission sets.
C) AWSControlTowerExecution — This role is created by Control Tower when it enrolls an account.
D) AWSServiceRoleForOrganizations — This is the service-linked role used by Organizations itself, not for human admin access.
How to think about it: Admin into new member accounts = OrganizationAccountAccessRole.
Why B is correct: It grants full admin in the member account and is assumable from the management account; invited accounts need it created manually.
Why the others are wrong:
A) AWSReservedSSO_AdministratorAccess — This kind of role is created by IAM Identity Center permission sets.
C) AWSControlTowerExecution — This role is created by Control Tower when it enrolls an account.
D) AWSServiceRoleForOrganizations — This is the service-linked role used by Organizations itself, not for human admin access.
Q44.Which Organizations policy type standardises tag keys and allowed values across accounts and reports non-compliant resources?
✓ Correct: C. Tag policies
How to think about it: Consistent tags org-wide = tag policies.
Why C is correct: Tag policies define allowed keys, case and values, and can report or block non-compliant tagging.
Why the others are wrong:
A) Service control policies — SCPs can require a tag on create, but they do not define standard values or report compliance.
B) AI services opt-out policies — These control whether AWS AI services may store and use your content.
D) Backup policies — Backup policies push AWS Backup plans to accounts, not tag rules.
How to think about it: Consistent tags org-wide = tag policies.
Why C is correct: Tag policies define allowed keys, case and values, and can report or block non-compliant tagging.
Why the others are wrong:
A) Service control policies — SCPs can require a tag on create, but they do not define standard values or report compliance.
B) AI services opt-out policies — These control whether AWS AI services may store and use your content.
D) Backup policies — Backup policies push AWS Backup plans to accounts, not tag rules.
Q45.A company must stop AWS AI services such as Lex and Polly from storing or using its content for service improvement, in every account and Region. What should it use?
✓ Correct: D. An AI services opt-out policy attached at the organization root
How to think about it: Stop AI services learning from your data = AI services opt-out policy.
Why D is correct: It applies the opt-out to all or selected AI services across every member account and Region.
Why the others are wrong:
A) An SCP denying all AI service actions — This blocks use of the services entirely rather than just opting out of data use.
B) Encrypting the content with a customer managed KMS key — Encryption does not change the service's data-use setting.
C) A tag policy on AI resources — Tag policies control tags, not content usage.
How to think about it: Stop AI services learning from your data = AI services opt-out policy.
Why D is correct: It applies the opt-out to all or selected AI services across every member account and Region.
Why the others are wrong:
A) An SCP denying all AI service actions — This blocks use of the services entirely rather than just opting out of data use.
B) Encrypting the content with a customer managed KMS key — Encryption does not change the service's data-use setting.
C) A tag policy on AI resources — Tag policies control tags, not content usage.
Q46.An auditor wants a single place to receive CloudTrail logs from every account, and no member account should be able to stop or delete that logging. What is the usual design?
✓ Correct: B. An organization trail to a log archive account, guarded by SCPs
How to think about it: Central logs + tamper-proof = organization trail into a log archive account, protected by SCP.
Why B is correct: The org trail covers every account automatically, and the SCP prevents member accounts from disabling it.
Why the others are wrong:
A) CloudWatch Logs subscription filters in each account — This moves logs but leaves the trails under local control.
C) AWS Config aggregator in the management account — Config records resource configuration, not API activity logs.
D) A separate trail in each account writing to its own bucket — Logs stay scattered and local admins can delete them.
How to think about it: Central logs + tamper-proof = organization trail into a log archive account, protected by SCP.
Why B is correct: The org trail covers every account automatically, and the SCP prevents member accounts from disabling it.
Why the others are wrong:
A) CloudWatch Logs subscription filters in each account — This moves logs but leaves the trails under local control.
C) AWS Config aggregator in the management account — Config records resource configuration, not API activity logs.
D) A separate trail in each account writing to its own bucket — Logs stay scattered and local admins can delete them.
Q47.In IAM Identity Center, what is a permission set?
✓ Correct: C. A policy bundle deployed as a role in each assigned account
How to think about it: Permission set = policy template that becomes a role in each assigned account.
Why C is correct: Assigning a user or group plus a permission set to an account creates a matching role there.
Why the others are wrong:
A) A service control policy attached to an OU — SCPs are an Organizations feature, separate from Identity Center.
B) A SAML signing certificate for a business application — Certificates belong to application assignments, not permission sets.
D) A group of users synced in from Active Directory — Groups are identities; permission sets describe the access they get.
How to think about it: Permission set = policy template that becomes a role in each assigned account.
Why C is correct: Assigning a user or group plus a permission set to an account creates a matching role there.
Why the others are wrong:
A) A service control policy attached to an OU — SCPs are an Organizations feature, separate from Identity Center.
B) A SAML signing certificate for a business application — Certificates belong to application assignments, not permission sets.
D) A group of users synced in from Active Directory — Groups are identities; permission sets describe the access they get.
Q48.Which identity sources can IAM Identity Center use?
✓ Correct: D. Built-in store, Active Directory, or an external IdP like Okta
How to think about it: Identity source = built-in store, Active Directory, or an external IdP (Okta, Entra ID).
Why D is correct: You choose one source, and users and groups from it get account and app assignments.
Why the others are wrong:
A) Only IAM users that exist in the management account — IAM users are not an Identity Center identity source.
B) Only Amazon Cognito user pools — Cognito is for customer apps and is not an Identity Center source.
C) Only an on-premises AD reached through AD Connector — AD is one option, but the built-in store and external IdPs work too.
How to think about it: Identity source = built-in store, Active Directory, or an external IdP (Okta, Entra ID).
Why D is correct: You choose one source, and users and groups from it get account and app assignments.
Why the others are wrong:
A) Only IAM users that exist in the management account — IAM users are not an Identity Center identity source.
B) Only Amazon Cognito user pools — Cognito is for customer apps and is not an Identity Center source.
C) Only an on-premises AD reached through AD Connector — AD is one option, but the built-in store and external IdPs work too.
Q49.Database admins should get Aurora access only in accounts whose cost center matches theirs, without a separate permission set per cost center. What fits?
✓ Correct: C. ABAC on identity store attributes in one permission set
How to think about it: Change access by changing user attributes = ABAC in Identity Center.
Why C is correct: Attributes such as cost center flow into the session as tags, and one policy compares them with resource tags.
Why the others are wrong:
A) Cognito identity pools with role mapping — Cognito is not used for workforce access to AWS accounts.
B) An SCP per cost center OU — SCPs restrict accounts, not individual users by attribute.
D) A separate permission set for every cost center — This works but is exactly the duplication the requirement wants to avoid.
How to think about it: Change access by changing user attributes = ABAC in Identity Center.
Why C is correct: Attributes such as cost center flow into the session as tags, and one policy compares them with resource tags.
Why the others are wrong:
A) Cognito identity pools with role mapping — Cognito is not used for workforce access to AWS accounts.
B) An SCP per cost center OU — SCPs restrict accounts, not individual users by attribute.
D) A separate permission set for every cost center — This works but is exactly the duplication the requirement wants to avoid.
Q50.Besides AWS accounts, what else can IAM Identity Center give users single sign-on to?
✓ Correct: C. SAML 2.0 business apps such as Salesforce
How to think about it: Identity Center SSO = AWS accounts and SAML 2.0 business apps (Salesforce, Microsoft 365).
Why C is correct: Application assignments use SAML metadata so users reach cloud apps from the same portal.
Why the others are wrong:
A) Customer sign-in for public mobile apps — Customer app sign-in is Cognito's role.
B) Amazon RDS database logins for all engines — Database logins are not an Identity Center application assignment.
D) Any on-premises mainframe terminal — Identity Center does not provide terminal access to mainframes.
How to think about it: Identity Center SSO = AWS accounts and SAML 2.0 business apps (Salesforce, Microsoft 365).
Why C is correct: Application assignments use SAML metadata so users reach cloud apps from the same portal.
Why the others are wrong:
A) Customer sign-in for public mobile apps — Customer app sign-in is Cognito's role.
B) Amazon RDS database logins for all engines — Database logins are not an Identity Center application assignment.
D) Any on-premises mainframe terminal — Identity Center does not provide terminal access to mainframes.
Q51.Two-way trust exists between on-premises AD and AWS Managed Microsoft AD. Employees should sign in to all accounts in the organization with their AD credentials. What connects the pieces?
✓ Correct: B. Make Managed AD the Identity Center identity source
How to think about it: AD users into many accounts = Identity Center with Managed AD as identity source.
Why B is correct: Identity Center reads users and groups through the directory, and the trust lets on-premises users authenticate.
Why the others are wrong:
A) Create a SAML provider in each account pointing at AWS Managed AD — Managed AD is not a SAML IdP by itself, and per-account setup does not scale.
C) Use Simple AD as the identity source — Simple AD cannot trust the on-premises AD.
D) Sync AD users into IAM users in each account — This creates long-term IAM users, which federation is meant to avoid.
How to think about it: AD users into many accounts = Identity Center with Managed AD as identity source.
Why B is correct: Identity Center reads users and groups through the directory, and the trust lets on-premises users authenticate.
Why the others are wrong:
A) Create a SAML provider in each account pointing at AWS Managed AD — Managed AD is not a SAML IdP by itself, and per-account setup does not scale.
C) Use Simple AD as the identity source — Simple AD cannot trust the on-premises AD.
D) Sync AD users into IAM users in each account — This creates long-term IAM users, which federation is meant to avoid.
Q52.What does AWS Control Tower do?
✓ Correct: A. Sets up and governs a multi-account landing zone
How to think about it: Best-practice multi-account landing zone = Control Tower (built on Organizations).
Why A is correct: It creates the organization structure, shared log and audit accounts, and ongoing controls.
Why the others are wrong:
B) Monitors application performance across accounts — Application monitoring is CloudWatch's role.
C) Provides single sign-on to SaaS applications only — SSO is IAM Identity Center's job, which Control Tower configures as part of the setup.
D) Replaces AWS Organizations with its own account model — Control Tower runs on top of Organizations rather than replacing it.
How to think about it: Best-practice multi-account landing zone = Control Tower (built on Organizations).
Why A is correct: It creates the organization structure, shared log and audit accounts, and ongoing controls.
Why the others are wrong:
B) Monitors application performance across accounts — Application monitoring is CloudWatch's role.
C) Provides single sign-on to SaaS applications only — SSO is IAM Identity Center's job, which Control Tower configures as part of the setup.
D) Replaces AWS Organizations with its own account model — Control Tower runs on top of Organizations rather than replacing it.
Q53.In Control Tower, how are preventive and detective controls (formerly guardrails) implemented?
✓ Correct: C. Preventive controls use SCPs; detective controls use AWS Config rules
How to think about it: Preventive = SCP. Detective = AWS Config rules.
Why C is correct: SCPs stop disallowed actions up front, while Config rules flag non-compliant resources afterwards.
Why the others are wrong:
A) Preventive controls use AWS Config; detective controls use SCPs — This reverses the two: SCPs cannot detect and Config cannot block API calls.
B) Both use IAM permissions boundaries — Boundaries limit individual identities, not whole accounts.
D) Both use GuardDuty findings — GuardDuty detects threats; it is not the control mechanism.
How to think about it: Preventive = SCP. Detective = AWS Config rules.
Why C is correct: SCPs stop disallowed actions up front, while Config rules flag non-compliant resources afterwards.
Why the others are wrong:
A) Preventive controls use AWS Config; detective controls use SCPs — This reverses the two: SCPs cannot detect and Config cannot block API calls.
B) Both use IAM permissions boundaries — Boundaries limit individual identities, not whole accounts.
D) Both use GuardDuty findings — GuardDuty detects threats; it is not the control mechanism.
Q54.Which Control Tower feature creates new accounts with a pre-approved baseline such as network and Region settings?
✓ Correct: B. Account Factory
How to think about it: Vending new accounts = Account Factory.
Why B is correct: Account Factory provisions accounts from approved templates and enrols them under the landing zone's controls.
Why the others are wrong:
A) AWS Organizations tag policies — Tag policies govern tags, not account creation.
C) AWS Resource Access Manager — RAM shares existing resources between accounts; it does not create accounts.
D) AWS Service Quotas templates — Quota templates set limits for new accounts but do not provision them.
How to think about it: Vending new accounts = Account Factory.
Why B is correct: Account Factory provisions accounts from approved templates and enrols them under the landing zone's controls.
Why the others are wrong:
A) AWS Organizations tag policies — Tag policies govern tags, not account creation.
C) AWS Resource Access Manager — RAM shares existing resources between accounts; it does not create accounts.
D) AWS Service Quotas templates — Quota templates set limits for new accounts but do not provision them.
Q55.A Control Tower detective control flags untagged resources. The team wants them fixed automatically and admins notified. What is a typical design?
✓ Correct: B. On NON_COMPLIANT, notify via SNS and fix tags with Lambda
How to think about it: Detect with Config, then EventBridge/SNS + Lambda to remediate.
Why B is correct: Detective controls only report; an event-driven Lambda does the fixing.
Why the others are wrong:
A) Enable AWS Shield Advanced in each account — Shield is DDoS protection and has nothing to do with tags.
C) Attach a permissions boundary to every resource — Boundaries attach to IAM users and roles, not to resources.
D) Change the detective control into a mandatory control — Mandatory refers to control level, not to automatic remediation.
How to think about it: Detect with Config, then EventBridge/SNS + Lambda to remediate.
Why B is correct: Detective controls only report; an event-driven Lambda does the fixing.
Why the others are wrong:
A) Enable AWS Shield Advanced in each account — Shield is DDoS protection and has nothing to do with tags.
C) Attach a permissions boundary to every resource — Boundaries attach to IAM users and roles, not to resources.
D) Change the detective control into a mandatory control — Mandatory refers to control level, not to automatic remediation.
Q56.A networking account owns a VPC. Application accounts should launch instances into its subnets. What enables this?
✓ Correct: C. Share the subnets with AWS Resource Access Manager
How to think about it: Share subnets across accounts = RAM VPC sharing.
Why C is correct: Participants launch their own resources into the shared subnets while the owner keeps control of the VPC.
Why the others are wrong:
A) A Transit Gateway with a route to each account — Transit Gateway links VPCs but does not share subnets.
B) VPC peering between each account — Peering connects separate VPCs; it does not let others launch into your subnets.
D) Cross-account IAM roles to the networking account — Workloads would then live in the networking account, not their own.
How to think about it: Share subnets across accounts = RAM VPC sharing.
Why C is correct: Participants launch their own resources into the shared subnets while the owner keeps control of the VPC.
Why the others are wrong:
A) A Transit Gateway with a route to each account — Transit Gateway links VPCs but does not share subnets.
B) VPC peering between each account — Peering connects separate VPCs; it does not let others launch into your subnets.
D) Cross-account IAM roles to the networking account — Workloads would then live in the networking account, not their own.
Q57.In a shared VPC, what can a participant account do with resources another participant launched in the same subnet?
✓ Correct: C. Reach them over the network, but not view or modify them
How to think about it: Shared VPC = shared network, not shared resources.
Why C is correct: Each account manages only its own resources, though traffic flows privately inside the VPC.
Why the others are wrong:
A) Take ownership of them through RAM — RAM does not transfer ownership of resources.
B) Stop and terminate them — Participants cannot change resources owned by other accounts.
D) Nothing; traffic between participants is always blocked — Resources in a shared VPC talk over private IPs like any VPC.
How to think about it: Shared VPC = shared network, not shared resources.
Why C is correct: Each account manages only its own resources, though traffic flows privately inside the VPC.
Why the others are wrong:
A) Take ownership of them through RAM — RAM does not transfer ownership of resources.
B) Stop and terminate them — Participants cannot change resources owned by other accounts.
D) Nothing; traffic between participants is always blocked — Resources in a shared VPC talk over private IPs like any VPC.
Q58.Which of these is a limitation of sharing VPC subnets with AWS RAM?
✓ Correct: D. Sharing works only within the same organization
How to think about it: VPC sharing = same organization, and no default VPC subnets.
Why D is correct: Subnet sharing requires accounts in one organization, and default VPC subnets cannot be shared.
Why the others are wrong:
A) Participants must use the owner's IAM users — Participants use their own identities in their own accounts.
B) Shared subnets must be public subnets — Private and public subnets can both be shared.
C) Only one subnet per VPC can be shared — You can share many subnets from the same VPC.
How to think about it: VPC sharing = same organization, and no default VPC subnets.
Why D is correct: Subnet sharing requires accounts in one organization, and default VPC subnets cannot be shared.
Why the others are wrong:
A) Participants must use the owner's IAM users — Participants use their own identities in their own accounts.
B) Shared subnets must be public subnets — Private and public subnets can both be shared.
C) Only one subnet per VPC can be shared — You can share many subnets from the same VPC.
Q59.Dozens of security groups in many accounts allow SSH from the same set of corporate CIDRs, which change several times a year. What reduces the effort?
✓ Correct: A. A customer-managed prefix list shared through RAM
How to think about it: Same CIDRs in many SGs = customer-managed prefix list, shared with RAM.
Why A is correct: Update the prefix list once and every security group and route table that references it picks up the change.
Why the others are wrong:
B) A Lambda function that edits every security group — Custom automation works but is more effort than a shared prefix list.
C) A Network Firewall rule group in each account — This adds a firewall layer but does not update the security groups.
D) An AWS-managed prefix list for corporate ranges — AWS-managed lists cover AWS service ranges and cannot be edited by you.
How to think about it: Same CIDRs in many SGs = customer-managed prefix list, shared with RAM.
Why A is correct: Update the prefix list once and every security group and route table that references it picks up the change.
Why the others are wrong:
B) A Lambda function that edits every security group — Custom automation works but is more effort than a shared prefix list.
C) A Network Firewall rule group in each account — This adds a firewall layer but does not update the security groups.
D) An AWS-managed prefix list for corporate ranges — AWS-managed lists cover AWS service ranges and cannot be edited by you.
Q60.Many VPCs across accounts must forward queries for
corp.example.com to on-premises DNS. Each account should not build its own outbound endpoint. What do you do?
✓ Correct: D. Share Resolver forwarding rules from one account via RAM
How to think about it: One outbound endpoint, many accounts = share Resolver rules with RAM.
Why D is correct: The rules use a central outbound endpoint, and other accounts accept the share and attach the rules to their VPCs.
Why the others are wrong:
A) Set the DHCP option set in each VPC to the on-premises DNS — This bypasses Route 53 Resolver and needs a reachable path from every VPC.
B) Peer every VPC to the networking VPC and use its DNS — Peering alone does not apply another VPC's Resolver rules.
C) Create a private hosted zone for corp.example.com in each account — A private zone answers locally; it does not forward to on-premises DNS.
How to think about it: One outbound endpoint, many accounts = share Resolver rules with RAM.
Why D is correct: The rules use a central outbound endpoint, and other accounts accept the share and attach the rules to their VPCs.
Why the others are wrong:
A) Set the DHCP option set in each VPC to the on-premises DNS — This bypasses Route 53 Resolver and needs a reachable path from every VPC.
B) Peer every VPC to the networking VPC and use its DNS — Peering alone does not apply another VPC's Resolver rules.
C) Create a private hosted zone for corp.example.com in each account — A private zone answers locally; it does not forward to on-premises DNS.