Tüm alıştırma soruları

976 soru

Soru 61Soru

A SysOps Administrator needs to create an Amazon CloudWatch dashboard to monitor a production Amazon EKS cluster. The dashboard must include a widget that dynamically lists the top 10 EKS pods consuming the most memory. CloudWatch Container Insights is already enabled for the cluster. Which combination of actions must the SysOps Administrator perform to configure this dashboard widget? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Add a log table widget to the CloudWatch dashboard and select the `/aws/containerinsights/<cluster-name>/performance` log group as the source.; Write a CloudWatch Logs Insights query that filters events where `Type` is equal to `Pod`, sorts by `pod_memory_utilization` in descending order, and limits the output to 10.

Cevap

Add a log table widget to the CloudWatch dashboard targeting the performance log group, and write a CloudWatch Logs Insights query that filters by Pod, sorts by memory utilization in descending order, and limits the output to 10.
To display a dynamic list of ephemeral resources like EKS pods, you must query the raw performance logs collected by Container Insights rather than standard metric widgets. Container Insights writes structured JSON telemetry to the `/aws/containerinsights/<cluster-name>/performance` log group. By adding a log table widget to the dashboard and writing a Logs Insights query that filters for pod-level events, sorts them by memory usage, and limits the count to 10, the dashboard will dynamically display the top 10 memory-consuming pods in real time.

Adım Adım Çözüm

1
Add a log table widget to the CloudWatch dashboard and configure it to point to the `/aws/containerinsights/<cluster-name>/performance` log group.
The widget is ready to consume the performance telemetry logs generated by Container Insights.
Container Insights writes detailed telemetry data at the pod level as log events to this log group.
2
Configure the widget with a query that filters events on `Type = "Pod"`, sorts by `pod_memory_utilization desc`, and applies `limit 10`.
The log table widget dynamically displays the top 10 pods consuming the most memory.
A query is required to scan the structured JSON log events, retrieve the pod name and memory fields, and sort them dynamically.

Anahtar Kavram

CloudWatch Container Insights publishes granular performance logs to a dedicated log group, which can be dynamically queried and displayed in dashboards using Logs Insights widgets.
Soru 62Soru

A healthcare application uses an Amazon RDS for MySQL DB instance in a Single-AZ deployment. The database suffers from high CPU utilization due to a mix of transactional writes and read-intensive reporting queries. A SysOps Administrator must configure the database architecture to support automatic failover in the event of an Availability Zone outage and isolate the reporting workload from the transactional write operations. Which deployment strategy will satisfy these requirements?

Cevabı ve açıklamayı göster

Cevap: Enable the Multi-AZ feature on the DB instance. Create an RDS Read Replica in a different Availability Zone, and configure the reporting queries to use the Read Replica endpoint.

Cevap

Enable the Multi-AZ feature on the DB instance. Create an RDS Read Replica in a different Availability Zone, and configure the reporting queries to use the Read Replica endpoint.
The correct solution involves enabling Multi-AZ on the database to ensure automatic failover and high availability, while creating a separate Read Replica to handle the reporting workload. In an RDS Multi-AZ deployment, replication to the standby replica is synchronous, but the standby replica is passive and cannot accept read queries. Therefore, to offload reporting queries, a separate Read Replica must be created.

Adım Adım Çözüm

1
Analyze the database requirements: automatic failover for high availability and workload isolation for read-intensive reporting queries.
Identify that Multi-AZ provides synchronous replication and automatic failover, while Read Replicas provide asynchronous replication and read scaling.
To ensure transactional safety and high availability, Multi-AZ is required. To isolate read workloads, a separate readable endpoint is required because Multi-AZ standby instances are passive and cannot be read from.
2
Evaluate the proposed solutions against Amazon RDS capabilities.
The correct solution uses Multi-AZ for failover and a Read Replica for reporting queries.
This aligns with AWS best practices for scaling reads while maintaining a high availability posture.

Anahtar Kavram

Distinction between RDS Multi-AZ deployments for high availability and RDS Read Replicas for read scaling and workload isolation.
Tahmini Süre:1m 30s
Soru 63Soru

A SysOps administrator is setting up automated remediation for security groups that allow unrestricted inbound SSH traffic. An AWS Config rule detects non-compliant security groups and publishes compliance change events. The administrator configures an Amazon EventBridge rule to match these compliance changes and target the `AWS-DisablePublicAccessForSecurityGroup` Systems Manager Automation document. During testing, the AWS Config rule successfully marks a security group as non-compliant, but the Systems Manager Automation execution is not initiated. Which configuration change will resolve this issue?

Cevabı ve açıklamayı göster

Cevap: Attach an IAM policy to the EventBridge rule's execution role that grants the `iam:PassRole` permission for the Systems Manager Automation service role.

Cevap

Attach an IAM policy to the EventBridge rule's execution role that grants the `iam:PassRole` permission for the Systems Manager Automation service role.
The correct solution is to attach an IAM policy to the EventBridge rule's execution role granting the `iam:PassRole` permission for the Systems Manager Automation service role. This allows EventBridge to pass the execution role to Systems Manager, enabling the service to assume that role and perform the required remediation actions on the security group.

Adım Adım Çözüm

