All practice questions
976 questions
A SysOps administrator is setting up a nightly automation task using AWS Systems Manager (SSM) Maintenance Windows to run a command on a fleet of Amazon EC2 instances. The maintenance window is configured to use a custom service role named MaintenanceWindowServiceRole to run the task. The administrator has attached an IAM policy to their own IAM user account that contains the following statement:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ssm:RegisterTaskWithMaintenanceWindow",
"ssm:UpdateMaintenanceWindowTask"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::111122223333:role/MaintenanceWindowServiceRole"
}
]
}
When the administrator attempts to register the task with the maintenance window specifying MaintenanceWindowServiceRole as the service role, the operation fails with an 'Access Denied' error. The trust policy of MaintenanceWindowServiceRole correctly trusts ssm.amazonaws.com. What should the administrator do to resolve this issue?
A SysOps Administrator is managing an infrastructure stack deployed via AWS CloudFormation. After running drift detection on the stack, the administrator notices that an Amazon EC2 instance's type was manually changed from t3.micro to t3.small by another team member using the Amazon EC2 console. The CloudFormation template still specifies the instance type as t3.micro. The administrator wants to return the EC2 instance to the configuration defined in the template without redeploying the entire stack.
Which of the following is the correct method to resolve this drift?
A SysOps Administrator is setting up administrative access to a Windows-based bastion host running on an Amazon EC2 instance. The instance is deployed in a public subnet associated with a custom Network Access Control List (NACL). Administrators need to establish Remote Desktop Protocol (RDP) sessions from the corporate office network (). The instance's security group already allows inbound TCP port traffic from the corporate network, but connections are still timing out.
Which of the following rules must be added to the custom NACL to resolve this connectivity issue? (Select TWO.)
Select all that apply
An application running on Amazon EC2 instances in a private subnet () must consume an internal web service hosted on EC2 instances in a database/services subnet () on TCP port 8080. The security groups for both tiers are correctly configured. A custom Network Access Control List (NACL) associated with the private subnet () has an outbound rule allowing TCP port 8080 to , and an inbound rule allowing TCP port 8080 from . The default deny rule is active. The instances cannot establish a connection. Which configuration change must be made to the private subnet's NACL to resolve this connectivity issue?
A company has deployed a serverless application utilizing Amazon DynamoDB in a production AWS account. The workload has highly variable but predictable weekly patterns, causing daily costs to fluctuate. A SysOps administrator needs to configure a monitoring solution that uses machine learning to detect unexpected cost spikes in DynamoDB usage while minimizing false alerts from normal weekly variations. When an anomaly is detected, the administrator must receive an immediate notification via email and SMS.
Which solution meets these requirements with the least administrative effort?
A SysOps Administrator is configuring a new organizational trail in AWS CloudTrail to deliver log files to a centralized Amazon S3 bucket. The security team has mandated that the log files must be encrypted at rest using an AWS Key Management Service (AWS KMS) customer managed key. Additionally, the administrator must ensure that any post-delivery modification or deletion of the log files can be systematically detected. Which two actions must the SysOps Administrator take to meet these requirements?
Select all that apply
A SysOps administrator is troubleshooting internet connectivity from an Amazon EC2 instance residing in a newly created private subnet of a VPC. A NAT gateway has been provisioned in a public subnet of the same VPC. The private subnet's route table contains a route targeting the NAT gateway for . The security group associated with the EC2 instance allows all outbound traffic. However, the EC2 instance is unable to download software updates from the internet. Which of the following is the most likely cause of this issue?
A SysOps Administrator is configuring AWS Systems Manager Patch Manager to automate security updates for a fleet of Amazon Linux 2023 EC2 instances. The administrator creates a custom patch baseline and associates it with a patch group named 'Production-AL2023'. The administrator then tags the target EC2 instances with the key 'PatchGroup' and value 'Production-AL2023'. During the next scheduled maintenance window, the administrator notices that the instances were patched using the default AWS-provided patch baseline instead of the custom patch baseline. What should the administrator do to ensure the instances use the custom patch baseline?
A SysOps Administrator is tasked with automating security updates for a fleet of production Amazon EC2 instances running Red Hat Enterprise Linux (RHEL). The updates must be applied during a weekly maintenance window using a custom patch baseline. The administrator wants to use a patch group named 'Production-RHEL' to map these instances to the baseline. Arrange the steps in the correct chronological order to configure this automated patch management workflow.
Drag items to arrange them in the correct order
A SysOps administrator is troubleshooting connectivity between an Amazon EC2 instance in Subnet A () within VPC A () and an Amazon RDS MySQL DB instance in Subnet B () within VPC B (). A VPC peering connection (`pcx-99998888`) has been established and is active. However, the EC2 instance cannot connect to the database. Which of the following configuration changes must be performed to allow traffic between the EC2 instance and the database? (Select TWO.)
Select all that apply
A SysOps administrator is troubleshooting an Application Load Balancer (ALB) that is failing to route traffic to a target group of Amazon EC2 instances located in a private subnet. The web application on the instances is configured to listen on port , and the target group is configured to perform health checks on the same port. The ALB health checks are consistently failing with a timeout status. The ALB is in a public subnet, and its security group allows inbound traffic on ports and from `0.0.0.0/0`. Which of the following actions should the SysOps administrator take to resolve the unhealthy target status?
A SysOps administrator needs to configure AWS WAF logging for an Application Load Balancer to store all web request logs in an Amazon S3 bucket for compliance auditing. The administrator creates a bucket named web-application-waf-logs and attempts to enable WAF logging to this bucket, but receives an error stating that the destination is invalid. Which of the following is the reason for this error?
A company wants to implement a solution to monitor their AWS account for unexpected, machine-learning-driven spend spikes that deviate from their historical baseline. The SysOps Administrator must configure the system to send alerts to a specific Amazon Simple Notification Service (Amazon SNS) topic on a daily basis. Which solution meets these requirements with the minimum administrative effort?
A company hosts a web application on Amazon EC2 instances located in a private subnet. The instances are registered in a target group for an Application Load Balancer (ALB) that is deployed in the public subnets of the same VPC. The target group is configured for HTTP health checks on port 8080.
A SysOps administrator observes that all EC2 instances in the target group are marked as unhealthy. The administrator confirms that the web application is actively listening on TCP port 8080 on the EC2 instances. The security group for the EC2 instances allows inbound TCP traffic on port 8080 from the ALB security group.
The custom Network Access Control List (NACL) for the private subnet has an inbound rule allowing TCP traffic on port 8080 from the public subnets. However, the outbound rules for the private subnet's NACL only allow TCP traffic on ports 80 and 443 to the public subnets.
Which modification should the administrator make to resolve the failing health checks?
A SysOps administrator configures an Application Load Balancer (ALB) to route traffic to Amazon EC2 instances hosting a web application. The target group is configured to perform HTTP health checks on port 80 using the default path `/`. To meet security requirements, the administrator implements Basic Authentication at the web server level across the entire website. Shortly after, the ALB target group marks all EC2 instances as unhealthy. Which configuration change will resolve the target group health check failures?
An organization has deployed a set of backend application servers inside a private subnet () of a VPC. The application servers must access the internet to download critical package updates and must also query files from an Amazon S3 bucket. A NAT Gateway is deployed in the public subnet () to facilitate egress internet access, and a Gateway VPC endpoint is configured for Amazon S3. However, the application servers are currently unable to download packages from the internet or read objects from Amazon S3.
Which configuration checks should a SysOps administrator perform to resolve these connectivity issues? (Select TWO.)
Select all that apply
A SysOps Administrator is optimizing a fleet of Amazon EC2 instances hosting a distributed file-indexing service. The instances currently show high CPU utilization spikes, and AWS Compute Optimizer recommends upgrading to a larger instance type. However, the administrator suspects that the workload is memory-constrained and wants to ensure that memory utilization metrics are included in the recommendation analysis.
Which actions should the administrator perform to achieve this goal? (Select TWO.)
Select all that apply
A SysOps Administrator is setting up automated security monitoring for an AWS environment. The administrator has enabled Amazon GuardDuty and wants to implement automated remediation for EC2 instances that are flagged with a finding type of 'UnauthorizedAccess:EC2/MaliciousIPCaller.Custom'. The remediation must isolate the affected EC2 instance by attaching a security group that denies all inbound and outbound traffic.
Which combination of actions must the administrator perform to meet these requirements? (Select TWO.)
Select all that apply
A SysOps Administrator is configuring an Application Load Balancer (ALB) to distribute traffic to a fleet of Amazon EC2 instances. The EC2 instances run a web application that listens on port 3000. The Administrator creates a target group, sets the port to 3000, and registers the EC2 instances. After deployment, the load balancer reports that all registered instances are unhealthy. A direct curl request from a test instance to one of the application servers on http://<private-ip>:3000/api/status returns an HTTP 200 status code, but a request to http://<private-ip>:3000/ returns an HTTP 404 status code.
Which action will resolve this health check issue?
A SysOps Administrator is managing an application running on an Amazon EC2 instance. The application has been experiencing performance degradation, and AWS Compute Optimizer categorizes the instance as underprovisioned. The administrator observes that the CPU utilization regularly peaks at , while the memory utilization remains below . The memory utilization metrics are currently visible in Compute Optimizer because the Unified CloudWatch Agent is installed on the instance. Which actions should the SysOps Administrator take to right-size the instance and ensure future memory utilization metrics continue to be collected? (Select TWO.)
Select all that apply