All practice questions
976 questions
A company replicates its critical Amazon EC2 workloads from a primary Availability Zone to a secondary Availability Zone in the same AWS Region using AWS Elastic Disaster Recovery (AWS DRS). A SysOps Administrator is designing a disaster recovery (DR) drill. The administrator needs to configure the environment so that recovery EC2 instances are successfully provisioned with their designated instance IAM roles, and client traffic is automatically routed to the recovery instances if the primary Availability Zone experiences an outage. Which combination of actions must the SysOps Administrator take to meet these requirements? (Select TWO.)
Select all that apply
A company uses AWS Config to monitor compliance across its AWS infrastructure. A SysOps administrator is configuring automatic, event-driven remediation for Amazon RDS DB instances that are identified as publicly accessible by the rds-instance-public-access-check AWS Config managed rule. The administrator intends to use the AWS Systems Manager Automation runbook AWS-ModifyRDSInstance to modify the non-compliant RDS DB instances and disable public accessibility.
The administrator wants to configure the remediation directly within AWS Config. Which two actions must the administrator perform to ensure that the remediation executes successfully?
Select all that apply
A company hosts a production application on an Amazon Aurora MySQL DB cluster. The cluster contains one primary (writer) instance and three replica (reader) instances named reader-1, reader-2, and reader-3, distributed across three Availability Zones. To support business continuity, a SysOps Administrator must ensure that if the primary instance fails, reader-2 is promoted to the primary writer role first. If reader-2 is unavailable, reader-1 must be promoted next. Which configuration will meet these requirements?
A SysOps Administrator is planning to deploy an application update to a critical production environment running on AWS Elastic Beanstalk. The environment utilizes an Application Load Balancer (ALB) and an Auto Scaling group with a minimum capacity of instances. The deployment must satisfy the following constraints:
1. The environment must maintain of its current serving capacity ( instances) at all times to prevent performance degradation.
2. A canary test must be performed by routing exactly of incoming production traffic to the new application version for an evaluation period of minutes.
3. If any CloudWatch alarms (such as HTTP error rates) trigger during the evaluation period, the deployment must immediately roll back with zero downtime.
Which combination of configuration settings and deployment strategies will meet these requirements? (Select TWO.)
Select all that apply
A company uses Amazon Route 53 active-passive failover to route traffic to a primary web application in the us-east-1 Region. The primary DNS record is associated with a Route 53 health check that monitors a CloudWatch alarm. This alarm is configured to monitor a custom metric, ApplicationErrorCount, which is only published to CloudWatch when the application encounters internal server errors. During periods of no traffic, no metrics are published, causing the CloudWatch alarm to enter the INSUFFICIENT_DATA state. This transitions the Route 53 health check to unhealthy, triggering an undesired failover to the passive region. Which configuration change will prevent the undesired failovers while maintaining automated failover capability?
A SysOps administrator is tasked with configuring automated remediation to delete unencrypted Amazon EBS volumes immediately after they are created. The administrator decides to use AWS Config to evaluate compliance and run the remediation. Which two steps must the administrator perform to configure this automated operational response? (Select TWO.)
Select all that apply
An organization's legacy web application streams its access logs to an Amazon CloudWatch Logs group named `/apps/web-server/access_log` in the following Common Log Format (CLF):
192.0.2.10 - - [14/Jul/2026:10:15:30 +0000] "POST /api/v1/payment HTTP/1.1" 401 1024
A SysOps Administrator needs to create a custom metric to count HTTP unauthorized access attempts to the `/api/v1/payment` endpoint. If the rate of these attempts exceeds per minute, an automated remediation workflow must be triggered. Which configuration and architecture should the SysOps Administrator implement to meet these requirements?
An enterprise distributes standardized development environments across a multi-account organization using AWS Organizations. The SysOps administrator in the central hub account (111122223333) has shared a Service Catalog portfolio containing a web application product with a member development account (444455556666). In the hub account, the portfolio is configured with a launch constraint that specifies a launch role named ServiceCatalogLaunchRole.
When an IAM user in the development account attempts to provision the shared product, the provisioning fails, and the underlying CloudFormation stack rolls back.
Which two actions must the SysOps administrator take in the development account to ensure the product can be successfully provisioned? (Select TWO.)
Select all that apply
A SysOps administrator has configured an Amazon EC2 instance to upload files to an Amazon S3 bucket. The bucket is encrypted using a customer managed key (CMK) in AWS Key Management Service (AWS KMS). The administrator has attached an IAM policy to the EC2 instance's IAM role that grants 's3:PutObject' permission. However, when the application on the EC2 instance attempts to write to the S3 bucket, it receives an Access Denied error. Which configuration change will resolve this issue?
A SysOps administrator is configuring automated, event-driven remediation for non-compliant resources. The administrator sets up the AWS Config managed rule `rds-snapshots-public-prohibited` to detect public Amazon RDS DB snapshots. To automatically remediate non-compliant snapshots, the administrator configures AWS Config to trigger the Systems Manager Automation document `AWS-DisablePublicAccessForRDSSnapshot`.
The administrator creates an IAM role named `ConfigRemediationExecutionRole` with a trust policy that allows `config.amazonaws.com` to assume the role. The role has an identity-based policy that allows `ssm:StartAutomationExecution` and `rds:ModifyDBSnapshotAttribute`. The administrator also creates a separate IAM role named `SSMAutomationAssumeRole` with a trust policy that allows `ssm.amazonaws.com` to assume it. This role has the permissions required to modify RDS snapshot attributes.
When configuring the remediation action in AWS Config, the administrator specifies `ConfigRemediationExecutionRole` as the remediation execution role, and passes the ARN of `SSMAutomationAssumeRole` as the `AutomationAssumeRole` parameter for the Systems Manager document. During testing, AWS Config detects a public snapshot, but the remediation fails with an execution error indicating authorization failure.
What configuration adjustment must the administrator make to resolve this issue?
A SysOps administrator is configuring AWS CodeDeploy to deploy updates to a web application running on an Auto Scaling group of Amazon EC2 instances behind an Application Load Balancer. The deployment process must maintain full application capacity during the deployment to avoid performance degradation, automatically revert to the previous version with the minimum possible recovery time if application-specific Amazon CloudWatch alarms are triggered, and ensure that active user sessions connected to the old version are not abruptly disconnected. Which configuration should the administrator select to meet these requirements?
A SysOps administrator has configured automatic rotation for a database credential stored in AWS Secrets Manager. During the first scheduled rotation, the administrator notices that the rotation status changes to failed, and the database credentials are not updated. Which of the following is the most likely cause of this rotation failure?
An organization runs a containerized microservice on Amazon ECS in Account B (). The application must retrieve database credentials stored in AWS Secrets Manager in Account A (). The secret in Account A is encrypted using a customer managed KMS key.
The SysOps administrator has configured the secret's resource policy in Account A to allow the ECS task execution role in Account B to perform `secretsmanager:GetSecretValue`. In Account B, the administrator attached an IAM policy to the ECS task execution role allowing `secretsmanager:GetSecretValue` on the secret ARN and `kms:Decrypt` on the KMS key ARN in Account A.
During container startup, the task fails with an `AccessDeniedException` indicating that the ECS container agent is unauthorized to perform `kms:Decrypt` on the customer managed KMS key.
Which action should the administrator take to resolve this issue?
A SysOps Administrator is managing a business-critical application that currently uses a single-instance Amazon RDS for MySQL DB instance. The database needs to be upgraded to support high availability with automatic failover to minimize downtime during unplanned outages. Additionally, the reporting team needs to run daily query-intensive reports without impacting the performance of the write operations on the primary database. Which combination of actions will meet these requirements? (Select TWO.)
Select all that apply
A SysOps administrator is configuring event-driven remediation for non-compliant security groups using AWS Config. The administrator selects the AWS Config rule `restricted-common-ports` and sets up an automatic remediation action using the AWS Systems Manager (SSM) Automation document `AWS-CloseSecurityGroup`.
The administrator creates an IAM role named `SSMRemediationRole` that has the required permissions to modify security groups and a trust relationship allowing the Systems Manager service (`ssm.amazonaws.com`) to assume the role.
When the administrator attempts to save the remediation configuration in AWS Config with the `SSMRemediationRole` ARN specified in the `AutomationAssumeRole` parameter, the operation fails with an 'Access Denied' error.
Which action will resolve this error?
A SysOps administrator is configuring an AWS Systems Manager Automation workflow. The workflow requires a custom IAM role to perform actions on AWS resources. The administrator has already created the IAM role with the necessary permissions policies.
Which combination of actions is required to allow the Systems Manager Automation workflow to run successfully using this role? (Select TWO.)
Select all that apply
A SysOps Administrator is designing a deployment pipeline for a production application running on Amazon EC2 instances managed by an Auto Scaling group behind an Application Load Balancer (ALB). The deployment strategy must satisfy the following constraints:
- Deploy the new version with zero downtime.
- Route exactly of live user traffic to the new version for a 10-minute validation period.
- Automatically route the remaining of traffic after the validation period if no CloudWatch alarms are active.
- Support instantaneous rollback to the original version during the validation period.
The administrator discovers that the current AWS CodeDeploy blue/green configuration cannot perform fractional traffic routing for the EC2 Auto Scaling group.
Which strategy should the administrator implement to meet all requirements?
An organization wants to automatically stop idle Amazon EC2 instances to reduce costs. A SysOps administrator configures an Amazon CloudWatch alarm that transitions to the ALARM state when CPU utilization remains below for 1 hour. The administrator then creates an Amazon EventBridge rule that detects the CloudWatch alarm state change and targets an AWS Systems Manager (SSM) Automation document using the `AWS-StopEC2Instance` template. During testing, the CloudWatch alarm enters the ALARM state, but the EC2 instance is not stopped. The EventBridge dead-letter queue (DLQ) indicates a delivery failure due to an authorization issue. Which action will resolve this issue?
A company runs a critical application using a single-node Amazon RDS for PostgreSQL DB instance. A SysOps Administrator has set up a read-only reporting environment by adding an RDS Read Replica. During a review of the disaster recovery plan, the administrator needs to ensure that the primary database has high availability with automatic failover and zero data loss in the event of an Availability Zone outage. Which action should the administrator take to meet these requirements with the shortest recovery time?
A SysOps administrator is configuring an AWS Systems Manager (SSM) Automation workflow in a multi-account organization. The administrator initiates execution from Account A (Operations, 111111111111) to remediate non-compliant EC2 instances in Account B (Production, 222222222222).
The workflow uses a custom automation execution role in Account B called SSMExecutionRole to perform remediation actions, which include attaching an IAM role named RemediationEC2Role to the target EC2 instances.
The administrator has configured the following:
1. The IAM role CentralOpsRole in Account A has permissions to assume SSMExecutionRole in Account B.
2. The trust policy of SSMExecutionRole in Account B allows CentralOpsRole to assume it.
3. The trust policy of RemediationEC2Role in Account B allows ec2.amazonaws.com to assume it.
The administrator initiates the automation execution from Account A using the assumed credentials of SSMExecutionRole. The execution fails at the step that associates RemediationEC2Role with the target EC2 instances with an AccessDenied error stating that the caller is not authorized to perform iam:PassRole.
Which configuration change is required to resolve this error using the principle of least privilege?