1
Identify the failure point where AWS Config detects the compliance change and the EventBridge rule matches the event but fails to start the Systems Manager Automation execution.
The failure is due to EventBridge not having sufficient authorization to delegate the Automation Assume Role to Systems Manager.
When EventBridge triggers an Automation execution that runs with a service role, it must have permission to pass that role to the Systems Manager service.
2
Add the `iam:PassRole` permission to the EventBridge rule's IAM execution role, targeting the Amazon Resource Name (ARN) of the Systems Manager Automation service role.
EventBridge is successfully authorized to pass the role.
This satisfies the security requirement for cross-service role delegation in AWS.
3
Test the automation by triggering a new non-compliant event in AWS Config.
The EventBridge rule successfully initiates the Systems Manager Automation execution, which disables public access on the target security group.
The remediation action now completes since the correct permissions are established.

Anahtar Kavram

IAM PassRole permissions for EventBridge to trigger Systems Manager Automation remediation
Soru 64Soru

An organization wants to automatically remediate Amazon SQS queues that are created without server-side encryption (SSE). An AWS Config rule evaluates the queues and generates compliance change events. A SysOps administrator wants to use Amazon EventBridge to detect these compliance changes and trigger the AWS-provided AWS-EnableSQSQueueEncryption Systems Manager Automation document to encrypt the non-compliant queues.

Which two configuration actions must the administrator perform to successfully set up this automated remediation pipeline? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure the EventBridge rule target to use the Input Transformer to extract the SQS queue URL from the AWS Config event details and map it to the Systems Manager Automation document parameters.; Create an IAM role for EventBridge that grants ssm:StartAutomationExecution permissions for the Systems Manager Automation document and iam:PassRole permissions for the Systems Manager Automation service role.

Cevap

To configure the remediation pipeline, the administrator must configure the EventBridge rule target to use the Input Transformer to extract the SQS queue URL from the AWS Config event details and map it to the Systems Manager Automation document parameters, and create an IAM role for EventBridge that grants ssm:StartAutomationExecution permissions for the Systems Manager Automation document and iam:PassRole permissions for the Systems Manager Automation service role.
To set up the automated remediation pipeline, two main components must be configured: event data mapping and IAM permissions. First, since the Systems Manager Automation document requires the SQS queue URL as an input, and this URL is nested inside the AWS Config event payload, the administrator must configure the EventBridge target with an Input Transformer to map the SQS queue URL from the event payload to the automation document's parameters. Second, the EventBridge rule needs permissions to invoke the Systems Manager Automation document via the ssm:StartAutomationExecution API, and it must have the iam:PassRole permission to pass the Systems Manager Automation service role to the Systems Manager service for execution.

Adım Adım Çözüm

1
Configure the IAM execution role for Amazon EventBridge.
EventBridge is granted permissions to start Systems Manager Automation executions and pass the required execution role.
EventBridge needs the ssm:StartAutomationExecution permission to run the document, and the iam:PassRole permission to safely delegate the Systems Manager Automation service role.
2
Map the resource payload using the EventBridge Input Transformer.
The target parameters of the automation document are correctly populated with the non-compliant SQS queue's URL.
Since the AWS Config compliance event contains the SQS queue URL in its detail payload, the Input Transformer must extract this value and map it to the document's input parameter.

Anahtar Kavram

Configuring event-driven automated remediation pipelines using AWS Config compliance change events, Amazon EventBridge, and AWS Systems Manager Automation.
Tahmini Süre:2m 0s
Soru 65Soru

A company operates a dynamic application environment that exhibits highly variable and un-forecastable daily resource utilization. A SysOps administrator must implement a cost-monitoring solution capable of identifying sudden, unexpected cost anomalies in near-real-time. When an anomaly is detected with a cost impact exceeding a specific threshold, the solution must automatically execute an AWS Systems Manager (SSM) Automation runbook to stop the offending resources. Which solution should the SysOps administrator implement to meet these requirements?

Cevabı ve açıklamayı göster

Cevap: Configure an AWS Cost Anomaly Detection monitor. Create an Amazon EventBridge rule that matches AWS Cost Anomaly Detection alert events and targets the AWS Systems Manager Automation runbook.

Cevap

Configure an AWS Cost Anomaly Detection monitor. Create an Amazon EventBridge rule that matches AWS Cost Anomaly Detection alert events and targets the AWS Systems Manager Automation runbook.
The correct solution involves configuring an AWS Cost Anomaly Detection monitor to leverage machine learning, which dynamically adjusts baselines for un-forecastable daily usage patterns. Because AWS Cost Anomaly Detection automatically publishes anomaly events to Amazon EventBridge, creating an EventBridge rule that filters for these alerts and targets an AWS Systems Manager Automation runbook allows the system to execute remediations automatically when the cost anomaly exceeds the designated threshold.

Adım Adım Çözüm

1
Choose the correct monitoring service for variable workloads.
AWS Cost Anomaly Detection is selected instead of AWS Budgets.
AWS Cost Anomaly Detection uses machine learning to dynamically model baseline spend, which is necessary to avoid false alarms on un-forecastable daily usage patterns.
2
Establish the resource scope and tag configuration.
Ensure any custom resource tags used for cost categorization are activated as Cost Allocation Tags in the AWS Billing Console.
Unactivated tags will not propagate to cost and billing services, rendering any tag-based cost monitors non-functional.
3
Configure the automated remediation pathway.
Create an Amazon EventBridge rule that triggers on AWS Cost Anomaly Detection events and sets the Systems Manager Automation runbook as the target.
AWS Cost Anomaly Detection subscriptions do not natively support executing Systems Manager Automation runbooks, necessitating EventBridge to route the anomaly alerts to the target runbook.

Anahtar Kavram

AWS Cost Anomaly Detection integration with EventBridge for automated remediation of variable workloads
Soru 66Soru

