All practice questions
1964 questions
A solutions architect is designing a deployment strategy for a new microservice that will run on AWS Fargate. The business requirements state that any new version of the microservice must receive traffic gradually to monitor for initial errors before all traffic is shifted. If the new version fails health checks, the deployment must automatically roll back. Which two AWS CodeDeploy deployment configurations should the solutions architect choose to meet these requirements? (Select two.)
Select all that apply
A retail corporation is designing a hybrid DNS infrastructure across its on-premises data centers and multiple AWS accounts. The network architecture uses an AWS Transit Gateway to interconnect all VPCs. In the Network Services account, the team has configured a Route 53 Private Hosted Zone (PHZ) named `retail.internal` and associated it with a Hub VPC. The Hub VPC contains a Route 53 Resolver Inbound Endpoint. The team wants to ensure that all spoke VPCs in different member accounts and the on-premises servers can resolve DNS queries for `retail.internal`. Which of the following is the most operationally efficient method to satisfy these resolution requirements?
An enterprise manages a multi-account environment under AWS Organizations with consolidated billing. The environment contains a Management account, a Shared Services Network account, a Security account, and several Line of Business (LOB) member accounts grouped into Production and Development/Test Organizational Units (OUs). A solutions architect must design a solution to meet the following requirements:
1. Share VPC subnets from the central Shared Services Network account to the LOB member accounts to enable application deployments while preventing LOBs from creating their own VPCs or internet gateways.
2. Centrally log all API activity across all accounts to a single S3 bucket in the Security account, ensuring all logs are encrypted at rest using a customer-controlled KMS key and that log integrity is validated.
3. Apply Compute Savings Plans purchased in the Management account only to production workloads in the Production OU, ensuring development and testing workloads in the Development/Test OU do not receive the discount benefits.
Which TWO architectural steps must the solutions architect take to meet these requirements?
Select all that apply
An enterprise manages its multi-account environment using AWS Organizations. The solutions architect needs to restrict member accounts in the 'Workloads' Organizational Unit (OU) so they can only launch EC2 instances of type `t3.micro` or `t3.small`. Developers in these member accounts already have the `AdministratorAccess` managed IAM policy attached to their roles. The solutions architect wants to implement this restriction with minimal administrative overhead. Which of the following approaches should the solutions architect implement?
A company is using AWS Organizations to manage multiple AWS accounts. The security team wants to centralize auditing by collecting AWS CloudTrail logs from all member accounts into a single Amazon S3 bucket located in a dedicated Security account. The logs must be encrypted at rest, and the configuration must minimize management overhead.
Which of the following steps are required to implement this solution? (Select TWO.)
Select all that apply
A corporate retail conglomerate is designing a hybrid DNS architecture across a multi-account AWS environment managed by AWS Organizations. The environment is connected to an on-premises network via AWS Transit Gateway. A central Shared Services account hosts a Route 53 Private Hosted Zone (PHZ) for `shared.retail.internal`. The on-premises servers host the DNS zone `onprem.retail.internal`. Spoke VPCs in multiple member AWS accounts host individual application workloads and need to resolve both `shared.retail.internal` and `onprem.retail.internal`. Additionally, on-premises clients must be able to resolve `shared.retail.internal`. The company wants to minimize resource duplication, endpoint costs, and administrative overhead. Which combination of steps will meet these requirements?
An administrator is configuring single sign-on (SSO) integration between an on-premises SAML 2.0 Identity Provider (IdP) and an AWS account. The administrator creates an IAM role to represent the federated users. Which action must be specified in the trust policy of this IAM role to allow the SAML provider to authenticate users?
A solutions architect is configuring a multi-account environment using AWS Organizations. The architect wants to prevent users in member accounts from stopping or deleting AWS CloudTrail. The architect attaches a Service Control Policy (SCP) to the organization's Root OU that explicitly denies the `cloudtrail:StopLogging` and `cloudtrail:DeleteTrail` actions. Which of the following is required for an IAM user in a member account to successfully create and manage a new CloudTrail trail in their own account?
A global financial technology enterprise manages a large multi-account environment using AWS Organizations. The company has a strict governance policy for its Compliance_OU, which houses accounts processing payment transactions, and its Developer_OU, which hosts sandbox environments. The Solutions Architect must enforce the following security requirements:
1. No user or role within the member accounts may delete or disable corporate AWS Config rules.
2. Developers in the Developer_OU must be allowed to create IAM roles and policies for testing, but they must be prevented from accessing any resources tagged with Confidentiality: High.
3. Accounts in the Compliance_OU must only be permitted to run services in the us-east-1 and us-west-2 regions, and must be restricted to using Amazon EC2, Amazon RDS, and Amazon DynamoDB.
Which combination of Service Control Policies (SCPs) and IAM configurations must the Solutions Architect implement to meet these requirements with the least administrative overhead?
A logistics company is implementing a centralized identity strategy for its AWS multi-account environment. The company hosts its user directory in a third-party SAML Identity Provider (IdP). To streamline administrative overhead, they want to establish direct console federation to target AWS member accounts. An administrator configures the SAML metadata in the member accounts and defines an IAM role named `LogisticsOperatorRole` for the users. However, when operators attempt to log in through the IdP portal, they are blocked with an authentication error. An analysis of the trust relationships reveals that the authentication handshake is failing at the Security Token Service (STS) endpoint. Which configuration must the administrator apply to the `LogisticsOperatorRole` trust policy to resolve this issue?
A company uses AWS Organizations to manage a multi-account environment. The Network team has created a central VPC in a dedicated Network account. They need to share several private subnets from this VPC with application teams in other member accounts of the organization. The application teams deploy workloads consisting of Amazon EC2 instances, Amazon ECS tasks running on AWS Fargate, and AWS Lambda functions. All workloads must encrypt their data at rest, and the encryption keys must be managed centrally in a Security account. Additionally, the company wants to optimize compute costs across all accounts, including the serverless runtimes. Which of the following architectural strategies should the Solutions Architect implement to meet these requirements?
A company implements a multi-account strategy using AWS Organizations. The IT security team wants to configure federation with an external SAML 2.0 Identity Provider (IdP) to allow users to authenticate and directly access resources in a shared services account and multiple production accounts. The solutions architect needs to create an IAM role in each AWS account that will be assumed by the federated users. Which configuration must the solutions architect apply to the trust relationship of the IAM roles to establish trust with the SAML IdP and ensure that only authenticated federated users from the company's IdP can assume these roles?
A retail company has three AWS accounts, each with a single VPC in the us-east-1 Region. The company wants to establish hybrid connectivity between all three VPCs and its on-premises data center using a single AWS Direct Connect connection. The architecture must allow the VPCs to communicate with the on-premises network and with each other. Which architecture achieves this with the least administrative effort?
A company is designing a network architecture to connect spoke VPCs spread across AWS accounts in a single AWS Region. The architecture must support low-latency, any-to-any communication between the VPCs and provide a highly available, dedicated connection to their on-premises data center. The solutions architect must minimize administrative overhead and ensure that routing scales easily as new spoke VPCs are added. Which of the following architectures meets these requirements?
A company has multiple AWS accounts in an AWS Organization. A Solutions Architect needs to design a hybrid network architecture that connects all VPCs to the company's on-premises data center using an existing AWS Direct Connect connection. The architecture must minimize administrative overhead and support transitive routing between all VPCs and the on-premises network. Which two configuration steps should the Solutions Architect perform to meet these requirements? (Select TWO.)
Select all that apply
A multinational enterprise is building a multi-account landing zone using AWS Organizations. The solutions architect must establish a governance framework that enforces security guardrails while maintaining operational delegation. The requirements are as follows:
- Centralized security services, such as Amazon GuardDuty, must be managed by a designated Security team account, avoiding any administrative actions in the Organization's management account.
- Service Control Policies (SCPs) must restrict member accounts in the 'Workloads' Organizational Unit (OU) from deploying resources in unauthorized AWS Regions, while ensuring that the SCPs do not inadvertently grant permissions to local IAM identities.
Which of the following actions should the solutions architect take to meet these requirements? (Select TWO.)
Select all that apply
An enterprise manages a multi-account environment under AWS Organizations. The environment consists of a Management account, a Security Logging account, a Shared Network account, and several Core Application accounts grouped under a Production OU, as well as Non-Production accounts under a Non-Production OU. The architecture team must implement a solution that satisfies the following requirements:
1. Network Sharing: The Shared Network account must host a central VPC. Subnets from this VPC must be shared with the Core Application accounts using AWS Resource Access Manager (RAM). The application teams must be able to deploy Amazon EC2 instances and AWS Fargate tasks into these subnets, but they must be prevented from modifying any subnet configurations or sharing resources themselves.
2. Centralized Auditing: AWS CloudTrail must be configured organization-wide to deliver logs to a single Amazon S3 bucket in the Security Logging account. The logs must be encrypted at rest using an encryption key that satisfies compliance standards requiring key rotation and granular cross-account access control.
3. Cost Optimization: The company has purchased Compute Savings Plans in the Management account. To maximize cost efficiency, these savings must only apply to workloads running in the Management account and the Production OU (Core Application accounts). Under no circumstances should the savings apply to the Non-Production OU accounts.
4. Data Protection: The S3 bucket policy in the Security Logging account must enforce that only CloudTrail can write logs, and only from within the AWS Organization.
Which of the following strategies must a Solutions Architect implement to meet these requirements?
1. In the Shared Network account, create the VPC and subnets. Use AWS RAM to create a resource share containing the subnets, associate it with the Production OU, and ensure organization sharing is enabled in the AWS RAM settings. Attach a Service Control Policy (SCP) to the Production OU that denies 'ec2:DeleteSubnet', 'ec2:ModifySubnetAttribute', and 'ram:CreateResourceShare' to prevent unauthorized modifications or resource sharing.
2. In the Security Logging account, create an Amazon S3 bucket and a customer managed KMS key (CMK). Configure the S3 bucket policy to allow 's3:PutObject' from the CloudTrail service principal with a condition checking that the 'aws:PrincipalOrgID' matches the Organization ID. Configure the KMS key policy to allow 'kms:GenerateDataKey*' and 'kms:Decrypt' to the CloudTrail service principal with the same organization condition. Create an organization trail in the Management account that logs to this central bucket using the CMK.
3. In the Billing Preferences of the Management account, disable Savings Plans discount sharing for all member accounts in the Non-Production OU, while keeping discount sharing enabled for the Management account and the accounts in the Production OU.
1. In the Shared Network account, create the VPC and subnets. Use AWS RAM to create a resource share for the subnets and associate it with the Production OU. Attach an SCP to the Production OU that uses an Allow effect for the 'ram:AssociateResourceShare' and 'ec2:RunInstances' actions to grant the application teams the required permissions.
2. Configure an organization-wide CloudTrail trail in the Management account to deliver logs to an S3 bucket in the Security Logging account. Enable default S3 bucket encryption using the AWS managed KMS key (aws/s3) to simplify cross-account KMS key access and avoid custom key policy management.
3. Purchase EC2 Instance Savings Plans in the Management account. In the Management account's Billing Preferences, disable Savings Plans discount sharing globally, and purchase Compute Savings Plans directly in the Non-Production OU accounts, expecting the EC2 Instance Savings Plans to still apply to Fargate tasks in the Production OU.
1. In the Shared Network account, create the VPC and subnets. Use AWS RAM to share the subnets with the Production OU. Attach an SCP to the Production OU that denies 'ec2:DeleteSubnet' and 'ec2:ModifySubnetAttribute'.
2. In the Security Logging account, create an S3 bucket and a customer managed KMS key (CMK). Configure the S3 bucket policy to grant write access only to the Management account's root user principal, expecting the Management account to transitively authorize CloudTrail to deliver logs from all member accounts. Configure the organization-wide CloudTrail trail to log to this bucket using the CMK.
3. Purchase EC2 Instance Savings Plans in the Management account. In the Billing Preferences of the Management account, disable Savings Plans discount sharing for the Non-Production OU accounts, expecting the EC2 Instance Savings Plans to automatically apply to the EC2 and Fargate workloads in the Production OU.
1. In the Shared Network account, create the VPC and subnets. Use AWS RAM to create a resource share for the subnets, and attempt to share them with external partner accounts by specifying their AWS Account IDs, without enabling the sharing with external entities setting in the AWS RAM console settings.
2. In the Security Logging account, create an S3 bucket and a customer managed KMS key (CMK). Configure the S3 bucket policy to authorize the IAM roles of all individual application accounts to write directly to the bucket path. Configure each application account to run its own local CloudTrail trail that delivers logs to this S3 bucket using the CMK.
3. Disable consolidated billing in AWS Organizations. Purchase Compute Savings Plans in the Management account and configure cross-account IAM roles to allow production application accounts to consume the compute discounts.
A financial enterprise is designing a multi-account hybrid network to connect its on-premises data center to spoke VPCs distributed equally across the `us-east-1` and `us-west-2` Regions. The design must satisfy the following requirements:
- Hybrid Connectivity: Primary high-bandwidth path via a AWS Direct Connect (DX) connection terminating near `us-east-1`. Backup connectivity using an AWS Site-to-Site VPN over the internet. Traffic must automatically fail over to the VPN if the DX connection fails.
- Routing: Inter-VPC communication across both regions must use the AWS private backbone. On-premises must access VPCs in both regions, preferring the DX path.
- Centralized Egress: All internet-bound traffic from all spoke VPCs must route through a centralized Security VPC in `us-east-1`. The egress path must be highly available and resilient to Availability Zone (AZ) failures.
- DNS Resolution: A single Route 53 Private Hosted Zone (PHZ) in a Shared Services account must be resolvable by all AWS resources in all VPCs and by on-premises clients.
Which architecture meets these requirements while ensuring correct routing, high availability, and DNS resolution?
An enterprise uses AWS Organizations to manage a multi-account structure including Production, Development, and Security member accounts. The identity team wants to implement single sign-on (SSO) using their on-premises Shibboleth SAML 2.0 Identity Provider (IdP) to allow database administrators (DBAs) to manage Amazon Aurora clusters across all member accounts. The solution must support dynamic session duration requests up to 12 hours specified by the IdP. The security department has attached Service Control Policies (SCPs) to all member Organizational Units (OUs) that permit rds:* actions. Which configuration strategy must the solutions architect implement to successfully authenticate the DBAs and grant them the required permissions?
An organization has multiple member accounts managed under AWS Organizations. The security team wants to enable a single AWS CloudTrail trail that automatically collects API activity logs across all current and future member accounts, delivering them to a centralized Amazon S3 bucket located in a dedicated Security account. Which configuration steps must a solutions architect perform to implement this centralized logging solution?