All practice questions
976 questions
A SysOps Administrator needs to automate a weekly security compliance script on a fleet of Amazon EC2 instances. The administrator wants to use AWS Systems Manager State Manager to execute a custom SSM document. The execution logs must be saved to a centralized, encrypted Amazon S3 bucket. The administrator needs to configure the required IAM permissions, Systems Manager components, and verify the setup.
What is the correct sequence of steps to configure, automate, and verify this setup?
Drag items to arrange them in the correct order
A SysOps administrator is managing configuration parameters in AWS Systems Manager Parameter Store. To satisfy a security compliance requirement, a sensitive configuration parameter must be updated at least once every days. If the parameter is not updated within this period, the operations team must receive a notification. If the parameter remains unmodified after days, it must be automatically deleted to prevent the use of stale configurations.
Which combination of actions should the SysOps administrator take to meet these requirements? (Select TWO.)
Select all that apply
A SysOps administrator is configuring an AWS Database Migration Service (DMS) replication task to migrate database schemas to Amazon S3. The administrator creates a custom IAM role named DMSS3AccessRole to provide the required write access to the target S3 bucket. When the administrator attempts to save the DMS target endpoint with this role attached, the AWS Management Console displays an 'Access Denied' error. Which combination of actions must the SysOps administrator take to resolve this issue? (Select TWO.)
Select all that apply
An organization manages its multi-account environment using AWS Organizations. A SysOps administrator is configuring a deployment script on an Amazon EC2 instance in member Account A (). The EC2 instance is associated with an IAM instance profile that uses a role named `DeployerRole`.
The deployment script must launch new EC2 instances for an application tier and associate them with an existing IAM role named `ApplicationRole` in the same account. The administrator has attached the following IAM policy to the `DeployerRole`:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EC2RunInstances",
"Effect": "Allow",
"Action": "ec2:RunInstances",
"Resource": "*"
},
{
"Sid": "AssumeApplicationRole",
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::123456789012:role/ApplicationRole"
}
]
}
At the organization root, a Service Control Policy (SCP) is attached that includes the following statement to prevent unauthorized IAM modifications:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EnforceIAMGuardrails",
"Effect": "Deny",
"Action": [
"iam:Create*",
"iam:Delete*",
"iam:Update*"
],
"Resource": "*"
}
]
}
When the script executes, the attempt to launch the new EC2 instances fails with an `UnauthorizedOperation` error. Which action must the SysOps administrator take to resolve this issue and allow the script to successfully launch the instances?
A SysOps Administrator is setting up an AWS Systems Manager Automation execution that uses a custom runbook to perform administrative tasks across multiple Amazon EC2 instances. The SSM Agent is running on all target instances, and an IAM instance profile containing the AmazonSSMManagedInstanceCore policy is already attached. When the administrator attempts to start the Automation execution using a service role, the execution fails immediately with an access denied error. Which two actions are required to resolve this error and run the automation successfully? (Select TWO.)
Select all that apply
A SysOps administrator is troubleshooting log delivery for a multi-account setup. AWS CloudTrail in Account B is configured to send logs to a central Amazon S3 bucket in Account A. The S3 bucket is encrypted using an AWS Key Management Service (AWS KMS) customer managed key in Account A. Currently, no logs from Account B are being delivered to the S3 bucket.
Which of the following configuration changes are required to resolve this issue? (Select TWO.)
Select all that apply
An operations team manages an application's infrastructure using an AWS CloudFormation stack. During an unannounced maintenance window, an Amazon RDS DB instance managed by the stack was accidentally deleted and manually recreated with a new physical ID. The stack now shows a drift status of DELETED for the database resource. The team wants to associate the newly recreated DB instance with the existing CloudFormation stack without causing downtime or modifying the configuration of the active database.
Which of the following procedures should a SysOps administrator perform to achieve this goal?
A SysOps Administrator is using AWS Systems Manager Run Command to execute a custom shell script on a group of Amazon EC2 instances to perform a security configuration change. The target instances are located in a private subnet, have the SSM Agent installed and running, and have an IAM instance profile with the AmazonSSMManagedInstanceCore managed policy attached. The administrator specifies an encrypted Amazon S3 bucket to store the command execution logs. The S3 bucket is encrypted using a Customer Managed Key (CMK) in AWS KMS. Although the Run Command completes successfully on the instances, the administrator finds that no logs are delivered to the S3 bucket. A check of the SSM Agent log on the instances reveals an access denied error when attempting to upload the log files. Which action should the SysOps Administrator take to resolve this issue?
An organization uses AWS Systems Manager State Manager to enforce configuration compliance across a fleet of Amazon EC2 instances. The SSM Agent is installed and running on all instances, and they have the AmazonSSMManagedInstanceCore role attached. A SysOps administrator is configuring a State Manager association that runs a custom automation runbook requiring an IAM service role to execute. When attempting to create the association, the administrator receives an access denied error stating that they are not authorized to perform the iam:PassRole action on the resource. Which action must the administrator take to successfully create the association?
A SysOps administrator is configuring an AWS Systems Manager (SSM) Automation runbook in Account A () to automate security analysis. The runbook runs under the execution context of a service role named SSMAutomationServiceRole. The runbook is designed to launch a temporary Amazon EC2 instance that will perform the analysis. The EC2 instance must be launched with an instance profile associated with an IAM role named DiskAnalyzerInstanceRole.
Which of the following configuration steps must the administrator perform to ensure that the runbook can successfully launch the EC2 instance with the required role? (Select TWO.)
Select all that apply
A SysOps administrator is configuring an Amazon EC2 instance to execute a script that automatically retrieves configuration parameters from AWS Systems Manager Parameter Store. The administrator creates an IAM role named EC2ParameterStoreRole with the appropriate permissions and a trust policy that allows ec2.amazonaws.com to assume the role. A junior technician is assigned to launch the EC2 instance using the AWS CLI and associate the EC2ParameterStoreRole with the instance. The technician's IAM policy grants full access to EC2 (ec2:*). When attempting to run the CLI command to launch the instance with the specified role, the command fails with an UnauthorizedOperation error. Which action must the administrator add to the technician's IAM policy to resolve this error?
A SysOps Administrator is designing a centralized backup strategy using AWS Backup. The administrator needs to automatically copy weekly backups of Amazon EBS volumes from multiple member accounts in an AWS Organization to a centralized backup vault in a dedicated disaster recovery account. Which combination of actions must the administrator take to allow these cross-account copies? (Select TWO.)
Select all that apply
A company hosts a web application behind an Application Load Balancer (ALB). A SysOps administrator is tasked with protecting the application from SQL injection and Cross-Site Scripting (XSS) attacks. Which AWS service should the administrator configure to meet this requirement?
A SysOps Administrator needs to automate a multi-step patching and reboot sequence across a fleet of Amazon EC2 instances using a custom AWS Systems Manager Automation runbook. The SSM Agent is already installed and running on all target instances. The administrator wants to follow security best practices by using a service role to perform these actions.
Arrange the steps in the correct order to configure, authorize, and run this Automation workflow.
Drag items to arrange them in the correct order
A company uses an Amazon S3 bucket to store user-uploaded document archives in the us-east-1 Region. The system also uses a single-instance Amazon RDS for PostgreSQL database to manage document metadata. A SysOps Administrator is tasked with implementing a disaster recovery plan. The plan requires replicating the document archives to the us-west-2 Region, and configuring the database for high availability with automated, zero-downtime failover within the primary Region. Which actions must the SysOps Administrator take to meet these requirements?
A SysOps administrator is tasked with protecting a regional Amazon API Gateway endpoint from SQL injection attacks using AWS WAF. Which actions must the administrator perform to achieve this security objective? (Select TWO.)
Select all that apply
A company is using a multi-account AWS architecture. A SysOps administrator is configuring an application running on an Amazon EC2 instance in Account A (account ID ) that must retrieve a database connection string. The connection string is stored as a SecureString parameter named `/prod/db/connection_string` in AWS Systems Manager Parameter Store in Account B (account ID ). The parameter is encrypted with a customer managed AWS KMS key in Account B. Which configuration will allow the application in Account A to retrieve the parameter value?
A SysOps Administrator is tasked with setting up automated patch management for a fleet of Amazon Linux 2 EC2 instances. The organization requires that a custom patch baseline be applied to these instances during a specific weekly maintenance window. The patching process must target only the instances configured with the patch group 'Prod-Linux'. Arrange the following steps in the correct chronological sequence to configure this automated workflow.
Drag items to arrange them in the correct order
An operations engineer is setting up scheduled credential updates for an Amazon RDS for MySQL database using AWS Secrets Manager. Both the database instance and the Lambda function performing the rotation are deployed inside private subnets of a VPC that lacks a NAT gateway and internet connectivity. The initial test of the rotation fails because the Lambda function cannot access either the database or the Secrets Manager API. Which of the following actions should the administrator take to resolve this issue? (Select TWO.)
Select all that apply
A SysOps Administrator manages an AWS CloudFormation stack that contains an Amazon EC2 instance. A developer manually changed the instance type from to and added a new tag with key and value directly using the Amazon EC2 console. The administrator runs a drift detection scan on the stack, which reports the EC2 instance resource status as DRIFTED. The administrator wants to resolve this drift so that the CloudFormation stack matches the actual state of the running instance, and any future stack updates do not revert these changes. Which two actions should the administrator perform to resolve this drift? (Select TWO)
Select all that apply