A company requires all Amazon S3 buckets to have default encryption enabled. A SysOps administrator has configured an AWS Config rule named s3-bucket-default-encryption-enabled to detect non-compliant buckets. The administrator wants to use Amazon EventBridge and AWS Systems Manager Automation to automatically enable server-side encryption on non-compliant buckets. Which of the following actions must the administrator perform to configure this remediation pipeline? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Create an Amazon EventBridge rule that triggers on AWS Config compliance status changes, and configure the target as the Systems Manager Automation document AWS-EnableS3BucketEncryption.; Configure the EventBridge rule target with an IAM execution role that has permissions to execute ssm:StartAutomationExecution on the target document and iam:PassRole for the Systems Manager Automation assume role.

Cevap

To configure this automated remediation pipeline, the administrator must create an Amazon EventBridge rule that triggers on AWS Config compliance status changes and targets the AWS-EnableS3BucketEncryption Systems Manager Automation document. Additionally, the administrator must configure the EventBridge rule target with an IAM execution role that has permissions to execute ssm:StartAutomationExecution on the target document and iam:PassRole for the Systems Manager Automation assume role.
The correct response involves creating an EventBridge rule that triggers when AWS Config detects a non-compliant resource and targets the Systems Manager Automation document for enabling S3 encryption. It also requires granting the EventBridge execution role the necessary ssm:StartAutomationExecution and iam:PassRole permissions to initiate the remediation.

Adım Adım Çözüm

1
Create an EventBridge rule that monitors compliance changes.
The rule detects when AWS Config evaluates an S3 bucket as non-compliant under the s3-bucket-default-encryption-enabled rule.
AWS Config sends compliance status change events to the default EventBridge event bus, which serves as the trigger mechanism.
2
Set the EventBridge target to the SSM Automation document.
EventBridge will route matching events to target the AWS-EnableS3BucketEncryption document.
This document natively enables server-side encryption on the non-compliant S3 bucket identified by the event.
3
Configure the execution role for the EventBridge target.
The execution role is granted ssm:StartAutomationExecution on the remediation document and iam:PassRole for the Systems Manager service role.
EventBridge requires permissions to initiate the automation workflow and must pass the execution role to Systems Manager so it can perform actions on the S3 bucket.

Anahtar Kavram

Configuring automated remediation of non-compliant resources using AWS Config compliance status events, Amazon EventBridge rules, and AWS Systems Manager Automation targets.
Soru 67Soru

A SysOps Administrator is setting up Amazon S3 Same-Region Replication (SRR) between a source bucket and a destination bucket in the same AWS account. The administrator enables versioning on the source bucket, creates an IAM role with the necessary S3 permissions, and defines the replication configuration. When the administrator runs the AWS CLI command `aws s3api put-bucket-replication` to apply the configuration, the command fails with an error. Which of the following is the most likely cause of this failure?

Cevabı ve açıklamayı göster

Cevap: The destination bucket does not have S3 versioning enabled.

Cevap

The destination bucket does not have S3 versioning enabled.
Amazon S3 replication requires versioning to be enabled on both the source and destination buckets. If versioning is not enabled on the destination bucket, S3 will reject the replication configuration with an error when attempting to apply it.

Adım Adım Çözüm

1
Review the requirements for configuring Amazon S3 replication.
Identify that S3 replication requires bucket versioning to be enabled on both the source and destination buckets.
S3 replication relies on version IDs to track and copy object updates accurately across buckets.
2
Analyze the validation behavior of the put-bucket-replication API call.
Confirm that the S3 API validates the versioning state of both the source and target buckets during configuration application.
Amazon S3 performs synchronous validation to ensure the destination bucket is ready to receive versioned replicas.
3
Enable versioning on the destination bucket.
The destination bucket is properly configured for versioned object storage, allowing replication to succeed.
This satisfies the S3 replication pre-requisite, resolving the validation failure.

Anahtar Kavram

Amazon S3 replication requires bucket versioning to be enabled on both the source and destination buckets.
Soru 68Soru

A SysOps administrator is using Amazon S3 Batch Operations to copy a large volume of objects from a source S3 bucket to a destination S3 bucket. The administrator creates an IAM role named S3BatchCopyRole to allow S3 Batch Operations to perform the copy on their behalf. The trust policy of S3BatchCopyRole is configured to allow the batchoperations.s3.amazonaws.com service principal to assume the role. However, when the administrator attempts to create the S3 Batch Operations job and specifies S3BatchCopyRole, the operation fails with an Access Denied error. The administrator's IAM user already has an attached policy granting full permissions to S3 (s3:*). Which action must be taken to successfully create the S3 Batch Operations job?

Cevabı ve açıklamayı göster

Cevap: Add a policy statement to the administrator's IAM user policy that allows the iam:PassRole action on the S3BatchCopyRole resource.

Cevap

Add a policy statement to the administrator's IAM user policy that allows the iam:PassRole action on the S3BatchCopyRole resource.
The correct action is to grant the administrator the iam:PassRole permission on the S3BatchCopyRole resource. When creating resources or jobs that run using a service role, AWS requires the initiating user to have permission to delegate (pass) that role to the service, preventing unauthorized privilege escalation.

Adım Adım Çözüm

