All practice questions
1964 questions
An enterprise has a multi-account AWS Organizations structure. An application hosted on Amazon EC2 instances in private subnets of a production VPC needs to read and write sensitive files in an Amazon S3 bucket. Currently, the S3 bucket is configured with default encryption using the AWS-managed key (aws/s3). The production VPC is connected to an on-premises data center via AWS Transit Gateway.
The security team has established the following new security mandates for this workload:
1. All S3 bucket access must be restricted to the production VPC, preventing public internet access or access from other VPCs.
2. The S3 data must be encrypted using a key that supports rotation and cross-account access delegated to a central security account.
3. On-premises client machines must be able to securely access the S3 bucket through the Transit Gateway connection and resolve the bucket's DNS names.
Which two actions should the solutions architect take to meet these requirements? (Select two.)
Select all that apply
A company runs a high-traffic e-commerce application on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The application uses an Amazon RDS for PostgreSQL DB instance configured in a Multi-AZ deployment. During scheduled flash sale events, the application experiences severe performance issues. Database metrics show that CPU utilization on the primary DB instance spikes to and read latency increases significantly. Additionally, during the first few minutes of a flash sale, users experience HTTP 502 Bad Gateway and 504 Gateway Timeout errors, even though the Auto Scaling group begins launching new instances. Which combination of actions will resolve these performance bottlenecks?
A global telematics SaaS platform has a multi-account AWS architecture. The core application backend runs on Amazon EC2 instances in private subnets across multiple Availability Zones in a Spoke VPC in ``. The application is deployed behind an Application Load Balancer (ALB). The Spoke VPC connects to a Shared Services VPC and an on-premises data center via an AWS Transit Gateway.
The application resolves internal endpoints using a Route 53 Private Hosted Zone (PHZ) hosted in the Shared Services VPC.
The platform experiences two recurring issues:
1. Every morning at ``, a sudden burst of vehicle telemetry data causes immediate connection timeouts and latency spikes for users, which gradually resolve after `` minutes.
2. Intermittent DNS resolution failures occur when the application attempts to resolve service names in the Shared Services VPC.
The company requires a solution that minimizes latency, prevents dropped connections during traffic spikes, and ensures highly available, private DNS resolution.
Which TWO actions should the Solutions Architect recommend to optimize performance and resolve these issues?
Select all that apply
A financial services firm hosts its transactional ledger on Amazon DynamoDB tables within a Production AWS account. The tables currently use AWS owned keys for encryption at rest. To meet new compliance requirements, the solutions architect must enhance data protection by implementing customer-managed keys with automatic key rotation, and automated cross-account backups to a centralized, read-only Security account within AWS Organizations. The design must ensure that administrators in the Production account cannot modify or delete the copied backups. Which combination of actions should the solutions architect take to meet these compliance requirements? (Select TWO.)
Select all that apply
An online education SaaS provider manages its multi-account environment using AWS Organizations. Student record archives containing personally identifiable information (PII) are stored in an Amazon S3 bucket within each regional business unit's AWS account. Currently, these S3 buckets are encrypted using the default AWS managed key (aws/s3). The compliance team in a centralized Security account needs to audit these records by running read-only analysis tools that access the buckets directly. The solutions architect must enhance the data protection strategy to enforce encryption using keys that support automatic rotation, while allowing the compliance team's read-only tools to decrypt and audit the data. Which combination of actions will meet these requirements? (Select TWO.)
Select all that apply
A company is designing a new global relational Online Transaction Processing (OLTP) application. The application will be deployed in a primary AWS Region (us-east-1) and a secondary AWS Region (us-west-2). The database must support a local write latency of less than 20 ms in the primary region, and a read latency of less than 5 ms in both regions. The disaster recovery strategy must achieve a Recovery Time Objective (RTO) of less than 1 minute and a Recovery Point Objective (RPO) of less than 2 seconds. Additionally, all database storage must be encrypted at rest using encryption keys that support automatic rotation and can be shared with a central auditing AWS account.
Which database and storage strategy meets these requirements with the lowest operational overhead?
An enterprise is planning to migrate a three-tier application to AWS within a strict 6-month timeline. The application components and constraints are as follows:
* Web Tier: IIS web servers currently running on Windows Server 2012 R2. The enterprise wants to upgrade the operating system to Windows Server 2022 during the migration to maintain support, but lacks developer capacity to perform any application code modifications.
* Database Tier: An on-premises Oracle Database 12c instance. To eliminate licensing costs, the enterprise wants to migrate to Amazon Aurora PostgreSQL and has hired a systems integrator to rewrite the stored procedures and application database access code.
* Reporting Tier: A proprietary application running on legacy Solaris SPARC hardware. The vendor is defunct, the application cannot run on x86 architectures, and rebuilding it will take 18 months. The application is only used to generate historical quarterly archives, and the enterprise can extend the physical hardware lease on-premises.
Which combination of migration strategies (7 Rs) represents the most appropriate path for each tier?
A financial technology company has an existing application running in a production AWS account. The application stores daily payment transaction audit files in an Amazon S3 bucket. Currently, the bucket is configured with default server-side encryption using the AWS managed key (`aws/s3`). For audit compliance, a third-party auditing firm needs to retrieve these files daily from their own AWS account using a dedicated IAM role. A solutions architect must configure the environment to allow this cross-account access while maintaining data protection standards. Which configuration changes will meet these requirements?
An enterprise manages a web application infrastructure deployed via AWS CloudFormation. The stack includes an Auto Scaling Group (ASG) of Amazon EC2 instances behind an Application Load Balancer (ALB). The instances use AWS Systems Manager State Manager to run an association that installs security agents and configures application dependencies, which takes approximately 8 minutes.
During a recent traffic spike, the enterprise faced two major issues:
1. The ASG rapidly launched multiple new instances. However, because the instance bootstrapping took longer than the default cooldown period, the ASG continuously launched unnecessary instances before the initial ones could start serving traffic, exhausting the regional vCPU quota. Additionally, new instances were registered with the ALB and began receiving traffic before the State Manager association completed, causing client request failures.
2. A subsequent CloudFormation stack update failed and rolled back because operators had manually adjusted security group rules and EC2 instance types directly in the console to mitigate the traffic spike.
Which design strategy should a solutions architect implement to automate deployment, secure configuration compliance, and resolve the drift issues?
A media company runs a critical content delivery application on a fleet of Amazon EC2 instances. The application writes log data to `/var/log/app/access.log`. To manage local disk space, a log rotation utility runs hourly, renaming the active file to `/var/log/app/access-YYYYMMDD-HH.log` and creating a new empty `/var/log/app/access.log` file. The company uses the Unified CloudWatch Agent to stream these logs to Amazon CloudWatch Logs. During testing, log ingestion into CloudWatch Logs stops immediately after the first hourly log rotation completes. Which action should the Solutions Architect take to resolve this issue and ensure continuous log ingestion?
An enterprise manages its multi-account environment using AWS Organizations. The central DevOps team uses AWS CloudFormation StackSets to deploy baseline logging infrastructure, which consists of an Amazon S3 bucket and an AWS KMS Customer Managed Key (CMK) used to encrypt the bucket, to all member accounts in a specific Organizational Unit (OU). Recently, local administrators in member accounts have manually modified the S3 bucket policies and KMS key policies to grant permissions to local application roles, causing security configuration drift and audit failures. The Solutions Architect must design a solution that automatically detects this configuration drift, remediates the resources to match the approved CloudFormation baseline, and prevents local administrators from disabling the detection or remediation mechanisms. Which two of the following configuration and governance actions should the Solutions Architect implement to achieve this goal?
Select all that apply
An enterprise manages its multi-account environment using AWS Organizations. The central DevOps team uses AWS CloudFormation StackSets to deploy and update a standard security baseline OU-wide, which includes configuration for an Amazon S3 logging bucket and approved EC2 instance types. A security audit reveals that several member accounts have manually disabled S3 Block Public Access and launched unauthorized EC2 instance types. The enterprise wants to implement a solution that detects and automatically remediates this configuration drift without affecting other resources, and prevents future unauthorized changes while allowing local administrators to manage approved services. Which two actions should the Solutions Architect take to meet these requirements? (Select TWO.)
Select all that apply
An enterprise operates a legacy web application in a single AWS account. The application's compute tier consists of Amazon ECS tasks running on AWS Fargate across three Availability Zones in the us-east-1 Region. Outbound API requests from the ECS tasks are routed to the internet through a single NAT Gateway located in a public subnet in Availability Zone us-east-1a. The data tier is hosted on a single-region Amazon Aurora MySQL DB cluster.
Recently, an outage in us-east-1a rendered the NAT Gateway unavailable, which disrupted outbound connections for ECS tasks in all three Availability Zones. To prevent future outages and enhance disaster recovery (DR) capabilities, the solutions architect must modify the architecture to achieve a recovery time objective (RTO) of 15 minutes and a recovery point objective (RPO) of 5 minutes in a secondary region (us-west-2).
Which of the following actions should the solutions architect take to meet these requirements? (Select TWO.)
Select all that apply
An enterprise is designing a new multi-VPC environment in the `eu-west-1` Region. The architecture consists of three spoke VPCs (`vpc-finance-prod`, `vpc-hr-prod`, and `vpc-shared-services`) connected via an AWS Transit Gateway. The network design must satisfy the following requirements:
- Establish a primary, high-bandwidth connection using a dedicated AWS Direct Connect connection via a Direct Connect Gateway, and a backup AWS Site-to-Site VPN connection over the internet.
- Prevent asymmetric routing between the on-premises corporate network and AWS.
- Ensure secure, highly available, and cost-effective outbound internet egress for resources in all three VPCs.
- Provide private DNS resolution for a Private Hosted Zone (`corp.internal`) hosted in the `vpc-shared-services` account to all resources across the three VPCs.
Which of the following configuration steps should the solutions architect implement to satisfy these requirements? (Select TWO.)
Select all that apply
An esports platform manages live matchmaking lobby states and real-time player leaderboards using an Amazon RDS for MySQL Multi-AZ DB instance. During high-concurrency tournament events, the database experiences severe write contention and lock waits on the lobby tables, causing API response times to exceed 5 seconds and dropping active player sessions. The lobby state data is updated frequently, requires sub-millisecond read/write latency, and must remain available across Availability Zones with automatic failover to prevent tournament disruption. The platform also requires advanced sorting capabilities to compute real-time leaderboards.
Which architectural modification most efficiently addresses these performance and availability requirements?
A company provides real-time financial market analytics through a multi-tier API hosted on AWS. The application runs on Amazon EC2 instances managed by an Auto Scaling Group (ASG) behind an Application Load Balancer (ALB). The instances must fetch external market data feeds via the internet, which currently routes through a single NAT Gateway deployed in a public subnet of a single Availability Zone (AZ).
During unscheduled economic announcements, the platform experiences sudden traffic surges of up to the baseline within 2 minutes. This leads to HTTP 503 and 504 errors on the ALB, and outbound API calls fail completely if the AZ containing the NAT Gateway suffers an outage.
An audit of the environment reveals the following:
* The EC2 instances require exactly to download configurations, compile proprietary analytical libraries, and fully initialize.
* The ASG uses a Target Tracking scaling policy based on Average CPU Utilization, with the default cooldown set to and the instance warmup set to .
* The ALB health check is configured as a TCP check on port 80, which succeeds within of instance launch (as soon as the web daemon starts), before library compilation is complete.
* During scaling events, the ASG over-provisions instances rapidly, followed by aggressive scale-in actions that terminate instances before they process any traffic.
Which combination of architectural modifications will resolve the availability, scaling, and fault tolerance issues?
An enterprise has a multi-account AWS structure managed via AWS Organizations. The production account hosts an Amazon S3 bucket containing sensitive tracking telemetry. Applications running on Amazon EC2 instances in private subnets of spoke VPCs in separate member accounts need to write data to this bucket. The data must be encrypted at rest using a customer managed AWS KMS key in the production account, and network traffic must not traverse the public internet. Which combination of actions should the Solutions Architect implement to meet these requirements while adhering to the principle of least privilege? (Select TWO.)
Select all that apply
An enterprise is auditing its multi-account AWS environment to strengthen network and identity security. The environment consists of a central logging AWS account (Account A) and a production member account (Account B). Applications running in Account B currently write log files to an Amazon S3 bucket located in Account A. The S3 bucket is encrypted using the default AWS managed key (`aws/s3`), and the bucket policy allows wildcard access (`"Principal": "*"`) filtered by a condition restricting access to the organization's ID.
To improve the security posture, the company wants to implement the following changes:
1. Enforce encryption of the logs using a Customer Managed Key (CMK) that supports key rotation and cross-account access.
2. Restrict bucket access strictly to a specific IAM role (`AppLogRole`) in Account B.
3. Ensure all logging traffic is routed privately and securely, preventing access to the bucket from outside a specific VPC interface endpoint (`vpce-12345678`) deployed in Account B.
Which combination of actions will meet these security requirements?
An enterprise is planning to migrate a three-tier application to AWS. A solutions architect has compiled the following inventory and migration requirements:
1. A legacy billing tool runs on an old on-premises mainframe system. Due to complex physical hardware integrations, this system cannot be virtualized or migrated to the cloud, but the business must continue using it for compliance reporting for the next years.
2. The main application database runs on an on-premises Microsoft SQL Server. The enterprise wants to reduce database administration overhead, such as patching and backups, but does not want to convert the schema or rewrite any application SQL code. They plan to move this database to Amazon RDS for SQL Server.
3. The web application tier consists of a Java application running on Apache Tomcat. The development team wants to package this application into Docker containers and run it on Amazon ECS on AWS Fargate to simplify scaling and infrastructure management, without modifying the application code.
Which of the following migration strategies represent the correct mappings for these components under the AWS migration framework? (Select TWO.)
Select all that apply
An enterprise is designing a new multi-account network topology in the `ap-southeast-1` region. The architecture includes two spoke VPCs, `vpc-ap-southeast1-frontend` (CIDR ) and `vpc-ap-southeast1-backend` (CIDR ), and a centralized egress VPC, `vpc-ap-southeast1-egress` (CIDR ). An on-premises data center must connect to the VPCs via a 10 Gbps AWS Direct Connect connection. The architecture has the following constraints:
1. Spoke VPCs must not have direct internet access; all outbound internet traffic () must route through the egress VPC, which must be resilient to Availability Zone outages.
2. Spoke VPCs must resolve DNS queries for `corp.internal`, which is a Route 53 Private Hosted Zone managed in a separate Shared Services AWS account.
3. Administrative overhead must be minimized.
Which network architecture meets these requirements while satisfying all constraints?