Amazon AWS Certified Solutions Architect Associate SAA-C03 IAM Permissions and Identity Hardening Practice Test
Topic 01 covers IAM permissions and identity hardening for the AWS Certified Solutions Architect – Associate certification. These original SAA-C03 practice questions apply access-control requirements to concrete architecture decisions. Select one answer unless a fixed number is requested. For broader preparation, visit the AWS Certified Solutions Architect Associate SAA-C03 Exam Dumps page. Each alternative includes an explanation of its technical behavior and the decisive constraints.
Question 1
A nightly process on EC2 uploads settlement files to one S3 prefix. It currently uses a root access key copied into the machine image. The redesign must remove root access and require no stored long-term access keys in the image or application. Uploads must remain unattended. Which design meets these requirements?
Correct Answer: C
Correct Answer
Answer C is correct because the instance role can supply automatically managed credentials to the process. Restricting the role to the upload action and destination removes the unnecessary account-wide authority.
Incorrect Answers
Answer A is incorrect because the IAM identity can be narrower, but an embedded long-term secret still survives in image copies and requires distribution and rotation. The instance already supports role credentials.
Answer B is incorrect because encryption changes storage protection, not the authority of the recovered credential. Compromise of the process would still expose a credential with unnecessary root privileges.
Answer D is incorrect because root sign-in MFA does not transform a long-term access key into a narrowly scoped workload identity. The process should not retain root access for an S3 operation.
Question 2
A temporary operations role must run ec2:DescribeInstances to collect inventory across one account, but must not change instances or read S3 objects. For this question, the requested Describe operation does not support resource-level ARN restrictions. Which identity-policy grant is sufficient and appropriately scoped?
Correct Answer: A
Correct Answer
Answer A is correct because the wildcard is required by this action’s stated authorization model, while the exact action limits the role to inventory discovery. A resource wildcard does not itself grant modification or S3 actions.
Incorrect Answers
Answer B is incorrect because the action is explicitly stated not to support resource-level ARN restrictions. An instance ARN pattern therefore cannot provide the required grant for this API operation.
Answer C is incorrect because the extra object-read permission is unrelated to EC2 inventory and violates the stated prohibition on reading S3 data. The inventory action alone is sufficient.
Answer D is incorrect because this adds modification actions that the role must not perform. A short session bounds time but does not reduce the operations authorized during that session.
Question 3
A security engineer confirms that an active root access key from a standalone AWS account was published in a public repository. Production workloads do not use it. Which TWO actions directly contain and investigate the exposure? Choose TWO.
Correct Answers: A, E
Correct Answers
Answer A is correct because removing the compromised credential prevents further requests signed with that key. No production dependency requires keeping it active while the investigation proceeds.
Answer E is correct because activity evidence is needed to identify unauthorized changes or persistence. Credential removal alone does not show what occurred before containment.
Incorrect Answers
Answer B is incorrect because the root user is not an IAM user to which such a policy can be attached. This proposal does not revoke the exposed root credential.
Answer C is incorrect because console password authentication and access-key authentication are separate. Changing one does not invalidate the other credential that was actually exposed.
Answer D is incorrect because IAM user keys are distinct credentials from the root key that was exposed. Rotating those users first would leave the confirmed compromised credential usable.
Question 4
A maintenance user has permission to stop development instances. A policy denies that operation when BoolIfExists on aws:MultiFactorAuthPresent is false. The user’s console sign-in uses a virtual MFA device, but a CLI command signed with the user’s long-term access key is denied. How should the user perform the CLI operation without weakening the policy?
Correct Answer: D
Correct Answer
Answer D is correct because GetSessionToken with valid MFA information returns credentials carrying the IAM user’s MFA authentication context. Using that complete set satisfies the request-context condition; the earlier browser sign-in does not.
Incorrect Answers
Answer A is incorrect because a complete temporary credential set can authenticate a request without having MFA context. Obtaining it without the MFA device code leaves this policy’s conditional deny applicable.
Answer B is incorrect because the CLI request still uses its original long-term credential. A separate browser session does not add MFA context to that signed API request.
Answer C is incorrect because an additional allow cannot overcome the applicable explicit deny. The missing MFA context must be corrected rather than masked by another grant.
Question 5
A standalone account keeps a root sign-in for infrequent tasks that AWS requires the root user to perform. An internal policy requires that one departing employee cannot retain sole control of sign-in or recovery. Which TWO measures best support this requirement? Choose TWO.
Correct Answers: A, D
Correct Answers
Answer A is correct because separating approvals and protecting the authentication and recovery factors reduces dependence on one person’s custody while retaining a controlled emergency procedure.
Answer D is correct because the organization retains control over recovery communication when an employee leaves. Membership governance prevents that shared destination from becoming uncontrolled access.
Incorrect Answers
Answer B is incorrect because administrative IAM permissions do not transfer control of a standalone account’s root recovery email. The departing employee could still retain the recovery channel.
Answer C is incorrect because the mailbox label does not create separation of control. One person would still control both normal authentication and the mechanisms used to recover access.
Answer E is incorrect because a shared password vault addresses only one factor. Personal custody of MFA and recovery channels preserves the departure dependency the policy prohibits.
Question 6
An EC2 instance has a correctly configured instance profile granting access to a report bucket. Its application explicitly constructs an SDK client with an old IAM user’s access key, and requests are denied. That user is being retired. Which change addresses the cause while preserving automatic credential renewal?
Correct Answer: C
Correct Answer
Answer C is correct because the application’s explicit credential choice prevents it from using the attached role. The role provider can obtain refreshed temporary credentials without embedding replacement keys.
Incorrect Answers
Answer A is incorrect because changing this setting does not change the SDK’s explicitly selected identity. EC2 instance-role credentials are also not subject to the role’s configured maximum session duration.
Answer B is incorrect because this would preserve the undesired user dependency and widen permissions. The instance profile cannot help until the application stops signing requests with the old identity.
Answer D is incorrect because a copied temporary credential expires and also requires its session token. Hard-coding a current credential bypasses the provider’s renewal behavior.
Question 7
An S3 event invokes a Lambda function successfully. The function then receives AccessDenied when writing a result object to a second bucket in the same account. Its execution role has only logging permissions; no other authorization controls or encryption-key requirements block the write. What is the narrowest appropriate correction?
Correct Answer: A
Correct Answer
Answer A is correct because the invoked function uses its execution role for AWS API operations. Granting the specific write action on the required objects supplies the missing runtime authority.
Incorrect Answers
Answer B is incorrect because a permissions boundary limits identity-policy grants but does not supply them. The execution role would still lack the identity-policy permission needed for the write.
Answer C is incorrect because invocation already succeeds, and the failure occurs during an outbound S3 request. A policy governing who can invoke the function does not grant its code S3 write permission.
Answer D is incorrect because the deployment identity is not the runtime identity signing the failed request. Changing its permissions does not change the function’s execution role.
Question 8
A Fargate task starts, pulls its image, and sends logs successfully. Application code inside the container is denied when it calls S3. The task execution role permits image retrieval and logging, and no task role is configured. Which design supplies the application with S3 permissions?
Correct Answer: B
Correct Answer
Answer B is correct because the task role supplies permissions to application code inside the container. It is separate from the execution role used for managed startup and related agent operations.
Incorrect Answers
Answer A is incorrect because registration permissions govern the deployment action. They do not become the credentials used by running application code.
Answer C is incorrect because the execution role supports operations such as pulling the image and publishing logs. Its successful startup permissions do not make it the application’s task identity.
Answer D is incorrect because a Fargate task does not expose a customer-managed EC2 host on which to attach that profile. The supported application identity is the task role.
Question 9
An operator copies an unexpired STS credential response into a CLI environment. AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are set, but requests fail authentication before authorization is evaluated. The response also contained a SessionToken. What should the operator do?
Correct Answer: B
Correct Answer
Answer B is correct because temporary credentials include a token in addition to the key pair. All components must come from the same issued session for AWS to validate the request.
Incorrect Answers
Answer A is incorrect because broader role permissions cannot repair an incomplete authentication credential. AWS must validate the key, secret and matching session token before evaluating authorized actions.
Answer C is incorrect because the token and secret access key have different roles in the request. Replacing one credential component with another produces an invalid credential set.
Answer D is incorrect because a longer lifetime does not eliminate the session-token component. Exporting only a replacement key pair reproduces the same authentication failure.
Question 10
A legacy integration cannot yet use roles and must keep an IAM user access key. The current key is not suspected of compromise, the user has one key, and a planned replacement must avoid downtime. Which sequence best meets that requirement?
Correct Answer: D
Correct Answer
Answer D is correct because a controlled overlap allows consumers to switch before the previous credential is disabled. Verification and deactivation provide a recovery window without keeping the old key indefinitely.
Incorrect Answers
Answer A is incorrect because a console password change does not replace the programmatic access key. The integration would continue to use the credential scheduled for replacement.
Answer B is incorrect because deleting the only working key first interrupts consumers that have not been updated. That sequence conflicts with the explicit planned, non-emergency no-downtime requirement.
Answer C is incorrect because two working keys can support a temporary migration, but indefinite overlap leaves the old credential usable. It fails the requirement to complete the replacement.
Question 11
An IAM role’s policy allows s3:GetObject on every object in a reports bucket. A bucket policy explicitly denies that action for the restricted/ prefix to all principals. The role requests restricted/payroll.csv. Assume no other policy applies. What is the outcome?
Correct Answer: B
Correct Answer
Answer B is correct because the request matches both statements, and an explicit deny wins over an allow. The broader object permission cannot override the resource policy’s narrower restriction.
Incorrect Answers
Answer A is incorrect because the role’s stated object grant already includes this key. Another exact-key allow would not remove the matching explicit deny, so this is the wrong explanation for the denial.
Answer C is incorrect because a deny applying to all principals also applies to this role request. A role session is not exempt merely because the policy uses a wildcard principal.
Answer D is incorrect because identity and resource policies do not use this precedence rule. A matching explicit deny remains effective regardless of which of these policy types contains the allow.
Question 12
A report reader can download an S3 object when given its exact key, but cannot discover keys with ListObjectsV2. Its only permission is s3:GetObject on the bucket’s objects. The application must list all objects in this bucket but must not write them. What additional permission is needed?
Correct Answer: B
Correct Answer
Answer B is correct because listing objects is authorized as a bucket-level action. Adding that action enables discovery while the existing object permission remains responsible for reading content.
Incorrect Answers
Answer A is incorrect because the action is appropriate, but its resource must identify the bucket. An object ARN pattern does not authorize this bucket-level listing request.
Answer C is incorrect because listing bucket names in the account is different from listing keys inside this bucket. The application’s failed operation needs the latter permission.
Answer D is incorrect because GetObject is an object operation and does not authorize ListObjectsV2. Changing its resource to the bucket also fails to grant the separate listing action.
Question 13
A role can read a private S3 bucket, but a signed HTTP GetObject request is denied. The bucket policy denies requests when aws:SecureTransport is false. The same object is encrypted at rest. Which change satisfies the policy without broadening access?
Correct Answer: A
Correct Answer
Answer A is correct because the condition concerns transport protection on this request. HTTPS changes that context while preserving the same identity and object permission.
Incorrect Answers
Answer B is incorrect because a presigned URL authorizes a signed request; it does not make HTTP use TLS. The same transport-related deny still applies when that URL is used over HTTP.
Answer C is incorrect because at-rest encryption protects stored data and does not make an HTTP request use TLS. The transport condition would still match the deny.
Answer D is incorrect because a second allow cannot override the explicit transport-related deny. The request must satisfy the transport requirement.
Question 14
An S3 bucket policy in an account explicitly allows an IAM user ARN from the same account to read one object. The user has no identity-policy allow for S3. There are no explicit denies, permissions boundaries, session policies, or organization controls. How is that user’s GetObject request evaluated?
Correct Answer: B
Correct Answer
Answer B is correct because under the stated same-account conditions, the bucket policy can grant the user’s access. A matching identity-policy allow is not additionally required for this direct grant.
Incorrect Answers
Answer A is incorrect because the current statement directly names the IAM user and grants the requested object action. Requiring a different role principal is unnecessary under the stated same-account conditions.
Answer C is incorrect because that rule does not apply to this same-account direct resource grant. It would incorrectly treat a missing identity allow as an explicit deny.
Answer D is incorrect because resource policies can identify an IAM principal as described. The exact user ARN and requested object are already included in the grant.
Question 15
A role has an identity policy allowing S3 reads and writes. Its permissions boundary allows S3 reads only. No resource-based grants or other policies apply. Which effective permission set results?
Correct Answer: C
Correct Answer
Answer C is correct because the identity policy supplies the grants, while the boundary limits their maximum scope. Only reads are permitted by both policy layers.
Incorrect Answers
Answer A is incorrect because a boundary does not replace the granting policy. Reads remain effective because both applicable layers allow them.
Answer B is incorrect because an identity-policy action cannot override a missing boundary permission. Specificity does not turn the boundary into an optional control.
Answer D is incorrect because the boundary is a limiting policy rather than an additional grant. The identity policy’s write permission is outside the permitted intersection.
Question 16
A role policy allows s3:GetObject with Resource set only to arn:aws:s3:::monthly-reports. The application requests monthly-reports/2026/summary.csv and receives AccessDenied. The bucket also contains reports under other year prefixes. No other policy grants access. Which correction is appropriately scoped to all report objects?
Correct Answer: A
Correct Answer
Answer A is correct because GetObject evaluates an object resource. The object ARN pattern matches report keys, whereas the current ARN identifies only the bucket.
Incorrect Answers
Answer B is incorrect because this pattern repairs access to the requested year but excludes reports under other year prefixes. It is too narrow for the stated requirement to read all report objects.
Answer C is incorrect because the replacement would support listing rather than retrieving object content. It does not satisfy the application’s download operation.
Answer D is incorrect because this would remove both action and destination restrictions. The required repair can be made by correcting the object ARN without granting unrelated S3 access.
Question 17
A tenant reader must use ListObjectsV2 and GetObject to list and download only objects under tenant-a/ in the same-account S3 bucket tenant-store. It must not discover or read other tenants’ objects, even when their keys are known. No other policies grant access. Which TWO identity-policy elements together provide this scope? Choose TWO.
Correct Answers: B, C
Correct Answers
Answer B is correct because the object ARN pattern restricts retrieval to the tenant’s keys. Listing restrictions alone would not restrict downloads when another key is already known.
Answer C is correct because the listing action is evaluated against the bucket, and the condition constrains the requested listing prefix. This prevents discovery through a broader list request.
Incorrect Answers
Answer A is incorrect because the prefix condition on ListBucket does not limit the separate GetObject permission. A caller knowing another tenant’s key could still retrieve it.
Answer D is incorrect because an unrestricted list grant lets this identity request other tenants’ key names. Client-side filtering does not enforce the required authorization boundary.
Answer E is incorrect because s3:prefix constrains listing requests, not GetObject authorization. Downloads need the tenant-specific object resource pattern rather than a listing-only condition key.
Question 18
Teams provision new resources frequently. Security controls the Project tags on supported resources and principal identities; developers cannot alter either set of authorization tags. For tag-aware actions, each team must access only resources with a matching Project value. Which authorization approach scales with new resources?
Correct Answer: C
Correct Answer
Answer C is correct because the request can be authorized from controlled attributes without enumerating every new resource ARN. The stated tag-governance restriction is essential to keeping that comparison trustworthy.
Incorrect Answers
Answer A is incorrect because self-controlled authorization attributes would let developers move themselves across the intended project boundary. That defeats the separation the policy is meant to enforce.
Answer B is incorrect because tag presence alone does not identify the caller’s project. A resource tagged for another team would meet that weaker test.
Answer D is incorrect because validating only the caller’s attribute leaves the target resource unconstrained. Authorization needs the comparison that ties this team to the requested resource.
Question 19
A deployment role may create Lambda functions using ApprovedLambdaRole. It must not attach a more privileged execution role to a new function. The approved role already trusts Lambda, and no other policy grants the deployment role iam:PassRole. Which permission most directly enforces the role-passing boundary?
Correct Answer: D
Correct Answer
Answer D is correct because the resource restriction limits which role can be passed, and the condition limits the receiving service. Existing deployment permissions do not need unrestricted role passing.
Incorrect Answers
Answer A is incorrect because the service condition limits the recipient but not which role can be passed. A more privileged Lambda-trusting role would still be within the grant.
Answer B is incorrect because the approved role’s trust controls who may assume that role. It does not prevent the deployer from attaching a different, more privileged role permitted by the broad PassRole grant.
Answer C is incorrect because assuming a role for the deployer’s own session is different from passing it to Lambda. This does not provide the required controlled deployment permission.
Question 20
Developers may create application roles and edit those roles’ identity policies. Every created role must retain a security-owned permissions boundary. Developers cannot change their own delegation permissions, and no resource-based grants apply. Which THREE controls preserve the boundary as roles are created and updated? Choose THREE.
Correct Answers: A, B, F
Correct Answers
Answer A is correct because a fixed attachment is ineffective if the developer can broaden the attached policy itself. Security must retain control of the policy that defines the ceiling.
Answer B is correct because the creation condition prevents a developer from starting with an unbounded role. Limiting only existing roles would leave newly created roles as a bypass.
Answer F is correct because a creation-time requirement alone does not preserve the restriction after creation. Boundary-management permissions must not allow the developer to remove the ceiling later.
Incorrect Answers
Answer C is incorrect because a role-name prefix does not establish that the new boundary is approved. This would permit replacing the enforced ceiling with a permissive policy.
Answer D is incorrect because a boundary does not grant application permissions. This would prevent required work instead of safely delegating permissions within a maximum.
Answer E is incorrect because a temporary exemption creates the same privilege escape the model is intended to prevent. Deployment convenience does not preserve the required continuous boundary.
Question 21
A team runs its application on EC2 using an AWS-provided operating-system image. A vulnerability is discovered in an operating-system package installed in the guest. The team argues that AWS owns patching because it supplied the image. Which allocation of work is correct?
Correct Answer: C
Correct Answer
Answer C is correct because using an AWS-provided starting image does not transfer ongoing guest operating-system management for EC2. The selected IaaS model leaves that workload responsibility with the customer.
Incorrect Answers
Answer A is incorrect because a provider host patch addresses a different layer. The customer still needs to remediate the vulnerable package in the running guest operating system.
Answer B is incorrect because changing the image used by future launches does not update packages in already running guests. Those instances still need customer-managed patching or replacement.
Answer D is incorrect because EC2 does not transfer guest operating-system administration to AWS merely because of the image source. The customer needs its own remediation process or a configured management service.
Question 22
A company moves a database from self-managed EC2 to Amazon RDS for PostgreSQL. It wants to remove direct administration of the database host while retaining control over which application users can read customer records. Which design reflects that boundary?
Correct Answer: C
Correct Answer
Answer C is correct because managed infrastructure removes the need to administer the underlying host. It does not decide which of the customer’s users should be authorized to read its business data.
Incorrect Answers
Answer A is incorrect because network restrictions determine which hosts can connect, but a shared privileged database login does not preserve separate application-level data permissions. The customer must still configure appropriate database authorization.
Answer B is incorrect because permission to describe the AWS database resource is a management-plane permission. It does not automatically confer database-engine data access to customer tables.
Answer D is incorrect because RDS access control should use its management and database interfaces. The proposed host-administration model contradicts the move to a managed database service.
Question 23
An audit finds that a customer-managed S3 bucket policy grants access more broadly than the company’s classification policy permits. The team has an AWS compliance report proving controls over the service’s physical infrastructure. What remains necessary?
Correct Answer: D
Correct Answer
Answer D is correct because infrastructure assurance does not specify the customer’s intended readers. The customer controls its data classification and resource permissions and must close the identified access gap.
Incorrect Answers
Answer A is incorrect because the report supports the provider’s infrastructure controls, not this customer-authored permission grant. Treating the policy as inherited leaves the identified access defect unresolved.
Answer B is incorrect because logging supplies evidence of access but does not remove the overly broad permission. The stated classification mismatch remains until the customer changes and validates the grant.
Answer C is incorrect because encryption and authorization address different questions. A principal that is legitimately granted usable access can still read data contrary to the company’s intended classification.
Question 24
A Lambda application writes customer email addresses into function tags for troubleshooting. The business prohibits personal data in metadata that may appear in billing or diagnostic records. The team says AWS’s managed runtime makes this acceptable. Which change addresses the customer’s obligation?
Correct Answer: A
Correct Answer
Answer A is correct because the customer chooses its content and metadata. Managed execution does not make sensitive tag values suitable for broader operational records, and AWS cautions against sensitive information in tags.
Incorrect Answers
Answer B is incorrect because network placement does not prevent metadata from being used by authorized management, diagnostic or billing systems. The prohibited content must be removed from the tags.
Answer C is incorrect because environment-variable encryption protects a different configuration field. It does not remove personal information from tag metadata or satisfy the policy against its placement there.
Answer D is incorrect because application log redaction is useful where logs contain personal data, but it does not modify function tags. The identified metadata exposure remains after this change.
Question 25
A company contract requires customer records and backups to remain in an explicitly approved AWS Region. A project team expects AWS infrastructure certification to choose compliant locations for it. Who must translate the contract into the workload configuration, and what must be checked?
Correct Answer: A
Correct Answer
Answer A is correct because the customer owns the workload-specific interpretation and configuration of its contractual requirement. AWS operates the regional infrastructure, but that does not select the company’s intended locations or validate all copies it configures.
Incorrect Answers
Answer B is incorrect because provider controls do not choose the Region named in a particular customer contract. The architect must map that contractual requirement to actual data locations.
Answer C is incorrect because the contract also covers copies. Validating the primary location does not verify separately configured destinations, so the customer’s configuration review remains incomplete.
Answer D is incorrect because encryption may protect confidentiality, but it does not change where the data is stored. The contract imposes a geographic restriction even on protected copies.
Popular posts
Recent Posts