1
Analyze the error context and identify the workflow.
An administrator is attempting to pass a service role (S3BatchCopyRole) to S3 Batch Operations to execute actions on their behalf.
When configuring AWS services to act on behalf of a user, the user's IAM identity must possess permission to pass the role.
2
Differentiate between iam:PassRole and sts:AssumeRole permissions.
The service principal (batchoperations.s3.amazonaws.com) requires sts:AssumeRole (configured in the role's trust policy), whereas the user configuring the service job requires iam:PassRole.
This prevents unauthorized users from configuring services with highly privileged roles that they themselves do not have access to.
3
Determine the necessary policy addition for the administrator.
Add an IAM policy granting 'iam:PassRole' on the target ARN of S3BatchCopyRole to the administrator's IAM user or group.
This permits the administrator to associate the role with the S3 Batch Operations job, resolving the Access Denied error.

Anahtar Kavram

IAM PassRole Permission
Soru 69Soru

A SysOps Administrator is implementing a security monitoring solution to detect whenever an AWS Identity and Access Management (IAM) access key is created or updated. The administrator configures an Amazon EventBridge rule in the eu-west-1 region with an Amazon Simple Notification Service (Amazon SNS) topic as the target. Although IAM access keys are being created and updated, the security team is not receiving any SNS notifications. Which of the following configurations should the SysOps Administrator implement to resolve this issue? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Recreate the Amazon EventBridge rule in the us-east-1 (US East (N. Virginia)) region.; Ensure that an active AWS CloudTrail trail is configured to capture global service events.

Cevap

Recreate the Amazon EventBridge rule in the us-east-1 region and ensure that an active AWS CloudTrail trail is configured to capture global service events.
Because IAM is a global AWS service, all of its API activities are processed and logged in the us-east-1 region. To monitor these activities in real time using Amazon EventBridge, the EventBridge rule must be created in the us-east-1 region. In addition, EventBridge relies on AWS CloudTrail logs to detect AWS API call events; hence, an active CloudTrail trail must be configured to log global service events.

Adım Adım Çözüm

1
Determine the regional scope of the AWS service being monitored.
IAM is a global service whose API endpoints reside in the us-east-1 region.
This determines where the API call events are delivered and processed.
2
Identify the event source for API detection in Amazon EventBridge.
EventBridge uses CloudTrail logs to detect API calls via the 'AWS API Call via CloudTrail' event source.
CloudTrail must be active and logging global events for EventBridge to trigger.
3
Verify target configuration and rule requirements.
EventBridge rules targeting SNS do not require iam:PassRole permissions.
This rules out standard IAM delegation misconfigurations.

Anahtar Kavram

Monitoring global service events with EventBridge and CloudTrail
Soru 70Soru

A SysOps Administrator is configuring an AWS Organizations trail in the management account (111111111111) to log API activity across all member accounts in the organization (o-exampleorgid). The logs must be stored in an Amazon S3 bucket named `my-organization-logs-bucket` in a dedicated log archive account (222222222222). The logs must also be encrypted at rest using a customer managed AWS KMS key located in the log archive account.

After creating the trail, the Administrator notices that logs are not being delivered to the S3 bucket, and CloudTrail reports a log delivery failure due to access denied errors.

Which two actions should the SysOps Administrator take to resolve this issue? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Update the S3 bucket policy in the log archive account (222222222222) to allow the `cloudtrail.amazonaws.com` service principal to perform `s3:PutObject` actions on the resource path `arn:aws:s3:::my-organization-logs-bucket/AWSLogs/o-exampleorgid/*`.; Update the KMS key policy in the log archive account (222222222222) to allow the `cloudtrail.amazonaws.com` service principal to perform `kms:GenerateDataKey*` and `kms:DescribeKey` actions on the KMS key.

Cevap

Updating the S3 bucket policy in the log archive account to allow the CloudTrail service principal to perform s3:PutObject actions on the path prefixed with the organization ID, and updating the KMS key policy in the log archive account to allow the CloudTrail service principal to perform kms:GenerateDataKey* and kms:DescribeKey actions.
To configure cross-account log delivery for an AWS Organizations trail with KMS encryption, the destination resource policies must be properly updated. First, the S3 bucket policy must grant `s3:PutObject` permission to the `cloudtrail.amazonaws.com` service principal under the organization prefix `AWSLogs/o-exampleorgid/*`. Second, because the bucket uses customer managed KMS encryption, the KMS key policy in the destination account must grant `kms:GenerateDataKey*` and `kms:DescribeKey` to the `cloudtrail.amazonaws.com` service principal to allow CloudTrail to generate encryption keys for the logs.

Adım Adım Çözüm

1
Analyze the log delivery path for an organization trail.
Identify that logs for organization trails are written using the format `AWSLogs/o-orgid/` instead of standard account prefixes.
Allows configuring the correct resource ARN in the S3 bucket policy to prevent access denied errors.
2
Review the required KMS key policy permissions for CloudTrail log encryption.
Determine that the key policy must grant `kms:GenerateDataKey*` and `kms:DescribeKey` to `cloudtrail.amazonaws.com`.
Ensures that the CloudTrail service can request data keys to encrypt logs before putting them into the S3 bucket.
3
Apply resource-based policies directly in the destination account.
Configure S3 bucket policies and KMS key policies in the log archive account (222222222222) targeting the service principal.
Enables secure cross-account log delivery without relying on IAM role assumption.

Anahtar Kavram

Cross-account log delivery for AWS Organizations trails using S3 bucket policies and KMS key encryption.
Tahmini Süre:2m 30s
Soru 71Soru

A SysOps Administrator is configuring a monitoring solution for an application that writes JSON-formatted log events to an Amazon CloudWatch Logs log group. A sample log event is shown below:

{
"eventType": "database_query",
"latency_ms": 120,
"statusCode": 500,
"clientIp": "192.0.2.1"
}

The administrator wants to track query performance by extracting the `latency_ms` value as a custom metric. If the `latency_ms` field is missing from a database query log event, the metric must record a default value of 50005000 ms. The administrator only wants to parse events where the `eventType` is equal to `"database_query"`.

Which combination of configurations must the administrator apply to meet these requirements? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Create a metric filter with the filter pattern `{ .eventType = "database_query" }`.; Configure the metric transformation with a metric value of `.latency_ms` and a default value of 50005000.

Cevap

Create a metric filter with the filter pattern `{ .eventType = "database_query" }` and configure the metric transformation with a metric value of `.latency_ms` and a default value of 50005000.
To create a custom metric from JSON logs, you define a metric filter with a specific JSON property matching pattern. The pattern `{ .eventType = "database_query" }` correctly filters for the target events. The metric transformation configuration maps the metric value to the JSON property `.latency_ms`. Setting the default value to 50005000 guarantees that if the `latency_ms` field is omitted from a matched log event, CloudWatch still publishes 50005000 to the metric, satisfying the requirement for handling missing values.

Adım Adım Çözüm

1
Define the JSON filter pattern to match targeted log events.
The pattern `{ $.eventType = "database_query" }` ensures only events containing this exact key-value pair are processed.
This isolates the database query logs from other application log events.
2
Configure the metric value and default value in the metric transformation.
The metric value is mapped to `.latencyms,andthedefaultvalueissetto.latency_ms`, and the default value is set to 5000$.
This extracts the query execution time and ensures that if the field is missing, a default timeout value of 50005000 ms is published.

Anahtar Kavram

CloudWatch Logs metric filters extract custom metrics from JSON log patterns and utilize default values to handle missing fields gracefully.
Soru 72Soru

A company hosts a processing application on Amazon EC2 instances in an Auto Scaling group (ASG). A SysOps administrator configures a step scaling policy based on a custom CloudWatch metric named QueueBacklog, which is published by the application every 60 seconds. During sudden load spikes, the administrator notices that although the metric exceeds the alarm threshold almost immediately, the ASG takes 5 minutes before launching new instances.

What is the most likely cause of this delay in scaling?

Cevabı ve açıklamayı göster

Cevap: The CloudWatch alarm associated with the step scaling policy is configured with a period of 300 seconds instead of 60 seconds.

Cevap

The CloudWatch alarm associated with the step scaling policy is configured with a period of 300 seconds instead of 60 seconds.
The correct answer is correct because CloudWatch alarms evaluate metrics over a specified period. Even if the application publishes the custom metric every 60 seconds, an alarm with a period of 300 seconds (5 minutes) will only evaluate the metric at 5-minute intervals. To reduce scaling latency, the alarm's period must be set to 60 seconds (1 minute) to match the publication frequency of the metric.

Adım Adım Çözüm

1
Analyze how metrics are evaluated by the scaling policy trigger.
The scaling policy is triggered by a CloudWatch alarm, which uses a defined metric, evaluation periods, and period length.
To understand the scaling delay, the administrator must check the alarm configuration rather than the metric publication frequency.
2
Compare the metric publication frequency with the alarm evaluation period.
The custom metric is published every 60 seconds, but the alarm is configured with a 300-second period.
This mismatch means the alarm waits for 300 seconds of data aggregation before evaluating the threshold, causing a 5-minute delay.
3
Rule out incorrect mechanisms like default cooldowns or EventBridge.
Step scaling ignores default cooldowns for scale-out, and EventBridge is not the trigger mechanism for step scaling.
Eliminating these options confirms that the alarm period is the root cause of the delay.

Anahtar Kavram

Auto Scaling policies rely on CloudWatch alarms. If the alarm period is larger than the metric publication interval, scaling decisions will be delayed because the alarm aggregates data over that longer period.
Soru 73Soru

A company's security policy requires that all Amazon RDS DB instances must remain private. A SysOps administrator is configuring automated remediation to detect any RDS DB instance modified to be publicly accessible and immediately revert it to private. The administrator has created a custom AWS Systems Manager (SSM) Automation runbook that modifies the DB instance's public accessibility parameter to false. The administrator has also created an IAM role named RemediationExecutionRole that has permissions to modify RDS DB instances.

To establish this automated remediation workflow using Amazon EventBridge and Systems Manager, which two configuration steps must the administrator perform? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure the EventBridge rule target to use an IAM role that contains the ssm:StartAutomationExecution permission for the custom runbook and the iam:PassRole permission targeting the RemediationExecutionRole ARN.; Configure the EventBridge rule target to invoke the custom Systems Manager Automation runbook, using an Input Transformer to extract the DBInstanceIdentifier from the event payload and passing the RemediationExecutionRole ARN as the AutomationAssumeRole parameter.

Cevap

The correct steps are to configure the EventBridge rule target to use an IAM role with ssm:StartAutomationExecution and iam:PassRole permissions for the RemediationExecutionRole, and to configure the EventBridge rule target to invoke the runbook while using an Input Transformer and passing the RemediationExecutionRole ARN as the AutomationAssumeRole parameter.
To remediate the public RDS instances automatically, the SysOps administrator must target the custom Systems Manager Automation runbook directly from EventBridge. Because Systems Manager runs the automation on the administrator's behalf using the RemediationExecutionRole, EventBridge must be allowed to pass this execution role to Systems Manager, which requires the iam:PassRole permission in the EventBridge execution role. In addition, the EventBridge rule target must be configured with an Input Transformer to map the database instance identifier from the event payload to the runbook's parameters, and pass the RemediationExecutionRole ARN as the AutomationAssumeRole parameter to ensure execution has correct permissions.

Adım Adım Çözüm

1
Grant permissions for triggering the runbook.
The EventBridge target role contains permissions for ssm:StartAutomationExecution on the custom runbook and iam:PassRole on the RemediationExecutionRole.
EventBridge needs permission to start Systems Manager Automation and to pass the execution role to the Systems Manager service.
2
Configure target mapping and parameters.
EventBridge passes the event details and execution role to Systems Manager when a match occurs.
This ensures the automation runbook executes with the correct role permissions and targets the correct database instance.

Anahtar Kavram

Automating resource remediation using Amazon EventBridge and AWS Systems Manager Automation requires establishing a clear event flow, passing correct execution context parameters, and configuring proper IAM permissions including iam:PassRole to delegate execution rights to Systems Manager.
Soru 74Soru

A company runs a latency-sensitive application on a fleet of Amazon EC2 instances. A SysOps Administrator is tasked with configuring a CloudWatch alarm to detect when the CPUUtilization metric exceeds 85%85\% for 33 consecutive 1-minute1\text{-minute} evaluation periods. If the threshold is breached, the administrator must configure a notification to be sent to an Amazon SNS topic. Currently, the instances are reporting metrics at the default interval.

Which configurations are required to meet these requirements? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Activate detailed monitoring on the EC2 instances to report metrics at 1-minute1\text{-minute} intervals.; Configure a CloudWatch alarm with a period of 60 seconds60\text{ seconds} and set the evaluation periods to 33.

Cevap

To monitor CPU utilization at 1-minute intervals and send SNS notifications, the administrator must activate detailed monitoring on the EC2 instances and configure the CloudWatch alarm with a period of 60 seconds and an evaluation period of 3.
To monitor and alert on a metric with 1-minute granularity, detailed monitoring must be enabled on the EC2 instances because the default standard monitoring reports CPU utilization metrics at 5-minute intervals. Additionally, the CloudWatch alarm must be configured with a period of 60 seconds and an evaluation period of 3 to check three consecutive 1-minute data points before triggering the alarm.

Adım Adım Çözüm

1
Enable detailed monitoring.
EC2 instances publish metrics to CloudWatch every 1 minute instead of the default 5 minutes.
Standard monitoring granularity is 5 minutes, which does not provide the 1-minute data resolution required for the alarm.
2
Configure CloudWatch alarm period and evaluation settings.
The alarm is configured with a period of 60 seconds and evaluation periods set to 3.
This setup allows CloudWatch to evaluate three consecutive 1-minute data points and transition the alarm to the ALARM state if the threshold is breached.

Anahtar Kavram

CloudWatch detailed monitoring provides 1-minute resolution metrics for EC2 instances, which is necessary for configuring alarms with periods shorter than 5 minutes.
Tahmini Süre:1m 30s
Soru 75Soru

An organization hosts a web application behind an Application Load Balancer (ALB). The instances are registered to a target group listening on port 80. The ALB health check is configured to check the path `/healthz`. During a recent deployment, the application configuration was updated, and now the load balancer reports all target instances as unhealthy, resulting in HTTP 503 Service Unavailable errors. A review of the web server logs on the instances shows that requests to `/healthz` return a status code of HTTP 302 (Found) and redirect to `/home`. Which action is the most direct way to resolve this issue and return the instances to a healthy state?

Cevabı ve açıklamayı göster

Cevap: Configure the target group's health check settings to include 302 in the Matcher (Success codes) range.

Cevap

Configure the target group's health check settings to include 302 in the Matcher (Success codes) range.
The correct action is to modify the target group's health check configuration to accept the HTTP 302 status code in the Success codes (Matcher) range. By default, Application Load Balancers expect an HTTP 200 response for health checks. Since the application redirects the health check path `/healthz` to `/home` with an HTTP 302 status code, the ALB marks the instances as unhealthy. Adding 302 to the matchers tells the ALB that a 302 redirect represents a healthy state.

Adım Adım Çözüm

1
Analyze the web server logs and ALB health check failure symptoms.
The server logs show HTTP 302 status codes being returned for `/healthz` health check requests.
By default, the ALB target group expects an HTTP 200 OK status code to mark target instances as healthy. Any other status code, including redirects like 302, is treated as a health check failure.
2
Adjust target group health check matcher settings to accommodate the application's redirect behavior.
The ALB now successfully marks the targets as healthy after receiving the HTTP 302 code.
By specifying '200,302' or '302' in the Success codes (Matcher) of the target group configuration, the ALB will accept the redirect response as normal functioning rather than an error.

Anahtar Kavram

Application Load Balancer health check status code matching
Soru 76Soru

A SysOps administrator has the following IAM policy attached to their IAM user:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EC2LaunchPermissions",
"Effect": "Allow",
"Action": [
"ec2:RunInstances",
"ec2:AssociateIamInstanceProfile"
],
"Resource": "*"
}
]
}

