32 cards · AWS SAA-C03 · answer each one, then read the explanation. Your score tallies below. Looking for IAM Identity Center vs SAML federation vs Cognito identity pools, compared? Read the explainer.
0 / 32 answered · 0 correct
Link copied — send it to a friend!
AWS SAA-C03 · IAM & Security · Card 001/032easy
A developer's IAM user has two identity-based policies attached. One policy allows s3:GetObject on a specific bucket; the other explicitly denies s3:GetObject on that same bucket. No service control policy, permissions boundary, or resource-based policy is involved. When the developer tries to read an object from that bucket, what happens?
AThe allow policy wins because it was attached to the user first
BThe request is denied, because an explicit Deny in any applicable policy always overrides an Allow
CAWS grants the request because at least one policy contains an Allow statement for the action
DThe IAM console prompts the developer to pick which of the two policies should apply
Correct answer: .
IAM's policy evaluation logic follows a default-deny model in which an explicit Deny found in any applicable policy always overrides an Allow found elsewhere, no matter how many other policies grant the same action or where those policies live in the evaluation set. This holds even when the conflicting Allow and Deny are two separate identity-based policies attached to the same principal. The option claiming the outcome depends on which policy was attached first is wrong because IAM's evaluation engine does not track or consult attachment order or timestamps when deciding an authorization outcome. The option claiming a single Allow statement is sufficient regardless of other policies is wrong because it ignores the explicit-deny override, a rule that exists precisely so a narrow restriction can safely coexist with, and take priority over, a broader grant. The option describing an interactive console prompt is wrong because policy evaluation happens automatically and silently on every API call; there is no interactive step for a principal to resolve conflicting policies at request time.
Source: AWS IAM documentation: Policy evaluation logic — Determining whether a request is allowed or denied within an account
AWS SAA-C03 · IAM & Security · Card 002/032easy
A company wants an IAM role in Account A to be able to read objects from an S3 bucket owned by Account B, without the security team in Account B creating any duplicate IAM user or role. Which approach achieves this directly?
AAttach an identity-based policy to the Account A role granting s3:GetObject on the bucket's ARN, since that alone is sufficient for cross-account resource access
BAsk Account B to create an IAM user with the same name as the Account A role
CEnable S3 Transfer Acceleration on the bucket so cross-account requests bypass IAM checks
DAttach a bucket policy (a resource-based policy) on the Account B bucket that names the Account A role's ARN as an allowed principal
Correct answer: .
A resource-based policy, such as an S3 bucket policy, is attached directly to the resource itself and can name a principal from an entirely different AWS account, granting that principal access without the resource owner needing to create any matching IAM identity in their own account. This is the defining feature that separates resource-based policies from identity-based ones. The option describing an identity-based policy attached only in the requesting account is wrong because a policy on the requesting principal alone cannot grant it access to a resource it does not own; the resource owner's account must independently authorize the principal, and a bucket policy is the standard way to do that. The option about creating a matching IAM user in the resource owner's account is wrong and does not reflect how cross-account authorization works; it also does nothing to identify the actual calling principal from Account A. The option involving Transfer Acceleration is wrong because that feature only changes the network path used for faster uploads and downloads to S3; it has no effect on identity or access authorization.
Source: AWS IAM documentation: Identity-based policies and resource-based policies
AWS SAA-C03 · IAM & Security · Card 003/032easy
An application running on an EC2 instance needs to call AWS APIs. The security team requires that no long-lived access keys ever be stored on the instance. Which approach satisfies this requirement?
AAttach an IAM role to the EC2 instance through an instance profile, so the application retrieves short-lived credentials automatically from the instance metadata service
BCreate an IAM user, generate an access key pair, and embed the keys in the instance's user data script
CCreate an IAM user and have a developer manually enter its access key ID and secret access key into the application's configuration file
DStore the AWS account root user's access keys in an environment variable on the instance
Correct answer: .
An IAM role attached to an EC2 instance through an instance profile lets the application on that instance retrieve automatically-rotated, short-lived credentials from the instance metadata service, so no access key ever needs to be written to disk, checked into a script, or typed in by a person. This directly satisfies a no-long-lived-keys requirement. The option involving an IAM user's keys embedded in user data is wrong because that key pair is a static, long-lived credential that persists in the instance's configuration and does not expire on its own, which is exactly what the security team wants to avoid. The option involving manual entry of an IAM user's keys is wrong for the same reason: the credential is still long-lived and additionally now depends on a human handling and storing a secret. The option storing root user keys is wrong on every count: root credentials are long-lived, unrestricted in scope, and AWS explicitly recommends never generating or using root access keys for applications at all.
Source: AWS IAM documentation: IAM roles for Amazon EC2
AWS SAA-C03 · IAM & Security · Card 004/032medium
A platform team lets application teams create their own IAM roles for their workloads, but wants a guarantee that none of those self-created roles can ever be granted IAM administrative permissions or access to one specific sensitive S3 bucket, no matter what identity-based policy an application team attaches later. Which IAM feature is designed for this?
AA service control policy attached directly to each application team's individual IAM role
BAn IAM policy simulator report that a reviewer runs manually before every deployment
CA permissions boundary attached to the roles that caps their maximum possible permissions regardless of what identity-based policies are attached afterward
DA resource-based policy added to every future resource those roles might ever need to access
Correct answer: .
A permissions boundary is a managed policy attached to an IAM user or role that sets the maximum permissions that identity can ever have; any identity-based policy attached later, however permissive, is intersected with the boundary, so permissions outside the boundary — such as IAM administration or the sensitive bucket — can never take effect. This makes it the correct tool for letting teams self-manage roles within a hard ceiling. The option describing a service control policy attached to individual roles is wrong because SCPs are attached to AWS Organizations entities such as accounts or organizational units, not to individual IAM roles, so this configuration is not even possible. The option describing a manually run policy simulator is wrong because it is only an analysis tool that reports what a policy would allow; it enforces nothing and depends on a human remembering to run it every time, which is not a guarantee. The option describing a resource-based policy on every future resource is wrong because it would need to be recreated correctly on every new resource those roles might touch, which does not scale and provides no guarantee against a future oversight.
Source: AWS IAM documentation: Permissions boundaries for IAM entities
AWS SAA-C03 · IAM & Security · Card 005/032medium
A company manages many AWS accounts under AWS Organizations. The security team wants one guardrail, applied at the organizational unit level, that prevents every IAM principal in every member account under that OU from ever disabling AWS CloudTrail — even a principal that has full administrator permissions from a local identity-based policy. Which control should they use?
AAn IAM permissions boundary applied individually to every administrator role in every member account
BA service control policy attached to the OU that explicitly denies the CloudTrail-disabling actions for every principal in every account under it
CA resource-based policy attached directly to the CloudTrail trail
DAn IAM group in the organization's management account that contains all administrators
Correct answer: .
A service control policy attached to an organizational unit sets a permissions ceiling for every account under it and applies to every IAM principal in those accounts, including administrators and, by default, even the account's root user; an explicit Deny in an SCP on the CloudTrail-disabling actions cannot be overridden by any local identity-based policy, which is exactly the org-wide guarantee described. The option using a permissions boundary is wrong because a boundary must be attached to each individual role or user one at a time within a single account, so it cannot provide a single OU-wide guarantee and is easy to miss for a newly created role. The option using a resource-based policy on the trail is wrong because AWS CloudTrail trails do not support attaching resource-based policies to control who may stop or start logging in this way. The option using an IAM group is wrong because IAM groups only exist within a single account and only affect the IAM users placed in them; they cannot restrict administrators across every account in an OU, nor do they restrict roles at all.
Source: AWS Organizations documentation: Service control policies (SCPs)
AWS SAA-C03 · IAM & Security · Card 006/032medium
An engineer in Account A needs temporary access to resources in Account B for a scheduled maintenance task. The security team wants the access to expire automatically after a short session rather than persist afterward. Which mechanism achieves this?
ACreate a permanent IAM user in Account B and share its access keys with the engineer for the task
BGrant the engineer's Account A IAM user a resource-based policy directly on every resource in Account B
CAdd the engineer's Account A user ARN to an IAM group inside Account B
DHave the engineer call AWS STS to assume an IAM role in Account B whose trust policy permits Account A, receiving temporary credentials that expire automatically
Correct answer: .
Calling AWS STS to assume a role whose trust policy names Account A as a trusted principal produces temporary security credentials with a defined, bounded session lifetime that expires automatically without any manual revocation step, which is exactly the self-expiring access the security team wants. The option using a permanent IAM user and shared access keys is wrong because that credential does not expire on its own and, once shared, is difficult to fully revoke or rotate, the opposite of a short session. The option granting a resource-based policy on every resource in Account B is wrong because it would have to be created and later removed on each resource individually, it grants standing access rather than a time-bounded session, and it does not scale as resources change. The option adding the engineer's user to an IAM group inside Account B is wrong both because IAM groups cannot contain principals from another account and because group membership, like the other rejected options, does not expire on its own the way an assumed-role session does.
Source: AWS IAM documentation: Using IAM roles — AssumeRole and temporary security credentials
AWS SAA-C03 · IAM & Security · Card 007/032easy
A company wants employees to sign in once using their existing corporate directory credentials and then access multiple AWS accounts, without AWS Organizations creating a separate IAM user in each individual account. Which AWS service is designed for this centralized workforce access pattern?
AAWS IAM Identity Center (the successor to AWS SSO), federating a central identity source to permission sets across multiple accounts
BCreating an identical IAM user with the same password in every member account
CAmazon Cognito user pools attached to each account's root user
DAWS Certificate Manager, issuing a shared client certificate to every employee
Correct answer: .
AWS IAM Identity Center connects to a central identity source, such as an existing corporate directory or an external identity provider, and lets administrators assign permission sets to that identity across many AWS accounts at once, so an employee signs in once and is federated into whichever accounts they are assigned, with no separate IAM user ever created per account. The option of creating an identical IAM user with the same password in every account is wrong because it is exactly the duplicated per-account identity the company wants to avoid, and it also multiplies the number of long-lived credentials that must be individually secured and rotated. The option describing Amazon Cognito user pools attached to each account's root user is wrong because Cognito user pools are designed to authenticate end users of an application, not federate workforce staff into the AWS Management Console, and attaching anything to a root user is not how Cognito or console federation works. The option describing AWS Certificate Manager is wrong because that service issues and manages TLS/SSL certificates for encrypting network traffic; it plays no role in authenticating employees or granting console access.
Source: AWS documentation: AWS IAM Identity Center — What is IAM Identity Center
AWS SAA-C03 · IAM & Security · Card 008/032easy
A security team wants an IAM policy statement that allows a sensitive action only when the calling principal authenticated with multi-factor authentication during the current session. Which policy element accomplishes this?
AA resource-based policy on the target service that checks the caller's password history
BA permissions boundary set to a built-in "MFA-only" mode
CA Condition element that tests the aws:MultiFactorAuthPresent context key against true
DA separate IAM group named "MFA-users" that AWS automatically enforces at the API layer
Correct answer: .
IAM policies can include a Condition element that evaluates request context keys at the moment an API call is made, and aws:MultiFactorAuthPresent is the specific global condition key that is true only when the calling principal's current session was authenticated with MFA, so a policy statement conditioned on it will only take effect for MFA-authenticated sessions. The option describing a resource-based policy that checks password history is wrong because IAM policies, resource-based or otherwise, do not have access to or evaluate a principal's password history; MFA presence is a session-level fact, not a password attribute. The option describing a permissions boundary with a built-in MFA-only mode is wrong because permissions boundaries are ordinary managed policies that cap maximum permissions; there is no special MFA-enforcement mode built into the boundary feature itself, MFA must still be enforced through a Condition element. The option describing an IAM group that AWS automatically enforces is wrong because group membership is just a way to attach policies to multiple users; AWS does not automatically interpret a group's name as a security requirement, and the enforcement must still come from an explicit Condition element on a policy.
Source: AWS IAM documentation: IAM global condition context keys — aws:MultiFactorAuthPresent
AWS SAA-C03 · IAM & Security · Card 009/032hard
An application encrypts large files by calling AWS KMS's GenerateDataKey operation to obtain a plaintext data key and its KMS-encrypted copy, encrypts the file locally with the plaintext data key, discards the plaintext key from memory, and stores only the encrypted copy of the data key alongside the file. What is this pattern called, and why does KMS support it?
AClient-side master key rotation, used because KMS cannot rotate customer master keys automatically
BEnvelope encryption, used because AWS KMS's Encrypt and Decrypt API calls have a payload size limit unsuited to large data, so the bulk data is encrypted locally with a data key while only that small data key is protected directly by KMS
CField-level encryption, used because KMS can only encrypt structured JSON fields, not arbitrary binary files
DEnvelope encryption, used specifically to avoid ever calling the KMS API during encryption operations
Correct answer: .
This is envelope encryption: the KMS Encrypt and Decrypt operations accept only small payloads, so applications instead use GenerateDataKey to obtain a data key, encrypt the potentially large payload locally with that key, and let KMS protect only the small data key itself by returning and storing its encrypted form. This lets KMS scale to arbitrarily large data while every cryptographic key material operation still goes through KMS. The option calling this client-side master key rotation is wrong on the facts alone: AWS KMS does support automatic annual rotation of the cryptographic material behind eligible customer managed keys, so the premise that rotation is impossible is false, and the pattern described has nothing to do with rotation. The option calling this field-level encryption restricted to JSON is wrong because KMS and envelope encryption work on arbitrary binary data up to size limits set by the application's own design, not on a specific structured format. The option claiming the pattern avoids calling the KMS API entirely is wrong because GenerateDataKey (and, on decryption, a Decrypt call to unwrap the encrypted data key) are themselves KMS API calls; envelope encryption reduces how much data crosses that API, it does not eliminate the calls.
Source: AWS KMS documentation: Envelope encryption and GenerateDataKey
AWS SAA-C03 · IAM & Security · Card 010/032hard
An IAM role in Account A has an identity-based policy that allows kms:Decrypt on a specific customer managed KMS key that lives in Account B, naming the correct key ARN. The role attempts to decrypt data with that key and is denied. What is the most likely missing piece?
AIdentity-based policies are ignored entirely whenever the target KMS key belongs to a different account
BThe role's identity-based policy must instead be rewritten as a service control policy
CKMS keys do not support cross-account access under any configuration
DThe KMS key's own key policy in Account B must also explicitly allow the Account A role to use the key; for KMS, both the identity-based policy and the key policy must authorize the action
Correct answer: .
AWS KMS requires authorization from both the identity-based policy on the calling principal and the resource-based key policy attached to the KMS key itself, even within a single account, because the default key policy is what delegates authority to IAM in the first place; for cross-account use, the key policy in the key's own account must explicitly name and allow the external principal, or the request is denied regardless of what the caller's own identity-based policy says. The option claiming identity-based policies are simply ignored is wrong because they are still required and still evaluated; the issue is that they are insufficient alone for KMS, not irrelevant. The option suggesting the fix is to rewrite the identity-based policy as a service control policy is wrong because SCPs are guardrails that can only restrict, never grant, permissions, so converting a grant into an SCP would not create the missing authorization at all. The option claiming KMS keys never support cross-account access is wrong because that is precisely what a correctly configured key policy, naming an external account's principal, is designed to enable.
Source: AWS KMS documentation: Key policies in AWS KMS — authorizing cross-account use of a KMS key
AWS SAA-C03 · IAM & Security · Card 011/032medium
A team stores a database password that must rotate automatically on a schedule, with AWS managing the rotation workflow rather than the team building their own scheduling logic. Separately, they store a handful of static configuration values that never change and need no rotation at all. Which pairing of AWS services best fits these two needs respectively?
AAWS Secrets Manager for the password, using its built-in rotation support; AWS Systems Manager Parameter Store SecureString parameters for the static configuration values
BAWS Systems Manager Parameter Store for the password, because it offers built-in automatic rotation for any secret type; AWS Secrets Manager for the static values
CAmazon Cognito for the password rotation; AWS KMS for storing the static configuration values
DAWS Certificate Manager for the password; Amazon S3 Object Lock for the static configuration values
Correct answer: .
AWS Secrets Manager provides a managed rotation workflow, including AWS-supplied Lambda rotation function templates for services like RDS, so a scheduled rotation can be configured without the team writing their own cron-based orchestration, making it the right fit for the password; Systems Manager Parameter Store SecureString parameters are a lighter-weight, encrypted option well suited to static values that do not need that managed rotation workflow. The option reversing the pairing is wrong because Parameter Store has no built-in, managed rotation orchestration comparable to Secrets Manager's; any rotation logic for a parameter would have to be built and scheduled entirely by the team itself, which contradicts the requirement that AWS manage the workflow. The option pairing Cognito and KMS is wrong because Cognito user pools authenticate end users of an application and have no facility for rotating an arbitrary database password, and KMS manages encryption keys rather than storing configuration values themselves. The option pairing Certificate Manager and S3 Object Lock is wrong because ACM only issues and renews TLS certificates, not database credentials, and S3 Object Lock is a write-once-read-many retention control unrelated to storing or serving configuration values.
Source: AWS documentation: AWS Secrets Manager rotation and AWS Systems Manager Parameter Store
AWS SAA-C03 · IAM & Security · Card 012/032easy
A public-facing web application behind an Application Load Balancer is being probed with SQL injection attempts inside request bodies. The team wants to inspect and block malicious requests based on their HTTP content before they reach the application, without changing application code. Which service should they attach to the load balancer?
AAmazon GuardDuty, attached directly to the ALB to inspect request payloads
BAWS Shield Advanced, configured with a custom Layer 7 payload-inspection rule
CAWS WAF, associated with the ALB through a web ACL containing a rule that matches SQL injection patterns
DSecurity groups on the ALB, adding an inbound rule that denies traffic containing SQL keywords
Correct answer: .
AWS WAF operates at the application layer and inspects the actual content of HTTP requests, including headers, URI, and body, and it is associated with an Application Load Balancer through a web ACL that can include managed or custom rules matching patterns such as SQL injection, letting it block malicious requests before they reach the application with no code changes. The option describing GuardDuty is wrong because GuardDuty is a threat-detection service that analyzes sources like VPC Flow Logs, DNS query logs, and CloudTrail events for suspicious activity; it does not attach to a load balancer or inspect individual HTTP request payloads. The option describing Shield Advanced is wrong because Shield protects against network and transport layer (layer 3/4) DDoS attacks and provides cost protection and expert support during large attacks, but it does not offer custom content-matching rules for inspecting request bodies for patterns like SQL injection. The option describing security groups is wrong because security groups filter traffic only by IP address, port, and protocol at the network layer; they cannot parse or match against the contents of an HTTP request body.
Source: AWS WAF documentation: How AWS WAF works with web ACLs and managed rule groups
AWS SAA-C03 · IAM & Security · Card 013/032medium
A security team wants continuous, automated detection of suspicious activity, such as unusual API calls or communication with known-malicious IP addresses, using existing VPC Flow Logs, DNS query logs, and CloudTrail events, without deploying any agent on their instances. Which service fits this need?
AAWS Config, configured with custom rules that scan flow logs hourly
BAmazon GuardDuty, which continuously analyzes VPC Flow Logs, DNS query logs, and CloudTrail events using threat intelligence to generate findings without requiring any agent installation
CAWS Systems Manager Inventory, which lists installed software on managed instances
DAmazon Inspector, whose vulnerability scans are focused on detecting network intrusions rather than software vulnerabilities
Correct answer: .
Amazon GuardDuty is a managed threat-detection service that continuously analyzes existing log sources — VPC Flow Logs, DNS query logs, and CloudTrail management and data events — against threat intelligence feeds and anomaly-detection models to generate findings, and it requires no agent to be installed on any instance because it consumes logs and events that AWS services already produce. The option describing AWS Config is wrong because Config evaluates resource configuration compliance against rules; it is not designed to analyze network flow or DNS data for malicious activity, and it does not work by scanning flow logs hourly. The option describing Systems Manager Inventory is wrong because Inventory simply catalogs metadata like installed applications and OS details on managed instances; it performs no threat analysis at all. The option describing Amazon Inspector is wrong because Inspector's actual purpose is the reverse of what is stated: it is a vulnerability management service that scans workloads for software vulnerabilities and unintended network exposure, not a tool focused on detecting active network intrusions in the way GuardDuty is.
Source: Amazon GuardDuty documentation: What is Amazon GuardDuty
AWS SAA-C03 · IAM & Security · Card 014/032hard
A company running a website behind CloudFront wants protection against common network and transport layer DDoS attacks automatically included at no extra charge. Separately, its finance team wants a paid service that provides DDoS-related cost protection against scaling charges and access to 24/7 specialist support during a large, sustained attack. Which pairing correctly matches AWS's DDoS-related offerings to these two needs respectively?
AAWS Shield Standard automatically protects all AWS customers at no extra charge against common layer 3/4 DDoS attacks; AWS Shield Advanced is the paid tier that adds DDoS cost protection and access to the AWS DDoS Response Team
BAWS Shield Advanced is included automatically for every AWS customer; AWS Shield Standard is the paid upgrade that adds the DDoS Response Team
CAWS WAF provides the automatic free protection; AWS Shield Standard is the paid tier that adds cost protection
DAmazon CloudFront has no DDoS protection at all unless AWS Shield is purchased and separately enabled on every distribution
Correct answer: .
AWS Shield Standard is automatically included for every AWS customer at no additional charge and protects services like CloudFront and Route 53 against common, most-frequently-occurring network and transport layer (layer 3/4) DDoS attacks; AWS Shield Advanced is an optional paid subscription that adds DDoS cost protection against scaling charges incurred during an attack, more detailed attack visibility, and 24/7 access to the AWS DDoS Response Team. The option reversing which tier is free and which is paid is wrong because it inverts the actual roles: Shield Standard, not Advanced, is the automatic free baseline, and Shield Advanced, not Standard, is the paid upgrade with the Response Team. The option substituting AWS WAF for the automatic free protection is wrong because WAF is a separate, rule-based layer 7 filtering service that customers configure themselves; it is not the automatic infrastructure-level DDoS protection that Shield Standard provides, and it additionally mislabels which Shield tier is paid. The option claiming CloudFront has no DDoS protection unless purchased separately is wrong because Shield Standard's protection for CloudFront distributions is automatic and requires no purchase or separate enablement at all.
Source: AWS Shield documentation: AWS Shield Standard vs. AWS Shield Advanced
AWS SAA-C03 · IAM & Security · Card 015/032medium
A security team manages many AWS accounts under AWS Organizations and wants to identify, across every account, each S3 bucket, IAM role, and KMS key whose resource-based policy grants access to a principal outside their own accounts, without manually inspecting every resource policy by hand. Which service is designed for this?
AAmazon GuardDuty, which uses machine learning to detect anomalous account and network behavior from VPC Flow Logs, DNS query logs, and CloudTrail events
BAWS Config, which records configuration changes for supported resources over time and evaluates them against compliance rules
CIAM Access Analyzer, which defines a zone of trust for an account or organization and uses automated reasoning on resource-based policies to generate a finding whenever a resource is shared with a principal outside that zone
DAWS Trusted Advisor, which checks accounts against a fixed set of cost, performance, and security best-practice checks
Correct answer: .
IAM Access Analyzer is built exactly for this: you enable it for an account or an entire AWS organization, which becomes its zone of trust, and it continuously analyzes resource-based policies on supported resource types (including S3 buckets, IAM role trust policies, and KMS key policies) to generate a finding whenever access is granted to a principal outside that zone, without anyone manually reading each policy. The option describing anomaly detection from flow logs, DNS logs, and CloudTrail events is wrong because that behavioral, log-based threat detection identifies suspicious activity patterns rather than analyzing policy documents for unintended external sharing. The option describing configuration recording and rule evaluation over time is wrong because that service tracks whether a resource's configuration matches a desired state or rule, not specifically whether its resource policy exposes it to outside principals. The option describing a fixed set of periodic best-practice checks is wrong because those checks are generic and scheduled, not a continuous, policy-specific external-access analysis across every resource of the relevant types.
Source: AWS IAM documentation: Identifying unintended resource access with IAM Access Analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html)
AWS SAA-C03 · IAM & Security · Card 016/032easy
A compliance team wants continuous visibility into whether every EBS volume in an account remains encrypted, with automatic flagging the moment a volume becomes non-compliant, plus a historical record of every configuration change made to that volume over time. Which service should they use?
AAWS Config, which continuously records configuration changes for supported resources and can evaluate them against managed or custom rules such as one that checks for encrypted volumes
BAWS CloudTrail, which logs the history of API calls made by users, roles, and services in the account
CAmazon Inspector, which scans EC2 instances and container images for known software vulnerabilities
DAWS Trusted Advisor, which provides a fixed set of best-practice checks refreshed on a set schedule
Correct answer: .
AWS Config continuously records the configuration state of supported resources, including EBS volumes, and maintains a timeline of every configuration change; it can also evaluate resources against managed rules, such as one that checks whether a volume is encrypted, flagging noncompliant resources automatically as their configuration changes. The option describing a log of API calls is wrong because that captures who called which API and when, not the resulting configuration state of a volume or whether it complies with an encryption requirement. The option describing vulnerability scanning of instances and container images is wrong because that checks for known software vulnerabilities and network exposure, an entirely different concern from tracking configuration state and evaluating a compliance rule. The option describing a fixed set of periodically refreshed checks is wrong because it does not provide continuous, resource-specific configuration history or rule-based compliance evaluation targeted at a particular setting like volume encryption.
Source: AWS Config documentation: What Is AWS Config? (https://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html)
AWS SAA-C03 · IAM & Security · Card 017/032easy
A company stores millions of objects in Amazon S3 and wants to automatically discover which objects contain sensitive data, such as national ID numbers or credit card numbers, using machine learning and pattern matching, and to be alerted if a bucket holding that data becomes publicly accessible. Which service fits this need?
AAmazon Inspector, which scans workloads for known software vulnerabilities and unintended network reachability
BAmazon Macie, which uses machine learning and pattern matching to discover sensitive data such as personally identifiable information in S3 objects and monitors buckets for public-access and other security risks
CAWS Config, which evaluates resource configurations against compliance rules
DAmazon GuardDuty, which detects malicious or anomalous account and network activity from log analysis
Correct answer: .
Amazon Macie is a data-security service that uses machine learning together with pattern matching to discover sensitive data such as personally identifiable information and financial information stored in S3 objects, while also maintaining an inventory of buckets and generating findings when a bucket's security posture changes, such as becoming publicly accessible. The option describing vulnerability and network-reachability scanning is wrong because that inspects workloads for known software flaws, not the content of stored objects for sensitive data. The option describing configuration evaluation against compliance rules is wrong because that checks whether a resource's settings match a desired configuration, not whether the data inside an object is sensitive. The option describing anomaly detection from log analysis is wrong because that identifies suspicious behavioral patterns in account and network activity rather than scanning object content for sensitive data types.
Source: Amazon Macie documentation: What is Amazon Macie? (https://docs.aws.amazon.com/macie/latest/user/what-is-macie.html)
AWS SAA-C03 · IAM & Security · Card 018/032medium
A security team already runs Amazon GuardDuty, Amazon Macie, and Amazon Inspector across their accounts and now wants one dashboard that ingests and normalizes findings from all three, and separately checks their environment against a security industry standard such as the CIS AWS Foundations Benchmark, prioritizing everything in a single place. Which service should they add?
AAWS Config, configured with enough custom rules to independently reproduce each of these checks
BAWS Systems Manager, to patch instances and inspect general operational configuration
CAmazon Detective, to visualize the likely root cause of one already-known security finding
DAWS Security Hub, which ingests and normalizes findings from services such as GuardDuty, Macie, and Inspector into a standard format, and separately runs its own checks against security standards such as the CIS AWS Foundations Benchmark
Correct answer: .
AWS Security Hub is designed to collect and normalize findings from integrated services such as GuardDuty, Macie, and Inspector into a standard finding format, correlating and prioritizing them in one dashboard, while also independently running continuous checks against security industry standards, including the CIS AWS Foundations Benchmark, to produce a security score. The option describing heavy custom rule authoring is wrong because rebuilding equivalent multi-service finding aggregation and benchmark scoring from scratch is not that service's purpose and would not genuinely reproduce this capability. The option describing patching and general operational configuration inspection is wrong because that focuses on operational management tasks like patch compliance, not consolidating security findings from other detection services. The option describing root-cause visualization of a single known finding is wrong because that tool is for deep investigation of an already-identified issue, not for aggregating findings across many services and running standards-based checks.
Source: AWS Security Hub documentation: What is AWS Security Hub? (https://docs.aws.amazon.com/securityhub/latest/userguide/what-is-securityhub.html)
AWS SAA-C03 · IAM & Security · Card 019/032hard
A team enables automatic key rotation, using the default settings, on a symmetric customer managed KMS key whose key material AWS KMS generated. They also have a separate asymmetric customer managed KMS key that they would like to rotate on a similar automatic schedule. What should they expect?
AThe symmetric key rotates automatically every 365 days unless a custom rotation period between 90 and 2560 days is specified; the asymmetric key is not eligible for automatic or on-demand rotation and must instead be rotated manually by creating a new key and updating references to it
BBoth keys rotate automatically every 365 days once automatic rotation is enabled, because AWS KMS treats every customer managed key type identically for rotation purposes
CNeither key can ever have its key material rotated after creation; the only way to rotate is to close the account and open a new one
DThe asymmetric key rotates automatically every 90 days by default, while the symmetric key requires manual rotation because it holds the material actually used to encrypt data
Correct answer: .
Automatic key rotation is supported only for symmetric encryption KMS keys with AWS KMS-generated key material; the default rotation period is 365 days, but a custom rotation period anywhere from 90 to 2560 days can be specified instead. Asymmetric KMS keys are explicitly excluded from both automatic and on-demand rotation and can only be rotated manually, by creating a new key and migrating callers to it. The option claiming both key types rotate identically is wrong because it ignores this explicit exclusion of asymmetric keys from automatic rotation. The option claiming rotation is impossible without recreating the entire account is wrong because automatic rotation is a normal, supported, ongoing feature for eligible keys that never requires account-level changes. The option reversing which key type gets automatic rotation is wrong because it is the symmetric key, not the asymmetric one, that is eligible for the automatic schedule, and there is no built-in 90-day default schedule for asymmetric keys at all.
A team requests three ACM public certificates: one attached to a CloudFront distribution and validated using DNS validation, one requested through ACM using email validation but never attached to any AWS resource, and one imported into ACM from a third-party certificate authority. Which of these will renew before expiry without any manual action from the team?
AAll three, because ACM automatically manages renewal for every certificate in its inventory regardless of validation method or usage
BOnly the imported third-party certificate, because ACM tracks externally issued certificates most closely for expiry
COnly the certificate attached to the CloudFront distribution: it renews automatically because it is DNS-validated and currently in use by an AWS service, while the email-validated certificate needs the domain owner to click a renewal link and the imported certificate is never eligible for managed renewal at all
DNone of the three, because ACM never renews any certificate automatically and always requires submitting a brand-new certificate request
Correct answer: .
ACM's managed renewal is fully automated only for certificates that were originally DNS-validated and that remain currently in use by an integrated AWS service, since ACM can silently reverify domain ownership through the existing DNS records; the CloudFront-attached, DNS-validated certificate satisfies both conditions. A certificate validated by email instead requires the domain owner to click a link in a renewal notice, so it is not renewed without manual action, and an imported certificate is never eligible for ACM managed renewal under any circumstance. The option claiming every certificate renews automatically regardless of validation method or usage is wrong because it ignores both the validation-method requirement and the in-use requirement. The option favoring the imported certificate is wrong because imported certificates are explicitly excluded from managed renewal. The option claiming none of the three renew automatically is wrong because the DNS-validated, in-use certificate does renew without any manual step.
Source: AWS Certificate Manager documentation: Renewal for domains validated by DNS (https://docs.aws.amazon.com/acm/latest/userguide/dns-renewal-validation.html)
AWS SAA-C03 · IAM & Security · Card 021/032easy
A newly created AWS account's root user currently has no MFA device configured and an active access key that a script uses to run a daily automated task. Which change best aligns with AWS root user security best practices?
AKeep using the root access key for the daily script, since only the root user can guarantee sufficient permissions, and add a second root access key for redundancy
BEnable MFA on the root user, delete the root user's access keys, and move the daily automated task to an IAM role or IAM user that has only the permissions it needs
CDisable MFA entirely on every user in the account including root, since MFA devices are a common cause of account lockouts
DCreate several additional root users, one per team, so that no single team depends on the same root credentials
Correct answer: .
AWS best practice is to protect the root user with MFA, avoid keeping any root access keys, and perform routine and automated tasks using an IAM role or IAM user scoped with only the permissions that task requires, reserving root for the rare actions that genuinely require it. The option that keeps using root access keys for a daily script, and even adds a second one, is wrong because it directly contradicts least privilege and expands the damage a single leaked credential could do, rather than reducing it. The option that disables MFA everywhere is wrong because removing a key protection against credential compromise is not how lockout risk is managed; lockout risk is instead addressed through backup MFA devices and account-recovery procedures. The option proposing several additional root users is wrong because an AWS account has exactly one root user that cannot be duplicated; the correct way to give teams independent, scoped access is through separate IAM roles or users, not additional root accounts.
Source: AWS IAM documentation: Security best practices for the AWS account root user (https://docs.aws.amazon.com/IAM/latest/UserGuide/root-user-best-practices.html)
AWS SAA-C03 · IAM & Security · Card 022/032hard
An enterprise already runs its own SAML 2.0-compliant identity provider for internal employee logins and wants employees to obtain temporary AWS credentials to access resources in a single AWS account directly, by federating their existing identity provider straight into IAM, without adopting AWS's own managed workforce SSO service and without creating any IAM user for any employee. Which approach fits?
AConfigure IAM Identity Center as the enterprise's identity provider, since it is the only supported way to federate any external identity provider with AWS
BCreate an IAM user for every employee and have the identity provider place a long-lived AWS access key into each user's browser session
CUse AWS Directory Service to fully replace the enterprise's existing identity provider, since IAM cannot trust an external SAML provider directly
DCreate a SAML identity provider entity in IAM that trusts the enterprise's identity provider, then create an IAM role whose trust policy allows that SAML provider to call AssumeRoleWithSAML, so authenticated employees receive temporary credentials scoped to that role without any IAM user ever being created
Correct answer: .
IAM natively supports registering an external SAML 2.0 identity provider as a SAML provider resource and creating an IAM role whose trust policy allows that provider's authenticated principals to call AssumeRoleWithSAML, which returns temporary security credentials scoped to the role, entirely independent of IAM Identity Center and without ever creating an IAM user for an employee. The option requiring IAM Identity Center is wrong because direct SAML federation into IAM roles predates Identity Center and works without it; Identity Center is one option among several for federation, not the only one. The option of creating an IAM user per employee and injecting a long-lived access key is wrong because it reintroduces exactly the long-lived, hard-to-rotate credentials that federation is meant to eliminate. The option of replacing the identity provider with AWS Directory Service is wrong because that service is a managed directory for different scenarios, such as domain-joined workloads, and IAM can already trust an external SAML provider directly without needing any such replacement.
Source: AWS IAM documentation: Creating IAM SAML identity providers and AWS STS AssumeRoleWithSAML (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_saml.html)
AWS SAA-C03 · IAM & Security · Card 023/032easy
A mobile app lets users browse public content without signing in, but if a user signs in through a supported social identity provider, the app should let that user upload files directly to an S3 bucket using temporary AWS credentials scoped to their identity, without the app's backend ever handling long-lived AWS credentials. Which service is designed for this?
AIAM Identity Center, which provides workforce single sign-on to multiple AWS accounts and business applications
BAWS STS AssumeRole called directly from the mobile app using a long-lived IAM user access key embedded in the app
CAmazon Cognito identity pools, which issue temporary AWS credentials scoped to an IAM role for both unauthenticated guest users and users authenticated through a supported identity provider
DAWS Directory Service, which provides a managed Microsoft Active Directory for domain-joined workloads
Correct answer: .
Amazon Cognito identity pools are built exactly for this scenario: they issue temporary AWS credentials scoped to an IAM role for both unauthenticated guest identities and identities authenticated through a supported identity provider, letting an app's end users interact directly with AWS services such as S3 without the backend ever holding long-lived AWS credentials. The option describing workforce single sign-on is wrong because that service brokers employee access to AWS accounts and business applications, not temporary credentials for an app's individual end users. The option describing a long-lived IAM user access key embedded in the app is wrong because embedding such a key is the exact anti-pattern identity pools exist to avoid, since any user could extract and misuse a long-lived credential from the app. The option describing a managed Active Directory is wrong because that service supports domain-joined workloads and directory-based authentication scenarios, not issuing scoped temporary credentials to mobile app end users.
A security team wants an S3 bucket policy with two statements: one that denies any request not made over HTTPS, and a separate one that denies any request originating outside the company's known corporate IP range, regardless of which IAM identity makes the request. Which condition keys should these two statements use, respectively?
Aaws:MultiFactorAuthPresent for the HTTPS requirement, and aws:PrincipalOrgID for the IP-range requirement
Baws:SecureTransport for the HTTPS requirement, and aws:SourceIp for the IP-range requirement
Caws:SourceIp for the HTTPS requirement, and aws:SecureTransport for the IP-range requirement
Daws:CurrentTime for the HTTPS requirement, and aws:UserAgent for the IP-range requirement
Correct answer: .
aws:SecureTransport is a boolean condition key that reflects whether a request was made over SSL/TLS, so a statement can deny any request where this key is false to enforce HTTPS; aws:SourceIp evaluates the requester's IP address against a CIDR range, so a statement can deny any request whose source falls outside the corporate range. The option pairing MFA presence with organization membership is wrong because aws:MultiFactorAuthPresent only reflects whether MFA was used at authentication and has nothing to do with transport encryption, and aws:PrincipalOrgID restricts by AWS Organization membership rather than by any IP address range. The option that swaps the two correct keys is wrong because aws:SourceIp carries no information about whether a connection used HTTPS, and aws:SecureTransport carries no IP address information at all. The option pairing current time with user agent is wrong because aws:CurrentTime restricts access by date and time and aws:UserAgent inspects a client-supplied header, neither of which relates to transport encryption or the source network.
Source: AWS Identity and Access Management documentation: AWS global condition context keys (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html)
AWS SAA-C03 · IAM & Security · Card 025/032medium
An S3 bucket policy allows the AWS service principal responsible for delivering AWS Config configuration snapshots to write objects into the bucket. A security review notes that the bucket name alone isn't secret, so another AWS customer who learns the bucket name could point their own AWS Config service at it, since a bare service-principal statement doesn't say which customer's AWS Config is making the call. Which addition to the bucket policy's Condition element most directly closes this specific gap?
AA condition requiring aws:MultiFactorAuthPresent to be true for the request
BA condition restricting aws:SourceIp to the company's known corporate IP range
CA condition requiring the object to be encrypted with a customer managed KMS key
DA condition requiring aws:SourceAccount to equal the company's own AWS account ID
Correct answer: .
AWS service principals that write to a resource on a customer's behalf include contextual information about which account they're acting for, available through global condition keys such as aws:SourceAccount and aws:SourceArn. Adding a condition that requires aws:SourceAccount to equal the company's own account ID means the bucket only accepts writes from an instance of that service acting on behalf of that specific account, so another customer's AWS Config, even if pointed at the same bucket name, would be rejected because its request carries a different source account value. The option requiring MFA presence is wrong because an AWS service principal call like this isn't an interactively authenticated session and carries no MFA context at all, so a statement depending on it would simply never match. The option restricting the source IP range is wrong because calls made by an AWS service on a customer's behalf do not originate from that customer's corporate network, so this condition would block the very writes the bucket needs to accept. The option requiring KMS encryption on the object is wrong because an encryption requirement controls how the object is protected at rest, not which customer's instance of the service is permitted to write it, so an unauthorized customer's AWS Config could still satisfy an encryption condition and write into the bucket.
Source: AWS Identity and Access Management documentation: The confused deputy problem (https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html)
AWS SAA-C03 · IAM & Security · Card 026/032easy
A company manages access for many project teams. Today, an administrator writes a new IAM policy listing specific resource ARNs every time a team is assigned a new project, and has to edit every affected policy whenever resources are added later. The company wants a model where simply tagging a new resource with the correct project value automatically grants the matching team access, with no policy edits required when resources are added or removed. Which IAM authorization strategy achieves this?
AAttribute-based access control, using a policy that allows an action when a principal's tag value matches a resource's tag value
BRole-based access control, using one IAM role shared by every project team
CA permissions boundary attached to every IAM role, capping the maximum permissions any role can have
DA service control policy applied at the AWS Organizations root, listing every project's resource ARNs
Correct answer: .
Attribute-based access control defines permissions using tags attached to both principals and resources, so a single policy can allow an action whenever the requesting principal's tag value matches the target resource's tag value. Because new resources automatically carry the right tag the moment they're created, they fall under the matching team's existing access without anyone touching a policy, which is exactly the scaling behavior described. The option describing one shared IAM role for every team is wrong because a single undifferentiated role cannot distinguish one team's project resources from another's; it would either grant everyone everything or still need separate per-project policy logic layered on top, defeating the stated goal. The option describing a permissions boundary is wrong because a boundary only sets a ceiling on what an identity-based policy can grant and does not itself grant access to any resource based on matching tags, so teams would still need a separate mechanism to get access in the first place. The option describing an organization-wide service control policy is wrong because SCPs only restrict the maximum permissions available within accounts, never grant permissions, and listing every project's resource ARNs explicitly would require exactly the manual edits the company is trying to eliminate.
Source: AWS Identity and Access Management documentation: Define permissions based on attributes with ABAC authorization (https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_attribute-based-access-control.html)
AWS SAA-C03 · IAM & Security · Card 027/032easy
A security team receives a GuardDuty finding that an EC2 instance's role made an unusual API call. GuardDuty has already flagged that something suspicious happened, but the team now wants to visually trace how that activity connects to prior sign-ins, other API calls, and network traffic involving the same instance and role over the preceding months, to understand the full scope of what occurred. Which service is designed for this kind of investigation?
AAWS Security Hub, to re-run the CIS AWS Foundations Benchmark against the account
BAmazon Macie, to scan S3 buckets for sensitive data the compromised instance could reach
CAmazon Detective, which builds a visual behavior graph from CloudTrail, VPC Flow Logs, and GuardDuty findings to trace related activity over time
DAWS Config, to show a timeline of configuration changes made to the instance's security group
Correct answer: .
Amazon Detective is purpose-built for exactly this kind of deep investigation: it automatically collects CloudTrail events, VPC Flow Logs, and GuardDuty findings, then uses machine learning and graph analysis to build an interactive behavior graph showing how a resource's activity, logins, and network traffic connect to each other over an extended historical window, which is precisely what's needed to trace the full scope of one already-flagged finding. The option describing Security Hub is wrong because that service aggregates and normalizes findings from multiple detection services and scores an account against security standards like the CIS benchmark; it doesn't provide this kind of per-resource historical behavior tracing. The option describing Macie is wrong because Macie's role is discovering and classifying sensitive data inside S3 buckets using machine learning, which has nothing to do with reconstructing an instance's API call and network history. The option describing AWS Config is wrong because Config tracks the history of a resource's configuration state, such as security group rule changes, rather than the behavioral activity, logins, and API calls that this investigation actually needs to trace.
Source: Amazon Detective documentation: What is Amazon Detective? (https://docs.aws.amazon.com/detective/latest/userguide/what-is-detective.html)
AWS SAA-C03 · IAM & Security · Card 028/032hard
A federated user assumes an IAM role whose identity-based policy allows both s3:GetObject and s3:PutObject on a particular bucket. The application calling sts:AssumeRole also passes an inline session policy that allows only s3:GetObject on that same bucket, intending to grant a temporary read-only session for one specific workflow. What permissions does the resulting temporary session actually have on that bucket?
ABoth s3:GetObject and s3:PutObject, because a session policy can only add permissions on top of the role's identity-based policy, never take any away
BNo permissions at all, because passing a session policy that doesn't exactly match the role's identity-based policy invalidates the AssumeRole call
Cs3:PutObject only, because the session policy is evaluated first and the identity-based policy applies only to actions the session policy is silent on
Ds3:GetObject only, because the session's effective permissions are the intersection of the identity-based policy and the session policy, which can only narrow what the identity-based policy allows
Correct answer: .
When an inline session policy is passed to AssumeRole, the resulting session's effective permissions are the intersection of the role's identity-based policy and the session policy, and a session policy can only further restrict what the identity-based policy already grants, never expand it. Here the identity-based policy allows both actions but the session policy allows only s3:GetObject, so the intersection leaves only s3:GetObject available for that session, exactly matching the caller's intent to hand out a temporary read-only session. The option claiming both actions remain available is wrong because it has the relationship backwards: session policies narrow permissions, they don't add to them. The option claiming the call is invalidated is wrong because passing a session policy that's narrower than the role's own policy is a normal, fully supported way to scope down a session for one specific use, not an error condition. The option claiming the session policy is evaluated first and the identity-based policy fills in anything the session policy doesn't mention is wrong because there's no such precedence order; the two policies are combined by intersection rather than one silently taking priority over gaps in the other.
Source: AWS Identity and Access Management documentation: Policies and permissions in AWS Identity and Access Management — Session policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
AWS SAA-C03 · IAM & Security · Card 029/032easy
A compliance team wants a single downloadable report listing every IAM user in the account, whether each has a password enabled, whether their access keys are active, and the date each credential was last used, so they can identify and deactivate credentials nobody has touched in months. Which IAM feature provides exactly this?
AIAM Access Analyzer's policy generation feature, which proposes a least-privilege policy based on a role's recent CloudTrail activity
BThe IAM credential report, a downloadable CSV listing every user's password, access key, and MFA status along with last-used dates
CAn AWS Config conformance pack scoped to IAM resources
DThe AWS Trusted Advisor security checks category
Correct answer: .
The IAM credential report is a downloadable comma-separated values file covering every IAM user in the account, with columns for whether a password is enabled and when it was last used, whether each of up to two access keys is active and when it was last rotated and last used, and whether MFA is active, which is exactly the account-wide audit data the compliance team needs to spot and deactivate stale credentials. The option describing Access Analyzer's policy generation is wrong because that feature proposes a least-privilege policy for one specific entity based on its recent activity in CloudTrail; it doesn't produce an account-wide CSV of password and access key status across every user. The option describing an AWS Config conformance pack is wrong because Config conformance packs evaluate resource configurations against compliance rules, they don't generate a per-user listing of credential ages and last-used dates. The option describing Trusted Advisor's security checks is wrong because, while Trusted Advisor flags certain security best-practice gaps such as missing MFA on the root user, it doesn't produce this detailed per-user password and access-key status-and-last-used export that the credential report is specifically designed to generate.
Source: AWS Identity and Access Management documentation: Generate credential reports for your AWS account (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html)
AWS SAA-C03 · IAM & Security · Card 030/032medium
A company's AWS Organization has many member accounts that are frequently added and removed as teams change. They want a single central S3 bucket's policy to allow s3:PutObject from any IAM principal in any of their own accounts, without listing individual account IDs and without editing the bucket policy every time an account is added or removed. Which condition key achieves this?
Aaws:PrincipalOrgID, set to the AWS Organization's ID, so the condition matches any principal belonging to that organization regardless of account
Baws:SourceAccount, set to the AWS Organization's ID
Caws:PrincipalArn, using a wildcard pattern intended to match every account ID
Daws:CalledVia, set to the organization's management account ID
Correct answer: .
The aws:PrincipalOrgID global condition key compares the organization identifier of the requesting principal against the value specified in the policy, so a single condition set to the company's organization ID matches any principal in any current member account without naming individual accounts; when accounts are added or removed from the organization, the policy automatically covers the correct set without any edits. The option using aws:SourceAccount is wrong because that key holds a 12-digit AWS account ID, not an organization ID, so it could only ever match one specific account and would still need a new statement added or removed every time membership changed. The option using aws:PrincipalArn with a wildcard meant to match every account ID is wrong because account IDs appear inside the ARN in a way that a simple wildcard can't safely or correctly generalize across accounts, and this isn't how AWS documents restricting access by organization. The option using aws:CalledVia is wrong because that key identifies which AWS service made a call on a principal's behalf during service-to-service calls, and has nothing to do with organization membership.
Source: AWS Identity and Access Management documentation: AWS global condition context keys — aws:PrincipalOrgID (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-principalorgid)
AWS SAA-C03 · IAM & Security · Card 031/032hard
A team enables a feature in an AWS service, and the service automatically creates a new IAM role in their account that only that service can assume. An administrator can view the role's permissions but cannot edit them, and attempting to delete the role fails while the service still has resources depending on it. What kind of IAM role is this, and why can't it be deleted yet?
AA cross-account role created through role chaining; it can't be deleted until the chain of assumed roles is manually unwound
BA role scoped by a permissions boundary; it can't be deleted until the boundary policy itself is detached
CAn ordinary custom service role the team created themselves; it can't be deleted because its trust policy still names the service principal
DA service-linked role, predefined and owned by the service; it can't be deleted until its related resources are deleted first, which prevents accidentally cutting off the service's access to resources it still manages
Correct answer: .
A service-linked role is a type of service role that is predefined by and linked to a specific AWS service; the service itself creates and owns the role, an administrator can view but not edit its permissions, and before the role can be deleted its related resources must be deleted first, which exists specifically to protect against someone accidentally removing the service's ability to manage resources it still depends on. This matches every detail in the scenario: automatic creation, a trust restricted to that one service, view-only permissions, and a deletion block tied to still-active resources. The option describing role chaining is wrong because role chaining is about using one assumed role's temporary credentials to assume a second role, a session-level mechanic that has nothing to do with how a role is created, who owns its permissions, or why it resists deletion. The option describing a permissions-boundary-scoped role is wrong because a permissions boundary only caps the maximum permissions an identity-based policy can grant; it doesn't explain automatic creation by a service, read-only permissions, or a resource-dependent deletion block, and a boundary can't even be applied to a service-linked role. The option describing an ordinary custom service role is wrong because an administrator can freely edit the permissions of a role they created themselves; the described view-only restriction is specifically a service-linked role property, not a property of self-created service roles.
Source: AWS Identity and Access Management documentation: IAM roles — Roles terms and concepts (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
AWS SAA-C03 · IAM & Security · Card 032/032easy
A company wants every IAM user to read and write objects only inside a folder named after their own username within one shared S3 bucket, for example user alice can only reach the alice/ prefix, without creating a separate IAM policy for each user. Which approach achieves this with a single reusable policy?
AAttach a permissions boundary to each user that happens to reference that user's own name
BUse a bucket policy requiring aws:MultiFactorAuthPresent to be true, scoped to the bucket's root prefix
CWrite one IAM policy whose Resource element uses the ${aws:username} policy variable in place of the folder name, so it resolves to each user's own name when evaluated
DCreate an AWS Organizations service control policy listing each user's folder name explicitly
Correct answer: .
IAM policy variables let a policy reference request-time values using a ${ } placeholder, and aws:username resolves to the name of the IAM user making the request. By writing the Resource element's S3 prefix as a path ending in ${aws:username}, a single policy attached to a group or to every user automatically scopes each person's access to the one prefix matching their own name, with no per-user copies needed. The option describing a permissions boundary that references a user's name is wrong because a permissions boundary only sets the maximum permissions an identity-based policy can grant; by itself it doesn't generate or resolve a per-user folder path, so it doesn't achieve the self-service scoping described. The option describing an MFA condition scoped to the bucket's root is wrong because requiring multi-factor authentication controls how a user authenticated, not which folder within the bucket they're allowed to reach. The option describing an AWS Organizations service control policy listing each user's folder name is wrong both because SCPs only restrict maximum permissions without granting access, and because listing every user's folder name explicitly is exactly the per-user duplication the company is trying to avoid.
Source: AWS Identity and Access Management documentation: IAM policy elements: Variables and tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html)
About IAM & Security
IAM (Identity and Access Management) controls two separate questions for every request to AWS: authentication (who is this?) and authorization (what are they allowed to do?). Every account starts with a root user that has unrestricted access to everything, including closing the account — AWS explicitly recommends against using it for everyday work, reserving it for the handful of tasks that require it and creating IAM identities for everything else.
IAM users are long-term identities for a person or application, and groups let you attach the same permissions to many users at once rather than one by one. A policy is a JSON document naming an effect, an action, and a resource; attaching only the policies an identity actually needs — least privilege — is the standing best practice. Roles work differently from users: they carry no long-term password or access key at all. Instead, a trusted principal — an EC2 instance, another AWS account, a federated identity from your corporate directory — assumes the role through AWS STS and receives short-lived, temporary credentials, which is why roles are the recommended way to grant an application access instead of embedding a user's long-term keys in it.
Looking for how IAM Identity Center, SAML federation and Cognito identity pools actually differ? Read the explainer.