Amazon Practice Questions, Discussions & Exam Topics by our Authors
A company is running distributed computing software to manage a fleet of 20 Amazon EC2 instances for calculations. The fleet includes 2 control nodes and 18 task nodes to run the calculations. Control nodes can automatically start the task nodes.
Currently, all the nodes run on demand. The control nodes must be available 24 hours a day, 7 days a week. The task nodes run f...
To optimize the cost of the solution, we need to focus on how to reduce the cost of EC2 instances based on their usage patterns. Let's evaluate the options:
Option A: Purchase EC2 Instance Savings Plans for the control nodes.
- Analysis: EC2 Instance Savings Plans provide a discount (compared to On-Demand prices) in exchange for a one- or three-year commitment to using a specific instance family, region, or operating system. Since the control nodes need to be available 24/7, they are a good candidate for this option. By committing to long-term usage, the company can save significantly on the cost of running the control nodes.
- Selected: This is a great option to reduce the cost for the control nodes because they are always running, and a Savings Plan offers a substantial discount for long-term usage.
Option B: Use Dedicated Hosts for the control nodes.
- Analysis: Dedicated Hosts are physical servers with EC2 instances running on them, which offer the benefit of having full control over instance placement. However, they are typically more expensive than On-Demand instances and Savings Plans. Dedicated Hosts are mainly useful for compliance or licensing reasons, not for cost optimization.
- Rejected: This option is generally more expensive and doesn't directly contribute to cost savings in the context of the control nodes, which would benefit more from Savings Plans.
Option C: Use Reserved Instances for the task nodes.
- Analysis: Reserved Instances (RIs) provide a discounted rate for instances in exchange for a one- or three-year commitment. However, the task nodes only run for 4 hours a day. The infrequent and short duration of their usage makes RIs less suitable, as they require consistent, lon...
Author: IceDragon2023 · Last updated May 8, 2026
A company is supposed to receive a data file every hour in an Amazon S3 bucket. An S3 event notification invokes an AWS Lambda function each time a file arrives. The function processes the data for use by an application.
The application team notices that sometimes the file does not arrive. The application team wants to ...
To solve the problem efficiently, we need to determine a solution that reliably alerts the application team if a file doesn't arrive within an hour, considering the constraints of S3, Lambda, and CloudWatch integration.
Let’s break down each option:
Option A: Add an S3 Lifecycle rule on the S3 bucket with a scope that is limited to objects created in the last hour. Configure another S3 event notification to be invoked by the lifecycle transition when the number of objects transitioned is zero. Publish a message to an SNS topic to notify the application team.
- Issues: This option uses S3 Lifecycle rules, which are designed to manage objects based on their age (transitioning to a different storage class, for instance). However, the task is to detect the absence of a file in the bucket, not to transition files. S3 event notifications are not typically triggered by lifecycle transitions. This method would be difficult to configure correctly and is not a suitable mechanism for detecting missing files.
- Rejected because: Lifecycle rules and event notifications on transitions are not optimal for detecting missing files and require complex setup.
Option B: Configure another S3 event notification to invoke a Lambda function that posts a message to an SQS queue. Create a CloudWatch alarm to publish a message to SNS when the ApproximateAgeOfOldestMessage metric of the queue is greater than 1 hour.
- Issues: While this option introduces the idea of using CloudWatch and SQS, it would be over-complicated. Each time a file arrives, a Lambda function triggers an event notification and posts the event to an SQS queue. The real-time check would then depend on monitoring the age of the oldest message in the queue. This solution introduces additional services (SQS) and adds unnecessary complexity to monitor a file arrival within an hour.
- Rejected because: The solution involves unnecessary complexity with SQS...
Author: Lucas · Last updated May 8, 2026
A company recently acquired another corporation and all of that corporation's AWS accounts. A financial analyst needs the cost data from these accounts. A
SysOps administrator uses Cost Explorer to generate cost and usage reports. The SysOps administrator notices that "No ...
To address the problem of untagged resources, we need a solution that efficiently identifies and tags resources without unnecessarily complex configurations. Let's evaluate the options:
Option A: Add the accounts to AWS Organizations. Use a service control policy (SCP) to tag all the untagged resources.
- Issues: While adding the accounts to AWS Organizations and using an SCP might help with central governance and policy enforcement, SCPs are primarily used to restrict actions rather than to tag resources. They cannot automatically enforce resource tagging. Therefore, this approach would not directly solve the issue of tagging untagged resources.
- Rejected because: SCPs cannot be used to tag resources; they are for controlling permissions, not resource management.
Option B: Use an AWS Config rule to find the untagged resources. Set the remediation action to terminate the resources.
- Issues: AWS Config rules can track resources and enforce compliance based on configurations. However, automatically terminating untagged resources could lead to serious disruptions and data loss. This is a very aggressive remediation approach and may not be acceptable in a production environment where resources may be untagged for various reasons.
- Rejected because: Terminating untagged...
Author: Sofia · Last updated May 8, 2026
While setting up an AWS managed VPN connection, a SysOps administrator creates a customer gateway resource in AWS. The customer gateway device resides in a data center with a NAT gateway in ...
When setting up an AWS managed VPN connection, the key is to identify the correct address to use for the customer gateway resource, as this is how AWS establishes the connection to the customer’s VPN device. Let’s analyze each option:
Option A: The private IP address of the customer gateway device
- The private IP address of the customer gateway device would be used if the customer gateway device is directly connected to AWS without any NAT device in between. However, since there is a NAT gateway in front of the customer gateway device, the private IP address would not be correct in this scenario because AWS needs to establish the connection over the public internet. Hence, this option is rejected.
Option B: The MAC address of the NAT device in front of the customer gateway device
- The MAC address of the NAT device is not relevant for establishing a VPN connection. The MAC address is a hardware address used for local network communication and not for IP-based communication over the internet, which AWS uses for the VPN. Thus, this option is rejected.
Option C: The public IP address of the customer gateway d...
Author: Scarlett · Last updated May 8, 2026
A company has a web application that is experiencing performance problems many times each night. A root cause analysis reveals sudden increases in CPU utilization that last 5 minutes on an Amazon EC2 Linux instance. A SysOps administrator must find the process ID (PID) of the service or process that is consum...
When troubleshooting performance issues on an EC2 instance, the goal is to determine the specific process or service consuming excessive CPU, while minimizing effort and ensuring a streamlined, automated approach. Let's evaluate each option:
Option A: Configure the Amazon CloudWatch agent procstat plugin to capture CPU process metrics
- The CloudWatch agent procstat plugin can be used to collect detailed process-level metrics, including CPU utilization by process, for an EC2 instance. By configuring this plugin, you can send detailed metrics such as process IDs (PIDs) and CPU usage to Amazon CloudWatch, which can then be monitored and analyzed over time. This option provides an automated, efficient solution that allows for continuous monitoring of process performance with minimal manual intervention. This option is optimal because it directly addresses the problem (capturing CPU utilization at the process level) and automates the data collection.
Option B: Configure an AWS Lambda function to run every minute to capture the PID and send a notification
- Using AWS Lambda to run every minute and capture the PID involves additional complexity, including setting up Lambda functions, permissions, and handling the captured data. While this approach would work, it is more cumbersome and involves significant setup and maintenance effort compared to the simpler CloudWatch agent solution in Option A. Furthermore, Lambda functions would need to actively collect and report data every minute, leading to potential resource consumption, especially if the issue is not occurring consistently. This option is rejected due to its complexity ...
Author: MoonlitPantherX · Last updated May 8, 2026
A SysOps administrator configured AWS Backup to capture snapshots from a single Amazon EC2 instance that has one Amazon Elastic Block Store (Amazon
EBS) volume attached. On the first snapshot, the EBS volume has 10 GiB of data. On the second snapshot, the EBS volume still contains 10 GiB of data, but 4
GiB have changed. On the th...
When considering AWS Backup and EBS snapshots, it’s important to understand how snapshots are managed and how storage is calculated. Let's evaluate each option based on the information provided:
Snapshot Mechanics:
- Incremental Snapshots: AWS EBS snapshots are incremental, meaning only the data that has changed between snapshots is stored. The first snapshot contains the entire volume, and subsequent snapshots only store the changes (deltas) between the snapshots.
- Storage Calculation:
- First Snapshot: This snapshot will store the entire volume data, which is 10 GiB in size.
- Second Snapshot: The second snapshot only captures the 4 GiB of changed data from the first snapshot (since the first snapshot already contains the original 10 GiB, and 4 GiB of it changed).
- Third Snapshot: The third snapshot contains the 2 GiB of added data (since 2 GiB of new data has been added to the volume, making the total size of the volume now 12 GiB).
Now, let’s calculate the total storage required for these snapshots:
- Snap...
Author: CrimsonViperX · Last updated May 8, 2026
A team is managing an AWS account that is a member of an organization in AWS Organizations. The organization has consolidated billing features enabled. The account hosts several applications.
A SysOps administrator has applied tags to resources within the account to reflect the environment. The t...
To meet the requirement of generating a report that breaks down charges by environment, the SysOps administrator needs to make sure that AWS can categorize and report costs based on the applied tags. Here's an analysis of each option:
Option A: Filter, map, and categorize resource groups in Tag Editor
- The Tag Editor allows the administrator to filter and categorize resources based on tags, but it does not directly assist with cost allocation. It helps in organizing and managing tags, but it doesn’t specifically generate cost breakdown reports. This option is rejected because it does not address the need to generate a report of charges by environment.
Option B: Ensure that the organization's service control policies (SCPs) allow access to cost allocation tags
- Service Control Policies (SCPs) in AWS Organizations are used to manage permissions at the organizational level. While they can restrict or grant access to resources, they are not directly related to generating cost allocation reports. Ensuring that SCPs allow access to cost allocation tags would not solve the requirement of generating a cost breakdown report by environment. This option is rejected because it doesn't directly contribute to generating cost reports.
Option C: Ensure that the IAM credentials that are used to access Cost Explorer have permissions to group cost by tags
- To generate cost breakdown reports using Cost Explorer, IAM credentials need the appropriate permissions t...
Author: Kunal · Last updated May 8, 2026
A company uses an AWS CloudFormation template to provision an Amazon EC2 instance and an Amazon RDS DB instance. A SysOps administrator must update the template to ensure that the DB instance is created before the ...
To ensure that the RDS DB instance is created before the EC2 instance in an AWS CloudFormation stack, the SysOps administrator must manage the creation order between the two resources. Let's evaluate each option based on the specific requirement:
Option A: Add a wait condition to the template. Update the EC2 instance user data script to send a signal after the EC2 instance is started.
- A wait condition allows you to pause the creation of resources until a signal is received. While this can be used to wait for specific events to occur before proceeding, it's more useful for complex workflows that require manual signaling. It doesn't specifically guarantee that the RDS instance is created before the EC2 instance. Also, using a wait condition might introduce unnecessary complexity, especially if the goal is simply to ensure the creation order. This option is rejected because it adds unnecessary complexity for the task at hand.
Option B: Add the DependsOn attribute to the EC2 instance resource, and provide the logical name of the RDS resource.
- The DependsOn attribute explicitly defines the order in which AWS CloudFormation creates resources. In this case, adding a DependsOn attribute to the EC2 instance resource ensures that CloudFormation will wait for the RDS instance to be created first before launching the EC2 instance. This solution is simple and directly meets the requirement of ensuring the correct creation order. This is the correct option because it precisely addresses the requirement with minimal effort.
...
Author: Akash · Last updated May 8, 2026
A company hosts a static website on Amazon S3. The website is served by an Amazon CloudFront distribution with a default TTL of 86,400 seconds.
The company recently uploaded an updated version of the website to Amazon S3. However, users still see the old content when they refresh the site. A SysOps adm...
The issue described is that users are still seeing the old content on the website, despite the updated version being uploaded to Amazon S3. This suggests that the CloudFront cache is serving the old content due to the default TTL setting of 86,400 seconds (24 hours). In order to make the updated content visible as soon as possible, the SysOps administrator needs to force CloudFront to fetch the new content from the S3 bucket immediately.
Let’s analyze each option:
A) Adjust the TTL value for the DNS CNAME record that is pointing to the CloudFront distribution.
- Analysis: The TTL value for the DNS CNAME record affects how long DNS records are cached by DNS resolvers, not how long CloudFront caches the website content. Adjusting the TTL for DNS records would not directly impact the CloudFront cache, so this option would not solve the problem of serving updated content.
- Rejected: It doesn’t address CloudFront’s caching of content, which is the root issue.
B) Create an invalidation on the CloudFront distribution for the old S3 objects.
- Analysis: An invalidation request in CloudFront forces the distribution to remove cached objects. After invalidation, CloudFront will fetch the updated content from the S3 bucket. This option directly solves the problem by ensuring that CloudFront serves the latest version of the website.
- Selected: This is the correct solution becau...
Author: John · Last updated May 8, 2026
A SysOps administrator is responsible for managing a company's cloud infrastructure with AWS CloudFormation. The SysOps administrator needs to create a single resource that consists of multiple AWS services. The resource must support creation and deletion through the CloudFo...
In this scenario, the SysOps administrator needs to create a single resource that consists of multiple AWS services and supports creation and deletion through the CloudFormation console.
Let's evaluate each option in detail:
A) AWS::EC2::Instance with a cfn-init helper script
- Analysis: The `AWS::EC2::Instance` resource is used to create an EC2 instance, and the `cfn-init` helper script is used for initialization tasks on the EC2 instance. However, this option creates a single EC2 instance, which might not encompass multiple AWS services. Additionally, while `cfn-init` can initialize software on the instance, it does not provide a way to directly create and manage multiple AWS services through CloudFormation.
- Rejected: This option does not fulfill the requirement of creating a single resource consisting of multiple AWS services.
B) AWS::OpsWorks::Instance
- Analysis: The `AWS::OpsWorks::Instance` resource creates an instance within AWS OpsWorks, a configuration management service. OpsWorks can manage multiple resources (such as EC2 instances and other configurations) but is primarily used for managing EC2 instances with a more focused, application-centric approach. It does not allow creating arbitrary combinations of multiple services as needed here.
- Rejected: This resource is specific to OpsWorks and does not provide flexibility to create a general resource consisting of multiple services from various AWS resources.
C) AWS::SSM::Document
...
Author: Sofia · Last updated May 8, 2026
A new website will run on Amazon EC2 instances behind an Application Load Balancer. Amazon Route 53 will be used to manage DNS records.
What type of record should be set in Route 53 to point the web...
To point the website's apex domain (e.g., `company.com`) to the Application Load Balancer (ALB), the appropriate DNS record type needs to be selected in Route 53. Let’s analyze each option:
A) CNAME
- Analysis: A `CNAME` record maps one domain name to another domain name (e.g., `www.example.com` to `example.com`). However, `CNAME` records cannot be used for apex domain names (the root domain, such as `company.com`). DNS standards prohibit using `CNAME` at the apex because it would conflict with other required records, such as `NS` and `SOA`.
- Rejected: This option is not valid for apex domain names.
B) SOA
- Analysis: The `SOA` (Start of Authority) record is a mandatory DNS record that defines the authoritative DNS server for the domain. It provides metadata about the zone but does not point a domain name to an endpoint, such as an ALB.
- Rejected: This record is not suitable for directing traffic to the ALB.
C) TXT
- Analysis: A `TXT` record allows for storing ar...
Author: Aarav · Last updated May 8, 2026
A company is implementing security and compliance by using AWS Trusted Advisor. The company's SysOps team is validating the list of Trusted Advisor checks that it can access.
...
When using AWS Trusted Advisor, the number and types of checks available are influenced by specific factors. Let's evaluate the given options to determine which one affects the number of available Trusted Advisor checks:
A) Whether at least one Amazon EC2 instance is in the running state
- Analysis: The number of Trusted Advisor checks is not dependent on the state of individual EC2 instances. Trusted Advisor checks focus on overall best practices for your AWS environment, rather than the operational status of EC2 instances.
- Rejected: This factor does not influence the number of available Trusted Advisor checks.
B) The AWS Support plan
- Analysis: The quantity and types of Trusted Advisor checks available depend heavily on the AWS Support plan.
- Basic and Developer Support plans provide access to a limited set of checks (i.e., 7 checks).
- Business and Enterprise Support plans provide access to the full set of checks, which includes over 50 checks, covering a wide range of AWS services and security best practices.
Therefore, the AWS Support plan directly affects the number of Trusted Advisor checks available to an account.
- Selected: This is the correct option because the AWS Support plan determines how many Trusted Advisor checks an account has access to, with...
Author: Olivia Johnson · Last updated May 8, 2026
A SysOps administrator is investigating issues on an Amazon RDS for MariaDB DB instance. The SysOps administrator wants to display the database load categorized by deta...
To investigate database load categorized by detailed wait events for an Amazon RDS for MariaDB DB instance, the SysOps administrator needs to focus on gathering specific performance metrics related to wait events.
Let’s analyze each option:
A) Create an Amazon CloudWatch dashboard
- Analysis: A CloudWatch dashboard provides a visual representation of CloudWatch metrics, including RDS metrics. However, it does not inherently categorize or provide detailed information about database wait events. While it can display metrics related to the RDS instance (such as CPU utilization, IOPS, etc.), it does not provide the detailed database-level wait event categorization necessary for understanding DB performance.
- Rejected: This option would help monitor general metrics but not detailed wait event information.
B) Enable Amazon RDS Performance Insights
- Analysis: Amazon RDS Performance Insights is designed specifically to help users monitor and analyze database performance. It categorizes database load by wait events, showing which specific operations are consuming the most resources. This makes it ideal for the SysOps administrator to understand the detailed database load, including wait events, which is exactly what the administrator is looking for.
- Selected: This is the correct option because Performance Insights provides detailed analysis of wait events and database load, which d...
Author: Isabella · Last updated May 8, 2026
A company is planning to host an application on a set of Amazon EC2 instances that are distributed across multiple Availability Zones. The application must be able to scale to millions of requests each second.
A SysOps administrator must design a solution to distribute the traffic to the EC2 instances. The solution must be optimized to handle ...
To address the requirements of the application, let's evaluate the different options based on the scenario's needs:
Key Requirements:
1. Distribute traffic across multiple Availability Zones: Traffic should be able to scale and be distributed effectively across different zones.
2. Scalability to handle millions of requests per second: The system should efficiently handle very high volumes of traffic.
3. Ability to manage sudden and volatile traffic patterns: The solution must be able to handle surges in traffic without performance degradation.
4. Single static IP address per Availability Zone: Each Availability Zone should have a unique static IP address for routing traffic.
A) Amazon Simple Queue Service (Amazon SQS)
- Analysis: Amazon SQS is a message queue service used for decoupling applications and enabling asynchronous communication. It’s not designed for traffic distribution across EC2 instances for high-volume, real-time traffic. SQS is suitable for scenarios where backend services need to process messages at a pace they can handle but not for distributing web traffic to EC2 instances.
- Rejection: It does not support distributing HTTP/HTTPS traffic to EC2 instances in a way that would meet the high-volume, real-time scaling requirements.
B) Application Load Balancer (ALB)
- Analysis: An Application Load Balancer operates at the application layer (Layer 7) and is designed to route HTTP and HTTPS traffic. It can distribute traffic across multiple EC2 instances in different Availability Zones. However, it does not provide static IP addresses per Availability Zone and is primarily intended for application-level traffic.
- Rejection: While ALB is excellent for HTTP/HTTPS traffic distribution, it does not offer the ability to provide a single static IP per Availability Zone, which is one of the key requirements.
C) AWS Global Accelerator
- A...
Author: Amira99 · Last updated May 8, 2026
A SysOps administrator is using AWS CloudFormation StackSets to create AWS resources in two AWS Regions in the same AWS account. A stack operation fails in one Region and return...
To address the failure described in the question, let’s break down each option and reason about the issue systematically:
Key Facts:
- The stack operation fails in one Region.
- The stack instance status is OUTDATED.
- The issue happens when using AWS CloudFormation StackSets to create resources in two different AWS Regions.
A) The CloudFormation template changed on the local disk and has not been submitted to CloudFormation.
- Analysis: If the CloudFormation template was modified locally but not submitted to CloudFormation, the StackSet operation should still use the old version of the template for deployment. This would not directly result in an "OUTDATED" status. Instead, the system would attempt to create or update resources based on the old template.
- Rejection: The "OUTDATED" status is not typically caused by a template being unsynced with the CloudFormation service, but by some other configuration mismatch or issue related to StackSet replication across Regions.
B) The CloudFormation template is trying to create a global resource that is not unique.
- Analysis: AWS CloudFormation StackSets allow you to create resources across multiple Regions, but some resources are global (e.g., IAM roles, AWS Organizations). Global resources need to be unique, and trying to create a non-unique global resource could result in a failure.
- Rejection: While this could cause a failure, it would not specifically result in an OUTDATED status for the stack instance. Typically, such failures would show a more specific error related to the global resource's uniqueness violation, not an outdated stack instance.
C) The stack has not yet been deployed to the Region.
- Analysis: The "OUTDATED" status usually indicates that the stack instance’s resources are not synchronized with the desired state defined in the template or the operation has been performed on them previously. The "OUTDATED" status generally ...
Author: Carlos Garcia · Last updated May 8, 2026
A SysOps administrator must configure Amazon S3 to host a simple nonproduction webpage. The SysOps administrator has created an empty S3 bucket from the
AWS Management Console. The S3 bucket has the default configuration in place.
Whi...
To configure Amazon S3 to host a simple nonproduction webpage, the SysOps administrator needs to take specific actions that allow public access to the S3 bucket and configure the bucket for static website hosting. Let's evaluate each option in detail:
A) Configure the S3 bucket by using the "Redirect requests for an object" functionality to point to the bucket root URL.
- Analysis: The "Redirect requests for an object" functionality is used when you want to redirect requests for specific objects to a different location, such as redirecting traffic to a different domain or S3 bucket. While this can be useful for redirects, it does not help in configuring the S3 bucket to host a webpage.
- Rejection: This option is not relevant for hosting a static webpage because the administrator should focus on static website hosting settings, not redirections.
B) Turn off the "Block all public access" setting. Allow public access by using a bucket ACL that contains <Permission>WEBSITE</Permission>.
- Analysis: The "Block all public access" setting is a security feature that prevents any public access to the bucket. To host a public webpage, this setting needs to be turned off. However, the use of a bucket ACL (Access Control List) with a `<Permission>WEBSITE</Permission>` entry is not a valid way to configure public access for static website hosting. Instead, public access should be granted using a bucket policy or by directly managing the permissions through a different mechanism.
- Rejection: The use of `<Permission>WEBSITE</Permission>` in a bucket ACL is not a valid or recommended approach for this purpose.
C) Turn off the "Block all public access" setting. Allow public access by using a bucket ACL that allows access to the AuthenticatedUsers grantee.
- Analysis: Turning off "Block all public access" is necessary to allow public access to the S3 bucket, but granting access to the AuthenticatedUsers grantee is not sufficient for hosting ...
Author: James · Last updated May 8, 2026
A company is using an Amazon Aurora MySQL DB cluster that has point-in-time recovery, backtracking, and automatic backup enabled. A SysOps administrator needs to be able to roll back the DB cluster to a specific recovery point within the previous 72 hour...
To meet the requirement of rolling back the DB cluster to a specific recovery point within the previous 72 hours and performing restores in the same production DB cluster, let's evaluate each of the options:
Key Factors:
- The ability to roll back to a specific recovery point within the last 72 hours.
- The restore must occur in the same DB cluster, meaning we do not want to restore data into a new DB cluster or replica.
A) Create an Aurora Replica. Promote the replica to replace the primary DB instance.
- Analysis: Creating an Aurora replica and promoting it to replace the primary DB instance is a valid option for disaster recovery but does not allow rolling back to a specific recovery point within a certain time range (like the last 72 hours). This solution is more for failover scenarios where the replica is used as a backup, but it doesn't provide the required functionality for point-in-time rollback in the same cluster.
- Rejection: This does not meet the requirement of rolling back to a specific point in time within the last 72 hours in the same cluster.
B) Create an AWS Lambda function to restore an automatic backup to the existing DB cluster.
- Analysis: Using an AWS Lambda function to restore an automatic backup can trigger the process of restoring the backup, but automatic backups in Aurora are designed for point-in-time recovery (PITR). Lambda would not provide a direct solution for recovering the DB cluster to a specific time; you would need to perform manual configuration to make this process work.
- Rejection: Although a Lambda function could automate backup restoration, it does not address the precise point-in-time recovery required by the administrator, especially for restoring in the same cluster.
C) Use backtracking to rewind the existing DB cl...
Author: Carlos Garcia · Last updated May 8, 2026
A user working in the Amazon EC2 console increased the size of an Amazon Elastic Block Store (Amazon EBS) volume attached to an Amazon EC2 Windows instance. The change is not reflected i...
To address the issue of the increased size of the Amazon Elastic Block Store (EBS) volume not being reflected in the file system, let's evaluate each option based on the situation.
Key Facts:
- The EBS volume size has been increased.
- The change is not reflected in the file system, meaning the OS still sees the old volume size.
- The instance in question is a Windows EC2 instance.
A) Extend the file system with operating system-level tools to use the new storage capacity.
- Analysis: After increasing the size of the EBS volume, the operating system (in this case, Windows) needs to recognize the new space and extend the file system to use it. On Windows, this can be done using the built-in Disk Management tool or PowerShell to extend the volume. This step is necessary because simply increasing the EBS volume size doesn't automatically extend the file system; the file system must be extended manually.
- Selected: This is the correct solution because it directly addresses the need to extend the file system to reflect the increased EBS volume size.
B) Reattach the EBS volume to the EC2 instance.
- Analysis: Reattaching the EBS volume is unnecessary if the volume is already attached to the instance. Simply detaching and reattaching the volume will not solve the issue of the file system not recognizing the expanded capacity. The problem is not with the attachment of the volume but with the file system not being extended.
- Rejection: This action does not resolve the issue because it doesn't extend the file system to utilize the new volume size.
...
Author: Andrew · Last updated May 8, 2026
A SysOps administrator is using Amazon EC2 instances to host an application. The SysOps administrator needs to grant permissions for the application to access ...
To grant permissions for an Amazon EC2 instance to access an Amazon DynamoDB table, the solution should follow best practices for securely managing AWS permissions and identities.
Let's analyze each option:
A) Create access keys to access the DynamoDB table. Assign the access keys to the EC2 instance profile.
- Reasoning: Access keys are generally used for programmatic access to AWS services. However, assigning access keys to an EC2 instance profile is not the recommended approach. EC2 instance profiles are designed to be used with IAM roles, not access keys. Managing access keys for EC2 instances could lead to security risks, such as accidental exposure of keys or poor key management.
- Rejected: Not the most secure or recommended approach.
B) Create an EC2 key pair to access the DynamoDB table. Assign the key pair to the EC2 instance profile.
- Reasoning: An EC2 key pair is used for SSH access to EC2 instances, not for granting access to AWS services like DynamoDB. It’s a means to authenticate an administrator when connecting to the EC2 instance and is unrelated to the permissions needed to access DynamoDB.
- Rejected: EC2 key pairs are for SSH access, not for granting service permissions.
C) Create an IAM user to access the DynamoDB table. Assign the IAM user to the EC2 instance profile.
- Reasoning: An IAM user is typically used to m...
Author: CrimsonViperX · Last updated May 8, 2026
A SysOps administrator wants to protect objects in an Amazon S3 bucket from accidental overwrite and deletion. Noncurrent objects must be kept for 90 days and then must be permanently deleted. Objects must reside wi...
Let's analyze each option to meet the requirements:
A) Create an Amazon Data Lifecycle Manager (Amazon DLM) lifecycle policy for the S3 bucket. Add a rule to the lifecycle policy to delete noncurrent objects after 90 days.
- Reasoning: Amazon Data Lifecycle Manager (DLM) is designed primarily for managing the lifecycle of EBS snapshots, not S3 objects. It is not used for setting policies to manage S3 objects, such as deleting noncurrent S3 objects after a specific time. Therefore, this option is not applicable.
- Rejected: DLM is not for S3 objects, so this option does not meet the requirements.
B) Create an AWS Backup policy for the S3 bucket. Create a backup rule that includes a lifecycle to expire noncurrent objects after 90 days.
- Reasoning: AWS Backup is used for creating backups of AWS resources and does not provide a direct method for managing the lifecycle of objects in an S3 bucket. While it may help in backing up S3 data, it does not provide a mechanism to enforce deletion or protection from accidental overwrites directly within the S3 service itself.
- Rejected: AWS Backup is not designed for managing the lifecycle of S3 objects, making this option unsuitable.
C) Enable S3 Cross-Region Replication on the S3 bucket. Create an S3 Lifecycle policy for the bucket to expire noncurrent objects after 90 days.
- Reasoning: S3 Cross-Region Replication (CRR) is used to automatically replicate objects from one...
Author: Akash · Last updated May 8, 2026
A company has an application that customers use to search for records on a website. The application's data is stored in an Amazon Aurora DB cluster. The application's usage varies by season and by day of the week.
The website's popularity is increasing, and the website is experiencing slower performance because of increased load on the DB cluster during periods of peak activity. The application logs show that the performance issues occur when users are searching for information. The same ...
To solve the performance issue with the Amazon Aurora DB cluster, we need to focus on optimizing performance during periods of peak activity, particularly when users are searching for information. Let's analyze each option:
A) Deploy an Amazon ElastiCache for Redis cluster in front of the DB cluster. Modify the application to check the cache before the application issues new queries to the database. Add the results of any queries to the cache.
- Reasoning: Using ElastiCache for Redis is an effective solution when the same queries are being repeatedly executed, as caching frequently accessed data can significantly reduce database load and improve performance. In this case, since the same search queries are rarely performed multiple times, caching the results may not provide significant benefits because each query is unique. Therefore, ElastiCache would be more useful in cases where queries have higher repetition, such as with frequent product lookups or popular searches.
- Rejected: Caching would not maximize resource efficiency due to the uniqueness of the queries, which limits its usefulness for this scenario.
B) Deploy an Aurora Replica for the DB cluster. Modify the application to use the reader endpoint for search operations. Use Aurora Auto Scaling to scale the number of replicas based on load.
- Reasoning: Aurora Replicas are read-only copies of the primary DB instance that can offload read traffic. In this case, if search queries are causing performance degradation, directing read traffic to Aurora Replicas would help distribute the load and reduce pressure on the primary DB instance. Aurora Auto Scaling can automatically adjust the number of replicas based on traffic, improving efficiency during peak loads. This is a suitable solution because it allows the DB cluster to scale dynamically based on demand and improves performance during periods of high read activity.
- Selected: This approach directly addresses the performance issue by offloading re...
Author: Amelia · Last updated May 8, 2026
A company uses AWS Organizations to manage multiple AWS accounts. Corporate policy mandates that only specific AWS Regions can be used to store and process customer data. A SysOps administrator must prevent the provisioning of Amazon EC2 instances in unauthorized R...
Let's evaluate each option based on the requirement to prevent provisioning Amazon EC2 instances in unauthorized regions, while ensuring the solution is operationally efficient.
A) Configure AWS CloudTrail in all Regions to record all API activity. Create an Amazon EventBridge (Amazon CloudWatch Events) rule in all unauthorized Regions for ec2:RunInstances events. Use AWS Lambda to terminate the launched EC2 instances.
- Reasoning: While this solution involves monitoring and reacting to EC2 instance provisioning, it requires extensive setup and management. CloudTrail needs to be configured in every region, and EventBridge rules need to be created for each unauthorized region. Additionally, AWS Lambda would need to terminate the EC2 instances, adding complexity and potential delays. This is operationally complex, requiring constant monitoring and intervention to handle unauthorized EC2 instances.
- Rejected: This is not the most efficient solution because it introduces significant operational overhead, requiring manual actions to terminate EC2 instances and extensive monitoring.
B) In each AWS account, create a managed IAM policy that uses a Region condition to deny the ec2:RunInstances action in all unauthorized Regions. Attach this policy to all IAM groups in each AWS account.
- Reasoning: This approach involves creating a policy with a condition to deny EC2 instance provisioning in unauthorized regions and attaching it to IAM groups. While effective at controlling permissions at the IAM level, this solution is not the most centralized. It would require managing the policies individually across multiple accounts, leading to increased administrative effort. Also, it's easier to manage and enforce such policies across accounts centrally through AWS Organizations.
- Rejected: This approach requires manual configuration and management across all accounts, which is not as operationally efficient as a centralized solution like Service Control Policies (...
Author: Maya2022 · Last updated May 8, 2026
A company's public website is hosted in an Amazon S3 bucket in the us-east-1 Region behind an Amazon CloudFront distribution. The company wants to ensure that the website is protected from DDoS attacks. A SysOps administrator needs to deploy a solution that gives the company the ability ...
Let's evaluate each option based on the requirement to protect the website from DDoS attacks and control the rate limit at which protections are applied:
A) Deploy a global-scoped AWS WAF web ACL with an allow default action. Configure an AWS WAF rate-based rule to block matching traffic. Associate the web ACL with the CloudFront distribution.
- Reasoning: AWS WAF is designed to provide protection for AWS resources such as CloudFront distributions. The global-scoped AWS WAF web ACL would apply across all regions where CloudFront distributions are deployed, making it ideal for managing traffic and rate-limiting protections. Configuring a rate-based rule to block matching traffic allows the administrator to control the rate limit for DDoS protection and block traffic once a threshold is exceeded.
- Selected: This option is appropriate because it provides centralized, region-agnostic protection via CloudFront and allows rate-limiting based on the WAF rule.
B) Deploy an AWS WAF web ACL with an allow default action in us-east-1. Configure an AWS WAF rate-based rule to block matching traffic. Associate the web ACL with the S3 bucket.
- Reasoning: While AWS WAF can protect S3 buckets, it is not the most optimal solution in this scenario because S3 is a regional service, and associating the WAF directly with the S3 bucket would only apply protection at the regional level. Furthermore, the S3 bucket is behind a CloudFront distribution, and it would be more efficient to apply AWS WAF at the CloudFront level to protect the entire website globally.
- Rejected: Associating WAF directly with an S3 bucket is less optimal than associating it with CloudFront, which is globally distribute...
Author: Amira · Last updated May 8, 2026
A SysOps administrator developed a Python script that uses the AWS SDK to conduct several maintenance tasks. The script needs to run automatically every night.
What i...
To determine the most operationally efficient solution for running the Python script every night, we need to evaluate the options based on several factors:
Key Factors:
- Automation: How easily can the solution be automated to run nightly?
- Management overhead: How much management and maintenance are needed to keep the solution running?
- Cost efficiency: Does the solution incur unnecessary costs?
- Scalability: Is the solution scalable in case the workload or requirements change?
- Operational simplicity: Does the solution minimize manual intervention and complexity?
Evaluation of Each Option:
A) Convert the Python script to an AWS Lambda function. Use an Amazon EventBridge (Amazon CloudWatch Events) rule to invoke the function every night.
- Pros:
- Serverless: AWS Lambda abstracts away the need for managing any infrastructure, making it easy to set up and operate.
- Automation: EventBridge rules are simple to set up for scheduled execution and do not require additional configuration after setup.
- Cost-efficient: Lambda pricing is based on execution time, so you're only paying for what you use.
- Scalable: AWS Lambda can handle varying loads with no need to manually scale or manage instances.
- Low maintenance: Once configured, Lambda functions are automatically managed by AWS, with no manual intervention needed.
- Cons:
- Execution Time Limitation: Lambda has a maximum execution time limit of 15 minutes. If the script takes longer to run, this option is not feasible.
- Cold Starts: If the script is not invoked frequently, cold starts may introduce slight delays, though this is usually not a concern for scheduled tasks.
- Best for: Tasks that are lightweight, quick, and can be handled by a serverless architecture.
B) Convert the Python script to an AWS Lambda function. Use AWS CloudTrail to invoke the function every night.
- CloudTrail is a service that records API calls in your AWS environment for auditing purposes, not for scheduling tasks. It is not meant to schedule or trigger events like running a Lambda function based on time.
- Rejected: CloudTrail cannot be used for scheduling Lambda executions, so this option is not suitable.
C) Deploy the ...
Author: Max · Last updated May 8, 2026
A SysOps administrator must create a solution that immediately notifies software developers if an AWS Lambda function experience...
To determine the most appropriate solution for notifying software developers when an AWS Lambda function experiences an error, let's evaluate each option using key factors like efficiency, notification type, scalability, and simplicity:
Key Factors:
- Automation: How automatically can the notification system be triggered and sent?
- Notification type: What types of notifications do the developers prefer (e.g., email, push notifications, etc.)?
- Simplicity: Does the solution minimize complexity and avoid unnecessary components?
- Scalability: Can the solution handle a growing number of developers or errors easily?
- Operational management: How much ongoing maintenance or setup is required?
Evaluation of Each Option:
A) Create an Amazon Simple Notification Service (Amazon SNS) topic with an email subscription for each developer. Create an Amazon CloudWatch alarm by using the Errors metric and the Lambda function name as a dimension. Configure the alarm to send a notification to the SNS topic when the alarm state reaches ALARM.
- Pros:
- Simple and efficient: SNS is easy to set up, and sending email notifications to multiple developers is straightforward.
- Automation: CloudWatch alarms are automatically triggered based on specified metrics, like errors in Lambda functions.
- Scalable: SNS can easily handle a growing list of subscribers (developers) and can notify them immediately.
- Low maintenance: Once set up, this solution requires little maintenance.
- Cons:
- None significant. The solution is efficient and meets the notification requirements.
- Best for: Immediate email notifications to multiple developers when a Lambda function experiences an error.
B) Create an Amazon Simple Notification Service (Amazon SNS) topic with a mobile subscription for each developer. Create an Amazon EventBridge (Amazon CloudWatch Events) alarm by using the LambdaError as the event pattern and the SNS topic name as a resource. Configure the alarm to send a notification to the SNS topic when the alarm state reaches ALARM.
- Pros:
- Mobile notifications: Allows for push notifications to developers' mobile devices, which could be beneficial for on-the-go alerting.
- Cons:
- EventBridge complexity: Using EventBridge for Lambda errors may add unnecessary complexity, as CloudWatch alarms are simpler for monitoring Lambda function errors.
- Additional configuration: Requires setting up mobile push notifications, which adds extra complexity compared to email alerts through SNS.
- Best for: Scenarios where mobile notifications are needed, but th...
Author: StarryEagle42 · Last updated May 8, 2026
A company has a private Amazon S3 bucket that contains sensitive information. A SysOps administrator needs to keep logs of the IP addresses from authentication failures that result from attempts to access objects in the bucket. The logs must be stor...
To meet the requirement of logging IP addresses from authentication failures for accessing objects in a private Amazon S3 bucket, we need to consider the following key factors:
Key Factors:
1. Authentication Failures Logging: The solution should be able to log failed access attempts, including the IP addresses of the clients making those attempts.
2. Log Protection: The logs must be protected from deletion or overwriting for 90 days, ensuring that the data is preserved for audit and compliance.
3. Retention Period: The solution must allow configuring the log retention period of exactly 90 days.
4. Operational Simplicity: The solution should be simple to configure and manage, with minimal ongoing operational overhead.
Evaluation of Each Option:
A) Create an AWS CloudTrail trail. Configure the log files to be saved to Amazon CloudWatch Logs. Configure the log group with a retention period of 90 days.
- Pros:
- CloudTrail logs provide detailed records of API calls to AWS services, including S3, which can capture authentication failures.
- CloudWatch Logs retention can be configured for 90 days, fulfilling the retention requirement.
- Cons:
- CloudTrail logs may not specifically capture failed object-level access attempts. CloudTrail records API calls to S3, but access denied logs (such as failed object access attempts) might not always be captured in the standard CloudTrail configuration unless detailed logging of specific actions is enabled.
- Best for: Recording API activity (e.g., `GetObject` failures) but not guaranteed to capture all authentication failure events like S3 access denial caused by incorrect permissions.
B) Create an AWS CloudTrail trail. Configure the log files to be saved to a different S3 bucket. Turn on CloudTrail log file integrity validation for 90 days.
- Pros:
- CloudTrail provides detailed records for S3 access and can capture failed authentication events at the API level.
- Log file integrity validation ensures the logs are tamper-proof, which satisfies the requirement of protection from deletion or modification.
- Cons:
- CloudTrail alone may not capture all object-level access failures for S3, depending on the API events configured. CloudTrail primarily logs API calls (e.g., `GetObject`), but it might not capture detailed failures or IP addresses related to object access failures.
- The solution does not directly store logs in a way that addresses the specific need for 90-day log retention in an immutable format like S3 Object Lock.
- Best for: API-level monitoring, but still not guaranteed to fulfill the detailed IP logging for object access failures, and would require additional configuration.
C) Turn on access logging for the S...
Author: Alexander · Last updated May 8, 2026
A SysOps administrator migrates NAT instances to NAT gateways. After the migration, an application that is hosted on Amazon EC2 instances in a private subnet cannot access the interne...
To determine the possible reasons why an application hosted on EC2 instances in a private subnet cannot access the internet after migrating from NAT instances to NAT gateways, let's break down each option and analyze them based on key factors.
Key Factors:
- NAT Gateway Support: NAT gateways support specific protocols and functions.
- Availability and State: If the NAT gateway is not properly configured or is in an incorrect state, it won't function as expected.
- Security Configuration: The security settings (security groups, NACLs) must allow traffic through the NAT gateway.
- Routing: The routing configuration must correctly route traffic from private subnets to the NAT gateway.
Evaluation of Each Option:
A) The application is using a protocol that the NAT gateway does not support.
- Explanation: NAT gateways support TCP and UDP traffic, but they do not support all protocols. For example, ICMP (used for ping) is not supported natively by NAT gateways, although it can be routed through a different path if needed.
- Rejection: This option might be plausible if the application uses a protocol not supported by the NAT gateway, such as ICMP. However, if the application is using standard TCP/UDP-based protocols (like HTTP or HTTPS), this is unlikely the cause.
- Best for: This issue can be ruled out unless the application explicitly uses unsupported protocols.
B) The NAT gateway is not in a security group.
- Explanation: NAT gateways do not use security groups directly. Security groups are applied to EC2 instances and network interfaces, but not to the NAT gateway itself. Instead, network ACLs (NACLs) control traffic at the subnet level.
- Rejection: This is not a valid reason because NAT gateways do not need security groups to function.
- Best for: Security groups apply only to instances, not to NAT gateways.
C) The NAT gateway is in an unsupported Availability Zone.
- Explanation: A NAT gateway must be created in an Availability Zone (AZ) that is accessible to the private subnet. If the NAT gateway is in a different AZ than the private su...
Author: ShadowWolf101 · Last updated May 8, 2026
A company runs an application on an Amazon EC2 instance. A SysOps administrator creates an Auto Scaling group and an Application Load Balancer (ALB) to handle an increase in demand. However, the EC2 instances are f...
To troubleshoot the issue of EC2 instances failing health checks after the SysOps administrator created an Auto Scaling group and an Application Load Balancer (ALB), we need to focus on the key factors that could cause the health check failures. Specifically, we need to verify how the ALB interacts with the EC2 instances and how health checks are configured.
Key Factors:
- Health Check Configuration: The health checks are essential for determining if the EC2 instances are healthy and can handle traffic. If the health check is incorrectly configured, the instances will fail the health check and be marked as unhealthy.
- Listener Configuration: The ALB uses listeners to route traffic to the instances. If the protocol or port is misconfigured, the health checks may fail.
- Auto Scaling Configuration: If the Auto Scaling group is incorrectly configured (such as with wrong instance limits), new instances may not be correctly launched, but this would be a secondary concern compared to the health check configuration.
Evaluation of Each Option:
A) Verify that the Auto Scaling group is configured to use all AWS Regions.
- Explanation: Auto Scaling groups operate within a specific Region, and there is no need for the Auto Scaling group to use multiple regions. An Auto Scaling group does not require multi-region configuration for this scenario.
- Rejection: This option is irrelevant because Auto Scaling groups are region-specific, and health check failures are more likely related to the configuration of the ALB or the application itself.
- Best for: This is not applicable to the situation.
B) Verify that the application is running on the protocol and the port that the listener is expecting.
- Explanation: The ALB listener checks the health of EC2 instances by sending requests to a specific port and protocol. If the application is running on a different port or using an unsupported protocol, the health check will fail.
- Selection: This is the most likely cause of the issue. If the application is listening on a different port or protocol th...
Author: John · Last updated May 8, 2026
A SysOps administrator has created an AWS Service Catalog portfolio and has shared the portfolio with a second AWS account in the company. The second account is controlled by a different administr...
In this scenario, the key point is that the second AWS account has received access to a shared AWS Service Catalog portfolio from the first AWS account. The second account’s administrator can perform actions based on the permissions given in the shared portfolio. Let's analyze each option:
Option A: Add a product from the imported portfolio to a local portfolio.
- This action refers to the ability to add an existing product from a shared portfolio to a local portfolio in the second account.
- The second account administrator can perform this action as long as they have been granted the necessary permissions to manage local portfolios. Importing a shared portfolio allows the administrator to organize products in a local portfolio, even though the products themselves are still managed and defined by the first account.
Option B: Add new products to the imported portfolio.
- This option would not be allowed.
- The imported portfolio is controlled by the first account, and the second account’s administrator does not have the permissions to add new products directly to that portfolio. They can only use or modify the shared products in accordance with the permissions set by the first account. Adding new products would require modification of the original portfolio, which the second account's admini...
Author: Carlos Garcia · Last updated May 8, 2026
A company has migrated its application to AWS. The company will host the application on Amazon EC2 instances of multiple instance families.
During initial testing, a SysOps administrator identifies performance issues on selected EC2 instances. The company has a strict budget allocation policy, so the
SysOps administrator must use the r...
In this scenario, the primary goal is to address performance issues by matching the appropriate EC2 instance types to the company's workload and budget, using the right resources for cost optimization. Let's evaluate each option:
Option A: Purchase regional Reserved Instances (RIs) for immediate cost savings. Review and take action on the EC2 rightsizing recommendations in Cost Explorer. Exchange the RIs for the optimal instance family after rightsizing.
- Why it may not be the best choice:
- Reserved Instances (RIs) are long-term commitments that provide a cost discount, but they lock you into specific instance families and regions.
- Although rightsizing recommendations in Cost Explorer could be useful, purchasing RIs upfront without first ensuring that the correct instance family is selected can lead to wasted resources if performance issues persist.
- Exchanging RIs later may result in additional overhead and potential complications, especially if instance types need to be swapped across families.
- The initial purchase of RIs does not directly address performance issues.
Option B: Purchase zonal Reserved Instances (RIs) for the existing instances. Monitor the RI utilization in the AWS Billing and Cost Management console. Make adjustments to instance sizes to optimize utilization.
- Why it may not be the best choice:
- This option is similar to Option A but focuses on zonal RIs, which are region-specific but tied to specific Availability Zones.
- Although this could optimize costs for current instances, purchasing RIs without addressing performance issues directly could exacerbate the problem by locking into inefficient instance sizes.
- Monitoring RI utilization can help with cost management, but it doesn't directly solve performance optimization or rightsizing the EC2 instances to meet workload demands effectively.
Option C: Review and take action on AWS Compute Optimizer recommendations. Purchase Compute Savings Plans to reduce the c...
Author: Noah · Last updated May 8, 2026
A SysOps administrator is tasked with deploying a company's infrastructure as code. The SysOps administrator want to write a single template that can be reused for multiple environments.
...
In this scenario, the SysOps administrator needs to deploy infrastructure as code that can be reused for multiple environments. The goal is to make the template flexible and adaptable to different settings without rewriting the code for each environment. Let's evaluate each option:
Option A: Use Amazon EC2 user data in a CloudFormation template.
- Why it’s not the best choice:
- User data is typically used to automate the configuration of EC2 instances at launch (e.g., installing software, configuring system settings).
- While useful for specific configurations of EC2 instances, it does not provide the flexibility needed for creating a reusable template across multiple environments. It’s not a tool for customizing or parameterizing resources at a higher level, such as creating resources in different environments.
- User data is too narrow in scope to allow for general reuse of a CloudFormation template across different environments.
Option B: Use nested stacks to provision resources.
- Why it may not be the best choice:
- Nested stacks are useful for breaking down large CloudFormation templates into smaller, reusable components. They can modularize the infrastructure, allowing for easier management of complex setups.
- However, nested stacks are generally used for organizing templates and reducing the size of the primary template. While nested stacks are good for modularity, they do not inherently address the need to make a template reusable across different environments in terms of parameters or configuration values.
- Nested stacks require additional configuration and do not directly provide the mechanism to tailor a single template for multiple environments, which is the core requirement in this case.
Option C: Use parameters in a CloudFormation template.
- Why it’s the best choice:
- Parameters...
Author: Vivaan · Last updated May 8, 2026
A SysOps administrator is responsible for a large fleet of Amazon EC2 instances and must know whether any instances will be affected by upcoming hardware maintenance.
Which o...
In this scenario, the SysOps administrator needs to know whether any EC2 instances will be affected by upcoming hardware maintenance, while minimizing administrative overhead. Let's evaluate each option:
Option A: Deploy a third-party monitoring solution to provide real-time EC2 instance monitoring.
- Why it’s not the best choice:
- While third-party monitoring solutions can provide comprehensive monitoring, including hardware maintenance alerts, they typically require significant setup and ongoing management.
- Third-party tools introduce additional administrative overhead in terms of configuration, maintenance, and integration with AWS. Given that AWS offers built-in features to track instance health and maintenance events, using a third-party solution would increase complexity and overhead without offering a better solution than AWS-native services.
Option B: List any instances with failed system status checks using the AWS Management Console.
- Why it’s not the best choice:
- System status checks identify hardware issues that may cause EC2 instances to fail, but they are not specifically designed to track upcoming hardware maintenance events.
- Checking for failed system status only provides information after an issue has already occurred, not proactively informing the SysOps administrator about upcoming hardware maintenance events. It also doesn’t address the upcoming maintenance events themselves, which is the primary concern here.
Option C: Monitor AWS CloudTrail for StopInstances API calls.
- Why it’s not the best choice:
- Monitoring CloudTrail for StopInstanc...
Author: Benjamin · Last updated May 8, 2026
A SysOps administrator is attempting to deploy resources by using an AWS CloudFormation template. An Amazon EC2 instance that is defined in the template fails to launch and produces an InsufficientInstanceCapacity er...
In this scenario, the SysOps administrator is encountering an InsufficientInstanceCapacity error when deploying an EC2 instance using AWS CloudFormation. This error typically occurs when there are not enough available resources (e.g., capacity in the selected Availability Zone) to launch the EC2 instance. The administrator must take actions that either avoid the error or work around the capacity issue. Let's evaluate the provided options:
Option A: Create a separate AWS CloudFormation template for the EC2 instance.
- Why it's not the best choice:
- Creating a separate CloudFormation template for the EC2 instance does not address the underlying issue of insufficient instance capacity. The error is related to resource availability, not the organization of the template.
- This action does not resolve the actual capacity issue or improve the ability of the instance to launch. It only changes the template organization without any practical impact on the deployment.
Option B: Modify the AWS CloudFormation template to not specify an Availability Zone for the EC2 instance.
- Why it's a good choice:
- By removing the Availability Zone specification, CloudFormation can automatically choose an Availability Zone that has the necessary capacity. This action allows AWS to place the EC2 instance in a different Availability Zone where there may be sufficient resources.
- Availability Zones within a region often have differing levels of capacity, and not specifying an Availability Zone gives CloudFormation the flexibility to select a zone with available resources, which can help mitigate the InsufficientInstanceCapacity error.
Option C: Modify the AWS CloudFormation template to use a different EC2 instance type.
- Why it's a good choice:
- The InsufficientInstanceCapacity error can sometimes be specific to the instance type being requested. If AWS does not have enough capacity for the requested EC2 instance type in a given Availability...
Author: Ming · Last updated May 8, 2026
A company hosts a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The company uses Amazon Route 53 to route traffic.
The company also has a static website that is configured in an Amazon S3 bucket.
A SysOps administrator must use the static website as a backup to the web applicati...
To ensure a failover mechanism where the static website hosted in an S3 bucket is used as a backup to the web application behind an ALB, the configuration needs to involve Route 53 failover routing policies that monitor the health of the primary (ALB) and automatically switch to the secondary (S3 static website) when the primary becomes unhealthy.
Explanation of the options:
Option A: Create a primary failover routing policy record. Configure the value to be the ALB.
- Rejected: This option by itself is not sufficient because a failover routing policy requires both primary and secondary records, along with health checks. While it's necessary to define the ALB as the primary target, it does not mention the backup static website or health check configuration, so it's incomplete.
Option B: Create an AWS Lambda function to switch from the primary website to the secondary website when the health check fails.
- Rejected: While using AWS Lambda for automated switching sounds like an interesting idea, this is not the most straightforward solution and would require custom code to continuously monitor and switch between the ALB and S3. This would add unnecessary complexity when AWS provides native support for failover routing with Route 53.
Option C: Create a primary failover routing policy record. Configure the value to be the ALB. Associate the record with a Route 53 health check.
- Selected: This is a valid option...
Author: David · Last updated May 8, 2026
A data analytics application is running on an Amazon EC2 instance. A SysOps administrator must add custom dimensions to the metrics collected by the Amazon
Clou...
To meet the requirement of adding custom dimensions to the metrics collected by the Amazon CloudWatch agent, the SysOps administrator needs to modify the configuration of the CloudWatch agent in a way that allows the addition of custom dimensions to the collected metrics.
Explanation of the options:
Option A: Create a custom shell script to extract the dimensions and collect the metrics using the Amazon CloudWatch agent.
- Rejected: Although creating a custom shell script might work for specific use cases, this approach would add complexity and is not the most efficient or native way to configure CloudWatch agent for custom dimensions. It would require manual handling of data extraction and integration with the CloudWatch agent, which could result in additional maintenance and error-prone configurations.
Option B: Create an Amazon EventBridge (Amazon CloudWatch Events) rule to evaluate the required custom dimensions and send the metrics to Amazon Simple Notification Service (Amazon SNS).
- Rejected: Amazon EventBridge (CloudWatch Events) is useful for triggering events and automating responses to AWS service changes, but it is not designed to be directly involved in collecting metrics with custom dimensions. SNS can be used for notifications but is not related to adding custom dimensions to CloudWatch metrics.
Option C...
Author: James · Last updated May 8, 2026
A company stores its data in an Amazon S3 bucket. The company is required to classify the data and find any sensitive personal information i...
The requirement here is to classify the data in the S3 bucket and identify any sensitive personal information (PII). This requires a service that can specifically analyze the content of S3 files and detect sensitive data, such as names, social security numbers, credit card numbers, etc.
Explanation of the options:
Option A: Create an AWS Config rule to discover sensitive personal information in the S3 files and mark them as noncompliant.
- Rejected: AWS Config is primarily used for resource configuration compliance monitoring, not for detecting sensitive data in the content of S3 objects. While AWS Config can track resource changes and compliance with rules, it does not have the capability to analyze the contents of S3 files for sensitive information. This option does not directly meet the requirement to classify and identify sensitive PII in the files.
Option B: Create an S3 event-driven artificial intelligence/machine learning (AI/ML) pipeline to classify sensitive personal information by using Amazon Rekognition.
- Rejected: Amazon Rekognition is a service used primarily for image and video analysis, such as object detection, facial recognition, and text in images. While Rekognition can extract text from images, it is not designed to scan or classify sensitive personal information in textual S3 files, like PDFs, text files, or spreadsheets. This makes it unsuitable for detect...
Author: Lucas · Last updated May 8, 2026
A company hosts a web portal on Amazon EC2 instances. The web portal uses an Elastic Load Balancer (ELB) and Amazon Route 53 for its public DNS service.
The ELB and the EC2 instances are deployed by way of a single AWS CloudFormation stack in the us-east-1 Region. ...
To make the web portal highly available across multiple AWS Regions, the solution needs to involve a multi-region architecture where traffic is routed to the correct Region based on availability. The solution also needs to handle failover between Regions if one of them becomes unavailable.
Explanation of the options:
Option A: Deploy a copy of the stack in the us-west-2 Region. Create a single start of authority (SOA) record in Route 53 that includes the IP address from each ELB. Configure the SOA record with health checks. Use the ELB in us-east-1 as the primary record and the ELB in us-west-2 as the secondary record.
- Rejected: The SOA record is used for DNS zone information and not for routing traffic to different AWS resources like Elastic Load Balancers (ELBs). Also, using an SOA record for traffic routing and health checks is not a supported approach. Route 53 requires A or CNAME records for routing, not SOA records. Therefore, this option is not suitable.
Option B: Deploy a copy of the stack in the us-west-2 Region. Create an additional A record in Route 53 that includes the ELB in us-west-2 as an alias target. Configure the A records with a failover routing policy and health checks. Use the ELB in us-east-1 as the primary record and the ELB in us-west-2 as the secondary record.
- Selected: This is the correct solution. By deploying a copy of the stack in us-west-2, you create a multi-region architecture. Route 53 is configured with an A record that uses failover routing. The primary record points to the ELB in us-east-1, and the secondary record points to the ELB in us-west-2. Health checks are set up to ensure that Route 53 routes traffi...
Author: IronLion88 · Last updated May 8, 2026
A SysOps administrator is investigating why a user has been unable to use RDP to connect over the internet from their home computer to a bastion server running on an Amazon EC2 Windows i...
When troubleshooting an issue where a user is unable to connect to a bastion server running on an Amazon EC2 Windows instance using RDP (Remote Desktop Protocol), several possible causes need to be considered. Specifically, RDP typically uses port 3389, and the connection may be blocked by network-related issues, security group misconfigurations, or routing problems.
Explanation of the options:
Option A: A network ACL associated with the bastion's subnet is blocking the network traffic.
- Selected: Network Access Control Lists (ACLs) can be used to control traffic at the subnet level. If the NACL associated with the bastion's subnet is configured to block inbound or outbound traffic on port 3389 (used by RDP), the user would not be able to establish an RDP connection. It's important to ensure that NACLs allow both inbound and outbound traffic on port 3389.
Option B: The instance does not have a private IP address.
- Rejected: Every EC2 instance, including Windows instances, is automatically assigned a private IP address when launched, regardless of whether it has a public IP address. The absence of a private IP address would not prevent the RDP connection. If the instance does not have a public IP, it could still be accessed through other means (e.g., via a VPN or via a bastion host).
Option C: The route table associated with the bastion's subnet does not have a route to the in...
Author: John · Last updated May 8, 2026
A SysOps administrator is examining the following AWS CloudFormation template:
Why will the stack...
To determine why the stack creation will fail, let's go through each option in detail and assess its impact on the CloudFormation template.
A) The Outputs section of the CloudFormation template was omitted.
- Analysis: The Outputs section in a CloudFormation template is optional. It is used to define output values that can be imported into other stacks, displayed to the user, or for further use in automation. If the Outputs section is omitted, the stack creation will not fail. Therefore, this option is not the reason for failure.
B) The Parameters section of the CloudFormation template was omitted.
- Analysis: The Parameters section is also optional in a CloudFormation template. While it is commonly used to allow stack users to input values when creating the stack, its absence will not cause the stack creation to fail. The absence of parameters means that the template uses only default values or hardcoded values. Hence, this option does not explain the failure.
C) The PrivateDnsName cannot be set from a CloudFormation template.
- Analysis: PrivateDnsName is often associated with Amazon resources like EC2 instances, or Elastic Load Balancers (ELB), and is used to define the private DNS name within a VPC. In many cases, the PrivateDnsName is au...
Author: Emma Brown · Last updated May 8, 2026
A new application runs on Amazon EC2 instances and accesses data in an Amazon RDS database instance. When fully deployed in production, the application fails. The database can be queried from a console on a bastion host. When looking at the web server logs, the following error is repeated multiple time...
Let's evaluate each of the options to determine the most likely causes of the connectivity problems and why others can be rejected:
A) The security group for the database does not have the appropriate egress rule from the database to the web server.
- Analysis: Security groups in AWS control inbound and outbound traffic for EC2 instances and RDS instances. However, RDS security groups control ingress (incoming) traffic, not egress (outgoing) traffic. Since the web server is trying to connect to the database, the issue would be related to the ingress rule, not egress. Therefore, this option is not correct.
B) The certificate used by the web server is not trusted by the RDS instance.
- Analysis: This could be a potential issue if the application is trying to connect to the RDS instance using SSL/TLS encryption, and the web server’s certificate is not trusted by the RDS instance. However, this issue typically manifests as an SSL/TLS handshake failure or a connection error related to SSL rather than the "Error Establishing a Database Connection" message, which is more commonly caused by network-related issues or misconfigurations. Therefore, this option is less likely.
C) The security group for the database does not have the appropriate ingress rule from the web server to the database.
- Analysis: This is a likely cause. In AWS, a security group is used to define which incoming (ingress) and outgoing (egress) traffic is allowed. If the security group associated with the RDS instance does not allow inbound traffic on the port the web server is using to connect to the database (usually port 3306 for MySQL or 5432 for ...
Author: FlamePhoenix2025 · Last updated May 8, 2026
A compliance team requires all administrator passwords for Amazon RDS DB instances to be changed at least annually.
Which solution meets ...
Let’s evaluate each option in terms of operational efficiency, ease of use, and alignment with the compliance team's requirement of changing RDS administrator passwords annually.
A) Store the database credentials in AWS Secrets Manager. Configure automatic rotation for the secret every 365 days.
- Analysis: AWS Secrets Manager is designed for securely storing and managing secrets like database credentials. It also has built-in support for automatic rotation of secrets. You can configure Secrets Manager to automatically rotate passwords for RDS instances, and the rotation interval can be easily set to 365 days. This option is highly efficient because:
- Automatic password rotation is supported natively by Secrets Manager.
- Operational overhead is minimized as rotation is automated without requiring custom scripts or manual intervention.
- The integration with RDS is seamless for managing database credentials.
This option is the most operationally efficient.
B) Store the database credentials as a parameter in the RDS parameter group. Create a database trigger to rotate the password every 365 days.
- Analysis: RDS parameter groups are used to configure database settings, but password management is not their intended use case. Creating a trigger to rotate passwords is not a native or best practice method for managing RDS credentials. RDS does not support password rotation via database triggers. This would require custom scripts or manual intervention, leading to additional complexity and overhead. Additionally, such a setup would not be as secure as using a managed service like Secrets Manager. This option is inefficient and not recommended.
C) Store the database credentials in a private Amazon S3 bu...
Author: VioletCheetah55 · Last updated May 8, 2026
A SysOps administrator is responsible for managing a fleet of Amazon EC2 instances. These EC2 instances upload build artifacts to a third-party service. The third-party service recently implemented a strict IP allow list that requires all build uploads to come from a single IP add...
Let's evaluate each option to determine the best solution that meets the requirement of having all build uploads come from a single IP address.
A) Move all of the EC2 instances behind a NAT gateway and provide the gateway IP address to the service.
- Analysis: A NAT gateway provides a single IP address for all instances in a private subnet to use for outbound traffic. By moving all the EC2 instances behind a NAT gateway, all outbound traffic (including build uploads) will appear to come from the NAT gateway’s IP address, which can be provided to the third-party service. This allows all EC2 instances in different subnets or Availability Zones to share the same IP address for outbound traffic, meeting the requirement of using a single IP address.
- This solution is operationally simple, as NAT gateways are designed for this kind of use case.
- Most suitable because it aligns with the need to comply with the third-party service’s IP allow list without reconfiguring the entire network.
B) Move all of the EC2 instances behind an internet gateway and provide the gateway IP address to the service.
- Analysis: An internet gateway allows direct internet access for EC2 instances in a VPC. However, this would expose each EC2 instance to the internet with potentially different public IP addresses (if not using Elastic IPs). This does not meet the requirement because each EC2 instance could have a different IP address, which would violate the third-party service’s strict IP allow list. Thus, this solution is not viable.
- Rejected because it would not provide a single IP address for all traffic.
C) Mov...
Author: Charlotte · Last updated May 8, 2026
A company uses an Amazon CloudFront distribution to deliver its website. Traffic logs for the website must be centrally stored, and all data must be ...
Let's evaluate each option to determine which best meets the requirement of centrally storing traffic logs with encryption at rest.
A) Create an Amazon OpenSearch Service (Amazon Elasticsearch Service) domain with internet access and server-side encryption that uses the default AWS managed customer master key (CMK). Configure CloudFront to use the Amazon OpenSearch Service (Amazon Elasticsearch Service) domain as a log destination.
- Analysis: While Amazon OpenSearch Service can be used for storing logs, it’s not the most suitable option for this use case. It’s primarily designed for search and analytics, rather than simple log storage. Additionally, providing internet access increases security risks by exposing the OpenSearch domain publicly, which is undesirable for sensitive log data.
- Even though the AWS managed CMK provides encryption at rest, the use of an internet-accessible domain adds complexity and security concerns.
- This option is not optimal due to security considerations and the more complex nature of OpenSearch when compared to Amazon S3.
B) Create an Amazon OpenSearch Service (Amazon Elasticsearch Service) domain with VPC access and server-side encryption that uses AES-256. Configure CloudFront to use the Amazon OpenSearch Service (Amazon Elasticsearch Service) domain as a log destination.
- Analysis: This option uses VPC access, which is more secure than internet access because it ensures that traffic is isolated within the VPC. The server-side encryption with AES-256 is also a valid solution for encrypting data at rest. However, similar to option A, OpenSearch is designed more for search and analytics use cases rather than simple log storage. Additionally, it introduces unnecessary complexity compared to using Amazon S3, which is a simpler and cost-effective solution for log storage.
- This option meets the encryption and securi...
Author: BlazingPhoenix22 · Last updated May 8, 2026
An organization created an Amazon Elastic File System (Amazon EFS) volume with a file system ID of fs-85ba41fc, and it is actively used by 10 Amazon EC2 hosts. The organization has bec...
To address the concern of unencrypted Amazon Elastic File System (Amazon EFS), let's go through the options and evaluate which one is appropriate.
Option A: Enable encryption on each host's connection to the Amazon EFS volume. Each connection must be recreated for encryption to take effect.
- Reasoning: This option only encrypts the data in transit between the Amazon EC2 hosts and the Amazon EFS volume. While it is essential for protecting data while being transmitted over the network, it does not solve the problem of encryption at rest. Encryption at rest is critical to ensure the data is encrypted on the storage layer itself.
- Rejection Reason: This option does not address the encryption of the data on the file system, which is the primary concern in this scenario.
Option B: Enable encryption on the existing EFS volume by using the AWS Command Line Interface.
- Reasoning: Unfortunately, Amazon EFS does not support the ability to enable encryption on an existing unencrypted file system. Encryption must be enabled when the file system is created. You cannot retrospectively enable encryption on an existing, unencrypted EFS volume.
- Rejection Reason: This option is not feasible as it doesn't support retroactive encryption of an existing file system.
Option C: Enable encrypt...
Author: Mia · Last updated May 8, 2026
A company uses an AWS Service Catalog portfolio to create and manage resources. A SysOps administrator must create a replica of the company's existing AWS infrastructure in a new AWS a...
To efficiently replicate the company's existing AWS infrastructure in a new AWS account using AWS Service Catalog, let’s evaluate each option:
Option A: Create an AWS CloudFormation template to use the AWS Service Catalog portfolio in the new AWS account.
- Reasoning: AWS CloudFormation can be used to deploy and manage infrastructure in a repeatable way. However, creating a CloudFormation template to recreate the Service Catalog portfolio would require manually defining each resource in the portfolio and ensuring that the resources and configurations are exactly replicated.
- Rejection Reason: While CloudFormation templates are powerful, this option introduces unnecessary complexity because the goal is to replicate an existing Service Catalog portfolio. This approach could be operationally heavy as it requires manual creation and management of all the templates for each resource in the portfolio.
Option B: In the new AWS account, manually create an AWS Service Catalog portfolio that duplicates the original portfolio.
- Reasoning: This option suggests manually duplicating the portfolio by recreating it in the new AWS account.
- Rejection Reason: Manually duplicating portfolios can be time-consuming, error-prone, and operationally inefficient, especially when dealing with multiple resources in the portfolio. Automation is preferred for efficiency.
Option C: Run an AWS Lambda function to create a new AWS Service Catalog portfolio based on the output of the Desc...
Author: Manish · Last updated May 8, 2026
A SysOps administrator must manage the security of an AWS account. Recently, an IAM user's access key was mistakenly uploaded to a public code repository.
The SysOps administrator must identify anything that was ch...
To determine what was changed using a mistakenly exposed access key, the SysOps administrator needs to identify any activity that took place with that key. Let's analyze each option:
Option A: Create an Amazon EventBridge (Amazon CloudWatch Events) rule to send all IAM events to an AWS Lambda function for analysis.
- Reasoning: While EventBridge and Lambda are useful for real-time monitoring and automation, this option does not directly help in investigating past actions after the key has already been exposed. This approach is more suited for detecting and responding to new IAM events rather than auditing past events.
- Rejection Reason: This option does not help in retrospectively identifying what actions were taken with the compromised access key. It's more of a preventative or real-time monitoring solution, not suitable for post-incident analysis.
Option B: Query Amazon EC2 logs by using Amazon CloudWatch Logs Insights for all events initiated with the compromised access key within the suspected timeframe.
- Reasoning: CloudWatch Logs Insights can help query logs for specific information related to EC2, but it doesn’t track actions for all AWS services. It focuses on EC2-related logs, and the compromised access key might have been used for other services like S3, IAM, Lambda, or others.
- Rejection Reason: This option is limited to EC2 logs and doesn’t provide a complete picture of what was changed across all AWS services. It’s not the most...
Author: StarlightBear · Last updated May 8, 2026
A company runs a retail website on multiple Amazon EC2 instances behind an Application Load Balancer (ALB). The company must secure traffic to the website over an HTTPS connection.
Which combination ...
To secure traffic to the website over HTTPS, the SysOps administrator must take appropriate actions to enable SSL/TLS encryption. Let's evaluate each option:
Option A: Attach the certificate to each EC2 instance.
- Reasoning: Attaching the SSL/TLS certificate directly to each EC2 instance would enable HTTPS on each individual instance. However, this approach can be cumbersome and inefficient when dealing with multiple instances, as you would need to manage certificates on each instance separately.
- Rejection Reason: This is not the most scalable or efficient solution, especially in a load-balanced environment. It would be difficult to manage and update certificates across all EC2 instances.
Option B: Attach the certificate to the ALB.
- Reasoning: This is the recommended approach in a load-balanced architecture. By attaching the SSL/TLS certificate to the Application Load Balancer (ALB), you ensure that the traffic between the client and the ALB is encrypted. The ALB can then forward traffic to the EC2 instances over HTTP (or HTTPS if required), depending on the configuration. This simplifies certificate management and ensures a single point of SSL/TLS termination.
- Why it works: The ALB can handle the encryption, making it easier to manage the certificates. This is a common pattern in AWS environments, as it offloads SSL/TLS processing from the EC2 instances.
Option C: Create a private certificate in AWS Certificate Manager (ACM).
- Reaso...
Author: Amelia · Last updated May 8, 2026
SIMULATION -
Instructions -
If the copy-paste functionality is not working in your environment, refer to the instructions file on the VM desktop and use Ctrl+C, Ctrl+V or Command-C,
Command-V.
Configure Amazon EventBridge to meet the following requirements.
1. Use the us-east-2 Region for all resources.
2. Unless specified below, use the default configuration settings.
3. Use your own resource naming unless a resource name is specified below.
4. Ensure all Amazon EC2 events in the default event bus are replayable for the past 45 days.
5. Create a rule named RunFunction to send the exact message {"name":"example") every 15 minutes to an existing AWS Lambda function named LogEventFunction
6. Create a rule named SpotWarning to send a notification to a new standard Amazon SNS topic named TopicEvents whenever an Amazon EC2 Spot Instance is interrupted. ...
To configure Amazon EventBridge to meet the given requirements, we need to follow a series of steps to configure different event bus, rules, and targets. Let’s walk through the steps in detail.
Step-by-step breakdown:
1. Region Selection
- Requirement: Use the `us-east-2` Region for all resources.
- Explanation: The region selection is straightforward. Make sure you're in the correct AWS Region (`us-east-2`) when setting up all resources.
- Action: Ensure that you are operating in the `us-east-2` region for EventBridge configuration.
2. Event Replayability for EC2 Events
- Requirement: Ensure all Amazon EC2 events in the default event bus are replayable for the past 45 days.
- Explanation: EventBridge allows event replay with a retention period for 7, 30, or 45 days on the default event bus. You must ensure that the replay setting is configured for 45 days.
- Action: Set the event retention to 45 days on the default event bus to meet this requirement.
3. Create Rule: RunFunction
- Requirement: Send the message `{"name":"example"}` every 15 minutes to an existing AWS Lambda function `LogEventFunction`.
- Explanation: We need to create a rule that sends a message at a 15-minute interval to the Lambda function `LogEventFunction`.
- The message format must be `{"name":"example"}`.
- The interval is set for every 15 minutes, which can be achieved by setting the event schedule using a cron expression or rate expression.
- The action will be to trigger the existing Lambda function `LogEventFunction`.
- Action: Create a rule with the following:
- Schedule Expression: Use a cron expression or rate expression for every 15 minutes (`rate(1...
Author: Jack · Last updated May 8, 2026
A company has a stateful, long-running workload on a single xlarge general purpose Amazon EC2 On-Demand Instance Metrics show that the service is always using 80% of its available memory and 40% of its available CPU. A SysOps administrator must reduce the cost of ...
To reduce the cost of the service without negatively affecting performance, the SysOps administrator must carefully consider factors such as CPU and memory usage and choose an appropriate instance type that fits the workload’s needs while optimizing costs. Let's evaluate the options:
A) Change to one large compute optimized On-Demand Instance
- Reasoning: Compute-optimized instances are designed for workloads that require high CPU performance, not necessarily high memory. In this case, the service is using 80% of its available memory, but only 40% of its available CPU. Switching to a compute-optimized instance would not effectively address the memory needs of the workload and might result in performance degradation.
- Rejected because: The workload is more memory-bound than CPU-bound. This would likely result in a bottleneck due to insufficient memory.
B) Change to one large memory optimized On-Demand Instance
- Reasoning: Memory-optimized instances are specifically designed for workloads that require a higher amount of memory, such as in-memory caches or data processing applications. Since the workload is using 80% of its available memory, switching to a larger memory-optimized instance would provide additional memory resources, ensuring that the service runs efficiently and doesn't experience performance degradation due to memory limitations.
- Selected option: This is the most appropriate choice since it provides more memory (which is the resource in highest demand) and helps avoid potential performance issues ...
Author: IceDragon2023 · Last updated May 8, 2026
A company asks a SysOps administrator to ensure that AWS CloudTrail files are not tampered with after they are created. Currently, the company uses AWS
Identity and Access Management (IAM) to restrict access to specific trails. The company's security team needs the ability ...
To meet the company's requirement of ensuring that AWS CloudTrail files are not tampered with and that the security team can trace the integrity of each file, let's review each option based on operational efficiency, security, and feasibility.
A) Create an Amazon EventBridge (Amazon CloudWatch Events) rule that invokes an AWS Lambda function when a new file is delivered. Configure the Lambda function to compute an MD5 hash check on the file and store the result in an Amazon DynamoDB table. The security team can use the values that are stored in DynamoDB to verify the integrity of the delivered files.
- Reasoning: This option introduces a custom solution where a Lambda function computes an MD5 hash for each file and stores the result in DynamoDB. While this could work, it introduces additional complexity in terms of development, maintenance, and ensuring that the Lambda function is properly invoked each time a new file is delivered.
- Rejected because: The solution adds unnecessary operational overhead, such as setting up EventBridge, Lambda, and DynamoDB, which is not as streamlined as other available AWS services that directly support file integrity verification.
B) Create an AWS Lambda function that is invoked each time a new file is delivered to the CloudTrail bucket. Configure the Lambda function to compute an MD5 hash check on the file and store the result as a tag in an Amazon S3 object. The security team can use the information in the tag to verify the integrity of the delivered files.
- Reasoning: This option involves using a Lambda function to compute an MD5 hash and store it as a tag on the S3 object. While this could work, it still requires maintaining a Lambda function and tagging the objects in S3. S3 object tags are not ideal for security purposes because tags are relatively easy to modify or delete if permissions are misconfigured.
- Rejected because: Storing integrity information in S3 tags can lead to security concerns, and it doesn't provide a robust or tamper-proof method for file integrity tracking.
C...