The administrator attempts to launch an Amazon EC2 instance and associate it with an existing IAM role named `WebServerRole` by running the following AWS CLI command:

`aws ec2 run-instances --image-id ami-0c55b159cbfafe1f0 --instance-type t3.micro --iam-instance-profile Name=WebServerProfile`

The command fails with the following error message:
`An error occurred (UnauthorizedOperation) when calling the RunInstances operation: User: arn:aws:iam::123456789012:user/AdminUser is not authorized to perform: iam:PassRole on resource: arn:aws:iam::123456789012:role/WebServerRole`

What modification should the administrator make to their user's IAM policy to successfully run the command?

Cevabı ve açıklamayı göster

Cevap: Add a statement to the user's IAM policy that allows the iam:PassRole action with the resource set to the ARN of the WebServerRole.

Cevap

Add a statement to the user's IAM policy that allows the iam:PassRole action with the resource set to the ARN of the WebServerRole.
To launch an EC2 instance with an IAM role, the administrator must have permission to associate that role with the instance. This is governed by the iam:PassRole permission. Adding a statement to the user's policy allowing the iam:PassRole action on the WebServerRole ARN grants this permission.

Adım Adım Çözüm

1
Identify the missing permission from the CLI error message.
The error message explicitly states that the user is not authorized to perform the iam:PassRole action on the WebServerRole resource.
Before an AWS service like EC2 can assume an IAM role, the user setting up the resource must possess permission to pass that role to the service.
2
Add the required permission to the administrator's IAM policy.
The iam:PassRole action is added, targeting the specific ARN of the WebServerRole.
This grants the administrator the client-side privilege to delegate the WebServerRole to the EC2 instance.

