Curated

Design Secure Architectures 1 (1.1–1.2)

0 votes

Questions63

  1. Question 1

    Design Secure Architectures

    A company uses AWS Organizations with centralized root access management enabled and wants to eliminate long-term root credentials wherever possible. An audit finds root access keys in the management account and root passwords in member accounts; which actions should the company take? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Centrally remove root credentials from member accounts.B. Delete management account root access keys without replacing them.

    AWhy this is right: Centralized root access management supports removing member account root credentials, eliminating long-term root sign-in credentials.

    BWhy this is right: Root access keys should not be retained; use non-root identities for programmatic access.

    CWhy not this: Retaining root passwords preserves long-term credentials that centralized root access management can remove.

    DWhy not this: SCPs do not restrict users or roles in the organization's management account, including its root user.

    Centralized root access management can remove member account root credentials, and root access keys should be deleted rather than retained. SCPs do not restrict principals in the management account; rotating member root passwords retains credentials that can be removed.

    Open this question
  2. Question 2

    Design Secure Architectures

    A legacy application must temporarily continue using an IAM user's access key. The company needs to rotate the key without interrupting the application; what should a solutions architect recommend?

    Show the answer

    Correct answerC. Create and deploy a second key, verify use, then retire the old key.

    AWhy not this: Deactivating the only deployed key prevents successful authentication until the replacement is deployed.

    BWhy not this: Creating a key does not update the application; immediately deleting its deployed key risks an outage.

    CWhy this is right: Overlapping keys allow migration and verification before the old key is deactivated and ultimately deleted.

    DWhy not this: Console passwords and access keys are separate credentials; changing a password does not rotate an access key.

    An IAM user can have two access keys, allowing the replacement to be deployed and verified before the old key is deactivated and deleted. Deactivating or deleting the old key before verifying migration can interrupt the application.

    Open this question
  3. Question 3

    Design Secure Architectures

    Which security control requires an IAM user to provide an additional authentication factor when signing in with a password?

    Show the answer

    Correct answerD. Multi-factor authentication

    AWhy not this: An SCP limits available permissions in member accounts; it does not configure sign-in authentication factors.

    BWhy not this: A permissions boundary limits permissions that identity-based policies can grant; it does not add an authentication factor.

    CWhy not this: A password policy defines password requirements, not additional authentication factors.

    DWhy this is right: MFA requires an additional authentication factor rather than relying on a password alone.

    Multi-factor authentication requires an additional authentication factor beyond the password. An IAM password policy controls password requirements but does not require another factor.

    Open this question
  4. Question 4

    Design Secure Architectures

    Developers must create application roles and maintain their permission policies, but those policies must never grant permissions beyond an approved ceiling. Which design provides this delegation without requiring administrators to review every policy change?

    Show the answer

    Correct answerC. Require a permissions boundary on created roles and prevent developers from changing or removing it.

    AWhy not this: Additional inline policies can grant permissions beyond the attached managed policy unless a boundary limits them.

    BWhy not this: A trust policy controls who can assume a role, not the service permissions its identity policies can grant.

    CWhy this is right: An enforced, protected boundary caps permissions while allowing developers to maintain policies within that ceiling.

    DWhy not this: Group permissions govern the developers themselves, not the permissions of application roles they create.

    A permissions boundary sets the maximum permissions identity-based policies can grant a role; delegation must enforce its attachment and protect it from modification. A developer group's permissions do not automatically constrain the permissions of roles its members create.

    Open this question
  5. Question 5

    Design Secure Architectures

    Which subnet placement separates internet-facing load balancers from databases that must have no direct internet route?

    Show the answer

    Correct answerA. Load balancers in public subnets; databases in private subnets

    AWhy this is right: Public subnets support the internet-facing tier, while private subnets isolate the database tier from direct internet routing.

    BWhy not this: This reverses the required placement: the internet-facing tier needs public subnets, not the database tier.

    CWhy not this: Internet-facing load balancers require public subnets with routes to an internet gateway.

    DWhy not this: Public database subnets have a direct internet route and do not satisfy the required separation.

    Public subnets support internet-facing load balancers, while private subnets keep databases without a direct internet route. Placing both tiers in public subnets does not provide the required network segmentation.

    Open this question
  6. Question 6

    Design Secure Architectures

    A subnet's network ACL has rule 100 allowing all IPv4 traffic in each direction, and its instances have established connections with a malicious CIDR. Which change immediately blocks traffic in both directions for that CIDR, including established connections, while preserving other traffic?

    Show the answer

    Correct answerA. Add inbound and outbound network ACL deny rules numbered 90 for the malicious CIDR.

    AWhy this is right: Lower-numbered deny rules take precedence and block matching packets in both directions, including established flows.

    BWhy not this: AWS WAF filters supported application requests, not all inbound and outbound IP traffic for a subnet.

    CWhy not this: Security group rule changes do not reliably terminate existing tracked connections immediately.

    DWhy not this: Rule 100 allows the traffic before evaluation can reach deny rules numbered 110.

    Network ACLs evaluate rules in ascending numerical order and apply to packets in both new and established connections. Deny rules numbered 90 take precedence over rule 100; rules numbered 110 would never match because rule 100 already allows the traffic.

    Open this question
  7. Question 7

    Design Secure Architectures

    EC2 instances with only private IPv4 addresses must download updates from the internet without accepting unsolicited internet connections. Which design meets these requirements?

    Show the answer

    Correct answerB. Route internet-bound traffic to a public NAT gateway in a public subnet.

    AWhy not this: A private NAT gateway provides private connectivity and cannot provide internet access through an internet gateway.

    BWhy this is right: A public NAT gateway translates outbound IPv4 traffic and permits response traffic without accepting unsolicited connections.

    CWhy not this: An egress-only internet gateway supports IPv6, not IPv4.

    DWhy not this: An internet gateway does not translate private-only instance addresses into public IPv4 addresses.

    A public NAT gateway provides outbound IPv4 internet access without allowing unsolicited inbound connections. A direct route to an internet gateway does not provide internet access to instances that have only private IPv4 addresses.

    Open this question
  8. Question 8

    Design Secure Architectures

    An Application Load Balancer forwards requests to EC2 instances on TCP port 8080. How should a solutions architect ensure that the instances accept application traffic only from the load balancer?

    Show the answer

    Correct answerC. Allow port 8080 from the load balancer's security group in the instances' security group.

    AWhy not this: Allowing the VPC CIDR permits other VPC resources, not just the load balancer, to connect.

    BWhy not this: Route tables select routes by destination address, not TCP port, and do not enforce this source restriction.

    CWhy this is right: Referencing the load balancer's security group permits traffic from its network interfaces on the specified port.

    DWhy not this: AWS WAF cannot be associated directly with EC2 instances and does not replace instance security groups.

    A security group reference restricts inbound application traffic to the load balancer's network interfaces. Allowing the VPC CIDR also permits other resources in the VPC to reach the instances.

    Open this question
  9. Question 9

    Design Secure Architectures

    Which AWS service centrally manages multiple AWS accounts and groups them into organizational units?

    Show the answer

    Correct answerA. AWS Organizations

    AWhy this is right: Organizations centrally manages accounts and groups them into organizational units.

    BWhy not this: Resource Access Manager shares supported resources across accounts; it does not organize accounts into organizational units.

    CWhy not this: IAM Identity Center centrally manages workforce access, not the organizational hierarchy of AWS accounts.

    DWhy not this: Control Tower establishes a governed landing zone using Organizations rather than providing the underlying account hierarchy.

    AWS Organizations manages AWS accounts and organizes them into organizational units. AWS Control Tower builds on Organizations to establish and govern a landing zone.

    Open this question
  10. Question 10

    Design Secure Architectures

    An application in a development account must read an S3 bucket in a production account by assuming a production IAM role. Which configuration enables the cross-account role assumption?

    Show the answer

    Correct answerA. Allow the application to assume the role, and configure the role to trust the application's principal.

    AWhy this is right: The caller needs sts:AssumeRole permission, and the target role's trust policy must accept the caller.

    BWhy not this: An SCP cannot grant role-assumption permission, and organization membership alone does not establish role trust.

    CWhy not this: Matching role names and permissions do not establish cross-account trust.

    DWhy not this: Trusting Amazon S3 does not authorize the application's principal to assume the role.

    Cross-account role assumption requires permission for the caller to assume the role and a trust policy that accepts the caller. An SCP sets permission boundaries; it does not grant permission to assume a role.

    Open this question
  11. Question 11

    Design Secure Architectures

    A member account is a delegated administrator for an AWS service, but an inherited SCP explicitly denies an API action needed by its automation role. The role already has AdministratorAccess; how should the organization enable only this role to perform the action?

    Show the answer

    Correct answerB. Revise the denying SCP to exclude the automation role from its deny.

    AWhy not this: SCPs also restrict the root user of a member account.

    BWhy this is right: A targeted exception removes the blocking deny for the role without lifting the restriction for other principals.

    CWhy not this: Additional IAM allows cannot override an explicit SCP deny.

    DWhy not this: An account-level SCP allow cannot override an explicit deny inherited from a parent.

    An explicit SCP deny overrides IAM allows and still applies to delegated administrator member accounts. Excluding the automation role from that deny permits its existing IAM permissions to take effect, assuming no other restrictions.

    Open this question
  12. Question 12

    Design Secure Architectures

    A company uses an external identity provider for workforce authentication and group membership, and needs centrally managed access across AWS accounts without IAM users. Which design automatically synchronizes directory changes and applies consistent, group-based account permissions?

    Show the answer

    Correct answerC. Use IAM Identity Center with SAML authentication, SCIM provisioning, and group assignments to permission sets.

    AWhy not this: Cognito application scopes do not centrally assign workforce permissions across AWS accounts.

    BWhy not this: Separate providers and manual mappings do not provide the required centralized provisioning and permission management.

    CWhy this is right: SAML handles authentication, SCIM synchronizes users and groups, and permission sets define centrally assigned account access.

    DWhy not this: Manual provisioning does not automatically synchronize directory changes from the external identity provider.

    IAM Identity Center supports external SAML authentication, SCIM synchronization of users and groups, and permission-set assignments across accounts. SAML alone provides authentication, not automatic directory provisioning.

    Open this question
  13. Question 13

    Design Secure Architectures

    A mobile application authenticates customers through a social identity provider. Which service should exchange those identities for temporary AWS credentials so customers can access authorized S3 objects directly?

    Show the answer

    Correct answerB. An Amazon Cognito identity pool

    AWhy not this: A user pool issues authentication tokens rather than the AWS credentials needed to sign direct S3 requests.

    BWhy this is right: An identity pool federates identities and obtains temporary AWS credentials through IAM roles.

    CWhy not this: IAM Identity Center manages workforce access rather than customer federation for mobile applications.

    DWhy not this: Per-customer IAM users introduce long-term credentials and do not provide the requested token exchange.

    A Cognito identity pool exchanges supported identity-provider tokens for temporary AWS credentials associated with IAM roles. A user pool authenticates users and issues tokens, but does not itself issue AWS credentials.

    Open this question
  14. Question 14

    Design Secure Architectures

    An application on Amazon EC2 needs Amazon S3 access without stored access keys. What should provide its AWS permissions?

    Show the answer

    Correct answerD. An IAM role attached through an instance profile

    AWhy not this: A gateway endpoint provides connectivity to S3 but does not grant the application an IAM identity.

    BWhy not this: An IAM user access key is a long-term credential that the application would need to store or retrieve.

    CWhy not this: A user pool authenticates application users; it does not supply an EC2 application's AWS service credentials.

    DWhy this is right: An instance profile makes an IAM role's temporary credentials available to applications on the instance.

    An EC2 instance role supplies temporary credentials without storing long-term access keys. An S3 gateway endpoint provides a private network path, not an AWS identity or permissions.

    Open this question
  15. Question 15

    Design Secure Architectures

    An application stores an Amazon RDS database password in a configuration file. The company requires automatic password rotation without deploying new application versions. Which solution BEST meets these requirements?

    Show the answer

    Correct answerA. Store the password in AWS Secrets Manager and configure rotation.

    AWhy this is right: Secrets Manager can rotate supported database credentials and supply the current password to the application at runtime.

    BWhy not this: Encrypting a configuration file protects its contents but does not rotate the database password.

    CWhy not this: Encrypting a deployment package does not rotate credentials or remove their dependence on application deployments.

    DWhy not this: A SecureString parameter protects the stored value but does not provide built-in database password rotation.

    AWS Secrets Manager supports automatic database credential rotation, and applications can retrieve the current secret at runtime. A Systems Manager SecureString parameter encrypts a value but does not provide built-in database password rotation.

    Open this question
  16. Question 16

    Design Secure Architectures

    An application role in account A must directly retrieve a secret in account B that is encrypted with a customer managed KMS key in account B. No relevant permissions exist yet, and no explicit denies apply. Which permission changes are required? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Allow the application role to retrieve the secret in the secret's resource policy.C. Grant the application role GetSecretValue and kms:Decrypt in its identity policy.D. Allow the application role to decrypt with the key in the KMS key policy.

    AWhy this is right: The secret's resource policy must permit the external application role to retrieve its value.

    BWhy not this: The AWS managed key for Secrets Manager cannot be used for this cross-account secret access.

    CWhy this is right: The role needs identity-based permission for both retrieving the secret and decrypting it with the specified key.

    DWhy this is right: The KMS key policy must authorize the external role to use the key for decryption.

    EWhy not this: A secret resource policy cannot grant permission to decrypt data with a separate KMS key.

    Cross-account retrieval requires permission in the role's identity policy, the secret's resource policy, and the customer managed KMS key policy. The AWS managed key for Secrets Manager cannot support this cross-account secret access.

    Open this question
  17. Question 17

    Design Secure Architectures

    EC2 instances in private subnets must access Amazon S3 in the same Region without a NAT gateway or internet gateway. Which solution meets this requirement without hourly endpoint charges?

    Show the answer

    Correct answerD. Create an S3 gateway endpoint and associate the subnet route tables.

    AWhy not this: An Application Load Balancer does not provide a VPC endpoint for accessing the S3 service.

    BWhy not this: A public NAT gateway requires an internet gateway for this path and incurs hourly charges.

    CWhy not this: Interface endpoints provide private access but incur hourly endpoint charges.

    DWhy this is right: A gateway endpoint supplies a private route to S3 without requiring NAT or incurring hourly endpoint charges.

    An S3 gateway endpoint routes same-Region S3 traffic privately through associated route tables and has no hourly endpoint charge. An S3 interface endpoint also supports private access but incurs hourly charges.

    Open this question
  18. Question 18

    Design Secure Architectures

    Which AWS service issues temporary security credentials for federated access to AWS resources?

    Show the answer

    Correct answerB. AWS Security Token Service

    AWhy not this: AWS Secrets Manager stores secrets such as database passwords rather than issuing federated session credentials.

    BWhy this is right: AWS STS issues temporary credentials that authorized federated identities can use to access AWS resources.

    CWhy not this: AWS Resource Access Manager shares supported resources across accounts rather than issuing credentials.

    DWhy not this: AWS Organizations centrally manages AWS accounts and organizational policies, not temporary session credentials.

    AWS Security Token Service (AWS STS) issues temporary security credentials for federated access. AWS Secrets Manager stores and retrieves secrets; it does not issue federated session credentials.

    Open this question
  19. Question 19

    Design Secure Architectures

    Two AWS accounts have independently mapped Availability Zone names in the same Region. An application and a shared appliance must occupy the same physical Availability Zone; what should the architect match across accounts?

    Show the answer

    Correct answerA. Availability Zone IDs

    AWhy this is right: An Availability Zone ID identifies the same physical Availability Zone across AWS accounts.

    BWhy not this: Subnet CIDR blocks define IP address ranges and do not identify physical infrastructure.

    CWhy not this: Independently mapped Availability Zone names can refer to different physical zones across accounts.

    DWhy not this: A regional endpoint identifies a service endpoint for a Region, not a physical Availability Zone.

    Availability Zone IDs consistently identify physical Availability Zones across accounts. Availability Zone names can map to different physical zones in accounts with independently assigned mappings.

    Open this question
  20. Question 20

    Design Secure Architectures

    An application must remain available if one AWS data center loses power, while keeping all resources in one Region. Which placement provides the appropriate infrastructure isolation?

    Show the answer

    Correct answerB. Instances in separate Availability Zones within one Region

    AWhy not this: Separate subnets in one Availability Zone remain exposed to the same zone-level infrastructure failure.

    BWhy this is right: Separate Availability Zones provide independent infrastructure failure domains within the required Region.

    CWhy not this: Separate VPCs provide logical network isolation but can share the same physical failure domain.

    DWhy not this: Separate accounts isolate administration and permissions, not the physical infrastructure within an Availability Zone.

    Separate Availability Zones provide isolated infrastructure with independent power, networking, and connectivity within a Region. Separate subnets in one Availability Zone do not provide protection against a zone-wide infrastructure failure.

    Open this question
  21. Question 21

    Design Secure Architectures

    An application only needs to read objects from one S3 bucket. Which permission scope follows the principle of least privilege?

    Show the answer

    Correct answerD. Read access to the required objects

    AWhy not this: Access to every bucket includes resources the application does not need.

    BWhy not this: Administrator access grants permissions far beyond the application's object-reading requirement.

    CWhy not this: Full bucket access includes unnecessary permissions such as writing and deleting objects.

    DWhy this is right: Read access limited to the required objects grants only the necessary actions and resources.

    Least privilege grants only the actions and resources required for a task. Full access to the required bucket restricts resources but still grants unnecessary write and delete permissions.

    Open this question
  22. Question 22

    Design Secure Architectures

    A company must keep its primary database and disaster recovery replica in separate AWS Regions, both inside the European Union. Which deployment meets this requirement?

    Show the answer

    Correct answerA. Use the Europe (Frankfurt) and Europe (Paris) Regions.

    AWhy this is right: Frankfurt and Paris are separate Regions, and Germany and France are both in the European Union.

    BWhy not this: VPCs give network isolation but keep both copies in the same Region.

    CWhy not this: Availability Zones give isolation within the Frankfurt Region, not separate Regions.

    DWhy not this: Zurich is in Switzerland, which is outside the European Union.

    Europe (Frankfurt) and Europe (Paris) are separate AWS Regions, in Germany and France, both members of the European Union. Availability Zones and VPCs stay inside one Region, and Europe (Zurich) is in Switzerland, which is not in the European Union.

    Open this question
  23. Question 23

    Design Secure Architectures

    A company maintains separate IAM groups for developers and operators. Both groups need the same baseline permissions, which administrators must update centrally without maintaining duplicate policies. What should a solutions architect recommend?

    Show the answer

    Correct answerB. Attach one customer managed policy to both groups.

    AWhy not this: Permissions boundaries do not grant permissions and cannot be attached to IAM groups.

    BWhy this is right: One customer managed policy can provide centrally maintained permissions to multiple IAM groups.

    CWhy not this: IAM groups cannot contain other IAM groups.

    DWhy not this: Inline policies belong to individual identities; separate copies require separate maintenance.

    A customer managed policy can be attached to multiple groups, so one policy update changes their shared baseline permissions. Inline policies belong to a single identity and would require separate updates.

    Open this question
  24. Question 24

    Design Secure Architectures

    A monitoring provider assumes roles in many customers' AWS accounts using the same provider principal. A customer must prevent another customer from tricking the provider into assuming its monitoring role. What should the customer require?

    Show the answer

    Correct answerD. A provider-generated, customer-unique external ID in the trust policy.

    AWhy not this: The shared provider role is used for many customers, so restricting that principal alone does not prevent this attack.

    BWhy not this: A role session name identifies a session but is not the customer-binding control designed for this risk.

    CWhy not this: Requests made for other customers can originate from the same provider network.

    DWhy this is right: Requiring the provider's unique external ID binds role assumption to the intended customer relationship.

    A customer-unique external ID lets the role distinguish the provider's requests for that customer, mitigating the confused deputy problem. Restricting the principal to the provider's shared role does not distinguish among the provider's customers.

    Open this question
  25. Question 25

    Design Secure Architectures

    An application assumes a role whose identity policy allows reading and deleting objects in an S3 bucket. One job needs a session that can only read those objects, without changing the role or affecting other sessions. What should the application do?

    Show the answer

    Correct answerC. Pass a session policy that allows only object reads.

    AWhy not this: A trust policy controls who can assume the role, not which S3 operations the resulting session can perform.

    BWhy not this: A role permissions boundary would constrain the role generally rather than only the selected session.

    CWhy this is right: A session policy narrows that session's permissions without changing the role or other sessions.

    DWhy not this: Replacing the role policy changes the permissions available to other sessions using that role.

    A session policy limits the permissions of the individual assumed-role session to the intersection with the role's permissions. A permissions boundary applies to the role rather than only the selected job's session.

    Open this question
  26. Question 26

    Design Secure Architectures

    Which AWS service issues temporary security credentials when a principal assumes an IAM role?

    Show the answer

    Correct answerD. AWS Security Token Service

    AWhy not this: Secrets Manager stores and retrieves secrets rather than issuing assumed-role credentials.

    BWhy not this: IAM Identity Center manages workforce access rather than serving the STS AssumeRole operation.

    CWhy not this: AWS Organizations manages multiple AWS accounts and organizational policies.

    DWhy this is right: AWS STS returns temporary security credentials when an authorized principal assumes a role.

    AWS Security Token Service issues temporary security credentials for assumed roles. AWS IAM Identity Center manages workforce access but is not the service that issues credentials for the STS AssumeRole operation.

    Open this question
  27. Question 27

    Design Secure Architectures

    A company frequently creates new projects and tags each project's IAM roles and Amazon EC2 instances with a Project value. How can it allow roles to manage only matching instances without creating a separate policy for every project?

    Show the answer

    Correct answerB. Compare principal and resource tags in a shared IAM policy.

    AWhy not this: SCPs limit available permissions; they do not grant access.

    BWhy this is right: Tag conditions can authorize supported EC2 actions when the role's Project tag matches the instance's Project tag.

    CWhy not this: EC2 instances do not support resource-based policies for granting this management access.

    DWhy not this: IAM groups contain IAM users, not IAM roles, and separate groups would not implement the required tag comparison.

    Attribute-based access control uses policy conditions to compare principal tags with resource tags, allowing one policy to serve many projects. IAM groups cannot contain roles and would not provide this tag-based authorization.

    Open this question
  28. Question 28

    Design Secure Architectures

    An application behind an Application Load Balancer must block clients that exceed a per-IP request threshold on /login, while excluding other paths from the count. Which solution meets these requirements with the least operational effort?

    Show the answer

    Correct answerC. Associate an AWS WAF web ACL using a rate-based rule scoped to /login

    AWhy not this: Shield Advanced provides DDoS protection but does not by itself configure path-specific per-IP request thresholds.

    BWhy not this: Network ACLs cannot inspect HTTP paths or automatically enforce application request-rate thresholds.

    CWhy this is right: A scope-down statement limits the rate-based rule's per-IP counting and enforcement to matching login requests.

    DWhy not this: Counting every path can block clients because of requests unrelated to login.

    An AWS WAF rate-based rule can aggregate requests by source IP, while a scope-down statement limits counting to /login. A rule covering all paths would count unrelated requests and could block clients that have not exceeded the login threshold.

    Open this question
  29. Question 29

    Design Secure Architectures

    A dual-stack VPC contains public web subnets and private worker subnets. Workers need outbound internet access over IPv4 and IPv6 without permitting internet-initiated connections; which default routes should the worker subnet route tables use?

    Show the answer

    Correct answerB. IPv4 to a public NAT gateway; IPv6 to an egress-only internet gateway

    AWhy not this: An internet gateway does not give instances with private IPv4 addresses outbound IPv4 internet access.

    BWhy this is right: These routes provide outbound internet access for each address family without enabling internet-initiated connections.

    CWhy not this: An ordinary internet gateway provides an IPv6 path that can support internet-initiated connections.

    DWhy not this: A NAT gateway does not provide native IPv6-to-IPv6 internet access; its IPv6 support uses NAT64 to reach IPv4 destinations.

    Private dual-stack subnets use a public NAT gateway for outbound IPv4 and an egress-only internet gateway for outbound IPv6. An ordinary internet gateway does not provide the required outbound-only IPv6 boundary.

    Open this question
  30. Question 30

    Design Secure Architectures

    Which AWS service provides employees with centralized sign-in and permission management across multiple AWS accounts?

    Show the answer

    Correct answerA. AWS IAM Identity Center

    AWhy this is right: IAM Identity Center provides centralized workforce sign-in and permission assignments across AWS accounts.

    BWhy not this: Secrets Manager stores and manages secrets, not employee sign-in and account assignments.

    CWhy not this: Directory Service provides managed directory capabilities but is not the centralized multi-account access service.

    DWhy not this: Amazon Cognito manages application user identities rather than centralized workforce permissions across AWS accounts.

    AWS IAM Identity Center centrally manages workforce access across AWS accounts. Amazon Cognito primarily provides identity capabilities for users of applications, rather than centralized employee access to AWS accounts.

    Open this question
  31. Question 31

    Design Secure Architectures

    A company requires production and development environments to have no network connectivity between them by default, without relying on security groups or network ACLs. Which design meets this requirement?

    Show the answer

    Correct answerB. Use separate VPCs without interconnections

    AWhy not this: Retaining local routes preserves routing between subnets in the VPC.

    BWhy this is right: Separate VPCs provide independent network boundaries with no connectivity unless explicitly connected.

    CWhy not this: Availability Zones provide failure isolation, not an inherent network boundary within a VPC.

    DWhy not this: Subnets in the same VPC have local routing between them by default.

    Separate VPCs have no private network connectivity unless a connection is configured. Subnets, Availability Zones, and separate route tables within one VPC do not inherently isolate environments because VPC local routing provides connectivity.

    Open this question
  32. Question 32

    Design Secure Architectures

    Which endpoint type provides private access to AWS Secrets Manager through network interfaces with private IP addresses in a VPC?

    Show the answer

    Correct answerC. Interface VPC endpoint

    AWhy not this: Gateway endpoints use route tables and support S3 and DynamoDB, not Secrets Manager.

    BWhy not this: An S3 access point controls access to S3 data, not Secrets Manager.

    CWhy this is right: Interface endpoints provide private IP addresses through network interfaces in selected VPC subnets.

    DWhy not this: A public service endpoint does not provide private network interfaces in the customer's VPC.

    An interface VPC endpoint provides private connectivity through network interfaces in selected subnets. Gateway VPC endpoints use route tables and support Amazon S3 and DynamoDB, not Secrets Manager.

    Open this question
  33. Question 33

    Design Secure Architectures

    An EC2 instance's security group allows inbound HTTPS from clients but has no outbound rules. Network ACLs allow all traffic. What happens to responses for HTTPS connections initiated by those clients?

    Show the answer

    Correct answerA. Responses are allowed by security group connection tracking.

    AWhy this is right: Security groups track connections and allow response traffic for permitted inbound connections.

    BWhy not this: Security groups do not require explicit ephemeral-port rules for responses to permitted inbound traffic.

    CWhy not this: Responses to permitted inbound connections do not require an outbound security group rule for port 443.

    DWhy not this: Stateful response handling applies to permitted connections from external clients as well as VPC clients.

    Security groups are stateful, so responses to allowed inbound traffic are permitted regardless of outbound rules. Explicit outbound ephemeral-port rules are relevant to stateless network ACLs, not security group response traffic.

    Open this question
  34. Question 34

    Design Secure Architectures

    Which inbound security group rule permits standard HTTPS connections to a public web server from any IPv4 address?

    Show the answer

    Correct answerC. Allow TCP port 443 from 0.0.0.0/0

    AWhy not this: UDP port 53 is commonly used for DNS queries, not HTTPS connections.

    BWhy not this: TCP port 22 permits SSH connections, not HTTPS connections.

    CWhy this is right: TCP port 443 permits standard HTTPS connections, and the source range includes all IPv4 addresses.

    DWhy not this: TCP port 80 permits HTTP, not standard HTTPS connections.

    Standard HTTPS connections use TCP port 443, and 0.0.0.0/0 includes all IPv4 addresses. TCP port 80 is used for unencrypted HTTP rather than HTTPS.

    Open this question
  35. Question 35

    Design Secure Architectures

    Application roles can access several Amazon SQS queues through an interface endpoint. Access through this endpoint must be limited to one queue without changing the roles' permissions when they use other paths. What should a solutions architect configure?

    Show the answer

    Correct answerD. A VPC endpoint policy allowing only the queue

    AWhy not this: A permissions boundary would also constrain the roles when they access SQS through other paths.

    BWhy not this: Private DNS controls endpoint name resolution; it does not restrict access to particular queues.

    CWhy not this: Security groups filter network traffic by addresses, protocols, and ports, not SQS queue resources.

    DWhy this is right: An endpoint policy restricts resources accessible through that endpoint while leaving other access paths unchanged.

    A VPC endpoint policy can limit which SQS resources are accessible through that endpoint without changing role permissions on other paths. A permissions boundary limits the role's permissions regardless of the network path used.

    Open this question
  36. Question 36

    Design Secure Architectures

    An application on EC2 must initiate connections only to an RDS for PostgreSQL database on its default port. Which outbound rule on the application's security group provides the least-privilege access?

    Show the answer

    Correct answerB. Allow TCP port 5432 to the database security group

    AWhy not this: Allowing all TCP ports grants more access than the PostgreSQL connection requires.

    BWhy this is right: This limits outbound connections to the PostgreSQL port and interfaces associated with the database security group.

    CWhy not this: TCP port 3306 is the default MySQL port, not the default PostgreSQL port.

    DWhy not this: The VPC CIDR permits access to other VPC destinations on port 5432, exceeding the stated requirement.

    PostgreSQL uses TCP port 5432 by default, and the database security group narrows the destination to its associated network interfaces. Allowing that port to the entire VPC CIDR permits connections to more destinations than required.

    Open this question
  37. Question 37

    Design Secure Architectures

    A central S3 bucket must allow read access to application roles in all current and future accounts in one AWS organization, without maintaining account lists or assuming central roles. The application roles already have identity policies allowing the reads; what should the architect configure?

    Show the answer

    Correct answerD. A bucket policy allowing reads with an aws:PrincipalOrgID condition matching the organization.

    AWhy not this: An SCP sets permission limits; it does not grant cross-account access to an S3 bucket.

    BWhy not this: IAM groups contain IAM users, not roles, and cannot provide cross-account group membership.

    CWhy not this: An explicit account list would require updates when new accounts join the organization.

    DWhy this is right: The organization ID condition scopes the resource-side grant to organization members without maintaining account lists.

    A bucket policy using aws:PrincipalOrgID grants the resource-side permission based on organization membership, including future accounts. Listing account principals requires updates as accounts join, while an SCP does not grant access.

    Open this question
  38. Question 38

    Design Secure Architectures

    Which capabilities does AWS Control Tower provide for multi-account governance? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Establish a governed landing zone.D. Provision accounts through Account Factory.

    AWhy this is right: A landing zone provides a governed multi-account environment with centralized controls.

    BWhy not this: Control Tower does not automatically rotate IAM users' access keys.

    CWhy not this: Control Tower does not synchronize directory passwords across AWS accounts.

    DWhy this is right: Account Factory standardizes provisioning of accounts within the governed environment.

    AWS Control Tower establishes a governed landing zone and provides Account Factory for standardized account provisioning. IAM access key rotation and directory password synchronization are not Control Tower capabilities.

    Open this question
  39. Question 39

    Design Secure Architectures

    An organization-root SCP explicitly denies actions outside approved Regions, but an incident-response role in member accounts now needs access in any Region. Its IAM policy already allows the required actions, and no other policies restrict them; how should the architect enable this exception without relaxing restrictions for other roles?

    Show the answer

    Correct answerD. Add a principal ARN exception for the response role to the root SCP's deny condition.

    AWhy not this: An account-level allow cannot override an explicit deny inherited from the organization root.

    BWhy not this: Additional IAM permissions cannot override an explicit deny in an SCP.

    CWhy not this: Every OU remains under the organization root and inherits its explicit deny.

    DWhy this is right: Excluding the response role from the deny preserves the restriction for other principals while allowing its existing permissions to apply.

    The inherited explicit deny must exclude the incident-response role, typically through an aws:PrincipalArn condition. An allow SCP at an account or OU cannot override an explicit deny inherited from the organization root.

    Open this question
  40. Question 40

    Design Secure Architectures

    A company attaches an SCP denying Amazon EC2 instance termination to its organization root. An administrator in the management account can still terminate instances in that account; what explains this behavior?

    Show the answer

    Correct answerC. SCPs do not restrict principals in the management account.

    AWhy not this: AdministratorAccess cannot override an applicable explicit deny in an SCP.

    BWhy not this: SCPs can restrict IAM roles and root users in member accounts.

    CWhy this is right: Principals in the management account are outside the scope of SCP restrictions.

    DWhy not this: SCPs attached to the organization root are inherited by member accounts; direct attachment is not required.

    SCPs do not restrict users or roles in the AWS Organizations management account. AdministratorAccess does not override SCP restrictions for principals in member accounts.

    Open this question
  41. Question 41

    Design Secure Architectures

    Which services provide managed threat detection for AWS workloads or sensitive-data discovery in Amazon S3? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Amazon MacieE. Amazon GuardDuty

    AWhy not this: AWS WAF filters HTTP requests using web access control rules rather than providing these discovery and detection functions.

    BWhy not this: Amazon Inspector assesses software vulnerabilities and unintended network exposure, not these threat or data discovery functions.

    CWhy this is right: Amazon Macie uses managed detection capabilities to discover sensitive data in S3.

    DWhy not this: Amazon Cognito provides application user authentication and federated access, not threat detection or sensitive-data discovery.

    EWhy this is right: Amazon GuardDuty analyzes supported data sources to detect suspicious and malicious activity.

    FWhy not this: AWS Shield protects against DDoS attacks rather than providing general workload threat detection or sensitive-data discovery.

    Amazon GuardDuty detects threats involving AWS accounts and workloads, while Amazon Macie discovers sensitive data in S3. Amazon Inspector identifies software vulnerabilities and unintended network exposure rather than performing these functions.

    Open this question
  42. Question 42

    Design Secure Architectures

    A company runs a browser-based application behind an Application Load Balancer with an HTTPS listener. Employees must sign in through an existing OpenID Connect provider without adding authentication code to the application. What should the solutions architect configure?

    Show the answer

    Correct answerC. An authenticate-oidc action on the load balancer listener

    AWhy not this: An IP-based rule controls network reachability, not the identity of the employee making a request.

    BWhy not this: AWS WAF filters web requests; it does not validate employee passwords against an OpenID Connect provider.

    CWhy this is right: The listener action delegates sign-in to the OpenID Connect provider before forwarding authenticated requests.

    DWhy not this: An ACM server certificate provides TLS identity and encryption, not employee sign-in through an identity provider.

    An Application Load Balancer can authenticate users through an OpenID Connect provider before forwarding requests to the application. Allowing the provider's IP addresses does not authenticate employees, whose browsers initiate application requests.

    Open this question
  43. Question 43

    Design Secure Architectures

    A subscription website delivers private training videos through CloudFront from a protected origin. Subscribers must access many video files without changing existing file URLs. Which solution BEST meets these requirements?

    Show the answer

    Correct answerD. Issue CloudFront signed cookies after authorization.

    AWhy not this: S3 presigned URLs change the URLs and provide access through S3 rather than the CloudFront distribution.

    BWhy not this: An API key does not provide CloudFront's native authorization for restricted content.

    CWhy not this: Signed URLs add authorization parameters to each URL, conflicting with the requirement to preserve existing URLs.

    DWhy this is right: Signed cookies can authorize access to multiple restricted files while preserving their existing URLs.

    CloudFront signed cookies authorize access to multiple restricted files without changing their URLs. Signed URLs authorize access through URLs containing signature parameters, which conflicts with the unchanged-URL requirement.

    Open this question
  44. Question 44

    Design Secure Architectures

    A mobile application authenticates users through an external OpenID Connect provider and must upload directly to a private S3 bucket using temporary AWS credentials. Each user must access only the S3 prefix named for that user's federated identity, with no backend proxy or individual IAM users. Which design meets these requirements?

    Show the answer

    Correct answerB. Use a Cognito identity pool and scope its role policy to each user's identity ID prefix.

    AWhy not this: A shared long-term key violates the temporary-credential requirement and cannot enforce isolation through client-side checks.

    BWhy this is right: The identity pool provides temporary credentials, and an identity-based prefix condition enforces per-user S3 access.

    CWhy not this: User pool ID tokens are not AWS credentials that S3 accepts to authorize direct uploads.

    DWhy not this: Temporary credentials alone do not isolate users when the role permits access to every user's prefix.

    A Cognito identity pool exchanges supported identity-provider tokens for temporary AWS credentials. An identity-aware IAM policy can restrict those credentials to the user's prefix; a shared authenticated role with unrestricted prefix access does not enforce user isolation.

    Open this question
  45. Question 45

    Design Secure Architectures

    A production role has overly broad permissions, and representative application activity is recorded in AWS CloudTrail. An architect needs a draft replacement policy based on API actions actually used, rather than only service-level last-accessed information; which approach BEST meets this requirement?

    Show the answer

    Correct answerA. Generate a policy using IAM Access Analyzer

    AWhy this is right: Policy generation analyzes CloudTrail activity to draft permissions that can be reviewed and refined.

    BWhy not this: Service last-accessed information identifies service usage but does not generate the required action-level policy.

    CWhy not this: Policy validation checks policy grammar and security practices, not which permissions the application actually used.

    DWhy not this: Configuration history tracks resource configuration changes rather than generating permissions from API usage.

    IAM Access Analyzer policy generation uses CloudTrail activity to draft permissions based on observed use. IAM service last-accessed information helps identify unused services but does not generate an action-level policy from API activity.

    Open this question
  46. Question 46

    Design Secure Architectures

    A company moves containers from Amazon ECS on EC2 to AWS Fargate, retaining its own images and application libraries. Its security team requires patched hosts and vulnerability-free application dependencies; how should patching responsibilities change?

    Show the answer

    Correct answerD. AWS takes over host patching; the company retains container-image and application-library patching.

    AWhy not this: Fargate host patching belongs to AWS; customer-supplied images and libraries remain customer responsibilities.

    BWhy not this: The company no longer patches Fargate hosts, and AWS does not maintain its application libraries.

    CWhy not this: AWS manages Fargate hosts, but customer-supplied application libraries remain the customer's responsibility.

    DWhy this is right: AWS patches the underlying Fargate hosts, while the company maintains its container images and dependencies.

    Fargate transfers management of the underlying hosts to AWS, but customers remain responsible for the software in their container images. Managed compute does not transfer responsibility for application libraries to AWS.

    Open this question
  47. Question 47

    Design Secure Architectures

    Which responsibilities belong to AWS under the shared responsibility model? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Maintaining physical server hardwareB. Controlling physical access to data centersC. Maintaining data center cooling systems

    AWhy this is right: AWS maintains the physical servers underlying its cloud services.

    BWhy this is right: AWS controls physical access to the facilities that house its infrastructure.

    CWhy this is right: Cooling systems are part of the physical infrastructure operated and secured by AWS.

    DWhy not this: Customers determine the sensitivity and classification of the data they store.

    EWhy not this: Customers determine which actions their IAM users may perform.

    AWS maintains the physical facilities and hardware that run its services, including cooling and physical access controls. Customers remain responsible for classifying their data and defining their IAM users' permissions.

    Open this question
  48. Question 48

    Design Secure Architectures

    A company deploys an Amazon RDS database in a VPC and assumes AWS will restrict inbound database connections to its application servers. Who must configure that restriction, and how?

    Show the answer

    Correct answerC. The company, by configuring the database security group

    AWhy not this: Operating system maintenance does not define which customer application servers may connect to the database.

    BWhy not this: Physical access controls protect infrastructure, not the customer's database network-access rules.

    CWhy this is right: Customers define security group rules that permit database connections from authorized application servers.

    DWhy not this: Availability Zone selection determines placement, not which application servers may connect.

    Customers configure security groups to control network access to their RDS databases. AWS manages the underlying host operating system, but that responsibility does not include defining the customer's permitted application connections.

    Open this question
  49. Question 49

    Design Secure Architectures

    An application on Amazon EC2 stores an IAM user's access keys in a configuration file to call Amazon DynamoDB. Which change removes stored long-term credentials while preserving unattended access?

    Show the answer

    Correct answerA. Attach an IAM role through an instance profile

    AWhy this is right: An instance profile makes automatically rotated role credentials available to the application.

    BWhy not this: Encrypting the AMI does not remove the long-term access keys or their rotation requirements.

    CWhy not this: An IAM console password cannot replace access keys for signed DynamoDB API requests.

    DWhy not this: Console sign-in MFA does not replace the application's stored API credentials.

    An EC2 instance profile supplies an IAM role's temporary credentials, which AWS rotates automatically. Encrypting an AMI may protect stored keys at rest but does not eliminate long-term credentials.

    Open this question
  50. Question 50

    Design Secure Architectures

    A company connects its data center to an AWS Transit Gateway through an AWS Direct Connect transit virtual interface. It requires IPsec encryption from its customer gateway to the transit gateway, with no VPN tunnel traffic traversing the public internet. Which solution meets these requirements?

    Show the answer

    Correct answerC. Use a private IP Site-to-Site VPN over Direct Connect.

    AWhy not this: MACsec protects the Direct Connect Ethernet link, not the required customer-gateway-to-transit-gateway IPsec path.

    BWhy not this: An internet-based public IP VPN violates the requirement that VPN tunnel traffic avoid the public internet.

    CWhy this is right: Private IP VPN provides IPsec tunnels to the transit gateway using the Direct Connect path rather than the public internet.

    DWhy not this: A private virtual interface neither provides IPsec encryption nor replaces the transit interface's transit gateway connectivity.

    Private IP Site-to-Site VPN uses Direct Connect as transport and terminates IPsec tunnels at the transit gateway without public IP endpoints. MACsec encrypts the Direct Connect link segment, not an IPsec tunnel from the customer gateway to the transit gateway.

    Open this question