All practice questions
976 questions
A SysOps administrator manages an Amazon EC2 Auto Scaling group (ASG) that hosts a batch processing application. The ASG is configured with a simple scaling policy that launches additional EC2 instances when average CPU utilization exceeds for a single -minute period. The policy has a cooldown period of seconds. During a high-load event, the average CPU utilization reaches and remains constant for minutes. The ASG successfully launches the first additional instances, but no further scaling actions occur despite the CPU utilization remaining at and the processing queue growing. Which action should the administrator take to ensure the ASG continues to scale out as long as the CPU utilization remains above the threshold?
An application hosted on Amazon EC2 instances in an Auto Scaling group (ASG) processes traffic from an Application Load Balancer. The ASG is configured with a target tracking scaling policy based on average CPU utilization. During a sudden traffic spike, the CPU utilization increases significantly. The ASG launches a new batch of instances, but before these instances can complete their initialization and begin serving traffic, the scaling policy triggers another scale-out action. This results in the ASG launching more instances than necessary. Which action should the SysOps administrator take to resolve this issue?
A SysOps administrator recently configured AWS CloudTrail to deliver event logs to an Amazon S3 bucket. However, when checking the S3 bucket, the administrator discovers that no CloudTrail logs are being delivered. Which of the following root causes could be responsible for this delivery failure? (Select TWO.)
Select all that apply
A SysOps Administrator is setting up a CloudWatch billing alarm to monitor estimated monthly charges and send an email notification via Amazon SNS if they exceed a target budget. The administrator logs into the AWS Management Console, navigates to Amazon CloudWatch in the us-east-1 (US East - N. Virginia) region, but discovers that the EstimatedCharges metric is missing from the Billing namespace. What configuration change is required to make the EstimatedCharges metric visible in CloudWatch?
A SysOps administrator is managing an asynchronous queue-processing application running on Amazon EC2 instances within an Auto Scaling group (ASG). The ASG has a minimum capacity of and a maximum capacity of . To scale dynamically based on the queue size of an Amazon SQS queue, the administrator configures a target tracking scaling policy using a custom CloudWatch metric named `BacklogPerInstance`. This metric is calculated as the queue's `ApproximateNumberOfMessages` divided by the ASG's running instance capacity.
During a period of inactivity, the ASG successfully scales down to instances. However, when a new batch of messages is sent to the SQS queue, the ASG fails to launch any instances, leaving the messages unprocessed.
Which of the following actions should the SysOps administrator take to resolve this issue and ensure the ASG can scale out from instances?
An Auto Scaling group is configured to scale out when CPU utilization exceeds 70%. During a traffic spike, a scale-out event is triggered. Arrange the operational steps in the correct chronological order from the initial metric alarm to the point where the new instance handles active client requests.
Drag items to arrange them in the correct order
A company is designing a disaster recovery (DR) strategy for a non-critical internal administration application. The business requires a Recovery Point Objective (RPO) of hours and a Recovery Time Objective (RTO) of hours. The primary objective is to minimize cost. Which of the following actions should a SysOps Administrator take to meet these requirements? (Choose two.)
Select all that apply
A SysOps administrator is updating an Amazon EC2 Auto Scaling group (ASG) to launch instances with a new IAM role that provides access to an Amazon DynamoDB table. When the administrator attempts to update the ASG to use a new launch template version containing the new IAM role, the operation fails with a permission error stating that the user is not authorized to perform `iam:PassRole`.
Additionally, the application hosted on the ASG experiences sudden spikes in CPU utilization. The administrator notices that the dynamic scaling policy is slow to respond because the CPU utilization metric is only evaluated at 5-minute intervals.
Which two actions should the SysOps administrator take to resolve the launch template update failure and reduce the scaling response time? (Select TWO.)
Select all that apply
A SysOps Administrator is setting up a new production database on Amazon RDS for PostgreSQL. The database must be highly available and support automatic failover to a standby instance in the event of an infrastructure failure or Availability Zone outage. Which configuration will meet these requirements?
An organization trail is deployed in a management account to aggregate logs from all member accounts into a central Amazon S3 bucket within a dedicated audit account. To meet security standards, log encryption is enabled using a customer managed AWS KMS key. The deployment succeeds, but the SysOps administrator notices that no CloudTrail logs are appearing in the destination S3 bucket.
Which configurations must be verified and corrected to enable successful log delivery? (Select TWO.)
Select all that apply
{
"Sid": "AWSCloudTrailWrite",
"Effect": "Allow",
"Principal": {"Service": "cloudtrail.amazonaws.com"},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::audit-logs-bucket/AWSLogs/o-orgid/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
}
{
"Sid": "Allow CloudTrail to encrypt logs",
"Effect": "Allow",
"Principal": {"Service": "cloudtrail.amazonaws.com"},
"Action": [
"kms:GenerateDataKey*",
"kms:DescribeKey"
],
"Resource": "*"
}
{
"Sid": "AllowManagementAccountWrite",
"Effect": "Allow",
"Principal": {"AWS": "arn:aws:iam::111122223333:root"},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::audit-logs-bucket/*"
}
{
"Sid": "AllowCloudTrailKMSEncrypt",
"Effect": "Allow",
"Action": [
"kms:Encrypt",
"kms:GenerateDataKey"
],
"Resource": "arn:aws:kms:us-east-1:111122223333:key/key-id"
}
{
"Sid": "AllowPassRoleForCloudTrail",
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "arn:aws:iam::*:role/CloudTrailLoggingRole"
}
A technology company implements compliance monitoring using AWS Config. The security team deploys a conformance pack containing a custom Config rule that monitors security group configurations. The conformance pack template specifies an automatic remediation configuration that calls a custom Systems Manager (SSM) Automation document to modify non-compliant security groups. The Config remediation execution configuration uses a dedicated IAM role (ConfigRemediationRole) to initiate the remediation. The custom SSM Automation document contains a parameter AutomationAssumeRole, which requires passing a separate IAM role (SSMExecutionRole) to perform the actual resource modifications. Although AWS Config marks the security groups as non-compliant, the automated remediation consistently fails to execute. The execution logs show that the Config remediation role is unable to trigger the SSM Automation. Which action must the administrator take to resolve this issue?
A SysOps administrator needs to update the Amazon Machine Image (AMI) for all Amazon EC2 instances in an Auto Scaling group (ASG) with minimal downtime. The administrator decides to use the ASG Instance Refresh feature.
Arrange the steps in the correct chronological order to successfully execute this rolling update.
Drag items to arrange them in the correct order
A SysOps Administrator is configuring monitoring for a serverless application where AWS Lambda functions write JSON-formatted log events to an Amazon CloudWatch Logs log group. The administrator creates a metric filter with the pattern { $.level = "ERROR" } to count database connection failures. When errors occur, a custom metric named DatabaseFailures is incremented. The administrator also configures a CloudWatch alarm to alert the operations team if the count of errors is 5 or more within a 5-minute period. During normal operations, no database connection errors occur, and no log events are written to the log group at all, causing the alarm to enter the INSUFFICIENT_DATA state. Which combination of actions will prevent the alarm from entering the INSUFFICIENT_DATA state during periods of zero errors while maintaining accurate alerting behavior?
A SysOps administrator manages an Amazon EC2 Auto Scaling group (ASG) that uses a target tracking scaling policy based on the Average CPU Utilization metric. The ASG has a scale-out lifecycle hook (InstanceLaunching) configured to run a custom security scanning script on new instances using AWS Systems Manager (SSM) Automation.
During a sudden increase in traffic, the administrator observes the following behavior:
- The ASG launches redundant batches of instances every few minutes before the previous instances complete the security scan, leading to significant over-provisioning.
- The SSM Automation fails to run on the newly launched instances, causing the lifecycle hook to eventually time out and terminate the instances.
Which actions should the administrator take to resolve these issues? (Select TWO.)
Select all that apply
A SysOps Administrator is configuring automated remediation to restart an AWS CloudTrail trail if it is stopped. The administrator creates an Amazon EventBridge rule that triggers on the `StopLogging` API call. The target of this rule is set to trigger an AWS Systems Manager Automation execution of the `AWS-ConfigureCloudTrail` document. The administrator configures the target to use an IAM service role named `SSMAutomationExecutionRole`, which has the necessary `cloudtrail:StartLogging` permissions and a trust policy allowing `ssm.amazonaws.com` to assume it. When the rule is triggered, the automation fails to start, and the EventBridge dead-letter queue reports an authorization error. Which configuration change will resolve this issue?
A fleet of Amazon EC2 instances is managed by an Auto Scaling group that uses target tracking based on average CPU utilization. The application hosted on these instances takes approximately 6 minutes to complete its boot sequence and begin serving traffic. During scale-out events, the Auto Scaling group launches multiple waves of redundant instances before the first new instance can actively handle requests, resulting in temporary over-provisioning. Which configuration change will address this issue?
A SysOps administrator is setting up an active-passive failover configuration in Amazon Route 53. The primary resource record set points to an Application Load Balancer, and the secondary resource record set points to an Amazon S3 static website. What configuration is required on the primary resource record set to enable Route 53 to automatically redirect traffic to the secondary record during an outage?
A SysOps Administrator needs to configure an Amazon RDS DB instance to ensure automatic failover to a synchronous standby instance in a different Availability Zone during an outage. Which RDS configuration meets this requirement?
A company runs a critical web application in the us-east-1 Region. The application's stateful data is stored in an Amazon RDS for PostgreSQL DB instance. The SysOps administrator is designing a pilot light disaster recovery (DR) strategy in the us-west-2 Region. The business requires a Recovery Point Objective (RPO) of 15 minutes and a Recovery Time Objective (RTO) of 2 hours. Which combination of actions should the SysOps administrator perform to meet these requirements at the lowest cost? (Select TWO.)
Select all that apply
A company has a Single-AZ Amazon RDS MySQL DB instance and wants to improve its reliability. A SysOps Administrator plans to convert this instance into a Multi-AZ deployment. Which of the following statements correctly describe the behavior or configuration of this transition? (Select TWO.)
Select all that apply