Courseiva

CCNA Resilient Cloud Solutions Questions

75 of 103 questions · Page 1/2 · Resilient Cloud Solutions · Answers revealed

1
Multi-Selectmedium

A company runs a microservices application on Amazon ECS with Fargate. The services need to be resilient to AZ failures. Which TWO actions should the company take? (Choose two.)

Select 2 answers
A.Configure the ECS service to spread tasks across multiple Availability Zones
B.Enable Service Auto Scaling to maintain desired count across AZs
C.Use a Network Load Balancer in each AZ for the service
D.Use a placement group to ensure tasks are launched on the same underlying hardware
E.Place all tasks in a single Availability Zone to minimize cross-AZ latency
AnswersA, B

Spreading across AZs provides fault tolerance.

Why this answer

To ensure resilience to Availability Zone failures, the company should spread tasks across multiple AZs (Option A) so that if one AZ fails, the tasks in other AZs continue to serve traffic. Additionally, enabling Service Auto Scaling (Option B) helps maintain the desired task count across AZs by automatically replacing tasks in failed AZs. Option C is incorrect because a single Network Load Balancer can route traffic across all AZs; placing one per AZ is unnecessary and adds complexity.

Option D is irrelevant since placement groups apply to EC2 instances, not Fargate tasks. Option E is the opposite of resilience—placing all tasks in one AZ creates a single point of failure.

2
Multi-Selectmedium

A company is deploying a serverless application using AWS Lambda, Amazon API Gateway, and Amazon DynamoDB. The application must be resilient to regional outages. Which THREE steps should the company take to achieve multi-Region resilience? (Choose THREE.)

Select 3 answers
A.Use Amazon CloudFront with multiple origins pointing to each Region's API Gateway.
B.Configure Route 53 with a failover routing policy to direct traffic to the secondary Region if the primary fails.
C.Use DynamoDB global tables to replicate data across Regions.
D.Deploy Lambda@Edge functions to handle requests at edge locations.
E.Deploy a second API Gateway and Lambda function in another Region.
AnswersB, C, E

Route 53 failover routing enables traffic redirection.

Why this answer

Amazon Route 53 with a failover routing policy allows the company to route traffic to a secondary Region when health checks detect a failure in the primary Region. This provides DNS-level failover, which is a fundamental component of multi-Region resilience for HTTP-based applications.

Exam trap

The trap here is that candidates often confuse CloudFront's origin failover capability (which requires manual configuration of origin groups) with automatic multi-Region failover, or they mistakenly believe Lambda@Edge can serve as a full application backend across Regions, when in fact it is limited to edge processing and cannot replace regional Lambda deployments.

3
MCQhard

A company runs a stateless web application on AWS Lambda behind an Application Load Balancer (ALB). During a deployment, the team updates the Lambda function to a new version. Some users report seeing the old version of the application for several minutes after the deployment. What is the MOST likely cause?

A.The Lambda function versions are not immutable, causing a gradual rollout.
B.Lambda@Edge is overriding the function version at the edge locations.
C.Amazon CloudFront is caching the old response and has not been invalidated.
D.The ALB target group is still pointing to the old Lambda function version due to connection draining.
AnswerD

Connection draining and warm-up can cause ALB to serve old versions until all connections are drained.

Why this answer

When an ALB is used with Lambda, the ALB invokes a specific Lambda function version or alias. If the deployment updates the Lambda function but the ALB target group alias is not updated atomically, or if connection draining keeps old connections active, some requests may still be routed to the old version. This can cause users to see the old application for several minutes.

Option A is wrong because Lambda versions are immutable, so gradual rollout is not related. Option B is wrong because Lambda@Edge is not used in this setup (the application runs behind an ALB, not CloudFront). Option C is wrong because CloudFront is not mentioned in the architecture—the traffic goes directly from ALB to Lambda.

4
MCQmedium

Refer to the exhibit. A DevOps engineer applies the IAM policy shown to an S3 bucket to enforce server-side encryption. However, users report that some uploads succeed without encryption. What is the most likely reason?

A.The resource ARN is incorrect; it should be the bucket ARN.
B.The policy only allows the action but does not deny actions that do not meet the condition.
C.The action should be s3:PutEncryptedObject instead of s3:PutObject.
D.The policy uses StringEquals instead of StringNotEquals.
AnswerB

Without an explicit Deny, other policies may allow uploads without encryption.

Why this answer

The IAM policy shown only allows the s3:PutObject action when the encryption condition is met, but it does not include a Deny statement to explicitly block uploads that do not satisfy the condition. In AWS IAM, an Allow statement alone does not prevent actions that fail the condition; it simply grants permission when the condition is true. Without a corresponding Deny, users with other permissions (e.g., from a broader policy) can still upload objects without encryption, as the Allow does not override other effective allows.

Exam trap

The trap here is that candidates assume an Allow statement with a condition implicitly denies requests that don't meet the condition, but AWS IAM requires an explicit Deny to block non-compliant actions.

How to eliminate wrong answers

