All practice questions
1462 questions
A solutions architect is configuring network security for Amazon EC2 instances in a VPC. The instances must receive inbound HTTPS traffic from the internet and be able to send outbound requests to download updates. Which two statements correctly describe the behavior of security groups and network access control lists (network ACLs) for this traffic? (Select TWO.)
Select all that apply
A company runs a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances are managed by an Auto Scaling group. The web application is configured to listen on custom port 8080. However, the ALB is currently marking all instances in the target group as unhealthy, preventing users from accessing the application. A solutions architect verifies that the application is running normally on the instances. Which action should the solutions architect take to resolve this issue?
An organization's software application requires access to two configurations: a static partner API token that does not change, and a backend database password that must rotate automatically every 45 days. The organization wants a cost-effective solution that keeps both secrets encrypted at rest. Which two actions should a solutions architect take to meet these requirements? (Select TWO.)
Select all that apply
An enterprise is deploying a high-volume payment processing application on Amazon ECS using the AWS Fargate launch type. The application requires access to a sensitive API key for a third-party payment gateway. The API key must be encrypted at rest using a customer managed key (CMK) in AWS Key Management Service (AWS KMS) and must be rotated every 90 days. The application tasks scale dynamically, launching and terminating thousands of containers daily, and the application queries the third-party gateway frequently, which requires reading the API key multiple times per minute. The solutions architect must design a secure, cost-effective secrets management solution that automates key rotation with zero downtime. Which combination of actions should the solutions architect recommend to meet these requirements? (Select TWO.)
Select all that apply
A logistics tracking application ingests real-time GPS telemetry data from fleet vehicles. The backend processing service runs on Amazon EC2 instances in an Auto Scaling group (ASG) located in private subnets behind an Application Load Balancer (ALB) in public subnets. The backend service listens on TCP port 9000. The ALB uses an HTTPS listener on port 443 and forwards requests to a target group configured to use port 9000.
To satisfy a new security policy, a network administrator modified the Network Access Control List (NACL) of the private subnets to allow inbound traffic from the public subnets only on port 9000. Shortly after this modification, the ALB marks all EC2 instances as unhealthy, and the ASG begins repeatedly terminating and replacing them. Local system logs show that the application is running and listening on port 9000 successfully on all instances.
Which configuration change will resolve this issue and restore high availability?
A software publisher distributes installer packages globally. The primary files are stored in an Amazon S3 bucket in the us-west-2 Region, and a backup replica is maintained in an S3 bucket in the eu-central-1 Region. The publisher requires a content delivery solution that ensures high availability and low latency for downloads, even if the primary S3 bucket becomes temporarily unavailable. The solution must minimize operational overhead. Which configuration should a solutions architect recommend to meet these requirements?
A financial services company hosts a multi-tier application in a VPC and must comply with a strict security policy requiring all subnet-level Network Access Control Lists (NACLs) to block unrestricted inbound SSH (port 22) and RDP (port 3389) traffic. The security team needs a solution that continuously monitors the NACL configurations, automatically alerts on any non-compliant changes, and reverts the non-compliant configurations to their secure state in near-real-time. Which solution meets these requirements with the least operational overhead?
A financial technology company is launching a global peer-to-peer payment application. The application requires a database backend that can handle two distinct workloads. First, it must record millions of transaction ledger entries per day in Amazon DynamoDB with low latency, avoiding partition write bottlenecks. Second, it must support a reporting database using Amazon RDS for PostgreSQL that requires high availability, automatic low-latency failover, and offloading read queries to optimize primary database performance. Which two database design configurations should the solutions architect select to meet these performance and high availability requirements? (Select two.)
Select all that apply
A company hosts a simple web application on Amazon EC2 instances managed by an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The ASG health check type is configured to use EC2 status checks. When the web application process crashes on an instance, the ALB marks that instance as unhealthy and stops routing traffic to it. However, the ASG does not terminate or replace the instance because the underlying EC2 instance status checks remain healthy. Which configuration change should a solutions architect implement to ensure that instances with failed web application processes are automatically replaced?
An organization runs a containerized payment processing service on Amazon ECS that requires credentials to access an Amazon RDS for MySQL database. The organization's security policy requires the database credentials to be rotated every 30 days. Additionally, the AWS Key Management Service (AWS KMS) customer managed key used to encrypt the credentials must be rotated annually. The policy also specifies that once the KMS key is rotated, the stored credentials must be immediately re-encrypted with the new key material to ensure that the retired key material is no longer used to protect the active credentials. Which solution should a solutions architect recommend to satisfy these security requirements?
A company is designing a high-performance web application to track user activity logs. The application must write up to events per second, with each event payload containing a user ID, a timestamp, and action details. The read queries will be highly spiky and unpredictable, requiring sub-millisecond latency to display user dashboards. A solutions architect is designing the Amazon DynamoDB table for this workload. Which database configuration will provide the highest performance and efficiency?
A telemetry data processing system runs on Amazon Elastic Container Service (Amazon ECS) tasks inside a private subnet. The system requires secure access to three configuration items: database credentials for an Amazon RDS for MySQL DB instance that must be rotated every 30 days, a static API key for an external mapping provider, and the database endpoint host address along with the application logging verbosity level. The solutions architect needs to design a secure storage and rotation solution that minimizes costs and operational overhead. Which two options should the solutions architect select to meet these requirements?
Select all that apply
An enterprise is designing a secure architecture for a microservices application. The application's compute resources run in an Amazon ECS cluster hosted in AWS Account A, while the backend Amazon Aurora PostgreSQL database is hosted in AWS Account B. The security architecture must satisfy the following constraints:
1. The database credentials must be encrypted at rest and automatically rotated every 30 days without manual intervention.
2. The application requires access to a third-party payment API token that must be encrypted at rest and rotated every 90 days.
3. Non-sensitive configurations (such as the database endpoint and port) must be stored in a cost-optimized manner and accessible without decryption overhead.
4. The ECS tasks in Account A must access these resources securely with minimal operational complexity.
Which two options should the solutions architect choose to meet these requirements?
Select all that apply
A company stores database backups in an Amazon S3 bucket. The backup files average in size. The backups are accessed frequently for the first for verification. After , they are rarely accessed, but the company must retain them for a total of for emergency recovery before they are permanently deleted. Which S3 lifecycle configuration provides the most cost-effective storage solution for these backups?
A company hosts a data processing application on Amazon EC2 instances in private subnets within VPC A. The application replicates approximately of data monthly to a database cluster hosted on EC2 instances in VPC B within the same AWS Region. Currently, the VPCs are connected using an AWS Transit Gateway, and the application connects to the database cluster using its public DNS hostname, which routes traffic through NAT Gateways. Which configuration should a solutions architect recommend to minimize the data transfer costs?
A company runs a critical online transaction processing (OLTP) application on AWS that uses an Amazon RDS for PostgreSQL DB instance. The database size is and requires a Multi-AZ deployment for high availability. The workload is characterized by a steady baseline of write IOPS and read IOPS. Every Sunday, a batch data archiving job runs for hours, generating an additional peak of read IOPS. The database currently uses Provisioned IOPS SSD (`io2`) storage provisioned at IOPS to ensure performance during the Sunday peak. A solutions architect needs to redesign the database storage and capacity configuration to minimize costs while maintaining high availability and performance. Which configuration is the most cost-effective way to meet these requirements?
A startup is deploying a microservices application using Amazon ECS with the Amazon EC2 launch type. The tasks run on EC2 instances managed by an Auto Scaling group (ASG) in private subnets. The application uses dynamic port mapping, where the container's port is mapped to a dynamically allocated host port in the range on the EC2 instances. An Application Load Balancer (ALB) in the public subnets routes external traffic from port to the target group associated with the ECS service.
The security team has configured custom Network ACLs (NACLs) and Security Groups to enforce strict traffic filtering:
1. Public Subnet NACL:
- Inbound: Allows TCP port from 0.0.0.0/0.
- Outbound: Allows all traffic.
2. Private Subnet NACL:
- Inbound: Allows TCP port and ephemeral ports from the public subnets.
- Outbound: Allows all traffic.
3. EC2 Instance Security Group:
- Inbound: Allows TCP port from the ALB security group.
- Outbound: Allows all traffic.
The target group has its health check port configured to traffic-port. The ECS tasks fail to register successfully because the ALB marks the targets as unhealthy, causing the ASG to terminate and relaunch the EC2 instances.
Which action should the solutions architect take to resolve this issue and allow the health checks to pass?
A software development company is launching a new REST API deployed on Amazon EC2 instances within an Auto Scaling group. The API application is configured to listen on port . An Application Load Balancer (ALB) is deployed to distribute incoming traffic across the instances. The Solutions Architect needs to configure the load balancer and security settings to ensure the ALB can successfully perform health checks and route traffic to the application. Which TWO configurations should the Solutions Architect implement? (Select two).
Select all that apply
A company hosts a global car-sharing application on AWS. The application consists of a frontend static website hosted in an Amazon S3 bucket, and a backend REST API hosted on Amazon EC2 instances behind an Application Load Balancer (ALB). The API queries a primary Amazon RDS for MySQL database. Users report slow load times for both the static images of cars and the dynamic vehicle search results. Which two actions should a solutions architect take to improve application performance and reduce latency? (Select TWO.)
Select all that apply
A solutions architect needs to store a database password for a web application. The password must be encrypted at rest, but the application does not require automatic password rotation. The solutions architect wants to choose the most cost-effective storage option. Which AWS service should be used to meet these requirements?