Anahtar Kavram

Delegating permissions to AWS services using the iam:PassRole action
Soru 77Soru

An enterprise monitoring system runs on an Amazon EC2 instance in Subnet Management (10.50.10.0/2410.50.10.0/24). It needs to scrape metrics from a Node Exporter service running on EC2 instances in Subnet Production (10.50.20.0/2410.50.20.0/24) on custom TCP port 91009100. Subnet Production is associated with a custom Network Access Control List (NACL) that currently blocks all inbound and outbound traffic by default.

Which combination of rules must be added to the Subnet Production NACL to allow the monitoring server to scrape metrics? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: An inbound rule allowing TCP traffic from 10.50.10.0/2410.50.10.0/24 on destination port 91009100; An outbound rule allowing TCP traffic to 10.50.10.0/2410.50.10.0/24 on destination ports 1024655351024-65535

Cevap

The correct combination of rules requires an inbound rule allowing TCP traffic from the Management subnet on destination port 91009100, and an outbound rule allowing TCP traffic to the Management subnet on destination ports 1024655351024-65535.
The correct combination consists of an inbound rule allowing TCP traffic from 10.50.10.0/2410.50.10.0/24 on destination port 91009100 and an outbound rule allowing TCP traffic to 10.50.10.0/2410.50.10.0/24 on destination ports 1024655351024-65535. The inbound rule is necessary because the monitoring client initiates a request to the Node Exporter on port 91009100. The outbound rule is necessary because NACLs are stateless, meaning return traffic must be explicitly permitted. Response packets are sent back to the client's ephemeral port range (1024655351024-65535).

