Tüm alıştırma soruları
976 soru
A company's security policy requires automatic rotation of database credentials stored in AWS Secrets Manager. A SysOps administrator writes a custom AWS Lambda function to perform the rotation logic. When trying to enable rotation for the database secret, the AWS Management Console displays an error indicating that the Secrets Manager service does not have permission to execute the rotation Lambda function. How should the administrator resolve this error to successfully enable rotation?
A SysOps Administrator is configuring an Amazon EC2 Auto Scaling group to launch instances with encrypted Amazon EBS volumes. The EBS volumes must be encrypted using a customer managed AWS KMS key in the same account ().
The administrator creates a custom IAM policy that grants the Auto Scaling service-linked role (`AWSServiceRoleForAutoScaling`) permission to perform `kms:Encrypt`, `kms:Decrypt`, `kms:ReEncrypt*`, `kms:GenerateDataKey*`, `kms:DescribeKey`, and `kms:CreateGrant` actions on the KMS key. This policy is successfully attached to the service-linked role.
The KMS key has the following key policy:
{
"Version": "2012-10-17",
"Id": "key-policy-ebs",
"Statement": [
{
"Sid": "Allow administration of the key",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:role/SysOpsAdminRole"
},
"Action": [
"kms:Create*",
"kms:Describe*",
"kms:Enable*",
"kms:List*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Get*",
"kms:Delete*",
"kms:ScheduleKeyDeletion",
"kms:CancelKeyDeletion"
],
"Resource": "*"
},
{
"Sid": "Allow cryptographic operations",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:role/ApplicationServerRole"
},
"Action": [
"kms:Encrypt",
"kms:Decrypt",
"kms:ReEncrypt*",
"kms:GenerateDataKey*",
"kms:DescribeKey"
],
"Resource": "*"
}
]
}
When the Auto Scaling group attempts to scale out, the new instances fail to launch, and the activity history indicates a failure to use the KMS key.
Which of the following modifications will resolve this issue?
A SysOps administrator has configured automatic rotation for a database secret in AWS Secrets Manager. The secret stores credentials for an Amazon RDS for PostgreSQL DB instance that is located in a private subnet. During testing, the automatic rotation fails, and the administrator observes that the credentials are not being updated on the database. Which of the following configuration changes should the SysOps administrator make to resolve this failure? (Select TWO.)
Geçerli olan tümünü seçin
A digital media platform distributes content globally via an Amazon CloudFront distribution. A SysOps administrator must defend the platform against application-layer DDoS attacks using AWS WAF. A partner organization crawls the platform for metadata updates from a known set of static IP addresses.
The administrator must implement a rate limit of requests per 5 minutes for all incoming client connections, while ensuring the partner's crawler is not affected by this limit and remains subject to all other security rules in the Web ACL. Additionally, the administrator must minimize the storage costs and ingestion fees of WAF logs in Amazon S3 by only recording traffic that is blocked by the Web ACL.
Which two actions must the administrator take to meet these requirements?
Geçerli olan tümünü seçin
A SysOps administrator is setting up an Amazon Data Firehose delivery stream to send application logs to an Amazon S3 bucket. The administrator creates an IAM role named FirehoseDeliveryRole to grant Firehose write access to the S3 bucket. However, when attempting to create the delivery stream using the AWS CLI, the administrator receives an Access Denied error.
Which of the following actions are required to resolve this issue and successfully create the delivery stream? (Select TWO.)
Geçerli olan tümünü seçin
An administrator is troubleshooting a failed stack update in AWS CloudFormation. The stack has entered the UPDATE_ROLLBACK_FAILED state. The update failed due to a misconfiguration in an Amazon EC2 launch template, and the subsequent rollback failed because the IAM service role originally associated with the stack was accidentally deleted.
Which combination of actions must the administrator take to successfully roll back the stack to a stable state? (Select TWO.)
Geçerli olan tümünü seçin
A SysOps Administrator is using AWS Systems Manager Run Command to execute the `AWS-RunPatchBaseline` document on a group of Amazon EC2 instances. All instances are powered on, and the SSM Agent is installed and running on each instance. Each instance has an IAM instance profile attached with the `AmazonSSMManagedInstanceCore` policy. The command targets instances using the tag key `PatchGroup` and value `Production`. The command executes successfully on several instances, but other instances with this intended configuration are neither updated nor shown in the Run Command target list.
Which two conditions could explain why these instances were not targeted?
Geçerli olan tümünü seçin
A SysOps Administrator is using AWS Systems Manager Run Command to execute the `AWS-RunPatchBaseline` document on a fleet of Amazon EC2 instances. The SSM Agent is running on all target instances, and the `AmazonSSMManagedInstanceCore` IAM policy is attached to their instance profiles. The administrator has created a custom patch baseline for production instances and associated it with a patch group named `Production`. However, during execution, the administrator discovers that the production instances are being patched using the default patch baseline instead of the custom production patch baseline. Which of the following is the most likely cause of this behavior?
A SysOps Administrator is configuring connectivity between an application server hosted on an Amazon EC2 instance in Subnet A () and an Oracle database instance in Subnet B () inside the same VPC. The database listens on TCP port . Security groups are already configured correctly to allow this traffic.
Subnet A is associated with NACL-A, which has the following custom rules:
* Inbound: Allow TCP port from Subnet B ()
* Outbound: Allow TCP port to Subnet B ()
Subnet B is associated with NACL-B, which has the following custom rules:
* Inbound: Allow TCP port from Subnet A ()
* Outbound: Allow TCP port to Subnet A ()
All other traffic in both NACLs is denied. The application server is unable to connect to the database.
Which of the following actions should the SysOps Administrator take to resolve this connectivity issue?
A company has deployed a fleet of backend processing instances in a private subnet () that must query an external license validation API at over HTTPS. The outbound traffic is routed through a NAT Gateway in the public subnet (). The Network Access Control List (NACL) associated with the private subnet currently has default deny rules for custom traffic. Which two changes are required in the private subnet's NACL to enable successful end-to-end communication with the license validation server?
Geçerli olan tümünü seçin
A SysOps Administrator is managing a multi-region application deployed on Amazon EC2 instances in both the `us-east-1` and `us-west-2` Regions. The application uses client-side encryption to protect configuration payloads before writing them to Amazon DynamoDB. To support this, the administrator created an AWS KMS Multi-Region primary customer managed key in `us-east-1` and replicated it to `us-west-2`.
The EC2 instances in `us-west-2` run under an IAM role with an IAM policy that allows `kms:Decrypt` on all resources (`"Resource": "*"`). However, when the application in `us-west-2` attempts to decrypt payloads that were encrypted in `us-east-1`, it receives an `AccessDeniedException` from AWS KMS.
Which of the following actions must the Administrator take to resolve this issue? (Select TWO.)
Geçerli olan tümünü seçin
A SysOps Administrator needs to execute an AWS Systems Manager Run Command document on a fleet of Amazon EC2 instances. The administrator wants to store the execution command output in an Amazon S3 bucket and ensure the log files are encrypted using a customer managed AWS KMS key.
Arrange the configuration steps in the correct order to set up secure command execution logging.
Öğeleri doğru sıraya koymak için sürükleyin
A SysOps Administrator is updating an AWS CloudFormation stack that manages an Auto Scaling Group. The update introduces a new Launch Template that references a new IAM instance profile. The update fails during execution, and CloudFormation attempts to roll back. However, the stack transitions to the UPDATE_ROLLBACK_FAILED state. The administrator reviews the stack events and discovers that CloudFormation does not have permission to associate the previous IAM instance profile with the Auto Scaling Group. Which action should the SysOps Administrator take to resolve this issue and successfully complete the rollback of the stack?
A SysOps administrator is configuring security protections for an AWS AppSync GraphQL API using AWS WAF. The administrator needs to protect the API from HTTP flood attacks from single client IP addresses, while ensuring that legitimate users are not blocked. The administrator also needs to log all blocked requests for security analysis, but must minimize Amazon CloudWatch Logs ingestion costs by excluding allowed requests from the logs.
Which two actions should the administrator take to meet these requirements? (Select TWO.)
Geçerli olan tümünü seçin
A company runs a fleet of EC2 instances within an isolated network environment. A SysOps Administrator attempts to run a maintenance script using AWS Systems Manager Run Command, targeting the instances manually. The SSM Agent is confirmed to be running on all target instances, and each instance has an IAM role with the AmazonSSMManagedInstanceCore policy attached. Despite these configurations, the Run Command execution fails immediately, and the instances are reported as "Offline" or "Inactive" in the Systems Manager console. Which configuration change will resolve this issue and allow the Run Command to execute?
A SysOps administrator is configuring an administration workflow where an automation tool running on an Amazon EC2 instance in Account A needs to launch new EC2 instances in the same account and attach a pre-configured IAM role named "WebServerRole" to them. The EC2 instance hosting the automation tool currently has permissions to perform the ec2:RunInstances action. However, when the automation tool attempts to launch a new instance with the "WebServerRole" attached, it receives an authorization error. Which of the following actions should the SysOps administrator take to resolve this issue? (Select TWO.)
Geçerli olan tümünü seçin
An administrator is managing an AWS CloudFormation stack that contains an Amazon RDS DB instance. A stack update fails because of an invalid parameter value, and the stack enters the UPDATE_ROLLBACK_FAILED state. Upon inspecting the stack events, the administrator discovers that a dependency resource was manually deleted outside of CloudFormation during the update, preventing the DB instance from rolling back to its previous configuration. Which two actions should the administrator take to successfully return the stack to a working state and reconcile the resource configurations? (Select TWO.)
Geçerli olan tümünü seçin
A SysOps Administrator is configuring an AWS Systems Manager Automation workflow to execute a custom script via Run Command on a fleet of Amazon EC2 instances targeted by instance tags. The instances are running, have the SSM Agent installed, and have the AmazonSSMManagedInstanceCore policy attached to their IAM instance profile. The administrator attempts to run the Automation using a custom IAM service role, but the execution fails immediately with an authorization error. Which actions must the administrator take to successfully execute the Automation? (Select TWO.)
Geçerli olan tümünü seçin
An organization hosts a self-hosted Git repository server on an Amazon EC2 instance in Subnet B (). Developer workspaces run on Amazon EC2 instances in Subnet A (). A SysOps Administrator configures custom Network Access Control Lists (NACLs) to allow developers in Subnet A to clone repositories from Subnet B over SSH (TCP port ).
The custom NACL for Subnet A has the following rule configuration:
- Outbound Rule : Allow TCP port to destination
The custom NACL for Subnet B has the following rule configuration:
- Inbound Rule : Allow TCP port from source
- Outbound Rule : Allow TCP ports to destination
Developers report that they cannot connect to the Git repository server. Which rule addition will resolve this network connection issue?
A SysOps administrator is using an IAM user account to deploy an AWS Lambda function that processes messages from an Amazon SQS queue. The administrator has already created a custom IAM execution role named LambdaSQSProcessorRole with all necessary permissions for the function. However, when the administrator attempts to create the Lambda function and associate it with this role, the operation fails with an AccessDenied error. Which of the following actions will resolve this issue?