Amazon Practice Questions, Discussions & Exam Topics by our Authors
A company needs to deploy instances of an application and associated infrastructure to multiple AWS Regions. The company wants to use a single AWS CloudFormation template to achieve this goal. The company uses AWS Organizations and wants to administer and run this t...
Let's evaluate each option to determine the best solution for deploying an application and infrastructure across multiple AWS Regions using a single AWS CloudFormation template, with the ability to administer and run it from a central administration account.
A) Create a CloudFormation template that is stored in Amazon S3. Configure Cross-Region Replication (CRR) on the S3 bucket. Reference the required accounts and remote Regions in the input template parameters.
- Reasoning:
- Storing the CloudFormation template in Amazon S3 is a valid way to centralize the template for access across multiple Regions. However, Cross-Region Replication (CRR) is typically used to replicate objects in S3 buckets across Regions, not to deploy CloudFormation templates.
- While this might ensure the template is available in multiple Regions, this approach does not inherently simplify or automate the deployment process across multiple accounts and Regions.
- The need to reference accounts and Regions in the input template parameters could introduce complexity and is not the most efficient or standardized way to manage multi-region deployments.
- Rejected because: Cross-Region Replication is not the most direct way to manage CloudFormation deployments across multiple accounts and Regions, and it requires manual setup and management of parameters across Regions.
B) In the central administration account, create a CloudFormation primary template that loads CloudFormation nested stacks from Amazon S3 buckets in the target Regions.
- Reasoning:
- Nested stacks allow you to break down a complex CloudFormation template into smaller, reusable templates. Using Amazon S3 to store nested stack templates can help in organizing and managing resources.
- However, managing nested stacks across Regions from a single central administration account is not a built-in solution. The central account would need to manually manage and deploy resources across Regions and accounts, and the deployment process may still involve complexities when targeting multiple Regions.
- This approach does not provide a seamless way to deploy across multiple Regions and accounts using a single un...
Author: Aria · Last updated May 8, 2026
A company's SysOps administrator manages a fleet of hundreds of Amazon EC2 instances that run Windows-based workloads and Linux-based workloads. Each EC2 instance has a tag that identifies its operating system. All the EC2 instances run AWS Systems Manager Session Manager.
A zero-day vulnerability is reported, and no patches are available. The company's security team provides code for all the relevant operating systems to reduce the risk of the vulnerability. The SysOps administrator needs to implemen...
Let's evaluate each option based on the requirement to quickly implement the code from the security team on EC2 instances, report the success, and meet the vulnerability mitigation needs.
A) Use Systems Manager Run Command. Choose either the AWS-RunShellScript document or the AWS-RunPowerShellScript document. Configure Run Command with the code from the security team. Specify the operating system tag in the Targets parameter. Run the command. Provide the command history's evidence to the security team.
- Reasoning:
- AWS Systems Manager Run Command allows the SysOps administrator to remotely execute scripts on EC2 instances, either for Linux or Windows. The administrator can use the appropriate documents (`AWS-RunShellScript` for Linux and `AWS-RunPowerShellScript` for Windows) to run the provided security code on instances based on their operating system.
- The operating system tag can be used to easily target instances with the correct operating system without manually selecting individual instances.
- After running the commands, the command history will provide evidence that the code was executed successfully on each instance.
- This option is fast and scalable, as it allows the code to be executed on multiple instances simultaneously, and the evidence (from command history) can be quickly provided to the security team.
- Selected because: This is the most efficient and automated solution. It leverages AWS Systems Manager Run Command to execute code on multiple instances in one operation, and the history provides the necessary evidence to meet the reporting requirement.
B) Create an AWS Lambda function that connects to the EC2 instances through Session Manager. Configure the Lambda function to identify the operating system, run the code from the security team, and return the results to an Amazon RDS DB instance. Query the DB instance for the results. Provide the results as evidence to the security team.
- Reasoning:
- While this solution is technically feasible, it is overly complex for the given use case. It involves creating a Lambda function, setting up Session Manager to connect to EC2 instances, identifying the operating system, running the code, and storing the results in an RDS instance.
- This approach adds unnecessary complexity (Lambda...
Author: Andrew · Last updated May 8, 2026
A company has an application that collects notifications from thousands of alarm systems. The notifications include alarm notifications and information notifications. The information notifications include the system arming processes, disarming processes, and sensor status.
All notifications are kept as messages in an Amazon Simple Queue Service (Amazon SQS) queue. Amazon EC2 instances that are in an Auto Scaling group proces...
Let's evaluate each option based on the given requirements of prioritizing alarm notifications over information notifications:
Option A: Adjust the Auto Scaling group to scale faster when a high number of messages is in the queue.
- Reasoning: While adjusting the Auto Scaling group can help with handling a higher volume of messages, it doesn't directly address the issue of prioritizing alarm notifications over information notifications. This approach would focus on scaling the infrastructure based on overall traffic, but it does not offer any priority or differentiation in processing the types of messages.
- Rejected: This option doesn't provide any way to specifically prioritize alarm notifications over information notifications.
Option B: Use the Amazon Simple Notification Service (Amazon SNS) fanout feature with Amazon SQS to send the notifications in parallel to all the EC2 instances.
- Reasoning: The SNS fanout feature can distribute messages to multiple SQS queues. However, while it could increase the parallelism of processing, it doesn't address prioritization. Without distinguishing between alarm and information notifications at the queue level, messages will still be processed indiscriminately.
- Rejected: This option does not prioritize alarm notifications and does not provide a direct way of managing the different types of notifications. It focuses on parallel processing rather than message prioritization.
...
Author: StarryEagle42 · Last updated May 8, 2026
A SysOps administrator needs to deploy an application in multiple AWS Regions. The SysOps administrator must implement a solution that routes users to the Region with the lowest latency. In case of failure, the solution must automatically route requests to a Region with a healthy instance of th...
Let's evaluate the options based on the requirements of routing users to the AWS Region with the lowest latency, ensuring failover in case of failure, and minimizing the time to failover:
Option A: Create Amazon Route 53 A records that have the same name for each endpoint. Use a latency routing policy. Associate a health check with each record.
- Reasoning: The latency routing policy in Amazon Route 53 routes traffic to the Region that provides the lowest latency for the end user. Associating health checks with each record ensures that traffic will be routed to a healthy endpoint. If a Region becomes unhealthy, traffic is routed to a healthy Region. This option aligns well with the need for low-latency routing and automatic failover. The short time to failover is guaranteed as Route 53 will quickly detect the unhealthy instance and reroute traffic.
- Selected Option: This solution directly meets all requirements: low latency, automatic failover, and quick detection of failures. It ensures that users are routed to the best-performing Region and quickly rerouted in case of failure.
Option B: Create Amazon Route 53 A records that have the same name for each endpoint. Use a failover routing policy. Associate a health check with each record.
- Reasoning: The failover routing policy is designed for use cases where you want to route traffic to a primary Region and, in case of failure, automatically route to a secondary (backup) Region. While this would handle failover, it does not focus on latency or selecting the Region with the lowest latency. The failover policy is more suitable for disaster recovery scenarios where the primary Region fails, not for latency-based routing.
- Rejected: This option is not suitable because it doesn't address the requirement of routing users to the Region with the lowest latency. It is more focused on fai...
Author: Sam · Last updated May 8, 2026
A company runs an application on Amazon EC2 instances behind an Application Load Balancer. The EC2 instances are in an Auto Scaling group. The application sometimes becomes slow and unresponsive. Amazon CloudWatch metrics show that some EC2 instances are experiencing high CPU load.
A SysOps administrator needs to create a CloudWatch dashboard that can automatically display CPU metrics of all the EC2 instances. The metrics must...
Let's evaluate each option based on the requirements of displaying CPU metrics for all EC2 instances, including new instances launched by the Auto Scaling group, in the most operationally efficient way.
Option A: Create a CloudWatch dashboard. Use activity notifications from the Auto Scaling group to invoke a custom AWS Lambda function. Use the Lambda function to update the CloudWatch dashboard to monitor the CPUUtilization metric for the new instance IDs.
- Reasoning: This approach involves using Auto Scaling activity notifications to trigger a Lambda function. The Lambda function would then update the CloudWatch dashboard to include new EC2 instances' CPU metrics. While this can work, it introduces unnecessary complexity by requiring the setup of Lambda functions and monitoring Auto Scaling activities. This approach could also add operational overhead, as the Lambda function would need to handle dynamically adding new EC2 instances to the dashboard.
- Rejected: This solution adds complexity with Lambda functions and would require manual maintenance for each new instance that is launched by the Auto Scaling group, which is less operationally efficient.
Option B: Create a CloudWatch dashboard. Run a custom script on each EC2 instance to stream the CPU utilization to the dashboard.
- Reasoning: This option suggests running a custom script on each EC2 instance to send CPU utilization metrics to the CloudWatch dashboard. While this approach would work, it introduces the need for custom scripts and manual configuration for each EC2 instance. Additionally, this adds operational overhead as you must ensure that the script is consistently running on every EC2 instance, and it doesn't automatically scale with the Auto Scaling group.
- Rejected: This is not the most efficient option, as it requires additional configuration and maintenance for each instance. It’s less scalable and operationally burdensome compared to o...
Author: FrostFalcon88 · Last updated May 8, 2026
A company has an encrypted Amazon S3 bucket that is hosted in the ap-southeast-2 Region. Users from the eu-west-2 Region access the S3 bucket over the internet. The users from eu-west-2 need faster transfers ...
Let's evaluate each option based on the requirement of speeding up file transfers between the eu-west-2 region and an encrypted Amazon S3 bucket hosted in the ap-southeast-2 region.
Option A: Reduce the length of the S3 bucket prefixes within the S3 bucket.
- Reasoning: Reducing the length of the prefixes within the S3 bucket could potentially improve performance in some cases by distributing the data more evenly across multiple partitions. However, this approach would have a minimal impact on the transfer speed between regions, especially for large files. The primary bottleneck here is the network latency due to the cross-region nature of the request, not the internal organization of the data within the bucket.
- Rejected: This solution focuses on optimizing S3's internal performance rather than improving transfer speeds across regions. It won't significantly help with reducing latency or improving transfer times between eu-west-2 and ap-southeast-2.
Option B: Change the server-side encryption on the S3 bucket from AES to RSA.
- Reasoning: RSA encryption is a public-key encryption scheme, and it is not typically used for server-side encryption in S3. Amazon S3 uses AES-256 encryption for server-side encryption, which is optimized for performance. Changing encryption algorithms (if it were even an option in the case of RSA) would likely add complexity and would not address the issue of improving transfer speeds across regions.
- Rejected: RSA encryption is not a common choice for server-side encryption in S3, and changing encryption methods would not significantly improve the transfer speed of large files across regions.
...
Author: Mia · Last updated May 8, 2026
A company has a large on-premises tape backup solution. The company has started to use AWS Storage Gateway. The company created a Tape Gateway to replace the existing on-premises hardware. The company's backup engineer noticed that some of the backup jobs that were supposed to write to AWS failed to run because of a "Not Enough Space" error.
The company does not want these failures to happen again. T...
Let's evaluate each option based on the requirement of ensuring sufficient tape space on AWS to avoid "Not Enough Space" errors while maintaining operational efficiency:
Option A: Create an AWS Lambda function that runs on an hourly basis and checks how many tapes have available space. If the available tapes are below a certain threshold, provision more.
- Reasoning: While this solution could automate the process of checking tape space and provisioning more tapes, it introduces complexity with a scheduled Lambda function that runs on an hourly basis. The Lambda function would need to check tape space and ensure new tapes are provisioned if the threshold is crossed. However, this method might still be reactive, and relying on periodic checks might cause gaps where the backup jobs could fail if the space is exhausted between checks.
- Rejected: This solution adds complexity with Lambda, scheduled tasks, and manual threshold management, and does not provide a proactive solution to ensure sufficient tape space.
Option B: Install the Amazon CloudWatch agent on the on-premises system. Push the log files to a CloudWatch log group. Create an AWS Lambda function that creates more tapes when the "Not Enough Space" error appears. Create a metric filter and a metric alarm that launches the Lambda function.
- Reasoning: This approach suggests using CloudWatch and Lambda to monitor logs for "Not Enough Space" errors and trigger tape provisioning automatically. While it provides a reactive solution by detecting failures, this is not an ideal approach because it relies on detecting errors after they have occurred, rather than proactively ensuring sufficient tape space.
- Rejected: This method only reacts to errors after they occur, meaning there could still be backup job failures before the Lambda function triggers, which is not ideal for preventing issues in real time.
...
Author: Amira99 · Last updated May 8, 2026
A SysOps administrator manages a company's Amazon S3 buckets. The SysOps administrator has identified 5 GB of incomplete multipart uploads in an S3 bucket in the company's AWS account. The SysOps administrator needs to reduce the number ...
To reduce the number of incomplete multipart uploads in an S3 bucket, it's essential to choose a solution that either automatically manages or identifies these uploads and cleans them up in a timely manner. Let’s evaluate each option.
Option A: Create an S3 Lifecycle rule on the S3 bucket to delete expired markers or incomplete multipart uploads.
- Explanation: S3 Lifecycle rules allow you to automate actions such as deleting expired objects or incomplete multipart uploads. By configuring a rule specifically to expire incomplete multipart uploads after a certain period, you can clean them up automatically without manual intervention.
- Why Selected: This solution directly addresses the need to reduce incomplete multipart uploads by setting an expiration for them, which is the most efficient and automated way to solve the problem.
Option B: Require users that perform uploads of files into Amazon S3 to use the S3 TransferUtility.
- Explanation: The S3 TransferUtility is a library that helps manage uploads, but it doesn't directly address incomplete multipart uploads. While it may help prevent some issues with uploads in progress, it does not offer a way to manage or clean up incomplete uploads after they occur.
- Why Rejected: This option helps during the upload process but doesn’t help in...
Author: Aria · Last updated May 8, 2026
A SysOps administrator needs to create an Amazon S3 bucket as a resource in an AWS CloudFormation template. The bucket name must be randomly generated, and the bucket must be encrypted. Other resources in the template will reference the bucket.
...
Author: Alexander · Last updated May 8, 2026
A SysOps administrator manages policies for many AWS member accounts in an AWS Organizations structure. Administrators on other teams have access to the account root user credentials of the member accounts. The SysOps administrator must prevent all teams, including their administrators, from using Amazon Dynamo...
To meet the requirement of preventing all teams, including administrators, from using Amazon DynamoDB in AWS member accounts while not affecting access to other AWS services, the solution needs to ensure that DynamoDB is blocked but other services remain accessible. Let's evaluate each option based on the requirements.
Option A: In all member accounts, configure IAM policies that deny access to all DynamoDB resources for all users, including the root user.
- Explanation: This approach involves creating IAM policies in each individual member account that explicitly deny access to DynamoDB resources. These policies would need to be applied to all users, including the root user, to ensure DynamoDB is inaccessible.
- Why Rejected: While this option could block DynamoDB access, it has several drawbacks:
1. It requires manually configuring IAM policies in each member account, which can be time-consuming and error-prone.
2. The root user is typically given full access in most scenarios, so ensuring the root user is effectively restricted would be complex and require careful policy management.
3. This approach doesn't scale well in an AWS Organizations structure where there are many accounts to manage.
Option B: Create a service control policy (SCP) in the management account to deny all DynamoDB actions. Apply the SCP to the root of the organization.
- Explanation: Service Control Policies (SCPs) are used in AWS Organizations to centrally manage permissions for all accounts in an organization. By creating an SCP that denies all DynamoDB actions and applying it at the root of the organization, you ensure that no member account, including those with administrator permissions, can access DynamoDB.
- Why Selected: SCPs are applied at the organization level, so this approach is scalable and efficient for managing many member accounts. By denying all DynamoDB actions, it ensures that no user in the organization, including the root user, can access DynamoDB, ...
Author: Isabella · Last updated May 8, 2026
A company has users that deploy Amazon EC2 instances that have more disk performance capacity than is required. A SysOps administrator needs to review all Amazon Elastic Block Store (Amazon EBS) volumes that are associated with the instances and create cost optimization recommendations based on IO...
To meet the requirement of reviewing all Amazon Elastic Block Store (EBS) volumes associated with Amazon EC2 instances and creating cost optimization recommendations based on IOPS and throughput, the SysOps administrator needs to leverage the most operationally efficient and automated method to analyze the usage and provisioned resources.
Option A: Use the monitoring graphs in the EC2 console to view metrics for EBS volumes. Review the consumed space against the provisioned space on each volume. Identify any volumes that have low utilization.
- Explanation: This option involves using CloudWatch metrics available in the EC2 console to monitor the usage and performance of EBS volumes. It allows you to identify volumes that are underutilized in terms of space, IOPS, or throughput. While this method gives some insights, it requires manual review of each volume, which can be time-consuming, especially if there are a large number of instances and volumes.
- Why Rejected: This option is somewhat effective for identifying low utilization volumes, but it is manual and not scalable. It doesn't provide an automated or detailed cost optimization recommendation based on the IOPS and throughput consumption.
Option B: Stop the EC2 instances from the EC2 console. Change the EC2 instance type for Amazon EBS-optimized. Start the EC2 instances.
- Explanation: This option involves stopping EC2 instances and changing the instance type to EBS-optimized, which could improve the disk performance, particularly for instances that need high EBS throughput. However, this action is more focused on improving instance-level performance rather than optimizing the EBS volumes themselves.
- Why Rejected: This solution addresses EC2 instance optimization, but it does not help with reviewing or optimizing EBS volumes directly. It does not provide insights or recommendations based on IOPS and throughput for EBS volumes.
Option C: Opt in to AWS Compute Optimizer. Allow sufficient time for metrics to be gathered. ...
Author: Evelyn · Last updated May 8, 2026
A SysOps administrator has many Windows Amazon EC2 instances that need to share a file system between nodes. The SysOps administrator creates an Amazon Elastic File System (Amazon EFS) file share. After creation of the file share, the SysOps administrator is having trouble mounting the file s...
The situation involves Windows Amazon EC2 instances needing to share a file system using Amazon Elastic File System (EFS). However, the SysOps administrator is facing issues with mounting the EFS file share to the EC2 instances.
Let's evaluate each option:
Option A: Delete the EFS file share. Create an Amazon FSx for Windows File Server file share for the EC2 instances.
- Explanation: Amazon FSx for Windows File Server is designed to provide a fully managed Windows-based file system that uses the SMB protocol, which is more suitable for Windows instances compared to Amazon EFS, which uses the NFS protocol.
- Why Rejected: While this option could work for Windows instances, it is unnecessary to delete the existing EFS file share. Instead, the issue likely stems from protocol compatibility or access issues. Converting to FSx would introduce a more complex solution that is not needed if the current infrastructure is using EFS and only requires proper configuration.
Option B: Use the correct IAM credentials to mount the EFS file share.
- Explanation: Amazon EFS uses NFS (Network File System) for file sharing, and IAM credentials are not used for NFS access to EFS. IAM is primarily used for managing access to AWS resources, but not for authenticating NFS clients on EFS.
- Why Rejected: This option is incorrect because IAM credentials do not play a role in mounting an EFS file share via NFS. Access control for EFS is done via security groups and network settings, not IAM credentials.
Option C: Configure NFSv4 suppor...
Author: Aria · Last updated May 8, 2026
A company has a multi-account environment. Account A has a production application that is hosted on an Amazon EC2 instance. The application needs to query data in an Amazon DynamoDB table that is hosted in Account B.
A SysOps administrator needs to provide the EC2 instance in Accou...
Let's go over each option and analyze its security and practicality to meet the requirement.
Option A:
Update the IAM policy that is attached to the EC2 instance's IAM role to allow the dynamodb:Query permission on the DynamoDB table in Account B. Add a policy in Account A to allow the DynamoDB service principal to use the PassRole action to pass the role to Account B.
- Why it's not the best choice:
- This option involves modifying the EC2 instance’s IAM role policy to allow querying the DynamoDB table directly in Account B. However, it also adds the need to allow the `PassRole` action from Account A to Account B. This configuration can lead to elevated privileges and additional complexity, especially with cross-account permissions. It’s typically not recommended to allow broad permissions like `PassRole` unless absolutely necessary because it can give unnecessary permissions to assume roles in another account.
Option B:
In Account B, create an IAM role that has permission to query the DynamoDB table. Add the EC2 instance's IAM role to the trust policy on the newly created IAM role in Account B. Update the IAM policy that is attached to the EC2 instance's IAM role to allow the sts:AssumeRole permission on the newly created IAM role in Account B.
- Why it’s a good choice:
- This is a standard and secure approach. The EC2 instance in Account A assumes a role in Account B that has the required permissions to access DynamoDB. Using `sts:AssumeRole` allows temporary and tightly scoped permissions to be granted to the EC2 instance in Account A. This is secure because it adheres to the principle of least privilege and uses AWS best practices for cross-account access. It also avoids granting overly broad permissions directly to the EC2 instance’s role.
- The trust policy ensures only Account A’s EC2 instance role can assume the role in Account B, limiting access.
Option C:
Update the IAM policy that is attached to the EC2 instance's IAM role to allow the dynamodb:Query permission on the DynamoDB table in Account B. Update the DynamoDB table's resource policy to allow the query action from the EC2 instance's IAM role.
- Why it’s not the best ...
Author: Samuel · Last updated May 8, 2026
A company has implemented a Kubernetes cluster on Amazon Elastic Kubernetes Service (Amazon ECS) to host a microservices-based application. The company expects application traffic to increase significantly for the next month and wants to prevent the application from crashing becau...
Let’s analyze the options in detail to determine the most appropriate solution for handling increased application traffic with the least administrative overhead.
Option A: Create a second EKS cluster. Load balance the workload between the two clusters.
- Why it's not the best choice:
- This solution introduces unnecessary complexity. Creating a second EKS cluster involves managing multiple clusters, configuring inter-cluster communication, and ensuring traffic is properly load-balanced between them. It requires significant administrative effort to manage both clusters and the associated infrastructure, which is more than necessary for a temporary increase in traffic. Additionally, managing multiple clusters can increase the operational burden.
- This approach is better suited for situations where workload isolation, regional distribution, or disaster recovery is needed, but it is overkill for handling traffic spikes.
Option B: Implement the Kubernetes Horizontal Pod Autoscaler. Set a target CPU utilization percentage.
- Why it’s the best choice:
- Horizontal Pod Autoscaling (HPA) is designed to automatically adjust the number of pod replicas in response to observed traffic or resource utilization. The Kubernetes Horizontal Pod Autoscaler adjusts the number of pods running based on CPU utilization (or other custom metrics) to ensure the application can scale dynamically based on demand. This solution directly addresses the requirement to handle increased traffic.
- Least administrative overhead: HPA is built into Kubernetes and works seamlessly with Amazon EKS. It requires minimal setup—just configure the target CPU utilization, and the system will automatically scale the pods up or down.
- This approach minimizes manual intervention and can scale dynamically, making it ideal for handling increased traffic with minimal management.
Option C: Migrate the application from Amazon EKS to Amazon EC2 for the next month. Migrate the application back to Amazon EKS when the month ends.
- Why it's not the best choice:
- Migration overhead: Moving workloads from EKS to EC2 is a complex and error-prone task. It involves configuring EC2 instances, ...
Author: Leah · Last updated May 8, 2026
A company deploys a new application to Amazon EC2 instances. The application code is stored in an AWS CodeCommit repository. The company uses an AWS CodePipeline pipeline to deploy the code to the EC2 instances through a continuous integration and continuous delivery (CI/CD) process.
A SysOps administrator needs to ensure that sensitive database information is configured properly on the ...
Let’s go through each option and analyze which ones provide the most secure and appropriate way to store and retrieve sensitive information in the CI/CD pipeline for an EC2-based application.
Option A: Store the values in AWS Secrets Manager. Update the code to retrieve these values when the application starts. Store the values as environmental variables that the application can use.
- Why it's a good choice:
- AWS Secrets Manager is designed specifically for securely storing sensitive information like database credentials, API keys, and other secrets. It allows for automatic rotation of credentials, which enhances security.
- The values can be retrieved programmatically at runtime by the application, ensuring that credentials are never hardcoded or stored in an insecure manner.
- Using environment variables to store these values makes them easily accessible for the application without the need to hardcode them into the source code or configuration files.
- Why this is selected:
- Secrets Manager integrates well with AWS services and provides fine-grained access control via AWS IAM policies, making it highly secure and scalable.
- This solution also allows for auditing and logging, helping ensure that sensitive information is handled securely and can be monitored.
Option B: Store the values in AWS Systems Manager Parameter Store as secret strings. Update the code to retrieve these values when the application starts. Store the values as environmental variables that the application can use.
- Why it's a good choice:
- AWS Systems Manager Parameter Store is another service designed to securely store sensitive data. It offers secret management functionality and integrates well with other AWS services.
- Storing sensitive information as SecureString in Parameter Store ensures that the data is encrypted and only accessible by authorized users and roles, providing a high level of security.
- Like Secrets Manager, the credentials can be retrieved programmatically at runtime and used as environment variables.
- Why this is selected:
- Systems Manager Parameter Store is often simpler and cheaper than Secrets Manager, making it a good option for many use cases where automatic credential rotation is not as critical. It’s a secure and reliable way to store secrets and sensitive data.
Option C: Store the values in an AWS Lambda function. Update the code to invoke the Lambda function when the application starts. Configure the Lambda function to inject the values as environmental variables that the application can use.
- Why it's not the best choice:
- Lambda functions are generally not ideal for storing secrets, as the purpose of Lambda is to run code in response to events. Storing sensitive information in a Lambda function introduces unnecessary complexity and can result in added overhead for both the Lambda invocation and environment management.
- Lambda functions are not designed for long-term, secure storage of sensitive data like credentials or configurations. Storing credentials in Lambda functions is not considered a secure practice when more purpose-built solutions (like Secrets Manager or Parameter Store) ex...
Author: SilverBear · Last updated May 8, 2026
A SysOps administrator configured VPC flow logs by using the default format. The SysOps administrator specified Amazon CloudWatch Logs as the destination. This solution has worked successfully for several months. However, because of additional troubleshooting requirements, the SysOps administra...
Let's analyze each option to understand how best to meet the requirement of including the `tcp-flags` field in the VPC flow logs while considering the specific behavior of flow logs, CloudWatch Logs, and the associated configuration options.
Option A: Create a new flow log. Include the tcp-flags field in the custom log format. Delete the original flow log.
- Why it’s a good choice:
- The VPC flow log format can only be customized at the time the flow log is created. Modifying an existing flow log to include additional fields like `tcp-flags` isn't possible directly. The best approach to adding new fields is to create a new flow log with a custom log format that includes the `tcp-flags` field. Once the new flow log is successfully configured, the old flow log can be deleted to avoid redundancy.
- Why it’s selected:
- Since flow logs are immutable after creation (with respect to format), creating a new flow log and specifying the custom log format that includes the required fields is the correct approach.
Option B: In the CloudWatch Logs log group, modify the filter to include the tcp-flags field and the type field.
- Why it’s not the best choice:
- Modifying the filter in CloudWatch Logs does not affect the flow log data that has been collected. CloudWatch Logs filters allow you to view specific data or patterns in logs but do not change the actual fields that are recorded in the VPC flow log. The tcp-flags field must be added to the flow log itself, not just the filter or the display view in CloudWatch.
- Why it’s rejected:
- This option is ineffective because CloudWatch Logs filters only allow you to query or display existing data and do not influence the content of the VPC flow logs.
Option C: In CloudWatch Metrics, modify the metric configurat...
Author: Siddharth · Last updated May 8, 2026
A SysOps administrator notices that the cache hit ratio for an Amazon CloudFront distribution is less than 10%. The SysOps administrator needs to increase the cache hit ratio for the distribution, improve network performance, and reduce the load on the origin...
To address the issue of improving the cache hit ratio, network performance, and reducing the load on the origin for a CloudFront distribution, let's go over each option and explain which actions would be effective and why others might not be suitable.
Option A: Enable CloudFront Origin Shield for the required AWS Regions.
- Why it's a good choice:
- CloudFront Origin Shield is a feature that helps reduce the load on the origin by caching content closer to the origin in a regional edge cache. This results in fewer requests hitting the origin, thereby improving cache hit ratios and reducing the load on the origin.
- Enabling Origin Shield ensures that CloudFront uses a dedicated regional cache for the origin, which helps reduce latency and improve network performance by serving content from a location closer to the user, further enhancing caching efficiency.
- Why it’s selected:
- Enabling Origin Shield is effective because it reduces the load on the origin and helps increase cache hits by utilizing additional caching layers, especially for frequently requested content.
Option B: Change the viewer protocol policy to use HTTPS only.
- Why it’s not the best choice:
- Changing the viewer protocol policy to use HTTPS only ensures secure communication between clients and CloudFront but does not directly affect cache hit ratios or load on the origin. While HTTPS-only improves security, it does not help with caching performance or reduce origin load.
- Why it’s rejected:
- This action does not contribute to improving the cache hit ratio or reducing the load on the origin, so it's not a relevant step for the specific requirements in this case.
Option C: Add a second origin. Create an origin group that includes both origins. Activate CloudFront origin failover.
- Why it’s not the best choice:
- Adding a second origin and activating origin failover is primarily used for high availability and redundancy, ensuring that if one origin becomes unavailable, traffic can be directed to the other origin. While this improves availability, it does not address the issue of increasing the cache hit ratio or reducing the load on the origin.
- The focus here is on failover, not caching or network performance, so this action doesn’t meet the primary objectives of improving cache hit ratios and reducing the origin load.
- Why it’s rejected:
- Adding an additional origin doesn’t solve the cachin...
Author: Emma · Last updated May 8, 2026
A custom application must be installed on all Amazon EC2 instances. The application is small, updated frequently, and can be installed automaticall...
To deploy a custom application on new Amazon EC2 instances, each of the proposed options offers different benefits. Let’s review them based on key factors such as ease of automation, efficiency, maintainability, and scalability:
A) Launch a script that downloads and installs the application using Amazon EC2 user data
- Reasoning: EC2 user data allows you to specify scripts or commands that will be executed automatically when a new EC2 instance is launched. This is a very efficient and simple solution for applications that need to be automatically installed and configured on new instances.
- Advantages:
- Simple and easy to set up.
- The script can download the latest version of the application each time a new EC2 instance is launched.
- Perfect for small and frequently updated applications.
- Disadvantages:
- If the script fails (e.g., the application download fails), you may need to troubleshoot and manually re-deploy.
- Limited control over more complex installation logic or dependencies.
B) Create a custom API using Amazon API Gateway to call an installation executable from an AWS CloudFormation template
- Reasoning: Using an API Gateway to manage the installation via a CloudFormation template is more complex than other solutions. While this can work for some use cases, it adds unnecessary complexity when the primary goal is to automatically deploy a small application.
- Advantages:
- Can be integrated into a larger application deployment strategy.
- Disadvantages:
- Unnecessarily complex for the task at hand.
- CloudFormation templates are typically used for infrastructure provisioning, not application installation.
- Additional management overhead for the API and CloudFormation setup.
- Not ideal for small or frequently updated applications.
C) Use AWS Systems Manager to inject the application into an AMI
- Reasoning: AWS Systems Manager can automate soft...
Author: Isabella1 · Last updated May 8, 2026
A SysOps administrator wants to securely share an object from a private Amazon S3 bucket with a group of users who do not have an AWS account.
What is the M...
Let's evaluate each of the options based on the key factors such as security, operational efficiency, and suitability for non-AWS users:
A) Attach an S3 bucket policy that only allows object downloads from the users' IP addresses
- Reasoning: This option would restrict access to the object based on the IP addresses of the users. However, it does not directly solve the problem of sharing an object with users who don’t have AWS accounts, as they would still need to access the object via S3 with the right credentials.
- Advantages:
- It can restrict access based on location (IP), providing some control.
- Disadvantages:
- Does not address the issue of sharing with users without AWS accounts.
- Users would still need AWS credentials or some other method to access the object (e.g., presigned URL).
- Not a direct solution for non-AWS users.
B) Create an IAM role that has access to the object. Instruct the users to assume the role.
- Reasoning: IAM roles are typically used for granting access to AWS resources within the AWS ecosystem. Users without AWS accounts cannot assume a role without credentials, which makes this option impractical for sharing with users who don't have an AWS account.
- Advantages:
- Fine-grained access control within AWS.
- Disadvantages:
- Does not solve the issue of sharing with users who do not have AWS accounts.
- Operational complexity in managing role assumption for non-AWS users.
C) Create an IAM user that has access to the object. Share the credentials with the users.
- Reasoning: This option would involve creating IAM user credentials (access keys) and sharing them with external users. While this might grant access to the S3 object, it's not an ideal solution for sharing wit...
Author: SolarFalcon11 · Last updated May 8, 2026
A company is running an ecommerce application on AWS. The application maintains many open but idle connections to an Amazon Aurora DB cluster. During times of peak usage, the database produces the following error message: "Too many connec...
To resolve the error "Too many connections" in an Amazon Aurora DB cluster during peak usage, the solution needs to address the issue of managing idle database connections efficiently and ensuring that the database can scale with the application’s demand. Let's analyze each option in detail:
A) Increase the read capacity units (RCUs) and the write capacity units (WCUs) on the database.
- Reasoning: Aurora DB clusters are not configured based on RCUs or WCUs like DynamoDB. Instead, Aurora automatically adjusts resources based on instance types and scaling configurations. Adjusting read and write capacity units applies to services like DynamoDB, not Aurora, which is an RDS service.
- Advantages:
- May help with performance scaling in systems like DynamoDB.
- Disadvantages:
- Not relevant to Aurora.
- This does not address the "Too many connections" issue, which is related to database connection limits, not read/write throughput.
B) Configure RDS Proxy. Update the application with the RDS Proxy endpoint.
- Reasoning: Amazon RDS Proxy acts as an intermediary between the application and the Aurora DB cluster. It efficiently manages database connections by pooling and reusing connections. RDS Proxy reduces the number of connections to the database, which is helpful when there are many open but idle connections. This will allow the application to scale better without hitting the maximum connection limit of Aurora.
- Advantages:
- RDS Proxy effectively manages database connections, reducing the number of active connections to Aurora during periods of idle connection activity.
- RDS Proxy improves scalability and performance by optimizing connection management.
- Ideal for applications with many database connections that aren't actively querying the database.
- Disadvantages:
- Requires updating the application to use the RDS Proxy endpoint, which adds some configuration effort.
- Additional ...
Author: Ahmed · Last updated May 8, 2026
A SysOps administrator is troubleshooting a VPC with public and private subnets that leverage custom network ACLs. Instances in the private subnet are unable to access the internet. There is an internet gateway attached to the public subnet. The private subnet has a route to a NAT gateway that is also attached to the public...
Let's break down the scenario and analyze each option:
Scenario Breakdown:
- VPC with public and private subnets: The public subnet has an internet gateway attached, and the private subnet is supposed to route traffic through a NAT gateway in the public subnet to access the internet.
- Instances in the private subnet are unable to access the internet, indicating a routing or security issue.
- Custom network ACLs are in use, so we need to consider those.
- NAT Gateway in the public subnet: This is crucial for enabling outbound traffic from the private subnet to the internet.
A) There is a network ACL on the private subnet set to deny all outbound traffic.
- Reasoning: Network ACLs control inbound and outbound traffic at the subnet level. If the network ACL in the private subnet is configured to deny all outbound traffic, this would prevent EC2 instances in the private subnet from reaching the internet, even if they have a route through the NAT gateway.
- Advantages:
- Addresses the specific issue of outbound traffic being blocked at the subnet level.
- Disadvantages:
- If the network ACL is not properly configured to allow traffic, this would indeed prevent outbound access. The behavior of network ACLs is stateless, so both inbound and outbound traffic needs to be explicitly allowed.
- Conclusion: This option is highly plausible and could be the root cause of the issue.
B) There is no NAT gateway deployed in the private subnet of the VPC.
- Reasoning: This is a common misconception. A NAT gateway does not need to be in the private subnet; it should be in the public subnet to allow instances in the private subnet to access the internet. The route table in the private subnet should point to the NAT gateway in the public subnet for internet access.
- Advantages:
- The presence of the NAT gateway in the public subnet is the correct configuration.
- Disadvantages:
- This option is not the cause of the issue, since a NAT gateway in the public subnet works just fine.
- Conclusion: This is not the issue because the NAT gateway is correctly deployed in the public subnet.
C) The default security group for the VPC blocks all inbound traffic to the EC2 instances.
- Reasoning: The default security group allows all inbound traffic from inst...
Author: NebulaEagle11 · Last updated May 8, 2026
A company stores its internal data within an Amazon S3 bucket. All existing data within the S3 bucket is protected by using server-side encryption with Amazon S3 managed encryption keys (SSE-S3). S3 Versioning is enabled. A SysOps administrator must replicate the internal data to another S3 bucket in a different AWS account for disaster recovery. ...
To identify the most operationally efficient solution for replicating data from an Amazon S3 bucket in one AWS account to another S3 bucket in a different AWS account, we need to focus on automation, security, scalability, and simplicity. Let's evaluate each option based on these criteria.
A) Add a replication rule to the source bucket and specify the destination bucket. Create a bucket policy for the destination bucket to allow the owner of the source bucket to replicate objects.
- Reasoning: S3 Replication is a fully managed service that automates the process of replicating objects between buckets. This solution uses the built-in S3 replication feature to replicate objects to another S3 bucket in a different account. The replication can be set up with minimal manual intervention and ensures that data is continuously replicated as new objects are uploaded to the source bucket.
- Advantages:
- Automated: Once set up, the replication process is automatic and does not require ongoing management.
- Scalable: Suitable for large data sets and continuous updates.
- Efficient: This method handles both new and existing objects without additional infrastructure.
- Cross-account support: You can set up permissions using bucket policies to allow the source account to replicate data into the destination bucket.
- Integrated with S3: Seamlessly integrates with other S3 features, such as versioning.
- Disadvantages:
- Initial setup: Requires a one-time setup of replication rules and permissions, but once done, it is fully automated.
- Conclusion: This is the most operationally efficient option because it is designed for exactly this use case: replicating S3 data for disaster recovery.
B) Schedule an AWS Batch job with Amazon EventBridge to copy new objects from the source bucket to the destination bucket. Create a Batch Operations IAM role in the destination account.
- Reasoning: AWS Batch allows running batch processing jobs at scale, but setting up a batch job for replicating S3 objects is overcomplicated for this scenario. EventBridge could trigger the job, but it would introduce unnecessary overhead compared to the simplicity of native S3 replication.
- Advantages:
- Automated: Can be triggered by events.
- Disadvantages:
- Complexity: Involves unnecessary infrastructure (AWS Batch and EventBridge), making it more complex to manage than using S3's native replication.
- Overkill: A batch job is designed for large-scale processing, not for regular, continuous replication of S3 objects.
- Not as efficient: More operational overhead due to the need to manage AWS Batch and EventBridge.
C) Configure an Amazon S3 event notification for the source bucket to invoke an AWS Lambda function to copy new objects to the ...
Author: ShadowWolf101 · Last updated May 8, 2026
A company has a high performance computing (HPC) application that runs on Amazon EC2 instances. The application requires minimum latency and maximum network throughput between nodes.
How ...
In this case, the primary goal is to minimize latency and maximize network throughput between the EC2 instances, which are crucial for the high-performance computing (HPC) application. Let's analyze each of the options to understand how they fit the requirements:
A) Use a cluster placement group in a single Availability Zone.
- Cluster placement groups are designed for workloads that require low latency and high network throughput. They place EC2 instances within the same physical hardware, so the network latency is minimized, and the throughput is maximized.
- Single Availability Zone: This ensures that the EC2 instances are within the same zone, providing high-speed, low-latency communication.
- Why this option works: It minimizes the latency between instances, making it ideal for HPC applications that require fast communication between nodes.
- Limitation: The main limitation here is that the EC2 instances are constrained to a single Availability Zone. If that zone experiences any issues, the entire cluster could be affected. Also, there is a possibility of limited scalability if the application grows or requires fault tolerance.
B) Use a cluster placement group across multiple Availability Zones.
- While a cluster placement group provides low latency and high throughput, it does not span multiple Availability Zones. Cluster placement groups are designed to keep all instances in the same Availability Zone to minimize latency.
- Why this option is rejected: Cluster placement groups cannot span multiple Availability Zones, so this option is not suitable for ensuring minimum latency across AZs.
C) Use a partition placement group in a single Availability Zone.
- P...
Author: Victoria · Last updated May 8, 2026
A company has a stateless application that is hosted on a fleet of 10 Amazon EC2 On-Demand Instances in an Auto Scaling group. A minimum of 6 instances are needed to meet service requirement...
To determine the most cost-effective solution for maintaining uptime for the stateless application, let's evaluate each of the given options based on the requirements and factors like cost and uptime.
Key Requirements:
- Stateless application: This allows flexibility because the application does not require state to be retained between instances. This means you can scale in and out without impacting the application's functionality.
- Minimum of 6 instances: This is required to meet service requirements, ensuring that there are always at least 6 instances running to handle the workload.
- Cost-effective: The goal is to reduce costs while maintaining uptime.
A) Use a Spot Fleet with an On-Demand capacity of 6 instances.
- Spot Fleet: Spot instances can be much cheaper than On-Demand instances because they are bid for unused capacity. However, the downside is that Spot instances can be terminated by AWS with little notice if capacity is needed elsewhere.
- On-Demand capacity of 6 instances: This ensures that you have 6 On-Demand instances as a baseline for the fleet. Spot instances can be used for the remaining capacity if needed, but you would still be paying for the 6 On-Demand instances at all times.
- Why this option might work: If the 6 On-Demand instances are kept as a baseline, you can ensure that the application always has a minimum of 6 instances running. The addition of Spot instances could reduce overall costs if the Spot capacity is available, but this is still a relatively high-cost setup because you're maintaining 6 On-Demand instances.
- Why this option might be rejected: The Spot instances could be terminated unexpectedly, which could impact uptime. Moreover, the cost of maintaining 6 On-Demand instances could be higher than other alternatives.
B) Update the Auto Scaling group with a minimum of 6 On-Demand Instances and a maximum of 10 On-Demand Instances.
- Auto Scaling with On-Demand Instances: This option would ensure that you always have a minimum of 6 On-Demand instances running, with the flexibility to scale up to 10 as needed.
- Why this option might work: It guarantees 6 instances running at all times, which meets the uptime requirement.
- Why this option might be rejected: This is the least cost-effective option because it relies entirely on On-Demand instances, whic...
Author: MoonlitPantherX · Last updated May 8, 2026
A company has developed a service that is deployed on a fleet of Linux-based Amazon EC2 instances that are in an Auto Scaling group. The service occasionally fails unexpectedly because of an error in the application code. The company's engineering team determines that resolving the underlying cause of the service failure could take several weeks.
A SysOps administrator...
To solve the problem of automating recovery for the service failure on EC2 instances in an Auto Scaling group, we need solutions that detect when the service crashes and automatically restart it. Given the situation that the failure is caused by an error in the application code and could take weeks to resolve, the solution must provide a way to recover the service without manual intervention.
Option A) Install the Amazon CloudWatch agent on the EC2 instances. Configure the CloudWatch agent to monitor the service. Set the CloudWatch action to restart if the service health check fails.
- Why it might work: The Amazon CloudWatch agent can be configured to monitor custom application metrics (such as service health) and trigger actions based on those metrics. If the service fails, CloudWatch can trigger an automated action, such as restarting the service.
- Why it might be rejected: This solution requires configuring custom application metrics for monitoring. While CloudWatch can trigger alarms and actions based on these metrics, configuring it to restart an individual service directly on EC2 instances may not be as seamless as other options, especially without deep integration into the instance's operating system or services.
Option B) Tag the EC2 instances. Create an AWS Lambda function that uses AWS Systems Manager Session Manager to log in to the tagged EC2 instances and restart the service. Schedule the Lambda function to run every 5 minutes.
- Why it might work: AWS Lambda can be scheduled to run periodically and can use Systems Manager Session Manager to SSH into the EC2 instances. Once logged in, it can execute commands to restart the service.
- Why it might be rejected: This approach is less efficient and introduces unnecessary complexity by using SSH access via Session Manager to restart services. While technically feasible, this method is not ideal because it requires significant overhead and introduces delays compared to more direct monitoring and action methods like those available through CloudWatch or Systems Manager.
Option C) Tag the EC2 instances. Use AWS Systems Manager State Manager to create an association that uses the AWS-RunShellScript document. Configure the association command with a script that checks if the service is running and that starts the service if the service is not running. For targets, specify the EC2 instance tag. Schedule the association to run every 5 minutes.
- Why it might work: AWS Systems Manager State Manager is a fully managed service that can automate the execution of scripts on EC2 instances based on specific conditions. The AWS-RunShellScript document can be used to run a shell script that checks if the service is running and restarts it if necessary. This solution runs on a scheduled basis, providing automated recovery without manual intervention.
- Why it might be rejected: This is an effective solution an...
Author: Olivia · Last updated May 8, 2026
A company's web application runs on Amazon EC2 instances in a single AWS Region. The infrastructure must be designed so the application remains available with no performance degradation in the event of an Availability Zone (AZ) failure. To ensure optimal performance, the application must maintain ...
To ensure the web application remains available with no performance degradation in the event of an Availability Zone (AZ) failure, the infrastructure must be designed with redundancy and fault tolerance. The requirement is to maintain a minimum of 12 instances at all times, but also to ensure that the system continues to perform optimally even during an AZ failure.
Let's evaluate each of the options:
A) 2 AZs with 6 instances in each AZ.
- What it offers: Two AZs with 6 instances in each AZ.
- Why it works: This setup ensures that if one AZ fails, there are still 6 instances in the remaining AZ, so the application would still have the minimum required 12 instances. However, if an AZ goes down, there would be only 6 instances running, which could lead to performance degradation because the system would have half of the instances it typically requires.
- Why it is rejected: In the case of an AZ failure, there would only be 6 instances running, which is below the minimum required 12 instances. This violates the requirement to maintain 12 instances and optimal performance at all times.
B) 2 AZs with 12 instances in each AZ.
- What it offers: Two AZs with 12 instances in each AZ.
- Why it works: This would guarantee that even in the case of an AZ failure, there would still be 12 instances running in the remaining AZ, meeting the minimum instance requirement. However, this solution requires 24 instances total (12 per AZ), which is over-provisioned and more costly than necessary.
- Why it is rejected: While this solution meets the requirements in terms of availability, it involves more resources than needed. The company would be running 24 instances when only 12 are required, making it inefficient and more expensive.
C) 3 AZs with 4 instances in each AZ.
- What it offers: Three AZs with 4 instances in each AZ.
- Why it works: This configuration ensures that in the event of a failure in one...
Author: StarlightBear · Last updated May 8, 2026
A company needs to monitor the disk utilization of Amazon Elastic Block Store (Amazon EBS) volumes. The EBS volumes are attached to Amazon EC2 Linux instances. A SysOps administrator must set up an Amazon CloudWatch alarm that provides an alert when disk utilization increases to mo...
To meet the requirements of monitoring disk utilization on Amazon EBS volumes attached to Amazon EC2 Linux instances and alerting when disk utilization exceeds 80%, the SysOps administrator will need to configure several steps that involve installing the CloudWatch agent, granting proper permissions, and setting up a CloudWatch alarm for the relevant metric.
Let's break down each option:
A) Create an IAM role that includes the CloudWatchAgentServerPolicy AWS managed policy. Attach the role to the instances.
- Why it works: The CloudWatchAgentServerPolicy provides the necessary permissions for the EC2 instance to send data to CloudWatch, including metrics related to disk usage. This is required to allow the CloudWatch agent to collect and send the relevant metrics (disk utilization) to CloudWatch.
- Why it is selected: This is an essential step to ensure the EC2 instances have the necessary permissions to use the CloudWatch agent effectively.
- Why it's not rejected: This option is needed because without the appropriate IAM permissions, the CloudWatch agent would not be able to send the disk utilization metrics to CloudWatch.
B) Create an IAM role that includes the CloudWatchApplicationInsightsReadOnlyAccess AWS managed policy. Attach the role to the instances.
- Why it is rejected: The CloudWatchApplicationInsightsReadOnlyAccess policy is intended for read-only access to CloudWatch Application Insights resources and is not necessary for collecting disk utilization data or setting up CloudWatch alarms. It does not provide the permissions required to collect EC2 instance-level metrics.
- Why it's rejected: This policy is not the right choice for configuring disk usage metrics and alarms.
C) Install and start the CloudWatch agent by using AWS Systems Manager or the command line.
- Why it works: Installing and configuring the CloudWatch agent is necessary to collect detailed disk utilization metrics (such as disk_used_percent) from the EC2 instance. This can be done using AWS Systems Manager or the command line. The agent collects these custom metrics and sends them to CloudWatch.
- Why it is selected: This step is crucial for enabling the collection of disk utilization metrics, which are not available by default in CloudWatch for EBS volumes. The agent can collect more detailed information about disk usage.
- Why it's not rejected: This is a necessary action because the CloudWatch agent is the tool that collects and sends the necessary metrics to CloudWatch.
D) Install and start the CloudWatch agent by using an IAM role. Attach the CloudWatchAgentServerPolicy AWS managed policy to the role.
- Why it is selected: This is essentially the same as option A but with an added layer of detail about how the agent is installed and the permissions it requires. Installing the agen...
Author: Ravi Patel · Last updated May 8, 2026
An ecommerce company uses an Amazon ElastiCache for Redis cluster for in-memory caching of popular product queries on a shopping website. The cache eviction policy is randomly evicting keys whether or not a TTL is set. A SysOps administrator m...
Explanation of Options:
A) Add another node to the ElastiCache cluster
- Reasoning: Adding another node could help distribute the load and increase the overall memory available for caching. However, it will not necessarily improve the cache hit ratio if the eviction policy is still randomly evicting keys. This option addresses scaling, but it does not directly solve the eviction problem or improve the hit ratio.
- Rejection Reason: This option increases infrastructure costs without addressing the root cause of the eviction policy or improving cache efficiency. Adding nodes does not optimize the cache hit ratio in terms of eviction policy.
B) Increase the ElastiCache TTL value
- Reasoning: TTL (Time to Live) determines how long a cache item remains in the cache before it expires. Increasing TTL might keep frequently queried data in the cache for a longer period, which could improve the cache hit ratio. However, this solution doesn't address the issue of eviction and could lead to memory pressure as the cache fills up with long-lived items.
- Rejection Reason: While increasing TTL might extend the lifetime of cache entries, it does not solve the issue of random evictions when memory is constrained. This could lead to inefficient memory utilization and potentially affect performance.
C) Change the eviction policy to randomly evict keys that have a TTL set
- Reasoning: This option would only evict items that have a TTL set, meaning that it...
Author: Alexander · Last updated May 8, 2026
A company deployed a new web application on multiple Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances run in an Auto Scaling group. Users report that they are frequently b...
Explanation of Options:
A) Configure an Amazon CloudFront distribution with the ALB as the origin.
- Reasoning: Amazon CloudFront is a Content Delivery Network (CDN) that can improve content delivery performance by caching content closer to the users. However, it doesn’t directly address session persistence or login issues that occur due to users being directed to different EC2 instances. The issue described relates to session management and not caching content.
- Rejection Reason: CloudFront is not designed to handle session persistence, and adding it here would not resolve the issue of users being frequently prompted to log in.
B) Enable sticky sessions (session affinity) for the target group of EC2 instances.
- Reasoning: Sticky sessions (also known as session affinity) allow requests from the same user to consistently be directed to the same EC2 instance in the Auto Scaling group. This ensures that the user’s session data (such as login state) is maintained across requests. If users are being prompted to log in frequently, it’s likely because they are being routed to different EC2 instances without session persistence, resulting in a loss of session state.
- Selected Option Reasoning: Enabling sticky sessions ensures that each user is routed to the same EC2 instance, which maintains their session. This option directly addresses the issue of users being logged out frequently because their session data isn’t consistently maintained across requests.
C) Redeploy the EC2 instances in a spread placement group.
- Reasoning: A spread placemen...
Author: NebulaEagle11 · Last updated May 8, 2026
A company has scientists who upload large data objects to an Amazon S3 bucket. The scientists upload the objects as multipart uploads. The multipart uploads often fail because of poor end-client connectivity.
The company wants to optimize storage costs that are associated with the data. A SysOps administrator must implement a solution that presents metri...
Explanation of Options:
A) Review the Incomplete Multipart Upload Bytes metric in the S3 Storage Lens dashboard. Create an S3 Lifecycle policy to automatically delete any incomplete multipart uploads after 7 days.
- Reasoning: S3 Storage Lens provides insights and metrics for monitoring and optimizing S3 usage, including incomplete multipart uploads. By reviewing the "Incomplete Multipart Upload Bytes" metric, a SysOps administrator can monitor how much space is occupied by incomplete uploads. An S3 Lifecycle policy can be created to automatically delete these incomplete uploads after 7 days. This option directly addresses both the monitoring and deletion requirements in a straightforward and automated manner.
- Selected Option Reasoning: This option combines both monitoring and automatic deletion using native AWS features (Storage Lens and Lifecycle policies) in a simple, efficient way. It meets the requirement for metrics on incomplete uploads and ensures that incomplete uploads are deleted after 7 days without requiring additional manual intervention.
B) Implement S3 Intelligent-Tiering to move data into lower-cost storage classes after 7 days. Create an S3 Storage Lens policy to automatically delete any incomplete multipart uploads after 7 days.
- Reasoning: S3 Intelligent-Tiering moves data between two access tiers (frequent and infrequent) based on access patterns, optimizing storage costs. However, this doesn't directly address the issue of incomplete multipart uploads, which are not related to the access frequency of the files after they are uploaded. While the S3 Storage Lens can track incomplete uploads, S3 Intelligent-Tiering is not relevant for monitoring or deleting incomplete multipart uploads.
- Rejection Reason: S3 Intelligent-Tiering does not solve the specific problem of incomplete multipart uploads. It’s more suited for optimizing storage costs after the upload is complete and doesn't handle incomplete uploads or deletion based on time.
C) Access the S3 console. Review the Met...
Author: James · Last updated May 8, 2026
A company stores data in Amazon S3 buckets that are provisioned in three separate AWS Regions. The data is copied from the S3 buckets to the data center over the public internet using a VPN. The SysOps administrator notices that, occasionally, the transfers take longer than usual, and determines the issue is congestion within the company's ...
Explanation of Options:
A) Establish an AWS Direct Connect link to each Region. Create a private virtual interface over each link.
- Reasoning: AWS Direct Connect provides a dedicated network connection between your data center and AWS. Establishing a Direct Connect link to each AWS Region and using a private virtual interface ensures that all data transfer between your data center and S3 stays within AWS's private network, bypassing public internet congestion. This is a highly reliable, consistent, and high-performance solution, especially if you have critical transfer needs across multiple regions.
- Rejection Reason: This option is highly reliable and would resolve the issue of network congestion. However, it might be unnecessarily expensive because it requires separate Direct Connect connections to each Region. For a cost-effective solution, connecting to just one region might be sufficient.
B) Establish an AWS Direct Connect link to each Region. Create a public virtual interface over each link.
- Reasoning: A public virtual interface allows you to access AWS public services, such as S3, over Direct Connect. While this can bypass the internet for AWS service access, it still uses AWS’s public IP addresses. Using public interfaces across multiple regions would help avoid congestion, but it is not ideal for S3 data transfers, as it doesn't guarantee the same level of private connection reliability compared to private virtual interfaces.
- Rejection Reason: A public virtual interface, though bypassing the public internet, does not offer the same level of performance and consistency for data transfers as a private virtual interface. Furthermore, it is likely more expensive due to the need to establish multiple Direct Connect links.
C) Establish an AWS Direct Connect link to one of the Regions. Create a private virtual interface over that link.
- Reasoning: Establishing a Direct Connect link to one regio...
Author: Julian · Last updated May 8, 2026
A company has an Amazon EC2 instance that supports a production system. The EC2 instance is backed by an Amazon Elastic Block Store (Amazon EBS) volume. The EBS volume's drive has filled to 100% capacity, which is causing the application on the EC...
Explanation of Options:
A) Modify the EBS volume by adding additional drive space. Log on to the EC2 instance. Use the file system-specific commands to extend the file system.
- Reasoning: This option is the quickest way to address the immediate problem, as it only requires extending the size of the EBS volume and then extending the file system within the EC2 instance. The EBS volume will not need to be recreated or attached in any new configurations.
- Selected Option Reasoning: This approach is the fastest way to remediate the issue. It directly addresses the cause of the errors, which is the 100% capacity of the current volume, by expanding the volume. After expanding the volume, the file system can be resized on the EC2 instance without requiring downtime (besides possibly a brief file system rescan).
B) Create a snapshot of the existing EBS volume. When the snapshot is complete, create an EBS volume of a larger size from the snapshot in the same Availability Zone as the EC2 instance. Attach the new EBS volume to the EC2 instance. Mount the file system.
- Reasoning: While creating a snapshot and launching a larger EBS volume is a viable approach, it introduces unnecessary complexity. The snapshot is useful for backup purposes, but the time taken for the snapshot to complete and the additional steps of mounting and copying data could result in more downtime than option A.
- Rejection Reason: This option involves more steps (snapshot, creating a new volume, and mounting) than option A, making it slower and more complicated. It also introduces potential data movement, which could be avoided by simply expanding the existing volume.
C) Create a new EBS volume of a larger size in the same Availability Zone as t...
Author: Maya · Last updated May 8, 2026
A company has several member accounts that are in an organization in AWS Organizations. The company recently discovered that administrators have been using account root user credentials. The company must prevent the administrators from using root user credentials ...
To meet the requirement of preventing administrators from using root user credentials to perform any actions on Amazon EC2 instances, let's evaluate the available options and explain the reasoning behind the selection.
Option A: Create an identity-based IAM policy in each member account to deny actions on EC2 instances by the root user.
- Reasoning: IAM policies are attached to users or roles and are not applied to the root user in a way that can effectively deny specific actions. The root user has an implicit full account access privilege and bypasses many IAM policies.
- Rejected: IAM policies can't restrict actions from the root user directly. Policies can be attached to IAM users and roles, but the root user is not bound by them. Therefore, this option is ineffective for controlling root user actions.
Option B: In the organization's management account, create a service control policy (SCP) to deny actions on EC2 instances by the root user in all member accounts.
- Reasoning: Service Control Policies (SCPs) are a feature of AWS Organizations that allow you to define permissions for accounts in your organization. SCPs can be used to explicitly allow or deny actions across all accounts in the organization. This includes denying root user actions.
- Accepted: SCPs apply to all users within the accounts under the organization, including the root user. By creating an SCP that denies EC2 actions, you can effectively block the root user in all accounts from performing actions on EC2 instances. This is a scalable solution because it applies to the entire organization at once.
Option C: U...
Author: Emma Brown · Last updated May 8, 2026
A company is transitioning away from applications that are hosted on Amazon EC2 instances. The company wants to implement a serverless architecture that uses Amazon S3, Amazon API Gateway, AWS Lambda, and Amazon CloudFront. As part of this transition, the company has Elastic IP addresses that are unassociated with any EC2 instances after the EC2 instances are terminated.
A SysOps administrator needs to automate the process of...
Let's evaluate each option in terms of efficiency and suitability for the task of releasing unassociated Elastic IP addresses (EIPs) after EC2 instances are terminated.
Option A: Activate the eip-attached AWS Config managed rule to run automatically when resource changes occur in the AWS account. Configure automatic remediation for the rule. Specify the AWS-ReleaseElasticIP AWS Systems Manager Automation runbook for remediation. Specify an appropriate role that has permission for the remediation.
- Reasoning: AWS Config can monitor resource changes, and a managed rule like `eip-attached` could help identify unassociated Elastic IPs. Using the `AWS-ReleaseElasticIP` runbook through AWS Systems Manager Automation allows for automated remediation. This is an efficient, automated, and managed solution by AWS, which reduces operational overhead.
- Accepted: This option leverages AWS-native services and provides an automated remediation path when Elastic IPs are detected as unassociated. The solution is operationally efficient, and it involves minimal custom development.
Option B: Create a custom Lambda function that calls the EC2 ReleaseAddress API operation and specifies the Elastic IP address AllocationId. Invoke the Lambda function by using an Amazon EventBridge rule. Specify AWS services as the event source, All Events as the event type, and AWS Trusted Advisor as the target.
- Reasoning: This solution involves custom Lambda code and uses EventBridge to trigger the function on specific events. However, it specifies AWS Trusted Advisor as the target, which is not relevant for the task at hand. Trusted Advisor primarily monitors best practices and doesn't directly track unassociated Elastic IPs or EC2 instance terminations.
- Rejected: While this approach uses Lambda and EventBridge effectively, the use of AWS Trusted Advisor as the target is not relevant for the specific task of releasing unassociated Elastic IPs. It adds unnecessary complexity and doesn't directly address the requirement.
Option C: Create an Amazon EventBridge rule. Specify AWS services as the event source, Instance State-change Notification as the event type, and Amazon EC2 as ...
Author: Max · Last updated May 8, 2026
A company uses Amazon CloudFront to serve static content to end users. The company's marketing team recently deployed updates to 150 images on the company's website. However, the website is not displaying some of the new images.
A SysOps administrator reviews the CloudFront distribution's cache settings. The default TTL for the distribution is set t...
Let's evaluate the options in terms of operational efficiency and suitability for refreshing the CloudFront cache with the new images.
Option A: Create a new CloudFront distribution that has the same origin. Set the default TTL to 1 minute (60 seconds). Switch Amazon Route 53 DNS records to use the new distribution.
- Reasoning: Creating a new CloudFront distribution is an unnecessary and complex solution. Changing the DNS records to point to a new distribution introduces potential downtime and adds operational complexity. You also don't need a new distribution for this specific case, as it's more efficient to manage cache invalidation in an existing distribution.
- Rejected: This approach involves unnecessary complexity (new distribution, DNS changes) and is not an operationally efficient solution.
Option B: Instruct the marketing team to upload the new images to a different location. When the new images are uploaded, update the website to locate the new images.
- Reasoning: While this would effectively solve the issue of displaying new images, it requires a manual update to the website and new image URLs. This adds unnecessary steps and complexity to the process. The best solution would be to use CloudFront’s built-in capabilities to manage cached content without needing to move files or update URLs.
- Rejected: This is not an efficient solution since it involves manual intervention and changes to the website's content, which is unnecessary for simply refreshing CloudFront's cache.
Option C: Issue a CloudFront invalidation request to immediately expire the new images from the marketing team's update.
- Reasoning: CloudFront invalidation is the most direct and operationally efficient way to remove outdated content from the cache. T...
Author: Liam · Last updated May 8, 2026
A SysOps administrator is responsible for a company's disaster recovery procedures. The company has a source Amazon S3 bucket in a production account, and it wants to replicate objects from the source to a destination S3 bucket in a nonproduction account. The SysOps administrator configures S3 cross-Region, cross-account replication to copy the source S3 bucket to the destination S3 bucket....
Let's analyze each option and determine the most effective solution for resolving the "Access Denied" error when accessing objects in the destination S3 bucket after setting up cross-account replication.
Option A: Modify the replication configuration to change object ownership to the destination S3 bucket owner.
- Reasoning: In S3 cross-account replication, when objects are replicated from a source to a destination bucket, the ownership of the objects in the destination bucket remains with the source account by default. This can lead to permission issues because the destination account may not have the necessary permissions to access objects owned by the source account.
- Solution: Changing the object ownership to the destination bucket owner ensures that the destination account will own the replicated objects and can access them without issues.
- Accepted: This solution directly addresses the root cause of the "Access Denied" error by making sure the destination account has access to the replicated objects.
Option B: Ensure that the replication rule applies to all objects in the source S3 bucket and is not scoped to a single prefix.
- Reasoning: This option refers to ensuring that the replication rule is applied to all objects, not just a specific prefix. However, this is not related to the "Access Denied" error, as it does not address ownership or permissions. The "Access Denied" error occurs because the destination account cannot access objects owned by the source account, regardless of the scope of the replication rule.
- Rejected: While it’s important to replicate all objects if that’s the goal, the issue here is access control and object ownership, not replication scop...
Author: Manish · Last updated May 8, 2026
A company is running Amazon RDS for PostgreSQL Multi-AZ DB clusters. The company uses an AWS CloudFormation template to create the databases individually with a default size of 100 GB. The company creates the databases every Monday and deletes the databases every Friday.
Occasionally, the databases run low on disk space and initiate an Amazon CloudWatch alarm. A SysOps administrat...
Let's evaluate each option based on the requirements to prevent the databases from running low on disk space with the fewest changes to the application.
Option A: Modify the CloudFormation template to use Amazon Aurora PostgreSQL as the DB engine.
- Reasoning: Amazon Aurora PostgreSQL is a managed database engine that offers scalability and high availability. However, switching to Aurora would require a significant change to the application, including modifications to the database engine, and it may not be the most efficient solution in terms of minimizing changes. The requirement is focused on preventing low disk space, and this option is not directly related to addressing that issue.
- Rejected: Switching to Aurora would involve a complex migration process, which isn't necessary to address disk space issues in the current PostgreSQL setup.
Option B: Modify the CloudFormation template to use Amazon DynamoDB as the database. Activate storage auto scaling during creation of the tables.
- Reasoning: This option proposes switching from Amazon RDS for PostgreSQL to Amazon DynamoDB, which is a NoSQL database. This would involve significant changes to the application, as DynamoDB is not compatible with PostgreSQL and would require rewriting application logic. The problem at hand is related to disk space in a relational database, and DynamoDB is not a solution to address this issue without major application changes.
- Rejected: This would require a complete rewrite of the application to support a different database engine, which goes against the requirement of making the fewest changes to the application.
Option C: Modify the CloudFormation template to activate storage auto scaling on the existing DB instances.
- Reasoning: Amazon RDS for PostgreSQL supports storage au...
Author: Ming · Last updated May 8, 2026
A SysOps administrator wants to share a copy of a production database with a migration account. The production database is hosted on an Amazon RDS DB instance and is encrypted at rest with an AWS Key Management Service (AWS KMS) key that has an alias of production-r...
To determine the best approach for sharing a copy of the production database with a migration account, we need to analyze each option based on the key factors such as administrative overhead, security, and ease of use. The SysOps administrator's goal is to minimize the administrative overhead while ensuring secure access and data consistency.
Option A: Take a snapshot of the RDS DB instance in the production account. Amend the KMS key policy of the production-rds-key KMS key to give access to the migration account's root user. Share the snapshot with the migration account.
- Pros: This is a simple option that involves taking a snapshot, amending the KMS key policy to provide access to the migration account, and sharing the snapshot.
- Cons: The overhead of modifying the KMS key policy and the potential risk of granting the root user access may not be ideal. Root user access can be too broad and may violate the principle of least privilege.
- Conclusion: Although this option is simple, modifying the KMS key policy to grant access to the root user is a security concern.
Option B: Create an RDS read replica in the migration account. Configure the KMS key policy to replicate the production-rds-key KMS key to the migration account.
- Pros: A read replica would allow the migration account to access a copy of the database without affecting the production instance.
- Cons: This approach involves setting up and maintaining a read replica, which is unnecessary for a one-time database copy operation. Additionally, configuring KMS key replication can add complexity.
- Conclusion: This option is not ideal because it introduces unnecessary complexity and ongoing maintenance for something that doesn't require continuous replication.
Option C: Take a snap...
Author: Akash · Last updated May 8, 2026
A company hosts a continuous integration and continuous delivery (CI/CD) environment on AWS. The CI/CD environment includes a Jenkins server that is hosted on an Amazon EC2 instance. A 500 GB General Purpose SSD (gp2) Amazon Elastic Block Store (Amazon EBS) volume is attached to the EC2 instance.
Because of disk throughput limitations, the Jenkins server reports performance issues that are resulting in slower builds on the server. The EBS volume needs to sustain 3,000 IOPS while performing nightly build tasks.
A SysOps administrator examines the server's history in Amazon Clo...
To meet the performance requirements of the Jenkins server, the SysOps administrator needs to improve disk throughput and ensure that the EBS volume can sustain 3,000 IOPS. Let's evaluate each option based on factors like performance, cost-effectiveness, and suitability.
Option A: Double the gp2 EBS volume size from 500 GB to 1,000 GB.
- Pros: Increasing the volume size would improve throughput in gp2 volumes because the IOPS limit for a gp2 volume scales with size (3 IOPS per GB, up to a maximum of 16,000 IOPS).
- Cons: While doubling the volume size would increase the available throughput, it might not directly meet the required 3,000 sustained IOPS, especially if the volume is still smaller than the 1,000 GB size (which would yield 3,000 IOPS). This is not the most cost-effective solution because it requires increasing the volume size, which could lead to higher costs and unnecessary space.
- Conclusion: This option may solve the problem, but it is not the most cost-effective approach since it increases the storage size and cost without necessarily providing the most efficient solution for IOPS requirements.
Option B: Change the volume type from gp2 to General Purpose SSD (gp3).
- Pros: gp3 volumes offer a fixed baseline of 3,000 IOPS and 125 MB/s throughput, regardless of volume size. This can immediately meet the required IOPS for the Jenkins server. Additionally, gp3 volumes are cheaper than gp2 volumes at high performance levels.
- Cons: No major drawbacks. It's an efficient change, but some small adjustme...
Author: Emma · Last updated May 8, 2026
A company is running an application on a group of Amazon EC2 instances behind an Application Load Balancer. The EC2 instances run across three Availability Zones. The company needs to provide the customers with a maximum of two stat...
To meet the requirement of providing customers with a maximum of two static IP addresses for the application, we need to consider the options based on their ability to provide static IP addresses and scale across multiple Availability Zones, as well as cost and complexity.
Option A: Add AWS Global Accelerator in front of the Application Load Balancer.
- Pros: AWS Global Accelerator provides a set of static IP addresses that can be used to route traffic to an application across multiple AWS regions and Availability Zones. It provides two static IP addresses by default and can route traffic to the best-performing endpoint.
- Cons: This solution is typically more complex and intended for use cases that require global application performance improvements and availability. It adds extra cost and overhead for the simple requirement of just two static IP addresses.
- Conclusion: While this option will provide the two static IP addresses, it may be overkill for a scenario that doesn’t require global acceleration or additional features like multi-region failover. This is a more expensive and complex solution than necessary.
Option B: Add an internal Network Load Balancer behind the Application Load Balancer.
- Pros: A Network Load Balancer (NLB) can provide static IP addresses. It is suitable for handling low-latency, high-throughput traffic.
- Cons: The internal Network Load Balancer is designed for internal traffic, not public traffic. This option wouldn't provide the external static IP addresses required for customer-facing traffic. It also doesn't seem to align with the requirement of static IP addresses for the applicat...
Author: Liam · Last updated May 8, 2026
A SysOps administrator receives an alert that a production Auto Scaling group has been scaled down to two Amazon EC2 instances. The Auto Scaling group was originally configured with a minimum capacity of three instances. However, the SysOps administrator confirms that the conf...
To identify who made the change to the Auto Scaling group configuration, the best service is one that tracks changes to resources and can provide details about user actions. Let's evaluate each option based on its suitability for this purpose:
Option A: AWS Config
- Pros: AWS Config records configuration changes and maintains a detailed history of resource configurations, including Auto Scaling groups. It tracks changes to resource configurations and can identify which IAM user or role made the change by checking the configuration history and related events. This would allow the SysOps administrator to trace the change in the Auto Scaling group's minimum capacity.
- Cons: There are no major downsides in this context, as AWS Config is specifically designed to track resource configurations and provide visibility into who made changes.
- Conclusion: AWS Config is the best option here because it directly tracks changes to configurations and can be used to identify who modified the Auto Scaling group's settings.
Option B: Amazon Inspector
- Pros: Amazon Inspector is a security assessment service that helps identify vulnerabilities in AWS resources.
- Cons: It is not designed to track configuration changes or user actions related to Auto Scaling or other resource modifications. It's focused on security a...
Author: Sofia · Last updated May 8, 2026
A company wants to store sensitive financial data within Amazon S3 buckets. The company has a corporate policy that does not allow public read or write access to the buckets. A SysOps administrator must create a solution to automatically remove S3 permissions that allow public read or write access...
To meet the requirement of automatically removing S3 permissions that allow public read or write access while maintaining operational efficiency, we need to consider AWS services that can monitor and manage security and configuration compliance effectively.
Option A: AWS Config
- Pros: AWS Config provides detailed tracking of resource configurations, including S3 bucket permissions. It can monitor for changes that allow public access and alert or trigger automated remediation through AWS Config rules. AWS Config can be configured to automatically remediate misconfigurations, such as public access permissions on S3 buckets, ensuring compliance with corporate policies.
- Cons: AWS Config can be complex to set up, and some remediation actions might require additional configuration or automation steps. However, it is specifically designed to track resource configuration and compliance, making it highly suitable for this scenario.
- Conclusion: AWS Config is a strong candidate for this task because it can automatically enforce policies and remove public access permissions from S3 buckets.
Option B: AWS Security Hub
- Pros: AWS Security Hub aggregates security findings from various AWS services, such as Amazon Inspector, GuardDuty, and Config, and provides a centralized view of security alerts.
- Cons: While AWS Security Hub helps in identifying security issues across AWS services, it does not directly manage or remediate specific configuration changes like removing pu...
Author: Emily · Last updated May 8, 2026
A SysOps administrator must create an IAM policy for a developer who needs access to specific AWS services. Based on the requirements, the SysOps administrator creates the f...
To answer this question, let's first evaluate the given IAM policy and determine which actions are allowed based on AWS permissions.
Step-by-step analysis of each option:
A) Create an AWS Storage Gateway
- AWS Storage Gateway is a hybrid cloud storage service that connects on-premises environments with AWS cloud storage. Creating a storage gateway requires permissions that are specific to this service, such as `storagegateway:CreateGateway`.
- Without seeing the policy details, it’s unlikely that the IAM policy for a developer would grant permissions for this particular service unless explicitly stated. Storage Gateway is not typically included in general-purpose policies for developers, as it's more related to infrastructure management or storage administrators.
B) Create an IAM role for an AWS Lambda function
- Creating IAM roles falls under AWS Identity and Access Management (IAM). A permission such as `iam:CreateRole` would be required to perform this action.
- IAM permissions like creating roles are typically restricted for security reasons. If the policy grants permissions for Lambda, the developer might have permissions for `iam:PassRole`, but they usually do not include `iam:CreateRole` unless explicitly required for their task.
C) Delete an Amazon Simple Queue Service (Amazon SQS) queue
- Deleting an SQS queue requires the `sqs:DeleteQueue` permission. Since IAM policies for developers typically include actions that are more related to development, like creating or managing resources for Lambda or S3, deleting queues might not be part of a common ...
Author: Harper · Last updated May 8, 2026
A SysOps administrator is re-architecting an application. The SysOps administrator has moved the database from a public subnet, where the database used a public endpoint, into a private subnet to restrict access from the public network. After this change, an AWS Lambda function that requires read access to the database cannot conne...
To resolve the issue where an AWS Lambda function cannot connect to a database after it was moved to a private subnet, we need to find a solution that ensures secure communication while respecting the architecture change (moving the database into a private subnet).
Let’s break down each option:
A) Create an AWS PrivateLink interface endpoint for the Lambda function. Connect to the database using its private endpoint.
- AWS PrivateLink allows private connectivity to services across VPCs using private IP addresses. However, in this case, the Lambda function doesn’t need to use PrivateLink unless the database is exposed as a service to other VPCs. This is more applicable when connecting to services like AWS services (S3, EC2) over private links, not necessarily for Lambda-to-database connections in the same VPC.
- This option may be overkill for the given scenario and not optimal because the Lambda function and database are already in the same VPC, and PrivateLink is not required for internal communication between them.
B) Connect the Lambda function to the database VPC. Connect to the database using its private endpoint.
- Correct approach: The Lambda function should be in the same VPC as the database, or if not, be connected via a VPC configuration (i.e., a VPC connection, VPC peering, or Transit Gateway). In this case, connecting Lambda to the VPC containing the private database subnet would allow the Lambda function to access the private endpoint of the database securely.
- Key factor: If the Lambda function is in a different VPC or subnet, it needs proper networking conf...
Author: Sofia · Last updated May 8, 2026
Users are reporting consistent forced logouts from a stateful web application. The logouts occur before the expiration of a 15-minute application logout timer.
The web application is hosted on Amazon EC2 instances that are in an Auto Scaling group. The instances run behind an Application Load Balancer (ALB) that has a single target group. The ALB is configured as the origin in an Amazon CloudFront distribution. Session affinity (sticky sessions) is already enabled on the ALB targe...
The issue described involves users being unexpectedly logged out of a web application, even though the application timer has not expired. The web application is hosted on EC2 instances behind an ALB, which is integrated with CloudFront. Sticky sessions are enabled, but session persistence seems to be compromised, leading to forced logouts.
Let’s analyze the options one by one to find the most appropriate solutions:
A) Change to the least outstanding requests algorithm on the ALB target group.
- Explanation: The least outstanding requests algorithm distributes traffic based on the number of outstanding requests to each target. While this can improve load distribution and prevent overloading specific instances, it is unlikely to resolve the issue of forced logouts. The problem here seems more related to session persistence rather than load balancing strategy. Therefore, this option is not directly relevant to the problem of session persistence.
- Rejection reason: This solution doesn’t address the session affinity issue that leads to forced logouts.
B) Configure cookie forwarding in the CloudFront distribution's cache behavior settings.
- Correct approach: CloudFront caches content at edge locations, and if it is configured to cache cookies (such as session cookies), it may send users to different EC2 instances than expected, breaking session persistence. Configuring cookie forwarding in CloudFront ensures that session cookies (including the application-generated cookie or the ALB cookie) are forwarded to the origin servers (ALB). This ensures the user always hits the same EC2 instance, maintaining session continuity and preventing forced logouts.
- Key factor: By forwarding cookies properly, CloudFront can maintain session persistence across the Auto Scaling instances.
- Selected reason: This is critical because it addresses the core issue: ensuring that the ALB gets the necessary session cookies to maintain session persistence.
C) Configure the duration-based cookie to be named AWSALB.
- Explanation: The AWSALB cookie is automatically set by the ALB to manage session stickiness when sticky sessions are enabled. However,...
Author: Zain · Last updated May 8, 2026
A company's social media application has strict data residency requirements. The company wants to use Amazon Route 53 to provide the application with DNS services.
A SysOps administrator must implement a solution that routes requests to a defined list of...
To meet the data residency and routing requirements for the social media application using Amazon Route 53, the solution must ensure that requests are routed based on the user's location and must restrict routing to a specific set of AWS regions.
Let’s analyze each option in the context of the requirement:
A) Configure a Route 53 latency routing policy.
- Explanation: The latency routing policy routes traffic based on which AWS Region has the lowest latency for the user. This is useful when optimizing for performance, but it doesn't directly address the requirement to route traffic based on the user's location as specified in the problem. Latency-based routing could result in routing to an unintended region, as it focuses on minimizing latency, not adhering to strict data residency rules.
- Rejection reason: This policy does not enforce routing based on the user’s location, and it may direct users to regions that don't meet data residency requirements.
B) Configure a Route 53 multivalue answer routing policy.
- Explanation: The multivalue answer routing policy allows Route 53 to return multiple IP addresses for a domain name, giving a client several options. It doesn’t control which AWS region is used for routing but instead returns multiple values for a single DNS query. This is typically used for increasing fault tolerance and availability.
- Rejection reason: This policy doesn’t route based on location or data residency requirements. It's mor...
Author: RadiantJaguar56 · Last updated May 8, 2026
A company has a cluster of Linux Amazon EC2 Spot Instances that read many files from and write many files to attached Amazon Elastic Block Store (Amazon EBS) volumes. The EC2 instances are frequently started and stopped. As part of the process when an EC2 instance starts, an EBS volume is restored from a snapshot.
EBS volumes that are restored from snapshots are experiencing initial performance that is lower than expected. The company's workload needs almost all the provisioned IOPS on the attached EBS volumes. The EC2 instances are unable to support the workload whe...
The scenario describes a workload with Amazon EC2 Spot Instances reading and writing many files from and to Amazon Elastic Block Store (Amazon EBS) volumes. The EBS volumes are restored from snapshots and experience initial performance degradation, specifically with regard to provisioned IOPS, which affects the EC2 instances’ ability to support the workload.
Let’s analyze each solution option to determine which one would best meet the requirements:
A) Configure fast snapshot restore (FSR) on the snapshots that are used.
- Correct solution: Fast Snapshot Restore (FSR) enables faster volume initialization when an EBS volume is restored from a snapshot. FSR can speed up the performance of newly restored EBS volumes by ensuring they are available at full performance immediately, rather than waiting for the volume to "warm up" or "catch up" after being restored from a snapshot. This is particularly important when using provisioned IOPS volumes, as it directly affects the time it takes to reach expected performance.
- Key reason for selection: FSR is specifically designed to address performance issues associated with the time it takes for a volume to reach full performance after being restored from a snapshot. This will resolve the issue of lower-than-expected initial performance and meet the workload’s need for high IOPS immediately after the volume is restored.
- Selected reason: This option provides a direct solution to the performance issue of EBS volumes restored from snapshots, making it the best fit for the described requirements.
B) Restore each snapshot onto an unencrypted EBS volume. Encrypt the EBS volume when the performance stabilizes.
- Explanation: This solution proposes restoring the snapshot onto an unencrypted volume and then later encrypting it once the performance stabilizes. While it's true that encrypted volumes can have slightly slower performance due to the overhead of encryption, this does not address the c...
Author: Scarlett · Last updated May 8, 2026
A company recently deployed an application in production. The production environment currently runs on a single Amazon EC2 instance that hosts the application's web application and a MariaDB database. Company policy states that all IT production...
To ensure that the production environment is highly available, let's analyze each option in detail:
A) Migrate the database from the EC2 instance to an Amazon RDS for MariaDB Multi-AZ DB instance. Run the application on EC2 instances that are in an Auto Scaling group that extends across multiple Availability Zones. Place the EC2 instances behind a load balancer.
- RDS for MariaDB Multi-AZ provides automatic failover to a standby instance in another Availability Zone. This setup ensures high availability for the database.
- Auto Scaling ensures that EC2 instances for the application are scalable and highly available, distributing across multiple Availability Zones. This ensures that if one instance fails, another will be available to handle traffic.
- Load balancer helps to distribute traffic evenly across the EC2 instances, enhancing availability and fault tolerance.
This option meets the requirement for high availability in both the database and the application layer. RDS Multi-AZ for the database provides automated failover and redundancy, while the Auto Scaling group and load balancer for the EC2 instances ensure the application is resilient to failures.
B) Migrate the database from the EC2 instance to an Amazon RDS for MariaDB Multi-AZ DB instance. Use AWS Application Migration Service to convert the application into an AWS Lambda function. Specify the Multi-AZ option for the Lambda function.
- RDS for MariaDB Multi-AZ ensures high availability for the database.
- AWS Lambda is a serverless compute service, which isn't a direct fit for hosting a traditional web application unless it is architected to work with serverless components. Web applications often rely on long-running server instances with session management, which Lambda is not ideal for unless the entire app is refactored for a serverless architecture. Moreover, Lambda does not work with a Multi-AZ configuration in the same way as EC2 instances.
This option is rejected because converting the application to a Lambda function may require significant changes to the application architecture and may not be suitable unless the application is fully serverless.
C) Copy the database to a different EC2 instance in a different Availability Zone. Use AWS Backup to create Amazon Machine ...
Author: Arjun · Last updated May 8, 2026
A company is running workloads on premises and on AWS. A SysOps administrator needs to automate tasks across all servers on premises by using AWS services. The SysOps administrator must not install long-term credentials on...
To automate tasks across on-premises servers using AWS services without installing long-term credentials on the servers, let's analyze each option carefully.
A) Create an IAM role and instance profile that include AWS Systems Manager permissions. Attach the role to the on-premises servers.
- IAM roles are typically used with AWS EC2 instances and are not directly applicable to on-premises servers. While IAM roles with EC2 instance profiles are designed for resources running on AWS, attaching an IAM role to an on-premises server is not a feasible method. IAM roles need to be assumed by EC2 instances or other AWS resources, but on-premises servers require other mechanisms (like managed instance activation).
This option is rejected because IAM roles cannot be directly attached to on-premises servers in the same way as to AWS EC2 instances.
B) Create a managed-instance activation in AWS Systems Manager. Install the Systems Manager Agent (SSM Agent) on the on-premises servers. Register the servers with the activation code and ID from the instance activation.
- Managed-instance activation allows on-premises servers to be registered with AWS Systems Manager without installing long-term credentials on the servers. The SSM Agent is installed on the servers to allow them to be managed via Systems Manager. This approach enables the SysOps administrator to automate tasks such as patching, configuration, and more, across all on-premises servers securely.
This option is selected because it provides a secure way to automate tasks without the need for long-term credentials. It leverages AWS Systems Manager's capabilities to manage b...
Author: Rohan · Last updated May 8, 2026
A company has deployed an application on AWS. The application runs on a fleet of Linux Amazon EC2 instances that are in an Auto Scaling group. The Auto Scaling group is configured to use launch templates. The launch templates launch Amazon Elastic Block Store (Amazon EBS) backed EC2 instances that use General Purpose SSD (gp3) EBS volumes for primary storage.
A SysOps administrator needs to implement a solution ...
To address the requirement of ensuring that all EC2 instances in the Auto Scaling group share the same underlying files with data consistency, let's evaluate each option in detail.
A) Create an Amazon Elastic File System (Amazon EFS) file system. Create a new launch template version that includes user data that mounts the EFS file system. Update the Auto Scaling group to use the new launch template version to cycle in newer EC2 instances and to terminate the older EC2 instances.
- Amazon EFS is a managed, scalable file storage service that allows multiple EC2 instances to access the same file system concurrently. EFS is built to be used by multiple instances, making it ideal for sharing files among a fleet of EC2 instances. It provides consistency in terms of access and data updates because all EC2 instances access the same underlying file system.
- User data can be used to mount the EFS file system on all instances during their launch, ensuring the file system is consistently available across all instances.
This option is selected because EFS is specifically designed for this scenario where multiple instances need shared file access, and it ensures data consistency.
B) Enable Multi-Attach on the EBS volumes. Create a new launch template version that includes user data that mounts the EBS volume. Update the Auto Scaling group to use the new template version to cycle in newer EC2 instances and to terminate the older EC2 instances.
- Multi-Attach allows an EBS volume to be attached to multiple EC2 instances, but it only supports io1 and io2 volume types, not gp3 volumes.
- Even with Multi-Attach, using EBS volumes for sharing files across multiple EC2 instances is not ideal because EBS is typically designed for block storage that is attached to a single instance. It may lead to data consistency issues because EBS volumes are not optimized for concurrent writes from multiple instances.
This option is rejected because Multi-Attach with gp3 volumes is not supported, and EBS is not suitable for shared file systems across multiple instances in terms of data consistency.
C) Crea...