Option A is wrong because the resource ARN in the policy (arn:aws:s3:::example-bucket/*) is correct for object-level operations like s3:PutObject, which require the object ARN (bucket/*), not just the bucket ARN. Option C is wrong because s3:PutEncryptedObject is not a valid AWS S3 action; the correct action is s3:PutObject, and encryption is enforced via conditions, not a separate action. Option D is wrong because using StringEquals is appropriate here to require the encryption header to equal 'AES256'; StringNotEquals would incorrectly allow uploads that do not specify encryption or specify a different value.

5
MCQmedium

A company runs a microservices architecture on Amazon ECS with Fargate. Services communicate via an internal Application Load Balancer. Recently, one service became unavailable due to a memory leak, causing cascading failures in downstream services. What design change would MOST effectively improve resilience and limit the blast radius?

A.Increase the memory limit for each ECS task to accommodate memory leaks.
B.Implement circuit breaker patterns in the service discovery and client libraries to stop calling unhealthy services.
C.Enable connection draining on the ALB to allow in-flight requests to complete.
D.Implement automatic scaling policies for ECS services based on memory utilization.
AnswerB

Circuit breakers isolate failures and prevent cascading.

Why this answer

Implementing a circuit breaker pattern in service discovery and client libraries stops requests to unhealthy services, preventing cascading failures and limiting blast radius. Option A is wrong because increasing memory limits only delays the inevitable failure and does not prevent downstream services from being affected. Option C (connection draining) only affects in-flight requests during deregistration, not active health issues.

Option D (auto scaling) helps but does not stop requests from being sent to a failing service; scaling cannot fix a memory leak.

6
Multi-Selecteasy

A startup runs a stateless web application on AWS Elastic Beanstalk with a single environment. The application uses an Amazon RDS for MySQL database instance. The startup is preparing for a marketing campaign that is expected to increase traffic by 10x. The CTO is concerned about the application's ability to handle the load and wants to ensure high availability and resilience. The current architecture has a single RDS instance (db.t3.medium) and a single Elastic Beanstalk environment with one EC2 instance (t3.medium). The startup has a limited budget but wants to improve resilience without over-provisioning. Which combination of actions should the DevOps engineer recommend? (Choose THREE.)

Select 3 answers
A.Add an Amazon ElastiCache cluster to cache frequent database queries.
B.Use dedicated instances for the EC2 instances to ensure consistent performance.
C.Switch the Elastic Beanstalk environment to a load-balanced, auto-scaled environment with a minimum of 2 instances across 2 Availability Zones.
D.Enable Multi-AZ deployment for the RDS instance to provide a standby in another AZ.
E.Add Amazon RDS Proxy in front of the RDS instance to handle connection pooling.
AnswersC, D, E

Provides compute resilience and scalability.

Why this answer

Switching to a load-balanced, auto-scaled environment with a minimum of 2 instances across 2 Availability Zones improves availability and resilience by distributing traffic and providing failover capacity. Option D is correct because enabling Multi-AZ for RDS provides a standby replica in a different Availability Zone, ensuring automatic failover and high availability for the database. Option E is correct because Amazon RDS Proxy manages database connections efficiently, reducing connection overhead and improving scalability during traffic spikes.

Option A (ElastiCache) is an additional cost that may not be necessary if caching is not a primary concern; the focus should be on core resilience first. Option B (dedicated instances) adds unnecessary cost and does not directly address high availability or resilience.

Exam trap

A common pitfall is to over-invest in caching (ElastiCache) or instance performance (dedicated instances) before ensuring basic redundancy. The key is to first achieve multi-AZ deployment for both compute and database layers.

7
Multi-Selecteasy

A company wants to design a highly available web application using AWS services. The application must be resilient to the failure of an entire AWS Region. Which THREE components should the architecture include? (Choose THREE.)

Select 3 answers
A.An Application Load Balancer (ALB) deployed in one Region.
B.Amazon Route 53 with a failover routing policy.
C.Auto Scaling groups in each Region with appropriate instance types.
D.Amazon EC2 instances in a single Region.
E.Amazon RDS Multi-AZ deployment with a cross-Region read replica.
AnswersB, C, E

Failover routing directs traffic to a secondary Region if the primary fails.

Why this answer

Amazon Route 53 with a failover routing policy is correct because it enables DNS-based health checking and automatic traffic routing to a secondary region when the primary region becomes unavailable. This is essential for cross-region disaster recovery, as Route 53 can monitor endpoint health and update DNS records to direct users to the healthy region, ensuring application availability despite a full region failure.

Exam trap

The trap here is that candidates often confuse Multi-AZ deployments (which provide high availability within a single Region) with cross-Region disaster recovery, and they may incorrectly assume that a single-Region ALB or EC2 instances can survive a full Region failure without a multi-Region architecture.

8
MCQhard

An AWS account owner (Account A) owns an S3 bucket named my-bucket. The bucket policy shown in the exhibit is attached to the bucket. A user from Account B attempts to upload an object to the bucket without specifying the x-amz-acl header. What will happen?

A.The upload fails because the bucket policy requires the object ACL to be set, but the default ACL allows the upload anyway.
B.The upload succeeds because the bucket policy does not explicitly deny the request.
C.The upload succeeds because the bucket policy allows s3:PutObject for any principal.
D.The upload fails because the bucket policy requires the x-amz-acl header to be set to bucket-owner-full-control.
AnswerD

Without the header, the condition fails.

Why this answer

The condition requires the x-amz-acl header to be set to bucket-owner-full-control. If the header is not specified, the condition fails, and the request is denied. Option A is wrong because the condition is not met.

Option B is wrong because the policy does not grant permission without the header. Option C is wrong because the bucket policy evaluates before the object ACL.

9
MCQmedium

A company runs a critical application on Amazon ECS with Fargate launch type. The application is deployed across multiple Availability Zones. The DevOps team needs to ensure that if an entire Availability Zone fails, the application continues to serve traffic without manual intervention. What should the team do?

A.Use an Amazon ECS service auto-scaling policy to automatically replace tasks in the failed AZ.
B.Configure the ALB to enable cross-zone load balancing and enable the ECS service's AZ rebalancing feature.
C.Configure the ECS service to run tasks in at least two Availability Zones and enable the ECS service auto-recovery feature.
D.Set the ECS service's minimum healthy percent to 100 and maximum percent to 200.
AnswerC

Multi-AZ deployment plus auto-recovery ensures resilience.

Why this answer

The ECS service's AZ rebalancing feature automatically redistributes tasks across Availability Zones when an imbalance is detected, such as after an AZ failure. By configuring the service to run tasks in at least two AZs and enabling this feature, the ECS service will automatically launch replacement tasks in the remaining healthy AZs to maintain the desired count, ensuring continued traffic serving without manual intervention.

Exam trap

The trap here is that candidates often confuse auto-scaling (which adjusts capacity based on demand) with AZ rebalancing (which redistributes tasks after an AZ failure), leading them to choose Option A or B, or they mistakenly think deployment configuration settings like minimum/maximum percent (Option D) can handle AZ failures.

How to eliminate wrong answers

Option A is wrong because ECS service auto-scaling policies adjust the desired task count based on metrics like CPU or memory, but they do not automatically replace tasks lost due to an AZ failure; they only scale based on demand, not availability. Option B is wrong because ALB cross-zone load balancing distributes traffic across all AZs but does not replace failed tasks; the ECS service's AZ rebalancing feature is the correct mechanism for task redistribution after an AZ failure. Option D is wrong because setting minimum healthy percent to 100 and maximum percent to 200 controls deployment behavior (e.g., rolling updates) but does not address AZ failure recovery; it prevents task replacement during deployments but does not trigger automatic task redistribution after an AZ outage.

10
MCQmedium

A company uses Amazon RDS Multi-AZ for disaster recovery. The primary DB instance in us-east-1a fails. What happens next?

A.The standby DB instance in us-east-1b is promoted automatically and the CNAME record is updated
B.The administrator must manually promote the standby instance
C.The primary instance is automatically rebuilt in the same AZ
D.A read replica in us-east-1b is automatically promoted to primary
AnswerA

RDS Multi-AZ performs automatic failover.

Why this answer

RDS Multi-AZ automatically fails over to the standby in a different Availability Zone within minutes. The CNAME record is updated to point to the standby DB instance, so no manual intervention is needed. Option A is correct because this automatic failover and CNAME update occurs.

Option B is wrong because no manual promotion is required. Option C is wrong because the primary is not rebuilt in the same AZ; it fails over to a standby in a different AZ. Option D is wrong because read replicas are not used for Multi-AZ failover; a standby instance is promoted.

11
MCQeasy

A company runs a stateless web application on EC2 instances behind an Application Load Balancer. To improve resilience, which configuration should be used for the EC2 instances?

A.Use one EC2 instance with a larger instance type
B.Use a single, large EC2 instance in one Availability Zone
C.Use multiple EC2 instances in one Availability Zone with health checks disabled
D.Use multiple EC2 instances across two or more Availability Zones
AnswerD

Provides fault tolerance across AZs.

Why this answer

D is correct because deploying multiple EC2 instances across two or more Availability Zones (AZs) ensures high availability and fault tolerance. If one AZ fails, the Application Load Balancer (ALB) automatically routes traffic to healthy instances in other AZs, maintaining service continuity. This aligns with the AWS Well-Architected Framework's resilience best practices for stateless applications.

Exam trap

The trap here is that candidates may think scaling vertically (larger instance) or using multiple instances in a single AZ is sufficient, but the DOP-C02 exam specifically tests the requirement for multi-AZ deployment to achieve resilience against AZ failures.

How to eliminate wrong answers

Option A is wrong because using a single, larger EC2 instance creates a single point of failure; if that instance fails, the entire application goes down. Option B is wrong because placing a single large instance in one AZ does not protect against AZ-level failures, such as power outages or network disruptions. Option C is wrong because using multiple instances in one AZ with health checks disabled means the ALB cannot detect and route away from failed instances, and a single AZ failure still takes down all instances.

12
Multi-Selecthard

A company runs a critical application on AWS Lambda functions that process real-time streaming data from Amazon Kinesis Data Streams. Each Lambda function processes a batch of records and writes results to an Amazon DynamoDB table. The application is sensitive to data loss and requires exactly-once processing semantics. Recently, the operations team observed that the Lambda function is failing intermittently with 'ProvisionedThroughputExceededException' errors from DynamoDB. The Lambda function's batch size is 100, and the function is configured with a reserved concurrency of 500. The DynamoDB table has 100 read capacity units (RCUs) and 100 write capacity units (WCUs) with auto scaling enabled up to 1000 WCUs. The function's execution role has the necessary DynamoDB permissions. The Kinesis stream has 10 shards. The DevOps engineer needs to resolve the throttling errors without losing data. Which combination of actions should the engineer take? (Choose THREE.)

Select 3 answers
A.Set the Lambda function's batch size to a lower value (e.g., 10) and enable parallelization factor per shard.
B.Increase the DynamoDB table's read capacity units to 1000.
C.Configure the Lambda function event source mapping to retry with a maximum retry count and set the function to not discard failed records.
D.Increase the Lambda function's reserved concurrency to 1000.
E.Increase the DynamoDB table's write capacity units maximum auto scaling limit to 5000.
AnswersA, C, E

Reduces the number of concurrent writes per shard, decreasing throttling.

Why this answer

Reducing the batch size decreases the number of records processed per invocation, lowering the write load on DynamoDB. Note that enabling the parallelization factor per shard increases the number of concurrent invocations per shard, which could actually increase write pressure; therefore, if used, it must be accompanied by sufficient write capacity. Option C is correct because configuring the event source mapping to retry failed records ensures that records are not lost; the Lambda function can retry after throttling errors, supporting exactly-once semantics.

Option E is correct because increasing the DynamoDB table's maximum write capacity auto scaling limit allows the table to scale to higher WCUs during bursts, reducing ProvisionedThroughputExceededExceptions. Option B is incorrect because the error is due to write capacity, not read capacity; increasing RCUs does not help. Option D is incorrect because increasing reserved concurrency would increase the number of concurrent Lambda invocations, potentially increasing writes and worsening throttling.

Exam trap

A common trap is thinking that enabling the parallelization factor per shard always reduces throttling. In reality, it increases the number of concurrent writes per shard, which can exacerbate ProvisionedThroughputExceededExceptions if DynamoDB write capacity is insufficient.

13
MCQeasy

A company wants to ensure that its Amazon S3 bucket can withstand the loss of an entire AWS Availability Zone. Which configuration meets this requirement?

A.Use the S3 Standard storage class.
B.Configure cross-Region replication to another bucket.
C.Enable S3 Versioning on the bucket.
D.Use the S3 One Zone-IA storage class.
AnswerA

S3 Standard automatically stores data in at least three AZs.

Why this answer

S3 Standard storage class automatically replicates data across at least three Availability Zones within an AWS Region, ensuring resilience against the loss of an entire AZ. Option B is incorrect because cross-Region replication replicates data to a different AWS Region, which provides geographic resilience but not specifically AZ resilience within the same Region. Option C is incorrect because S3 Versioning helps protect against accidental deletion or overwrite by preserving previous versions, but it does not provide data replication across AZs.

Option D is incorrect because S3 One Zone-IA stores data in a single AZ, which would not withstand the loss of that AZ.

14
MCQmedium

A company's application runs on Amazon ECS with Fargate launch type. The application must be resilient to an Availability Zone failure. Which configuration should be used?

A.Create an ECS service with tasks distributed across multiple Availability Zones using a spread placement strategy
B.Use an ECS cluster with a cluster placement strategy that prefers the same Availability Zone
C.Define multiple task definitions, one for each Availability Zone
D.Use an ECS service with a single task in one Availability Zone and rely on auto-scaling
AnswerA

Spread strategy across AZs ensures resilience.

Why this answer

ECS services using the Fargate launch type can distribute tasks across multiple Availability Zones (AZs) by defining a spread placement strategy with the 'availabilityZone' dimension. This ensures that if one AZ fails, the tasks in the other AZs continue to serve traffic, providing resilience to an AZ failure. The spread strategy explicitly instructs ECS to place tasks evenly across AZs, which is essential for high availability.

Exam trap

The trap here is that candidates often confuse 'spread placement strategy' with 'binpack' or 'random' strategies, or they assume that simply using multiple subnets automatically distributes tasks without explicitly setting the spread strategy.

How to eliminate wrong answers

Option B is wrong because a cluster placement strategy that prefers the same Availability Zone would concentrate tasks in a single AZ, creating a single point of failure and violating the requirement for AZ resilience. Option C is wrong because defining multiple task definitions, one for each AZ, is unnecessary and does not inherently distribute tasks across AZs; task definitions are templates for containers, not placement mechanisms, and ECS services handle AZ distribution via placement strategies. Option D is wrong because a single task in one AZ cannot provide resilience to an AZ failure—if that AZ fails, the application becomes unavailable, and auto-scaling cannot react quickly enough to prevent downtime during an AZ outage.

15
MCQmedium

A company runs a microservices application on Amazon ECS with Fargate. The application uses an Application Load Balancer (ALB) to route traffic to services. Each service has a required number of tasks for capacity. The company recently experienced a prolonged outage when a bug caused all tasks of the critical 'payment' service to crash simultaneously. The DevOps team needs to implement a deployment strategy that reduces the risk of a full service outage during updates. The strategy must also allow for quick rollback if a deployment fails. Which deployment strategy should the team implement?

A.Implement a rolling update with a fixed number of tasks to replace at a time.
B.Use a canary deployment by creating a new service with a small number of tasks, test, then shift all traffic.
C.Deploy changes during maintenance windows with manual approval steps.
D.Implement blue/green deployment using ECS with target tracking alarms to automate traffic shifting.
AnswerD

Blue/green with automated traffic shifting and rollback capability.

Why this answer

Blue/green deployment with target tracking allows you to gradually shift traffic to the new version while monitoring. If issues arise, you can instantly rollback by switching traffic back to the old version.

16
Multi-Selectmedium

A company is designing a disaster recovery (DR) strategy for a critical application that runs on EC2 instances with an RDS database. The DR site must be in a different AWS Region. The Recovery Point Objective (RPO) is 15 minutes, and Recovery Time Objective (RTO) is 1 hour. Which TWO actions should the company take to meet these objectives? (Choose TWO.)

Select 2 answers
A.Use AWS Backup to copy EC2 AMIs and RDS snapshots to the DR region every 15 minutes.
B.Use AWS CloudFormation to pre-provision resources in the DR region manually.
C.Configure Amazon Route 53 with health checks and failover routing to the DR region.
D.Create an RDS cross-Region read replica in the DR region.
E.Configure S3 cross-Region replication for application data stored in S3.
AnswersC, D

Route 53 can automatically redirect traffic, meeting RTO.

Why this answer

Options C and D are correct. D: Creating an RDS cross-Region read replica in the DR region allows the replica to be promoted to the primary database with minimal data loss, meeting the 15-minute RPO. C: Configuring Amazon Route 53 with health checks and failover routing enables automatic traffic redirection to the DR region within the 1-hour RTO.

Option A is wrong because copying AMIs and RDS snapshots every 15 minutes would require launching EC2 instances and restoring the database from snapshots, which can exceed the 1-hour RTO. Option B is wrong because manually pre-provisioning resources with CloudFormation does not provide the automated failover needed to meet the RTO. Option E is wrong because S3 cross-Region replication does not address the EC2 and RDS components of the application.

17
Multi-Selectmedium

A company is designing a disaster recovery plan for an application running on AWS. The plan must meet an RTO of 1 hour and an RPO of 15 minutes. Which TWO strategies can achieve these objectives? (Select TWO.)

Select 2 answers
A.Backup and restore using daily snapshots to a different Region
B.Warm standby in a different AWS Region with database replication
C.Cold standby in a different Region with infrastructure deployed on demand
D.Pilot light in a different Region with database replication
E.Multi-AZ deployment in the same Region
AnswersB, D

Can meet RTO 1 hr and RPO 15 min.

Why this answer

(Warm standby) is correct because it maintains a scaled-down but fully functional copy of the production environment in a different AWS Region, with database replication (e.g., Amazon RDS cross-Region read replicas or Aurora Global Database) ensuring an RPO of 15 minutes or less. The standby infrastructure can be scaled up within the 1-hour RTO, as it is already running and configured.

Exam trap

The trap here is that candidates often confuse Multi-AZ deployments (which are high availability within a Region) with cross-Region disaster recovery, failing to recognize that Multi-AZ does not protect against a full Regional outage.

18
Multi-Selecthard

A company is designing a disaster recovery plan for a critical application with an RPO of 15 minutes and RTO of 1 hour. The application runs on EC2 instances with an RDS MySQL database. The primary Region is us-east-1. Which THREE actions should they take to meet the RPO and RTO? (Choose three.)

Select 3 answers
A.Schedule automated AMI backups of EC2 instances every 15 minutes
B.Launch EC2 instances in a single Availability Zone in the secondary Region to reduce costs
C.Configure Route 53 health checks and DNS failover to the secondary Region
D.Create a cross-Region read replica of the RDS MySQL database in us-west-2
E.Use AWS CloudFormation StackSets to deploy identical infrastructure in the secondary Region
AnswersA, C, D

Quick recovery of EC2 instances.

Why this answer

Automated AMI backups of EC2 instances every 15 minutes align with the 15-minute RPO by capturing incremental snapshots of the instance volumes. These AMIs can be used to launch replacement EC2 instances in the secondary Region within the 1-hour RTO, provided the infrastructure is pre-staged. The frequency of 15 minutes ensures that data loss is limited to at most 15 minutes of changes.

Exam trap

The trap here is that candidates often confuse infrastructure-as-code deployment (CloudFormation StackSets) with actual data replication, mistakenly believing that deploying identical infrastructure alone satisfies the RPO, when in fact continuous database replication is required to meet the 15-minute RPO.

19
Multi-Selecteasy

A company is designing a disaster recovery strategy for its application. The application runs on EC2 instances and uses an RDS MySQL database. The RTO is 1 hour, and the RPO is 15 minutes. Which TWO approaches meet these requirements?

Select 2 answers
A.Use a warm standby strategy: run a scaled-down version of the application in the DR region with RDS Multi-AZ across regions.
B.Use a pilot light strategy: replicate data using RDS cross-region automated backups and have a small environment running in the DR region.
C.Use a read replica in the DR region and promote it on failover.
D.Use a Multi-Zone deployment with RDS in the same region.
E.Use a backup and restore strategy: take snapshots every hour and restore in the DR region on failover.
AnswersA, B

Warm standby with cross-region replication meets RPO and RTO.

Why this answer

Options A and B are correct. A warm standby with RDS Multi-AZ across regions ensures a standby database is ready and can be promoted quickly, meeting the 1-hour RTO. A pilot light with RDS cross-region automated backups provides replication with a 15-minute RPO; a small environment is running, allowing faster failover than a full pilot light.

Option C is wrong because RDS read replicas do not support automatic failover; manual promotion can take longer than 1 hour. Option D is wrong because Multi-AZ in the same region does not protect against region failure. Option E is wrong because hourly snapshots meet RPO but restoring from snapshots typically exceeds the 1-hour RTO.

20
MCQeasy

A company runs a critical application on Amazon EC2 instances in an Auto Scaling group. To ensure high availability, the instances are deployed across three Availability Zones. Which additional step should the company take to protect against a regional failure?

A.Place all instances in a single Availability Zone to simplify management.
B.Use EC2 Dedicated Hosts to ensure capacity.
C.Increase the minimum size of the Auto Scaling group to 10 instances.
D.Deploy the application in a second AWS Region and use Route 53 with failover routing.
AnswerD

Multi-Region deployment with DNS failover protects against region failure.

Why this answer

Deploying the application in a second AWS Region and using Route 53 with failover routing protects against a regional failure by redirecting traffic to the healthy region. Option A is incorrect because placing all instances in a single Availability Zone reduces availability and does not protect against regional failure. Option B is incorrect because EC2 Dedicated Hosts provide dedicated physical servers for licensing or compliance requirements, not regional resilience.

Option C is incorrect because increasing the minimum size of the Auto Scaling group only affects capacity within the current region and does not mitigate a regional outage.

21
Multi-Selectmedium

A company is designing a highly available architecture for a web application using AWS services. The application must be resilient to the failure of an entire AWS Region. Which TWO strategies should the company implement? (Choose TWO.)

Select 2 answers
A.Deploy the application in multiple AWS Regions and use Route 53 with failover routing policy.
B.Use Amazon CloudFront with multiple origins in the same region.
C.Enable S3 cross-Region replication for static assets.
D.Configure Amazon RDS for Multi-AZ and enable cross-Region read replicas.
E.Use Auto Scaling groups in a single region with multiple Availability Zones.
AnswersA, D

Multi-Region deployment with DNS failover is a key strategy for regional resilience.

Why this answer

Deploying to multiple regions with Route 53 failover provides cross-region disaster recovery. Option D is correct because using Amazon RDS Multi-AZ with cross-Region read replicas or Aurora Global Database ensures database resilience across regions. Option B is wrong because CloudFront alone does not provide compute failover.

Option C is wrong because S3 cross-Region replication is for data, not compute. Option E is wrong because single-region Auto Scaling does not protect against region failure.

22
MCQeasy

A company uses AWS Lambda for processing events from Amazon S3. Recently, the Lambda function started timing out after the 15-minute limit for some large files. The function downloads the entire file to /tmp before processing. What should a DevOps engineer do to resolve this issue with minimal code changes?

A.Use S3 Select to filter and retrieve only necessary data, reducing file size
B.Switch the Lambda runtime from Python to Node.js for faster execution
C.Increase the Lambda function memory to 10,240 MB to improve CPU performance
D.Modify the function to read the file in streaming chunks from S3
AnswerA

S3 Select allows retrieving only required columns, reducing data transfer and processing time.

Why this answer

S3 Select allows querying only the necessary data from S3, reducing the amount of data the Lambda function must download and process. This directly addresses the timeout issue by minimizing the data handled, requiring no major architectural changes. Option B is wrong because switching to Node.js does not remove the 15-minute Lambda timeout.

Option C is wrong because increasing memory does not extend the maximum execution time. Option D is wrong because streaming the file does not by itself reduce the total data to process; it only might start processing earlier, but the total processing time still may exceed the timeout.

23
MCQmedium

A company runs a critical web application on EC2 instances behind an Application Load Balancer (ALB) with Auto Scaling. During a recent traffic spike, the application became unavailable for 10 minutes. Analysis shows that the ALB's healthy host count dropped to zero because the instances failed health checks due to high CPU load. What is the MOST effective design change to improve resilience during future traffic spikes?

A.Use predictive scaling with a scheduled scaling policy for known peak times.
B.Increase the instance size to handle higher load.
C.Configure step scaling policies based on CPU utilization.
D.Set a higher CPU threshold for health checks.
AnswerA

Predictive scaling anticipates demand and scales out in advance, preventing overload.

Why this answer

Predictive scaling uses historical traffic data to forecast future demand and proactively adjust capacity before a spike occurs. This prevents the CPU from reaching critical levels that cause health check failures, ensuring the ALB always has healthy hosts. Scheduled scaling alone would not adapt to unexpected spikes, but predictive scaling combined with dynamic scaling provides both proactive and reactive resilience.

Exam trap

The trap here is that candidates confuse reactive scaling (step/target tracking) with proactive scaling (predictive/scheduled), assuming any CPU-based policy will suffice, but the question explicitly states the spike caused a drop to zero healthy hosts—meaning reactive scaling was too slow to prevent the outage.

How to eliminate wrong answers

Option B is wrong because simply increasing instance size (vertical scaling) is a single-point-of-failure approach and does not address the root cause of insufficient capacity during spikes; it also increases cost without improving elasticity. Option C is wrong because step scaling policies based on CPU utilization are reactive—they only add instances after CPU is already high, which can lead to a lag that causes health check failures during rapid spikes. Option D is wrong because raising the CPU threshold for health checks masks the underlying performance issue and risks allowing unhealthy instances to serve traffic, degrading user experience and potentially causing cascading failures.

24
MCQmedium

A company runs a critical web application on EC2 instances behind an Application Load Balancer. The application stores session state in an in-memory cache on each instance. During deployment of a new version, users experience session timeouts and errors. Which design change will MOST effectively improve resilience and avoid session loss during deployments?

A.Enable sticky sessions (session affinity) on the ALB.
B.Migrate session state to ElastiCache for Redis.
C.Increase the ALB idle timeout to 600 seconds.
D.Increase the EC2 instance size to handle higher memory.
AnswerB

Offloading session state to ElastiCache makes sessions durable across instance replacements.

Why this answer

Migrating session state from in-memory EC2 instance storage to ElastiCache for Redis decouples session data from individual instances. This ensures that when a new deployment replaces instances, sessions persist independently, preventing timeouts and errors. ElastiCache provides a centralized, highly available session store that survives instance termination and scaling events.

Exam trap

The trap here is that candidates often confuse sticky sessions (which only route traffic consistently) with session persistence (which requires external storage), leading them to choose option A despite it not preserving session data across instance replacements.

How to eliminate wrong answers

Option A is wrong because enabling sticky sessions (session affinity) on the ALB would lock users to a specific instance, but during deployment that instance is terminated and replaced, causing session loss regardless of stickiness. Option C is wrong because increasing the ALB idle timeout to 600 seconds only extends how long the ALB keeps a connection open without data transfer; it does not preserve session state stored in the instance's memory when the instance is replaced. Option D is wrong because increasing the EC2 instance size to handle higher memory does not solve the fundamental problem of session state being ephemeral and lost during instance replacement in a deployment.

25
MCQmedium

A company's production database on Amazon RDS Multi-AZ DB instance experienced a failover. The application experienced a brief outage. How can the company reduce the failover time?

A.Switch to a Single-AZ deployment
B.Increase the DB instance size
C.Use Amazon RDS Proxy
D.Enable Enhanced Monitoring
AnswerC

RDS Proxy reduces failover time by pooling connections and rerouting them quickly.

Why this answer

Using RDS Proxy reduces failover time by maintaining connections and routing them to the new primary instance quickly.

26
MCQhard

A company runs a containerized microservices architecture on Amazon ECS with Fargate. The services communicate via an internal Application Load Balancer. Recently, a new deployment of Service A caused its health checks to fail. The DevOps engineer notices that the old tasks remain running and the service is unavailable. What configuration change would prevent this issue in future deployments?

A.Set the deployment minimum healthy percent to 50 and maximum percent to 100 with a health check grace period
B.Set the deployment circuit breaker to rollback on deployment failure and disable rollback
C.Change the deployment controller from ECS to CodeDeploy for blue/green deployments
D.Set the deployment minimum healthy percent to 0 and maximum percent to 200
AnswerA

This configuration ensures old tasks remain until new tasks pass health checks.

Why this answer

Setting the deployment minimum healthy percent to 50 and maximum percent to 100 ensures that during a rolling update, at least 50% of the tasks remain healthy, and the deployment will not continue if the new tasks fail health checks, preserving service availability. Option B is incorrect because the circuit breaker can roll back on failure, but 'disable rollback' negates that; it's a misconfigured setting. Option C is not a configuration change for this issue; CodeDeploy is a separate service used for blue/green deployments, not a direct fix for health check failures during rolling updates.

Option D is incorrect because setting minimum healthy percent to 0 and maximum percent to 200 allows all old tasks to be stopped before new ones start, causing downtime if health checks fail, as there are no healthy tasks to serve traffic.

27
Multi-Selecthard

A company runs a containerized application on Amazon ECS with Fargate. The application needs to be resilient to Availability Zone failures. Which THREE actions should the company take? (Choose THREE.)

Select 3 answers
A.Configure the ECS service to spread tasks across multiple Availability Zones.
B.Disable managed service scaling to avoid resource contention.
C.Use a multi-AZ Amazon RDS or DynamoDB for persistent data.
D.Deploy an Application Load Balancer (ALB) with targets in multiple Availability Zones.
E.Use a single service discovery namespace for all tasks.
AnswersA, C, D

Spreading tasks across AZs prevents total loss from a single AZ failure.

Why this answer

Spreading tasks across multiple Availability Zones ensures that an AZ failure does not impact all tasks, increasing resilience. Option C is correct because using a multi-AZ Amazon RDS or DynamoDB provides persistent data storage that survives AZ failures. Option D is correct because an Application Load Balancer with targets in multiple AZs distributes traffic and can route requests to healthy targets in other AZs if one fails.

Option B is wrong because disabling managed service scaling reduces the application's ability to handle load changes and may impact availability. Option E is wrong because a single service discovery namespace does not provide AZ resilience; it only provides service discovery without redundancy across AZs.

28
MCQhard

A company is designing a multi-region active-active architecture for a stateless web application using Route 53 latency-based routing. The application uses an RDS MySQL database. What should be done to ensure database resilience across regions?

A.Configure automated snapshots and copy them to the secondary region
B.Use RDS Cross-Region Synchronous Replication
C.Create cross-region read replicas and promote to master during failover
D.Enable Multi-AZ deployment in each region
AnswerC

Read replicas can be promoted for cross-region DR.

Why this answer

To create cross-region read replicas and promote to master during failover. Cross-region read replicas allow the database to be promoted to a primary instance in another region, enabling database resilience across regions for an active-active architecture. Option A (automated snapshots copied to secondary region) is not suitable because restoring from snapshots is a manual process that takes time and does not support active-active.

Option B is incorrect because RDS does not support synchronous cross-region replication; it only offers asynchronous replication via read replicas. Option D (Multi-AZ) is a single-region high-availability feature and does not address cross-region resilience.

29
MCQmedium

A company uses an Application Load Balancer (ALB) to distribute traffic to EC2 instances. The ALB is in us-east-1a and us-east-1b. They want to ensure that if one AZ fails, traffic is routed only to healthy instances in the other AZ. What configuration is necessary?

A.Enable sticky sessions (session affinity)
B.Configure health checks on the target group
C.Add more subnets in additional AZs
D.Enable cross-zone load balancing on the ALB
AnswerD

Allows traffic to be routed to healthy instances in any AZ.

Why this answer

Cross-zone load balancing must be enabled on the ALB so that traffic can be distributed across instances in all AZs. By default, an ALB routes requests only to targets in the same Availability Zone as the requesting client. Enabling cross-zone load balancing allows the ALB to distribute traffic evenly across all registered targets in all enabled AZs, ensuring that if one AZ fails, traffic can be routed to healthy instances in other AZs.

Option B is incorrect because health checks are already enabled by default and do not affect cross-AZ routing. Option C is incorrect because adding more AZs does not change the default AZ-affinity behavior; cross-zone load balancing must be explicitly enabled to utilize multiple AZs for failover.

30
Multi-Selecteasy

A company wants to ensure that its application running on AWS can withstand the failure of an entire AWS Region. Which TWO strategies should the company implement?

Select 2 answers
A.Deploy the application in multiple AWS Regions using an active-active or active-passive pattern
B.Deploy the application across multiple Availability Zones in a single Region
C.Replicate data across Regions using services like DynamoDB global tables or RDS cross-Region replication
D.Use a single CloudFront distribution with multiple origins in the same Region
E.Configure RDS read replicas in the same Region
AnswersA, C

Provides resilience against Region failure.

Why this answer

To withstand an entire AWS Region failure, the company should deploy the application in multiple AWS Regions (A) and replicate data across Regions (C). Deploying across multiple Availability Zones (B) protects only within a single Region. A single CloudFront distribution with multiple origins in the same Region (D) does not provide regional failover.

RDS read replicas in the same Region (E) are for read scaling, not disaster recovery across Regions.

Exam trap

Candidates often confuse Multi-AZ deployments (which protect against AZ failures) with multi-Region deployments required for regional disaster recovery.

31
MCQhard

Refer to the exhibit. A Lambda function uses the IAM role with the above policy. The function is configured to access a DynamoDB table MyTable and an RDS instance in a VPC. When invoked, the function fails with an error indicating it cannot describe VPC subnets. What is the MOST likely cause?

A.The Lambda function is missing permissions to describe VPC subnets and security groups.
B.The Lambda function does not have permission to write to DynamoDB.
C.The Lambda function cannot create network interfaces in the VPC.
D.The DynamoDB table's resource policy denies access from Lambda.
AnswerA

Lambda needs ec2:DescribeSubnets and ec2:DescribeSecurityGroups to set up elastic network interfaces in a VPC.

Why this answer

When a Lambda function is configured to access a VPC, it requires permissions to describe VPC subnets and security groups to create elastic network interfaces. The provided IAM policy only allows ec2:CreateNetworkInterface and ec2:DeleteNetworkInterface, but not ec2:DescribeSubnets or ec2:DescribeSecurityGroups, causing the error. Option B is incorrect because the policy allows dynamodb:PutItem and UpdateItem, so the function can write to DynamoDB.

Option C is incorrect because the policy allows creating network interfaces, so that is not the issue. Option D is incorrect because the error is about describing subnets, not about a DynamoDB resource policy.

32
MCQeasy

A company runs a static website on Amazon S3 with public read access. The website content is stored in an S3 bucket and served through an Amazon CloudFront distribution for better performance and security. Recently, the company noticed that some users are accessing the S3 bucket directly via the S3 endpoint, bypassing CloudFront. This increases costs and exposes the bucket to potential attacks. The company wants to ensure that all access to the website goes through CloudFront only. Which solution should the company implement?

A.Set the S3 bucket policy to deny all requests that do not come from the CloudFront distribution's IP addresses.
B.Configure the S3 bucket to use AWS WAF to block requests that do not have a custom header set by CloudFront.
C.Create an origin access identity (OAI) in CloudFront and update the S3 bucket policy to allow only the OAI to read objects.
D.Change the S3 bucket to be private and use presigned URLs for all requests.
AnswerC

OAI ensures only CloudFront can access the bucket.

Why this answer

To restrict access to the S3 bucket only through CloudFront, use an origin access identity (OAI) and a bucket policy that allows only the OAI. This way, direct access via S3 URL is denied.

33
MCQhard

A company uses Amazon Route 53 with a failover routing policy to direct traffic to an active and a standby endpoint. The health checks are configured to check the active endpoint every 10 seconds. During a recent outage, the failover took over 3 minutes to detect and switch. How can the company improve the failover time to under 1 minute?

A.Configure a Route 53 calculated health check that aggregates multiple fast health checks with a lower failure threshold.
B.Add additional health checks for the same endpoint.
C.Reduce the health check interval to 5 seconds.
D.Change the routing policy to latency based.
AnswerA

Calculated health checks can combine quick checks to detect failure faster.

Why this answer

Route 53 calculated health checks combine multiple health checks (e.g., 3 fast health checks each checking every 10 seconds) and allow you to set a lower failure threshold (e.g., 2 out of 3) to detect failure faster than a single health check. This reduces failover detection time to under 1 minute by aggregating results. Option B is wrong: additional health checks for the same endpoint would not improve detection time because they would all experience the same delay.

Option C is wrong: the minimum health check interval for Route 53 is 10 seconds (fastest interval is 10 seconds, not 5). Option D is wrong: latency-based routing is for routing based on lowest latency, not for active/passive failover.

34
MCQeasy

A company uses AWS CodeDeploy to deploy a new version of an application to EC2 instances. They want to minimize downtime and roll back quickly if the deployment fails. Which deployment type should they use?

A.Canary deployment
B.Linear deployment
C.Blue/green deployment
D.In-place deployment
AnswerC

Blue/green allows instant rollback by switching back.

Why this answer

Blue/green deployment creates two separate environments (blue and green) and shifts traffic from the old to the new after testing. This minimizes downtime because traffic is switched instantly, and rollback is achieved by reverting traffic to the original environment. Option A (Canary) is a traffic shifting pattern used within blue/green deployments, not a standalone deployment type that offers immediate rollback.

Option B (Linear) is also a traffic shifting pattern for blue/green. Option D (In-place) updates existing instances, causing downtime during deployment and requiring a manual rollback process.

35
Multi-Selectmedium

A company is designing a highly available architecture for a stateless web application using AWS services. Which TWO steps should they take to achieve high availability?

Select 2 answers
A.Store session state in an EBS volume attached to each instance
B.Deploy EC2 instances in multiple Availability Zones
C.Use a single NAT instance in a public subnet
D.Use only M5 instance types for better performance
E.Use an Application Load Balancer to distribute traffic
AnswersB, E

Essential for high availability.

Why this answer

Deploying EC2 instances across multiple Availability Zones (B) ensures that the application remains available even if one AZ fails. Using an Application Load Balancer (E) distributes incoming traffic across these instances and performs health checks, automatically routing traffic away from unhealthy instances. Option A is incorrect because storing session state on an EBS volume attached to each instance tightly couples state to a single instance, making it unavailable if the instance fails; instead, use a shared session store like ElastiCache or DynamoDB.

Option C is incorrect because a single NAT instance is a single point of failure; for high availability, use a NAT Gateway or deploy NAT instances across multiple AZs. Option D is incorrect because instance type selection (M5) does not contribute to high availability; availability is achieved through architectural redundancy, not hardware specifications.

36
MCQmedium

An e-commerce platform uses Amazon DynamoDB as its primary database. The platform experiences occasional read throttling during flash sales. The operations team needs to ensure that read traffic is handled without errors, while keeping costs low. What should a DevOps engineer recommend?

A.Enable DynamoDB Accelerator (DAX) to cache frequently read data.
B.Increase the read capacity units for the table during flash sale events.
C.Use DynamoDB Streams to replicate reads to a separate table.
D.Implement Global Tables to distribute read traffic across multiple regions.
AnswerA

DAX reduces read load and throttling with lower cost than increasing capacity.

Why this answer

DynamoDB Accelerator (DAX) provides an in-memory cache that reduces read load on the database, improving performance and reducing throttling. Option B is wrong because increasing read capacity units increases cost without optimization. Option C is wrong because DynamoDB Streams is for change data capture, not caching.

Option D is wrong because Global Tables is for multi-region replication, not read scaling.

37
Multi-Selecteasy

A company wants to design a highly available and fault-tolerant architecture for a stateless web application on AWS. Which TWO actions should they take? (Choose two.)

Select 2 answers
A.Use a single large EC2 instance to simplify management
B.Deploy multiple Application Load Balancers in each AZ
C.Launch EC2 instances in at least two Availability Zones
D.Use an RDS Multi-AZ deployment for the web server fleet
E.Use an Auto Scaling group to replace failed instances automatically
AnswersC, E

Multiple AZs provide fault tolerance.

Why this answer

To achieve high availability and fault tolerance for a stateless web application, you should deploy EC2 instances in at least two Availability Zones (C) to eliminate a single point of failure, and use an Auto Scaling group (E) to automatically replace failed instances and maintain desired capacity. Option A is incorrect because a single large instance is a single point of failure and does not provide fault tolerance. Option B is incorrect because multiple Application Load Balancers per AZ are unnecessary; a single ALB can route traffic across multiple AZs.

Option D is incorrect because RDS Multi-AZ is a database feature, not for the web server fleet.

38
MCQmedium

A company runs a stateful application on EC2 instances. They want to distribute traffic evenly and maintain session stickiness. Which AWS service should they use?

A.Network Load Balancer
B.Application Load Balancer with sticky sessions
C.Amazon Route 53 weighted routing policy
D.Amazon CloudFront with origin failover
AnswerB

ALB supports sticky sessions via cookies.

Why this answer

An Application Load Balancer with sticky sessions (session affinity) ensures that a client's requests are sent to the same target. Option A is wrong because Network Load Balancer does not natively support sticky sessions based on application cookies. Option C is wrong because Route53 weighted routing does not handle session stickiness.

Option D is wrong because CloudFront can forward cookies but is not primarily for load balancing.

39
MCQmedium

A company runs a high-traffic e-commerce application on EC2 instances in an Auto Scaling group behind an ALB. The application uses an in-memory cache on the EC2 instances. During a recent deployment, the Auto Scaling group terminated an instance that had active user sessions, causing users to lose their cart data and leading to a poor customer experience. The company wants to prevent this in future deployments. They need a solution that allows existing sessions to complete before instance termination, without manual intervention. Which solution should they use?

A.Increase the Auto Scaling group's cooldown period and health check grace period.
B.Enable connection draining on the ALB target group and increase the deregistration delay.
C.Implement an Auto Scaling lifecycle hook that puts the instance in a 'terminating:wait' state, and have a script on the instance that signals completion after draining sessions.
D.Change the health check type to ELB and mark instances unhealthy before deployment.
AnswerC

Lifecycle hooks enable custom actions before termination, allowing session draining.

Why this answer

Lifecycle hooks allow the Auto Scaling group to wait for a specified timeout before terminating an instance, giving the application time to drain sessions. Option A is incorrect because connection draining on the ALB only handles HTTP connections, not application-level session state. Option B is incorrect because increasing cooldown does not delay termination.

Option D is incorrect because updating the health check type does not prevent immediate termination.

40
Multi-Selecteasy

A company wants to protect its application from DDoS attacks. Which THREE AWS services should they use?

Select 3 answers
A.Amazon Inspector
B.AWS WAF
C.AWS Shield Advanced
D.Amazon CloudFront
E.Amazon GuardDuty
AnswersB, C, D

WAF filters malicious web traffic.

Why this answer

AWS Shield Advanced, WAF, and CloudFront provide layered DDoS protection.

41
MCQhard

A company runs a critical microservices architecture on Amazon ECS with Fargate. They want to ensure that if a task fails, it is automatically restarted, and the service remains available across multiple Availability Zones. How should they configure the ECS service?

A.Place all tasks in the same Availability Zone to reduce latency
B.Run a standalone Fargate task and use a CloudWatch alarm to restart it
C.Use an EC2 launch type with a single instance to reduce complexity
D.Define an ECS service with a task definition, set desired count across multiple Availability Zones, and use Service Auto Scaling
AnswerD

This ensures tasks are distributed and automatically replaced.

Why this answer

An ECS service configured with a task definition, desired count across multiple Availability Zones, and Service Auto Scaling ensures resilience. The ECS service scheduler automatically restarts failed tasks, and distributing tasks across AZs provides high availability. Option A is wrong because placing all tasks in a single AZ creates a single point of failure.

Option B is wrong because a standalone Fargate task does not have automatic restart; a CloudWatch alarm can restart it but lacks the built-in resilience of an ECS service. Option C is wrong because using a single EC2 instance is a single point of failure and does not provide multi-AZ resilience.

42
MCQhard

A company runs a stateful web application on EC2 instances behind an ALB. The application uses sticky sessions (session affinity) to maintain user sessions. During a deployment, the company wants to update the application with zero downtime and ensure that in-flight sessions are not lost. Which deployment strategy should they use?

A.Perform a rolling update of the Auto Scaling group with a health check grace period.
B.Use an immutable deployment by launching a new Auto Scaling group and then updating the ALB target group to point to the new group.
C.Use a blue/green deployment: launch a new Auto Scaling group, register it with a new target group, and gradually shift traffic using weighted target groups on the ALB.
D.Use a canary deployment with AWS Lambda to gradually route a percentage of requests to the new version.
AnswerC

Gradual shift preserves sessions on old environment until they complete.

Why this answer

A blue/green deployment with a new target group and a gradual shift of traffic using the ALB's weighted target groups allows existing sessions to complete on the old environment while new sessions go to the new one. Option A is wrong because rolling update with a fixed number of instances may cause session loss. Option B is wrong because immutable deployment without traffic shifting drops sessions.

Option D is wrong because canary deployment with Lambda is not applicable to EC2.

43
MCQhard

A company deploys the above CloudFormation stack. They want to enforce HTTPS for all requests to the S3 bucket. After deployment, users are still able to make HTTP requests. What is the problem?

A.The condition key 'aws:SecureTransport' is misspelled; it should be 'aws:SecureTransport' with a capital 'T'
B.The bucket is not versioned, so the policy does not apply to object versions
C.The policy uses Deny, but an Allow policy from another statement overrides it
D.The Deny statement's Resource specifies only the objects, not the bucket itself
AnswerD

The Resource does not include the bucket ARN, so bucket-level operations like ListBucket are not denied.

Why this answer

The Deny statement in the bucket policy uses `arn:aws:s3:::example-bucket/*` as the Resource, which applies only to objects within the bucket, not to the bucket itself. To enforce HTTPS for all requests, including those to the bucket endpoint (e.g., `GET /` or `PUT /`), the Resource must also include the bucket ARN without the `/*` suffix. Without it, HTTP requests targeting the bucket itself (such as listing objects or configuring website hosting) are not denied, allowing HTTP access to bypass the policy.

Exam trap

The trap here is that candidates assume a Deny statement on `/*` covers all requests, but they overlook that the bucket ARN itself must be explicitly included to enforce HTTPS on bucket-level operations, not just object operations.

How to eliminate wrong answers

Option A is wrong because `aws:SecureTransport` is correctly spelled with a capital 'S' and capital 'T' — the condition key is case-sensitive and must be exactly `aws:SecureTransport`. Option B is wrong because versioning is irrelevant to enforcing HTTPS; bucket policies apply to all object versions regardless of versioning status, and the Deny statement would still apply to `/*` resources. Option C is wrong because an explicit Deny in a bucket policy always overrides any Allow, regardless of other statements, per IAM policy evaluation logic (Deny is evaluated first and is definitive).

44
MCQmedium

A DevOps team uses AWS CodePipeline to deploy a web application. The pipeline has a deploy stage that uses CodeDeploy to deploy to an Auto Scaling group. During deployment, the new instances fail health checks and the deployment rolls back. However, the rollback also fails because the old instances have been terminated. What should the team do to avoid this issue?

A.Increase the health check grace period in the Auto Scaling group.
B.Add a manual approval step before the deploy stage.
C.Configure the pipeline to deploy to a new Auto Scaling group each time.
D.Use a blue/green deployment strategy in CodeDeploy to keep the old instances running until the new ones pass health checks.
AnswerD

Blue/green deployment preserves the old environment for rollback.

Why this answer

A blue/green deployment strategy in CodeDeploy keeps the old instances running until the new instances pass health checks, preventing the rollback failure due to terminated instances. Option A is incorrect: increasing the health check grace period only delays health checks but does not solve the root cause of unhealthy instances. Option B is incorrect: a manual approval step before deployment does not affect the rollback mechanism.

Option C is incorrect: deploying to a new Auto Scaling group does not inherently keep old instances alive; without blue/green, the old instances would still be terminated during the deployment.

45
MCQmedium

A company runs a critical database on Amazon RDS for PostgreSQL with Multi-AZ deployment. The application experiences a brief outage during automatic failover. To improve availability, the company wants to reduce the failover time. What should they do?

A.Create a cross-Region Read Replica and promote it during failure
B.Enable Multi-AZ DB cluster with synchronous replication and a standby in a different AZ
C.Increase the DB instance class size to improve I/O performance
D.Remove Multi-AZ and use a single instance with increased backup frequency
AnswerB

Multi-AZ DB cluster provides faster failover with reader endpoint.

Why this answer

A Multi-AZ DB cluster with synchronous replication and a standby in a different AZ provides faster failover times compared to standard Multi-AZ, as it includes a reader endpoint and minimizes downtime. Option A is incorrect because cross-Region Read Replicas are for disaster recovery and read scaling, not automatic failover, and promotion takes time. Option C is incorrect because increasing instance size improves performance but does not reduce failover time.

Option D is incorrect because removing Multi-AZ would increase downtime during failover.

46
MCQmedium

A company runs a global web application on EC2 instances behind an ALB in us-east-1. They want to improve resilience by routing users to the nearest healthy region. Which service should they use?

A.AWS Global Accelerator
B.Application Load Balancer cross-zone load balancing
C.Amazon Route 53 latency-based routing with health checks
D.Amazon CloudFront with multiple origins
AnswerC

Routes to the region with lowest latency and healthy endpoints.

Why this answer

Amazon Route 53 latency-based routing with health checks routes users to the region with the lowest latency and only to healthy endpoints. Option A is wrong because AWS Global Accelerator uses anycast IP to route to the nearest edge location and can distribute traffic across regions, but it does not provide direct latency-based routing to the nearest healthy region; Route 53 is more straightforward for this use case. Option B is wrong because Application Load Balancer cross-zone load balancing only distributes traffic across availability zones within a single region, not across regions.

Option D is wrong because Amazon CloudFront with multiple origins is a content delivery network that caches content at edge locations; it can route to multiple origins, but it is not primarily designed for routing users to the nearest healthy region based on latency—Route 53 provides more precise latency-based routing.

47
MCQmedium

Refer to the exhibit. An Auto Scaling group is configured with an Application Load Balancer. The group has a desired capacity of 2 instances spread across two Availability Zones. Recently, the application has been experiencing high error rates during deployments. The team suspects that new instances are being marked as healthy before they are fully ready. What should the team do to resolve this issue?

A.Add a step scaling policy to scale out more gradually.
B.Increase the HealthCheckGracePeriod to 600 seconds.
C.Increase the MaxSize to 10.
D.Change the HealthCheckType to ELB.
AnswerD

ELB health checks can be configured to require a successful response from the application, ensuring readiness.

Why this answer

Changing the HealthCheckType to ELB makes the Auto Scaling group use the ALB's health checks, which can be configured with a health check path and threshold to verify that the application is actually responding before marking the instance healthy. Option A is incorrect because step scaling policies only adjust the desired capacity based on CloudWatch alarms; they do not affect how instances are marked healthy. Option B is incorrect because HealthCheckGracePeriod delays the start of health checks but does not ensure the application is ready; it merely postpones the health check decision.

Option C is incorrect because increasing MaxSize does not impact the health check mechanism or readiness verification.

48
MCQhard

A company has a serverless application using AWS Lambda functions that process messages from an Amazon SQS queue. The Lambda function sometimes fails due to transient errors. The company wants to ensure that failed messages are retried and eventually processed or sent to a dead-letter queue after 3 retries. What is the correct configuration?

A.Set the Lambda function's retry policy to Maximum retries: 3 and configure a DLQ on the Lambda function.
B.Set the Lambda function's DLQ to an SQS queue and configure the event source mapping to use that DLQ after 3 retries.
C.Configure the SQS queue's redrive policy with maxReceiveCount: 3 and a dead-letter queue.
D.Create an AWS Step Functions workflow that polls the SQS queue, processes messages, and retries failures up to 3 times before moving to a DLQ.
AnswerC

SQS redrive policy handles retries and DLQ for messages that fail processing.

Why this answer

The SQS queue's redrive policy with maxReceiveCount: 3 and a dead-letter queue ensures that after three receive attempts (including those from Lambda's automatic retries), the message is moved to the DLQ. Lambda's integration with SQS does not require configuring retries on the function itself; the event source mapping controls the retries based on the SQS queue's configuration. Option A is wrong because Lambda's retry policy (Maximum retries) applies only to asynchronous invocations, not to SQS-triggered invocations.

Option B is wrong because Lambda functions do not have a DLQ configuration for SQS; the DLQ must be configured on the SQS queue. Option D is wrong because Step Functions add unnecessary complexity when the SQS queue's built-in redrive policy can handle the retry logic directly.

49
Multi-Selecteasy

A company is designing a highly available architecture for a web application using AWS. Which TWO of the following design principles should be applied? (Select TWO.)

Select 2 answers
A.Run all resources in a single Availability Zone to reduce complexity
B.Store session data on EC2 instances to improve performance
C.Deploy resources across multiple Availability Zones
D.Use loosely coupled components, such as queues and asynchronous processing
E.Use tightly coupled components to reduce latency
AnswersC, D

Provides fault tolerance.

Why this answer

Correct answers: C and D. Deploying resources across multiple Availability Zones (C) ensures high availability by tolerating an AZ failure. Using loosely coupled components like queues (D) improves resilience by decoupling components, preventing cascading failures and allowing independent scaling.

Option A is wrong because running in a single AZ creates a single point of failure. Option B is wrong because storing session data on EC2 instances is not recommended for high availability; session data should be stored externally (e.g., ElastiCache or DynamoDB). Option E is wrong because tightly coupled components increase dependency and reduce fault tolerance.

50
Multi-Selectmedium

A company is designing a resilient architecture for a critical application. Which TWO strategies improve resilience?

Select 2 answers
A.Deploy resources across multiple Availability Zones
B.Use a single large instance instead of multiple smaller ones
C.Use health checks to automatically replace unhealthy resources
D.Disable automated backups to reduce latency
E.Deploy resources in a single Availability Zone
AnswersA, C

Multi-AZ provides redundancy.

Why this answer

Multi-AZ deployments and health checks with auto-remediation improve resilience by handling failures automatically.

51
MCQmedium

A company's application uses Amazon SQS to decouple microservices. During peak hours, the SQS queue backlog grows significantly, causing processing delays. The DevOps team wants to reduce latency without increasing costs unnecessarily. What should the team do?

A.Increase the visibility timeout to allow consumers more time to process messages.
B.Use an SQS queue with priority settings to process high-priority messages first.
C.Increase the SQS queue's throughput by requesting a quota increase.
D.Configure Auto Scaling for the consumer fleet based on the ApproximateNumberOfMessagesVisible metric.
AnswerD

Auto Scaling adds consumers as queue depth increases, reducing processing time.

Why this answer

Scaling the consumer fleet based on the ApproximateNumberOfMessagesVisible metric directly addresses the backlog by adding more processing capacity when the queue grows. This approach reduces latency dynamically without incurring unnecessary costs during off-peak hours, as it only scales up when needed. Auto Scaling with SQS metrics is a cost-effective, elastic solution for handling variable workloads.

Exam trap

The trap here is that candidates may confuse SQS's throughput capabilities with consumer-side scaling, assuming that increasing queue throughput (Option C) solves backlog, when in fact SQS already handles high throughput and the bottleneck is the consumer processing rate.

How to eliminate wrong answers

Option A is wrong because increasing the visibility timeout does not reduce backlog; it only gives consumers more time to process a message, which can actually increase latency if consumers fail or take longer, as messages remain hidden longer. Option B is wrong because standard SQS queues do not support priority settings; FIFO queues offer ordering but not priority-based message selection, and SQS has no built-in priority feature. Option C is wrong because SQS queues already offer virtually unlimited throughput by default (up to 3,000 messages per second for FIFO with batching, and unlimited for standard), so requesting a quota increase is unnecessary and does not address consumer-side processing capacity.

52
MCQmedium

An application on EC2 instances in an Auto Scaling group uses an ALB. The ALB health checks are failing for some instances, but the instances are healthy from the OS perspective. What is the most likely cause?

A.The ALB idle timeout is too low
B.The security group for the instances does not allow traffic from the ALB
C.The Auto Scaling group cooldown period is too short
D.The ALB cross-zone load balancing is disabled
AnswerB

If the security group blocks health check traffic, the ALB marks instances unhealthy.

Why this answer

Misconfigured security group rules can block health check traffic, causing the ALB to mark instances as unhealthy.

53
MCQmedium

A media company runs a video processing pipeline on AWS. Raw videos are uploaded to an S3 bucket, which triggers a Lambda function to start an AWS Batch job for transcoding. The Batch job reads the source video from S3, processes it, and writes the output to another S3 bucket. Recently, the company has seen an increase in processing failures. Investigation shows that the Batch jobs are being terminated with a 'TIMEOUT' status after running for exactly 30 minutes. The video files are large, and some jobs legitimately take up to 45 minutes. The Batch job definition has a 'timeout' setting configured. Which action should be taken to resolve this issue?

A.Modify the Batch job definition to increase the 'timeout' value to 3600 seconds (60 minutes).
B.Increase the S3 bucket lifecycle policy to retain videos longer.
C.Increase the Lambda function timeout to 60 minutes.
D.Change the Batch job queue to a different compute environment.
AnswerA

The timeout in the job definition controls how long Batch allows a job to run.

Why this answer

The timeout configured in the job definition is causing jobs that exceed 30 minutes to be terminated. Increasing the timeout to 60 minutes allows longer-running jobs to complete.

54
MCQhard

A company runs a critical web application on EC2 instances in an Auto Scaling group. The application uses an Application Load Balancer (ALB) with health checks pointing to /health. Recently, the application experienced intermittent failures where the ALB would mark instances as unhealthy and route traffic away, causing a reduction in capacity. The development team noticed that the /health endpoint occasionally returns HTTP 503 when the application is under heavy load, but the application can recover quickly. The team wants to avoid unnecessary instance replacements while ensuring availability. Which solution should the DevOps engineer implement?

A.Implement a custom health check using Lambda that ignores 503 responses
B.Decrease the unhealthy threshold to mark instances unhealthy faster
C.Increase the health check interval and increase the unhealthy threshold
D.Decrease the health check interval and decrease the healthy threshold
AnswerC

Less sensitive to transient errors.

Why this answer

Increasing the health check interval and increasing the unhealthy threshold makes the health check less sensitive to transient errors, such as occasional 503 responses under heavy load. This prevents unnecessary instance replacements while maintaining availability. Option A is incorrect because implementing a custom Lambda health check that ignores 503 responses would not leverage the built-in ALB health check tuning and adds complexity.

Option B is incorrect because decreasing the unhealthy threshold would make instances more easily marked unhealthy, worsening the problem. Option D is incorrect because decreasing the health check interval increases the frequency of checks, which might cause more frequent detections of transient errors, and decreasing the healthy threshold does not address the issue of avoiding unnecessary replacements.

55
Multi-Selecthard

Which THREE components are required to implement a global application that can withstand the failure of an entire AWS Region? (Select THREE.)

Select 3 answers
A.An Application Load Balancer in the primary Region.
B.Amazon CloudFront with multiple origins and origin failover.
C.Amazon DynamoDB Global Tables.
D.Amazon RDS with a single-AZ deployment.
E.Amazon Route 53 with health checks and failover routing policy.
AnswersB, C, E

Provides edge caching and failover.

Why this answer

To implement a global application resilient to an entire AWS Region failure, you need DNS failover, multi-region data replication, and edge caching with origin failover. Amazon Route 53 with health checks and failover routing policy (E) detects region outages and directs traffic to healthy regions. Amazon CloudFront with multiple origins and origin failover (B) provides edge caching and can switch to a secondary origin if the primary fails.

Amazon DynamoDB Global Tables (C) replicates data across regions for multi-region writes and reads. Option A (ALB in primary region) is regional and cannot handle cross-region failover. Option D (RDS Single-AZ) lacks multi-region replication and is not resilient.

56
Multi-Selecteasy

Which TWO actions can help ensure that an application running on EC2 instances can survive the loss of an entire Availability Zone?

Select 2 answers
A.Deploy all instances in a single Availability Zone for consistency
B.Use an Auto Scaling group with multiple Availability Zones
C.Deploy EC2 instances in at least two Availability Zones
D.Use a larger instance type to handle more load
E.Use CloudWatch alarms to monitor instance health
AnswersB, C

Auto Scaling distributes instances across AZs and replaces failed ones.

Why this answer

Deploying instances in multiple Availability Zones (AZs) ensures that if one AZ fails, instances in other AZs continue to run. Using an Auto Scaling group with multiple AZs automatically distributes instances across AZs and replaces failed instances, further enhancing resilience. Options B and C are both correct because they achieve multi-AZ deployment.

Option A is incorrect because a single AZ is a single point of failure. Option D is incorrect because instance type does not provide AZ resilience. Option E is incorrect because CloudWatch alarms can detect issues but do not distribute instances across AZs.

57
Multi-Selecteasy

A company is implementing a disaster recovery plan for its on-premises database using AWS. The plan must have a Recovery Time Objective (RTO) of 2 hours and a Recovery Point Objective (RPO) of 15 minutes. Which TWO AWS services should the company use? (Choose TWO.)

Select 2 answers
A.AWS Snowball Edge
B.Amazon S3 with versioning
C.AWS Backup with cross-Region backup copy
D.AWS Database Migration Service (DMS) with ongoing replication
E.AWS Storage Gateway with cached volumes
AnswersC, D

AWS Backup can automate and restore backups quickly, meeting RTO.

Why this answer

AWS Database Migration Service (DMS) with ongoing replication continuously replicates database changes to AWS, achieving an RPO of 15 minutes. AWS Backup with cross-Region backup copy automates backups and enables recovery in another Region within 2 hours, meeting the RTO. Together, they satisfy the DR requirements.

Option B (S3 with versioning) is for object storage, not database replication, and cannot achieve the RPO. Option A (Snowball Edge) is for offline data transfer, not real-time replication. Option E (Storage Gateway cached volumes) provides file/volume storage, not database replication.

58
MCQeasy

A DevOps team uses the above CloudFormation template to create an S3 bucket. What does the bucket policy accomplish?

A.It denies all S3 operations on the bucket unless the request uses HTTPS.
B.It denies all read access to the bucket for anonymous users.
C.It prevents anyone from deleting objects in the bucket.
D.It allows only HTTPS requests to the bucket and denies all HTTP requests.
AnswerA

The condition denies if SecureTransport is false.

Why this answer

The bucket policy uses a Deny effect with a condition that the request must use HTTPS (SecureTransport: false). This denies all S3 operations on the bucket unless the request is sent over HTTPS. Option B is incorrect because the policy does not target anonymous users specifically; it applies to all principals.

Option C is incorrect because the policy denies all actions, not just delete. Option D is incorrect because it allows HTTP requests when the condition is not met, but the Deny overrides; the policy explicitly denies non-HTTPS requests.

59
MCQeasy

A company wants to automate the recovery of an Amazon RDS DB instance in a different region if the primary region becomes unavailable. Which service should they use?

A.RDS Multi-AZ deployment.
B.RDS cross-region automated backups.
C.RDS read replicas.
D.AWS CloudFormation custom resource.
AnswerB

Cross-region backups allow restoring in another region.

Why this answer

RDS cross-region automated backups can be restored to a different region. Option A is incorrect because RDS Multi-AZ only provides failover within the same region. Option C is incorrect because read replicas can be promoted but require manual intervention.

Option D is incorrect because RDS does not support CloudFormation for automated recovery across regions.

60
MCQeasy

A company is designing a disaster recovery strategy for its primary RDS for PostgreSQL database in us-east-1. The RTO is 15 minutes and RPO is 1 minute. Which solution meets these requirements?

A.Create a cross-Region read replica in the secondary Region and promote it during failover.
B.Use AWS Backup to copy automated backups to the secondary Region every hour.
C.Deploy a Multi-AZ RDS instance and failover to the standby in the same region.
D.Take manual snapshots of the database every 5 minutes and copy them to the secondary Region.
AnswerA

Cross-Region read replicas can be promoted quickly, achieving low RTO/RPO.

Why this answer

A cross-Region read replica can be promoted to a primary instance in a matter of minutes, meeting the 15-minute RTO, and replication lag is typically under 1 minute, satisfying the 1-minute RPO. Option B (AWS Backup every hour) provides an RPO of up to 1 hour, exceeding the requirement. Option C (Multi-AZ in same region) does not provide cross-Region failover.

Option D (manual snapshots every 5 minutes) has a higher RPO than 1 minute and may not be promotable quickly enough.

61
MCQeasy

A company runs a production web application on EC2 instances behind an Application Load Balancer. The application experiences intermittent high latency. The operations team needs to identify the root cause without affecting live traffic. Which approach is the MOST efficient?

A.Deploy a separate test environment with identical configuration and run load tests
B.Enable EC2 detailed monitoring and SSH into each instance to run top and iostat
C.Enable detailed CloudWatch metrics on the ALB and analyze ALB access logs
D.Run tcpdump on all EC2 instances and analyze packet captures
AnswerC

ALB metrics and logs provide request-level latency without impacting production.

Why this answer

Enabling detailed CloudWatch metrics on the ALB and analyzing ALB access logs provides visibility into request latency patterns without affecting live traffic. Option A is wrong because setting up a separate test environment does not directly help diagnose the current intermittent issue. Option B is wrong because SSHing into instances and running commands can impact production performance and does not provide historical latency data.

Option D is wrong because tcpdump generates large packet captures that can degrade performance and requires significant analysis effort.

62
Multi-Selectmedium

A company runs a multi-tier web application on AWS. The application consists of an Application Load Balancer, EC2 instances in an Auto Scaling group, and an Amazon RDS Multi-AZ DB instance. The application experiences intermittent failures when the RDS primary instance fails over to the standby. The engineer needs to ensure that the application handles failover gracefully without manual intervention.

Select 2 answers
A.Modify the application to use DNS caching with a TTL of 300 seconds to avoid stale DNS records.
B.Configure the Application Load Balancer to perform health checks on the RDS instance.
C.Use Amazon RDS Proxy to pool and reuse database connections, which reduces connection churn during failover.
D.Enable Multi-AZ on the Auto Scaling group to ensure EC2 instances are in multiple AZs.
E.Configure the application to use the RDS instance endpoint (not the cluster endpoint) and implement retry logic for database connections.
AnswersC, E

RDS Proxy helps maintain connections during failover and reduces load on the database.

Why this answer

Using a proxy like ProxySQL or configuring the application to use the RDS endpoint (which automatically points to the current primary) helps handle failover. Additionally, enabling RDS connection pooling or using Lambda to update the application can help, but the simplest is to use the instance endpoint with a retry mechanism.

63
MCQmedium

A company runs a web application on EC2 instances behind an Application Load Balancer. The application uses an Aurora MySQL database. Recently, the database experienced a failover, and the application started throwing connection errors. The DevOps engineer needs to make the application resilient to database failovers with minimal code changes. What should they do?

A.Configure the application to use the Aurora cluster endpoint for database connections
B.Configure the application to use the Aurora reader endpoint for all queries
C.Create a cross-Region read replica and configure the application to retry on failure
D.Use Amazon RDS Proxy with IAM authentication to handle connection pooling
AnswerA

Cluster endpoint always points to the current writer.

Why this answer

The Aurora cluster endpoint always points to the current primary instance (writer). After a failover, the cluster endpoint automatically updates to point to the new writer, so the application reconnects without any code changes. Option B is incorrect because the reader endpoint is for read-only queries and does not direct to the writer.

Option C is incorrect because a cross-Region read replica is read-only and cannot become the writer automatically; it does not solve failover resilience. Option D is incorrect because RDS Proxy provides connection pooling and IAM authentication but does not change the underlying endpoint behavior; you would still need to use the cluster endpoint to ensure automatic failover routing.

64
Multi-Selectmedium

A company has a critical application running on Amazon EC2 instances in an Auto Scaling group. The application writes logs to an Amazon EFS file system. The DevOps team needs to ensure that log data is durable and available even if an Availability Zone fails. The EFS file system is currently in one AZ. What should the team do? (Choose TWO.)

Select 2 answers
A.Increase the EFS throughput mode to Provisioned.
B.Enable AWS Backup for the EFS file system with daily backups.
C.Copy the log files to Amazon S3 using a cron job.
D.Recreate the EFS file system as a Regional (Standard) file system.
E.Configure the EC2 instances to mount the EFS file system from multiple Availability Zones.
AnswersB, D

Backups provide additional durability and recovery options.

Why this answer

The correct actions are to enable AWS Backup for daily backups (Option B) and recreate the EFS file system as a Regional (Standard) file system (Option D). AWS Backup provides additional durability and point-in-time recovery, while Regional EFS automatically replicates data across multiple Availability Zones, ensuring availability even if one AZ fails. Option A (increasing throughput) does not address durability.

Option C (copying to S3) is possible but not a primary solution and changes architecture. Option E (mounting from multiple AZs) is only possible with Regional EFS, but with One Zone it's not supported.

65
MCQmedium

A company runs a critical e-commerce application on Amazon EC2 instances behind an Application Load Balancer (ALB) with Auto Scaling. The application must be resilient to an Availability Zone (AZ) failure. What is the MOST resilient configuration?

A.Configure the Auto Scaling group to launch instances in a single AZ with a larger instance type.
B.Deploy a single large EC2 instance in one AZ and use an Elastic IP for failover.
C.Use a Network Load Balancer instead of an ALB and deploy instances in two AZs.
D.Configure the Auto Scaling group to span at least three AZs and set the ALB to route traffic to all AZs.
AnswerD

Multi-AZ deployment ensures resilience.

Why this answer

Spanning the Auto Scaling group across at least three Availability Zones (AZs) and routing traffic from the ALB to all AZs ensures that if one AZ fails, the remaining AZs can handle the load without interruption. This configuration leverages the ALB's native cross-zone load balancing and Auto Scaling's ability to maintain desired capacity across multiple AZs, providing fault isolation and high availability for the critical e-commerce application.

Exam trap

The trap here is that candidates often confuse high availability with fault tolerance, mistakenly thinking that a single large instance or a single AZ with a larger instance type provides resilience, when in fact distributing workloads across multiple AZs is the only way to survive an AZ failure without manual intervention.

How to eliminate wrong answers

Option A is wrong because launching instances in a single AZ creates a single point of failure; if that AZ fails, the entire application becomes unavailable regardless of instance size. Option B is wrong because a single large EC2 instance with an Elastic IP for failover is not automated and still relies on manual intervention or additional scripting; it does not provide automatic recovery or load distribution, and the Elastic IP failover does not handle traffic routing at the application layer. Option C is wrong because while a Network Load Balancer (NLB) can distribute traffic across AZs, it operates at Layer 4 and lacks the application-layer features (e.g., path-based routing, host-based routing, HTTP/2 support) required for a typical e-commerce application; replacing the ALB with an NLB would break critical functionality, and the question explicitly requires the most resilient configuration, which includes the ALB's advanced routing capabilities.

66
MCQeasy

A company wants to design a disaster recovery solution for its primary AWS Region. The solution should have a Recovery Point Objective (RPO) of a few seconds and a Recovery Time Objective (RTO) of a few minutes. Which strategy meets these requirements?

A.Pilot light
B.Backup and restore
C.Warm standby
D.Multi-Region active-active
AnswerD

Active-active with synchronous replication achieves low RPO and RTO.

Why this answer

A multi-Region active-active setup with synchronous replication provides near-zero RPO and minimal RTO.

67
Multi-Selecthard

A company is running a critical application on Amazon RDS for PostgreSQL with Multi-AZ deployment. The application performs frequent writes. During a recent failover test, the team observed that the application experienced a 30-second write outage. To minimize downtime during automatic failovers, which configuration change should the DevOps engineer implement? (Choose TWO.)

Select 2 answers
A.Enable Performance Insights to monitor database load.
B.Configure Amazon RDS Proxy in front of the RDS instance.
C.Use synchronous replication to the standby instance.
D.Increase the DB instance class to a larger size.
E.Set the DNS TTL for the RDS endpoint to 1 second.
AnswersB, E

RDS Proxy maintains connection pools and handles failover transparently, reducing application downtime.

Why this answer

Amazon RDS Proxy reduces failover time by pooling and reusing connections, allowing the application to resume quickly after failover without waiting for new connections to be established. Option E is correct because setting the DNS TTL for the RDS endpoint to 1 second ensures that the client DNS cache expires quickly, so the application can reconnect to the new primary IP address promptly after failover. Option A (Performance Insights) is for monitoring, not failover.

Option C (synchronous replication) is already used by Multi-AZ and does not affect failover time. Option D (increasing instance size) improves performance but does not reduce failover duration.

68
MCQeasy

A company runs a critical batch processing job on Amazon ECS using Fargate. The job must complete within 2 hours. If the job fails, it must be retried automatically up to 3 times. Which solution meets these requirements?

A.Use AWS Batch with a retry strategy set to 3 attempts
B.Use AWS Step Functions with a task that invokes the ECS task, and configure a retry policy in the state machine
C.Use an Amazon ECS service with a desired count of 1 and enable automatic task replacement
D.Use AWS Lambda with a dead-letter queue and reprocess events
AnswerA

AWS Batch natively supports retry and is designed for batch jobs.

Why this answer

AWS Batch is designed for batch processing jobs and natively supports a retry strategy to automatically retry failed jobs up to a specified number of attempts. It can run on ECS Fargate and manage job queues. Option B (Step Functions) can also retry but requires explicit state machine configuration and is overkill for simple batch retry.

Option C (ECS service) does not provide retry logic for tasks; it replaces failed tasks but does not retry on failure. Option D (Lambda) has a 15-minute execution limit, which is insufficient for a job that may take up to 2 hours.

69
MCQeasy

A company is running a production database on Amazon RDS for PostgreSQL with Multi-AZ deployment. The database experiences a failover due to an AZ outage. What happens to the existing database connections during the failover?

A.Existing connections are automatically redirected to the standby without interruption.
B.The RDS endpoint IP address changes, and the application must update its configuration.
C.Existing connections are dropped, and applications must reconnect to the new primary using the same endpoint.
D.The primary DB instance is promoted to standby and connections remain active.
AnswerC

RDS updates DNS to point to the new primary; reconnection required.

Why this answer

During a Multi-AZ failover, RDS automatically updates the DNS record to point to the standby, but existing connections to the primary are dropped and must be re-established. Option A is wrong because connections are not preserved. Option B is wrong because Multi-AZ automatically fails over without manual promotion.

Option D is wrong because the CNAME record does not change; it's a DNS update.

70
Multi-Selectmedium

A company is building a serverless application using AWS Lambda, Amazon API Gateway, and Amazon DynamoDB. The application is expected to have unpredictable traffic patterns. The DevOps team needs to ensure that the application can handle sudden spikes in traffic without throttling. Which TWO actions should the team take? (Choose TWO.)

Select 2 answers
A.Use DynamoDB on-demand capacity mode for the table.
B.Configure Lambda provisioned concurrency to keep a set number of execution environments warm.
C.Configure DynamoDB auto scaling with a minimum capacity of 10 read/write capacity units.
D.Increase the Lambda function timeout to the maximum (15 minutes).
E.Set API Gateway throttling limits to a high value to prevent throttling.
AnswersA, B

On-demand instantly scales to handle spikes.

Why this answer

DynamoDB on-demand capacity mode automatically scales to handle unpredictable traffic spikes without requiring capacity planning or throttling. This mode charges per request and can accommodate sudden bursts of traffic up to the table's previous peak, making it ideal for serverless applications with variable workloads.

Exam trap

The trap here is that candidates often confuse DynamoDB auto scaling with on-demand capacity, thinking auto scaling can handle sudden spikes as effectively as on-demand, but auto scaling has a lag time and can still throttle during rapid bursts.

71
Multi-Selectmedium

Which TWO strategies can be used to improve the resilience of an application running on Amazon ECS with Fargate? (Select TWO.)

Select 2 answers
A.Use a single subnet for all tasks to simplify networking.
B.Configure the ECS service to place tasks in multiple Availability Zones.
C.Increase the task memory reservation to handle peak load.
D.Implement a circuit breaker pattern for downstream dependencies.
E.Use scheduled scaling to adjust task count based on historical patterns.
AnswersB, D

Spreads tasks across AZs for fault tolerance.

Why this answer

Configuring the ECS service to place tasks in multiple Availability Zones distributes the application across physically separate data centers, so if one AZ fails, the tasks in other AZs continue to run. Option D is correct because implementing a circuit breaker pattern for downstream dependencies prevents cascading failures by detecting faults and failing fast, allowing the system to recover gracefully. Option A is incorrect; using a single subnet for all tasks typically places them in a single Availability Zone, reducing fault tolerance.

Option C is incorrect; increasing task memory reservation helps handle peak load but does not improve resilience against failures. Option E is incorrect; scheduled scaling adjusts capacity based on historical patterns and does not handle unexpected spikes or failures.

72
Multi-Selectmedium

A company runs a mission-critical database on Amazon RDS for MySQL. They need to ensure that if the primary DB instance fails, the database remains available with minimal downtime. Which TWO configurations should they implement? (Choose TWO.)

Select 2 answers
A.Enable automated backups with point-in-time recovery.
B.Create a read replica in the same region.
C.Enable deletion protection on the DB instance.
D.Enable Multi-AZ deployment.
E.Configure cross-region replication.
AnswersB, D

A read replica in the same region can be promoted to a primary instance for faster failover than restoring from backup, minimizing downtime.

Why this answer

For minimal downtime during a primary DB instance failure, Multi-AZ deployment (D) provides automatic failover to a standby in a different Availability Zone. A read replica in the same region (B) can be manually promoted to a primary instance, offering a faster failover option than restoring from backups. Automated backups (A) enable point-in-time recovery but do not reduce downtime due to restore time.

Deletion protection (C) prevents accidental deletion, and cross-region replication (E) is for disaster recovery, not immediate failover.

Exam trap

Candidates often assume automated backups provide high availability, but they only enable data recovery, not failover. Read replicas can be promoted for failover, but require manual intervention.

73
Multi-Selecthard

A company is designing a disaster recovery plan for a critical application that uses Amazon RDS for MySQL with Multi-AZ. The RPO must be less than 1 minute and RTO less than 15 minutes. The primary Region is us-east-1. Which TWO steps should the company take to meet these requirements?

Select 2 answers
A.Take manual snapshots of the RDS instance every 30 seconds and copy them to the secondary Region
B.Enable Multi-AZ in the primary Region
C.Create a cross-Region read replica of the RDS instance in the secondary Region
D.Create an AWS Lambda function to promote the read replica to primary in the secondary Region during a disaster
E.Enable automated backups with cross-Region copy enabled to the secondary Region
AnswersC, D

Provides low-lag replication and fast promotion.

Why this answer

C and D are correct. A cross-Region read replica of the RDS instance in the secondary Region provides near-real-time replication, achieving an RPO of less than 1 minute. When a disaster occurs, the read replica can be promoted to a primary instance quickly, meeting the RTO of less than 15 minutes.

An AWS Lambda function can automate the promotion process, reducing manual intervention and further improving RTO. Option E is incorrect because automated backups with cross-Region copy are taken periodically (e.g., daily), not continuously, so they cannot achieve an RPO of less than 1 minute.

74
MCQmedium

A company runs a critical web application on EC2 instances behind an Application Load Balancer (ALB) across multiple Availability Zones. During a recent failure of one AZ, the application experienced downtime because the Auto Scaling group did not launch new instances quickly enough. What should a DevOps engineer do to improve resilience?

A.Configure the Auto Scaling group to span multiple AZs and enable health checks to replace unhealthy instances.
B.Use a larger AMI to reduce boot times.
C.Increase the instance size of the EC2 instances to handle more traffic.
D.Configure the Auto Scaling group to launch instances in a single AZ with a larger instance count.
AnswerA

Multiple AZs provide high availability and health checks ensure quick replacement.

Why this answer

Configuring the Auto Scaling group to span multiple Availability Zones (AZs) and enabling health checks ensures that if an entire AZ fails, the Auto Scaling group can launch replacement instances in the remaining healthy AZs. The ALB health checks detect unhealthy instances and trigger the Auto Scaling group to replace them, reducing downtime. This approach leverages the fault isolation of multiple AZs and the automatic scaling capabilities of AWS Auto Scaling.

Exam trap

The trap here is that candidates often focus on instance-level improvements (like larger AMIs or instance sizes) instead of architectural resilience across Availability Zones, which is the core requirement for AZ failure scenarios.

How to eliminate wrong answers

Option B is wrong because using a larger AMI would increase boot times, not reduce them, and boot time is not the primary bottleneck in this scenario—the issue is the lack of instances in other AZs. Option C is wrong because increasing instance size handles more traffic per instance but does not address the failure of an entire AZ; if all instances are in the same AZ, they all fail simultaneously. Option D is wrong because launching instances in a single AZ with a larger instance count concentrates all resources in one AZ, making the application vulnerable to a single AZ failure, which is exactly the problem described.

75
Multi-Selectmedium

A company runs a stateful web application on EC2 instances behind an ALB. The application stores session data in memory. The company wants to make the application stateless to improve resilience. Which TWO changes should the company make?

Select 2 answers
A.Increase the instance memory to store more sessions
B.Disable sticky sessions on the ALB
C.Enable sticky sessions (session affinity) on the ALB
D.Store session data in Amazon ElastiCache for Redis
E.Use an NLB instead of an ALB
AnswersB, D

Without stickiness, any instance can serve any request if state is external.

Why this answer

To make the application stateless, the company should disable sticky sessions on the ALB (option B) and store session data in Amazon ElastiCache for Redis (option D). Disabling sticky sessions ensures that requests can be routed to any instance, and storing session data externally removes the dependency on in-memory state on individual instances, improving resilience. Option A is incorrect because increasing instance memory does not solve the statefulness issue.

Option C is incorrect because enabling sticky sessions would maintain state on instances. Option E is incorrect because using an NLB does not address session state management.

Page 1 of 2 · 103 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Resilient Cloud Solutions questions.