Adım Adım Çözüm

1
Analyze the direction and ports of the initial request.
The monitoring server in Subnet Management (10.50.10.0/2410.50.10.0/24) initiates a connection to the Node Exporter in Subnet Production (10.50.20.0/2410.50.20.0/24) on destination port 91009100. This requires an inbound rule in the Production subnet's NACL to permit TCP traffic from 10.50.10.0/2410.50.10.0/24 on port 91009100.
NACL rules are applied at the subnet boundary and must permit traffic entering the subnet.
2
Determine the return path port requirements.
The client (monitoring server) uses a random ephemeral port (typically 1024655351024-65535) as the source port for the request. When the Node Exporter replies, the response packets will have the destination port set to this ephemeral port.
Standard TCP client-server communication uses client-side ephemeral ports for return traffic.
3
Configure the stateless outbound rule.
Because NACLs are stateless and do not automatically track connections, an outbound rule must be added to the Production subnet's NACL allowing TCP traffic to 10.50.10.0/2410.50.10.0/24 on destination ports 1024655351024-65535.
Outbound return traffic would otherwise be dropped by the default deny rule of the stateless NACL.

Anahtar Kavram

Network Access Control Lists (NACLs) are stateless packet filters that require explicit rules for both inbound and outbound traffic directions, including ephemeral ports for response traffic.
Soru 78Soru

A SysOps administrator is configuring an Amazon ECS task to run on an Amazon EC2 instance. The task must read data from an Amazon S3 bucket. The administrator creates an IAM role named ECSTaskS3AccessRole with an attached policy that allows S3 read access.

The trust policy for ECSTaskS3AccessRole is configured as follows:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ecs.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}

When the administrator attempts to run the task using the AWS CLI under the SysOpsAdmin IAM user identity, the command fails with the following error:
`ClientError: An error occurred (AccessDenied) when calling the RunTask operation: User: arn:aws:iam::123456789012:user/SysOpsAdmin is not authorized to perform: iam:PassRole on resource: arn:aws:iam::123456789012:role/ECSTaskS3AccessRole`

Which of the following actions are required to resolve this error and ensure the ECS task can successfully run with the required permissions? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Add an IAM policy statement to the SysOpsAdmin user that allows the iam:PassRole action targeting the ECSTaskS3AccessRole resource ARN.; Update the trust policy of the ECSTaskS3AccessRole to list ecs-tasks.amazonaws.com as the trusted service principal instead of ecs.amazonaws.com.

Cevap

To resolve the error, the administrator must add an IAM policy statement to the SysOpsAdmin user allowing the iam:PassRole action on the role, and update the role's trust policy to use the ecs-tasks.amazonaws.com service principal.
To run an Amazon ECS task with an IAM role, the user performing the action must have the iam:PassRole permission to pass the role to the ECS service. Additionally, the trust policy of the role must trust the ECS tasks service principal (ecs-tasks.amazonaws.com) to assume the role. Therefore, adding an IAM policy statement allowing iam:PassRole to the SysOpsAdmin user and updating the trust policy to use ecs-tasks.amazonaws.com are both required.

Adım Adım Çözüm

