All practice questions
976 questions
A SysOps Administrator is setting up monitoring for a microservice that writes JSON-formatted application logs to an Amazon CloudWatch Logs log group. The logs contain a field named `status` indicating the outcome of each transaction. The administrator needs to create a metric filter to count how many times a transaction ends with a status of `FAILED`.
How should the administrator configure this metric filter?
An organization's security policy requires a SysOps Administrator to perform log file integrity validation on AWS CloudTrail logs from the previous quarter. The CloudTrail logs and digest files are delivered to an Amazon S3 bucket. An S3 Lifecycle rule is configured to transition all objects under the `AWSLogs/` prefix to the S3 Glacier Flexible Retrieval storage class after 30 days. When the administrator attempts to validate the logs using the command `aws cloudtrail verify-log-file`, the command fails with an error indicating that the operation is not valid for the object's storage class. Which action will resolve this issue and allow the administrator to successfully validate the logs?
A SysOps administrator is managing an application running on Amazon EC2 instances inside an Auto Scaling group (ASG). The ASG uses a target tracking scaling policy based on the default `ASGAverageCPUUtilization` metric, with a target utilization of . The application experiences sudden, high-intensity traffic spikes that typically last for to minutes. However, during these spikes, the ASG takes to minutes to begin launching new instances, causing the existing instances to become overloaded and fail health checks. The launch template for the ASG does not explicitly configure monitoring.
Which of the following describes the root cause of this delayed scaling behavior, and the correct remediation step?
An Auto Scaling group uses a target tracking scaling policy based on average CPU utilization. During sudden load increases, the Auto Scaling group launches new EC2 instances. The application on these instances requires five minutes to complete initialization and begin serving requests. During this initialization period, the Auto Scaling group continues to launch additional, unnecessary EC2 instances because the average CPU utilization remains high. Which parameter should be configured to prevent this behavior?
A SysOps Administrator is managing an Amazon EC2 Auto Scaling group where the instances are launched with standard monitoring enabled by default. To react to sudden load spikes, the administrator configures an Amazon CloudWatch alarm to trigger a scale-out policy. The alarm is defined with the CPUUtilization metric, a period of 60 seconds (1 minute), and evaluation periods set to 3. During a load test, the actual CPU utilization on the instances stays at 90% for 15 minutes, but the alarm remains in the INSUFFICIENT_DATA state and fails to trigger the scaling policy. Which of the following is the root cause of this behavior?
A company runs a web application on Amazon EC2 instances managed by an Auto Scaling group. The group is configured with a target tracking scaling policy based on the `ASGAverageCPUUtilization` metric with a target value of . During sudden traffic spikes, the Auto Scaling group launches new instances to handle the load. However, the newly launched instances require approximately minutes to download application packages, run bootstrapping scripts, and begin processing requests. During this startup period, the Auto Scaling group continues to launch additional instances, resulting in significant overprovisioning and high costs. Which action should the SysOps administrator take to prevent this overprovisioning?
A SysOps administrator is configuring an Auto Scaling group (ASG) to deploy EC2 instances using a new launch template. The launch template specifies an IAM instance profile associated with the IAM role 'AppExecutionRole'. During a scale-out event, the ASG fails to launch new instances. The ASG activity history shows the following error:
'Launching a new EC2 instance failed. Status Reason: User: arn:aws:iam::123456789012:user/SysOpsAdmin is not authorized to perform: iam:PassRole on resource: arn:aws:iam::123456789012:role/AppExecutionRole'
Which action must the administrator take to successfully launch the instances?
A SysOps Administrator is designing an automated remediation workflow to restart a legacy service running on an Amazon EC2 instance. The restart must occur when a custom CloudWatch metric, FailureCount, exceeds a threshold of 5 failures within a 5-minute period. The administrator has already created a CloudWatch alarm that transitions to the ALARM state when this threshold is met. What is the correct and most efficient method to automatically trigger the service restart when the alarm enters the ALARM state?
A SysOps administrator wants to automatically stop any Amazon EC2 instance that is launched without a 'Project' tag. The administrator has created an Amazon EventBridge rule that detects when a new EC2 instance state changes to 'running'. Which target configuration and IAM permissions are required to successfully perform this remediation?
A SysOps Administrator needs to enable Amazon CloudWatch Container Insights to collect performance metrics from an existing Amazon Elastic Container Service (Amazon ECS) cluster. Which TWO actions can the SysOps Administrator take to enable Container Insights for this cluster? (Select TWO.)
Select all that apply
An organization needs to automatically stop any Amazon EC2 instance that fails an AWS Config security compliance check. A SysOps administrator wants to route these compliance changes to a Systems Manager Automation document named AWS-StopEC2Instance to remediate the issue. Which two configuration actions are required to set up this automation pipeline?
Select all that apply
A SysOps Administrator is configuring a new organizational trail in AWS CloudTrail. The trail is configured to send logs to a central Amazon S3 bucket located in a dedicated logging account. The S3 bucket is encrypted using a customer managed key (CMK) in AWS Key Management Service (AWS KMS). After enabling the trail, the administrator notices that API activity is not being recorded in the S3 bucket, and CloudTrail reports log delivery errors. Which actions must the SysOps Administrator take to resolve this log delivery issue? (Select TWO.)
Select all that apply
A SysOps Administrator needs to create a single Amazon CloudWatch dashboard that displays CPU utilization metrics from Amazon EC2 instances running in both the us-east-1 and us-west-2 Regions. Which action should the administrator take to achieve this?
During an automated scale-in event, a SysOps administrator needs to understand the exact lifecycle of an Amazon EC2 instance within an Auto Scaling group. The group is registered with an Application Load Balancer (ALB) target group and is configured with an `EC2_INSTANCE_TERMINATING` lifecycle hook. Arrange the following events in the correct chronological order from the start of the scale-in event to the final termination of the instance.
Drag items to arrange them in the correct order
An Amazon EC2 Auto Scaling group (ASG) is experiencing delayed scaling responses during sudden spikes in application traffic. A SysOps administrator notices that it takes up to 5 minutes for the ASG to trigger a scale-out action based on the average CPU utilization metric. Which two configuration updates should the administrator perform to reduce this scaling delay? (Select TWO.)
Select all that apply
A SysOps administrator is configuring a launching lifecycle hook (`EC2_INSTANCE_LAUNCHING`) for an Amazon EC2 Auto Scaling group (ASG) integrated with an Application Load Balancer (ALB) target group. The administrator needs to ensure that custom software setup and patching are completed before instances receive traffic. Arrange the steps of the instance startup sequence in the correct chronological order from the initiation of the scale-out event to the instance serving active load-balanced traffic.
Drag items to arrange them in the correct order
A SysOps administrator wants to automate the remediation of Amazon S3 buckets that are accidentally configured with public write permissions. The administrator creates an Amazon EventBridge rule that triggers when a PutBucketPolicy API call is logged in AWS CloudTrail. The target of this rule is the AWS Systems Manager Automation document AWS-DisableS3BucketPublicWrite. When testing the setup by making a bucket public, the remediation fails to execute. Which configuration action is required to resolve this issue?
A SysOps Administrator is using the AWS CLI to configure an existing AWS CloudTrail trail to send log events to an Amazon CloudWatch Logs log group. The administrator has already created the target log group and an IAM role named CloudTrail-Delivery-Role that includes the required permissions for CloudWatch Logs. However, when running the aws cloudtrail update-trail command to associate the role and log group with the trail, the CLI returns an AccessDeniedException error.
Which action should the administrator take to resolve this error?
A company is designing a pilot light disaster recovery (DR) strategy for a critical application. The business requires a Recovery Time Objective (RTO) of 15 minutes and a Recovery Point Objective (RPO) of 5 minutes. The application database runs on Amazon RDS, and static assets are stored in Amazon S3. Which configuration should a SysOps administrator implement to meet these DR requirements?
A SysOps Administrator is configuring automatic remediation for a custom AWS Config rule that checks whether Amazon EBS volumes are encrypted. The remediation is configured to use the AWS-EncryptVolume Systems Manager (SSM) Automation document. The administrator has created an IAM role named EbsRemediationRole to perform the remediation. However, when AWS Config detects a non-compliant volume, the automatic remediation fails to execute, and a permissions error is displayed in the AWS Config console. Which of the following configuration changes must the administrator make to resolve this issue and allow the remediation to run successfully? (Select TWO.)
Select all that apply