All practice questions
976 questions
A company hosts a microservices-based application on Amazon ECS (Fargate) with an Amazon Aurora MySQL database in the us-east-1 Region. The system administrator must design a disaster recovery (DR) strategy to a secondary region (us-west-2). The business requirements specify a Recovery Time Objective (RTO) of minutes and a Recovery Point Objective (RPO) of minutes. The recovery plan must minimize ongoing running costs in the secondary region while meeting these SLAs.
Which disaster recovery strategy meets these requirements?
A company hosts a production web application on AWS Elastic Beanstalk using an Auto Scaling group behind an Application Load Balancer. A SysOps Administrator needs to deploy a critical application update. The deployment strategy must ensure zero downtime, deploy the update to brand new instances for clean isolation, and allow for a rapid rollback by terminating the new instances if the deployment fails. Furthermore, the administrator must avoid the overhead of managing a separate Elastic Beanstalk environment or performing a DNS CNAME swap. Which deployment policy should the SysOps Administrator select to meet these requirements?
A SysOps Administrator is investigating high data transfer costs in a VPC. An application running on Amazon EC2 instances in a private subnet frequently communicates with external endpoints and AWS services. The administrator suspects that some traffic destined for Amazon S3 is being routed through a NAT Gateway instead of a configured VPC Gateway Endpoint for S3. The administrator decides to create a VPC Flow Log with a custom format to identify this traffic. Which of the following actions should the administrator take to verify whether traffic destined for Amazon S3 is traversing the NAT Gateway? (Select TWO.)
Select all that apply
A SysOps Administrator is troubleshooting a connection issue where an external client cannot fully establish a connection to an Amazon EC2 instance in a public subnet. The EC2 instance's security group has an inbound rule allowing TCP port 80 from all sources, and the default outbound rule allowing all traffic. The subnet's Network Access Control List (NACL) has an inbound rule allowing TCP port 80 from all sources, but the outbound NACL rules do not allow any ephemeral port traffic (ports 1024-65535) back to the client. VPC Flow Logs are enabled for the network interface of the EC2 instance. Which pattern of ACCEPT and REJECT records will the administrator observe in the VPC Flow Logs for this connection attempt?
An organization deploys an application across four microservices hosted on Amazon ECS. Each microservice writes logs to its own dedicated CloudWatch Logs log group: `/aws/ecs/frontend`, `/aws/ecs/auth-service`, `/aws/ecs/catalog`, and `/aws/ecs/payment`. To maintain service-level agreements, a SysOps administrator must establish a mechanism to alert the team when the aggregate number of `HTTP 504` gateway timeout errors across all four microservices exceeds in any -minute period.
Which configuration should the administrator implement to meet this requirement?
An organization wants to automatically copy all newly uploaded objects from a production Amazon S3 bucket to a backup S3 bucket in a different AWS Region for disaster recovery. A SysOps administrator creates a replication rule, but replication fails to start. What must the administrator configure on the S3 buckets to resolve this issue?
During a scheduled disaster recovery drill, a SysOps Administrator simulates an Availability Zone (AZ) outage for a high-priority application. The application's database tier consists of a primary Amazon RDS for MariaDB DB instance in subnet-A (AZ-1) and a Read Replica in subnet-B (AZ-2). The application connects to the primary DB instance for write operations and to the Read Replica for read operations. During the simulated outage of AZ-1, the application completely loses write access to the database, and no automated failover occurs. What is the root cause of this behavior, and how should the administrator resolve it to ensure automatic write failover?
A company runs a critical web application on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB) in the us-east-1 Region. The application uses an Amazon RDS for PostgreSQL database for stateful data and an Amazon S3 bucket to store static user uploads. A SysOps Administrator must establish a disaster recovery (DR) strategy in the us-west-2 Region. The strategy must achieve a Recovery Point Objective (RPO) of 15 minutes and a Recovery Time Objective (RTO) of 30 minutes while minimizing costs during normal operations. Which setup meets these requirements?
A SysOps Administrator needs to determine if any resources in an active AWS CloudFormation stack have been modified by manual changes that were made outside of CloudFormation.
Which of the following steps should the administrator perform to identify this configuration drift? (Select TWO.)
Select all that apply
A SysOps Administrator is configuring a monitoring solution for a microservices-based application running on Amazon EC2. The application logs are sent to Amazon CloudWatch Logs. The application outputs space-delimited log entries in the following format:
`2026-07-14T12:00:00Z WARN PaymentService 503 150`
The administrator needs to create a metric filter to monitor the frequency of HTTP 503 Service Unavailable errors generated by the PaymentService specifically, and trigger an Amazon SNS notification when this happens. What is the correct way to configure this monitoring and alerting setup?
A SysOps Administrator is configuring an Amazon CloudWatch metric filter to parse custom application log events written to an Amazon CloudWatch Logs log group named `/apps/payment-service`. The application logs events in the following JSON format:
{
"request_id": "req-98213",
"operation": "ProcessPayment",
"response_code": 500,
"execution_time_ms": 450,
"client_details": {
"tier": "Premium",
"region": "us-east-1"
}
}
The Administrator wants to monitor when `ProcessPayment` operations for `Premium` tier clients fail with a `response_code` of 500 or higher, and record the `execution_time_ms` value as a custom metric.
Which two configurations must the Administrator apply to the metric filter and its metric transformation to accomplish this? (Select TWO.)
Select all that apply
An organization hosts a multi-tier web application using an Amazon Aurora MySQL Global Database. The primary DB cluster is in the us-east-1 Region, and a secondary DB cluster is in the us-west-2 Region for disaster recovery. A SysOps Administrator is tasked with designing a failover mechanism so that if the primary Region becomes completely unavailable, application traffic is redirected to us-west-2 with minimal downtime. The database in us-west-2 must be capable of accepting write traffic. Which configuration should the SysOps Administrator implement to achieve this goal?
A SysOps Administrator is setting up cross-account monitoring for containerized workloads. The administrator needs to configure Amazon CloudWatch Container Insights to visualize performance metrics from Amazon ECS clusters running in a source account (Account B) within a centralized dashboard in a monitoring account (Account A). Both accounts are in the same Region. Which of the following actions must the administrator perform to achieve this setup? (Select TWO.)
Select all that apply
A SysOps Administrator needs to determine whether application traffic between Amazon EC2 instances in a VPC and an Amazon S3 bucket is routing through an AWS Transit Gateway, an Amazon S3 Gateway Endpoint, or over the public internet. The administrator decides to create a custom VPC Flow Log to capture this information. Which custom log format field must the administrator include in the VPC Flow Log configuration to directly identify the routing path used by the traffic?
A SysOps Administrator needs to deploy an application update to an AWS Elastic Beanstalk environment. The update must be completed as quickly as possible, and the application can tolerate a brief period of downtime during the deployment. Which deployment policy should the administrator choose?
An application runs on EC2 instances and streams its access logs to an Amazon CloudWatch Logs group. The logs are formatted as space-delimited text lines representing the timestamp, client IP address, request path, HTTP status code, and latency in milliseconds. Below is an example log event:
`1719264000 192.0.2.10 /orders/create 504 3500`
A SysOps administrator needs to set up an alarm to alert the operations team when requests to `/orders/create` experience a gateway timeout () and take more than to complete. Which two actions should the administrator perform to configure this monitoring and alarm solution? (Select two.)
Select all that apply
A SysOps Administrator is configuring automatic remediation for the AWS Config managed rule rds-instance-public-access-check. The remediation configuration is set to use the AWS-defined Systems Manager (SSM) Automation document AWS-DisablePublicAccessForRDSInstance. The administrator has created an IAM role named RDSRemediationRole with a trust policy that allows ssm.amazonaws.com to assume it. When attempting to save the remediation configuration in the AWS Config console, the operation fails with an authorization error. Which action should the SysOps Administrator take to resolve this issue?
An application logs HTTP requests to an Amazon CloudWatch Log Group in a space-delimited format:
`timestamp request_id client_ip api_endpoint status_code latency_ms`
Example log event:
`1783987200 req-98765 203.0.113.55 /checkout 503 1240`
A SysOps Administrator must monitor checkout transaction failures. The requirements are:
- A CloudWatch alarm must trigger if there are more than 5 failures (where `status_code` is 500 or greater) on the `/checkout` endpoint within a 5-minute period.
- The custom metric must record a value of 0 when checkout transactions are processed but do not result in a 5XX error, preventing the alarm from entering an `INSUFFICIENT_DATA` state.
- If there is no traffic to the `/checkout` endpoint at all (no logs written), the alarm must remain in an `OK` state.
- Log data must not be stored indefinitely to control AWS costs, with a maximum retention of 30 days.
Which configuration strategy should the SysOps Administrator implement to meet these requirements?
A SysOps Administrator is configuring VPC Flow Logs to capture traffic for a production VPC and deliver the logs to an Amazon S3 bucket. The S3 bucket is encrypted using an AWS Key Management Service (AWS KMS) customer managed key. After creating the flow log, the administrator notes that no log files are being written to the S3 bucket, and the flow log status shows delivery errors. Which two configurations must the administrator apply to resolve this issue?
Select all that apply
An AWS CloudFormation stack update fails, and the stack becomes stuck in the `UPDATE_ROLLBACK_FAILED` state because a Security Group resource cannot be deleted. Which of the following actions can a SysOps Administrator take to successfully complete the rollback of the stack? (Select TWO.)
Select all that apply