1
Identify the missing user permission
The error output explicitly states that the SysOpsAdmin user is not authorized to perform iam:PassRole on the role resource.
When launching an ECS task that uses a task role, AWS requires the calling user to have permission to pass that role to the service.
2
Grant the iam:PassRole permission
Add an identity-based policy statement to the SysOpsAdmin user containing Effect: Allow, Action: iam:PassRole, and Resource: arn:aws:iam::123456789012:role/ECSTaskS3AccessRole.
This authorizes the administrator to associate the role with the ECS task.
3
Correct the service trust relationship principal
Modify the 'Service' field in the role's trust policy from 'ecs.amazonaws.com' to 'ecs-tasks.amazonaws.com'.
The 'ecs.amazonaws.com' principal is for the core ECS service (e.g., managing instances/services), whereas ECS containers running tasks require the 'ecs-tasks.amazonaws.com' principal to assume the task role.

Anahtar Kavram

IAM PassRole permissions and service trust relationships for ECS tasks
Soru 79Soru

A SysOps Administrator runs drift detection on an AWS CloudFormation stack that manages a production environment. The drift detection report indicates that an Amazon RDS DB instance is in the DRIFTED state because a developer manually updated the DB instance class and changed the backup retention period directly in the Amazon RDS console.

Which two actions should the Administrator take to resolve this resource drift and bring the stack and the DB instance back into alignment?

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Modify the DB instance configuration directly in the Amazon RDS console to match the expected values defined in the CloudFormation template.; Update the CloudFormation template to match the current DB instance class and backup retention period, and then perform a stack update.

Cevap

To resolve the resource drift, the Administrator can either revert the manual changes directly in the Amazon RDS console to match the expected template values, or update the CloudFormation template to reflect the new resource properties and perform a stack update.
The correct actions to remediate resource drift are either to modify the actual resource configuration (reverting manual changes) to match the CloudFormation template's expected state, or to modify the CloudFormation template to match the current actual state of the resource and run a stack update.

Adım Adım Çözüm

1
Review the drift detection report to identify the drifted resources and their specific configuration changes.
The DB instance is found to have a different instance class and backup retention period compared to the expected template.
This determines the exact deviations that must be corrected to restore stack alignment.
2
Decide whether to revert the changes or accept them as the new baseline configuration.
Determined the appropriate path for drift resolution.
Allows selecting the correct remediation strategy based on business requirements.
3
Execute the chosen remediation strategy: either manually update the RDS instance in the console to match the template, or update the template and perform a CloudFormation stack update.
The drift is resolved, and the stack's status returns to IN_SYNC.
Synchronizes the stack definition and physical resources.

Anahtar Kavram

CloudFormation resource drift remediation
Soru 80Soru

An organization hosts a web application behind Application Load Balancers (ALBs) deployed in two AWS Regions: `us-west-2` and `eu-central-1`. A SysOps administrator must configure Amazon Route 53 to route traffic for the apex domain (`example.com`) to satisfy these requirements:

* All users located in Europe must be routed to the ALB in `eu-central-1` to comply with regional data privacy laws.
* Users outside of Europe must be routed to the ALB that provides the lowest network latency.
* The solution must support routing at the zone apex and minimize client-side DNS lookup overhead.

Which configuration should the SysOps administrator implement to meet these requirements?

Cevabı ve açıklamayı göster

Cevap: Create a Geolocation routing policy for `example.com`. Configure a rule for the Europe continent that points to the `eu-central-1` ALB using an Alias record. Configure the Default geolocation rule to point to `latency.example.com` using an Alias record. In the same hosted zone, create Latency routing records for `latency.example.com` that point to the ALBs in both regions using Alias records.

Cevap

Create a Geolocation routing policy for `example.com` with a rule for Europe pointing to the `eu-central-1` ALB and a Default rule pointing to `latency.example.com` using an Alias record, and then create Latency records for `latency.example.com` pointing to both ALBs using Alias records.
The correct configuration utilizes a Geolocation routing policy for the apex domain (`example.com`). A rule matching Europe continent traffic points directly to the `eu-central-1` ALB using an Alias record. The Default geolocation rule points to a subdomain (`latency.example.com`) using a nested Alias record. Within `latency.example.com`, Latency-based routing records point to both regional ALBs using Alias records. Because Route 53 resolves Alias records internally in a single step, the client browser receives the final IP address directly without any additional DNS queries or round-trips. This configuration fully supports the zone apex and respects the compliance and performance constraints.

Adım Adım Çözüm

1
Identify the primary routing constraint based on location.
European users must always go to `eu-central-1`. This requires a Geolocation routing policy as the entry point at the zone apex (`example.com`).
To comply with regional data privacy laws, geography-based routing must take precedence over latency.
2
Design the routing mechanism for non-European users.
Create Latency-based routing records under a subdomain (e.g., `latency.example.com`) pointing to both ALBs.
Users outside of Europe must be routed dynamically based on the lowest network latency.
3
Connect the primary Geolocation policy to the Latency policy while meeting the zone apex and performance requirements.
Configure the Default geolocation rule at `example.com` as an Alias record pointing to `latency.example.com`.
Using an Alias record instead of a CNAME satisfies the DNS zone apex requirement and allows Route 53 to resolve the nested query internally, avoiding extra client-side round-trips.

Anahtar Kavram

Using nested Alias records in Amazon Route 53 allows the integration of different routing policies (such as Geolocation and Latency) while adhering to zone apex limitations and optimizing DNS resolution speed.
ÖncekiSayfa 4 / 49Sonraki
Tüm alıştırma soruları — AWS Certified SysOps Administrator - Associate | Examkin