Community Q&A

SOA-C03 — frequently asked questions

Community-vetted answers to 152 common questions about this exam, each traced back to a specific practice question.

Questions from real practice questions

Each Q&A comes from a specific question — follow the link for the full analysis

ALB Weighted Random Routing and Session Affinity Errors

Why don't standard health checks catch these errors?

Standard health checks only verify basic connectivity and response codes. They do not detect application-level logic errors or statefulness issues that cause random failures.

Does Least Outstanding Requests fix session affinity?

No. If session affinity is enabled, the ALB routes requests to the same instance regardless of the algorithm. Changing the algorithm does not resolve errors from a single broken instance holding a session.

Route 53 Health Checks for Weighted Records

Why doesn't Route 53 auto-detect unhealthy endpoints?

Route 53 only evaluates health automatically for Alias records with 'Evaluate Target Health' set to Yes. Standard records require explicit health check association.

Can I use TTL reduction to fix unhealthy endpoint routing?

No. Reducing TTL only affects how quickly clients refresh cached DNS records. It does not make Route 53 aware of endpoint failures or exclude them from responses.

FSx for Windows File Server Multi-AZ Resiliency

Can I use an Application Load Balancer for SMB traffic?

No, ALBs only support HTTP/HTTPS traffic. SMB uses different ports and protocols not supported by standard load balancers.

Why is Storage Gateway not suitable for this scenario?

Storage Gateway primarily caches data locally and stores it in S3; it does not offer native Multi-AZ redundancy for the gateway instance itself.

How Do You Ramp ALB Traffic Gradually During EC2 Cache Warm-Up?

Why isn't slow start applied automatically when a rebooted EC2 instance passes health checks?

Slow start applies to targets that are newly registered or that transition to healthy after being unhealthy; a plain reboot leaves the registration unchanged, so you must deregister and register again.

Why is changing HealthCheckTimeoutSeconds to 120 seconds wrong here?

It only controls how long the ALB waits for a health check response before marking a target unhealthy, so it delays failure detection rather than throttling or ramping request volume.

Serving Private S3 Content with Least Administrative Effort

Why is Option D not the best answer?

While presigned URLs are secure, managing an EC2 instance to generate them adds administrative overhead. CloudFront OAC is a managed service that handles delivery and caching automatically.

Does CloudFront OAC allow public access?

No. OAC ensures that only CloudFront can access the private S3 bucket. End-users download from CloudFront, but the underlying S3 bucket remains completely private and protected by the account-level block.

Troubleshooting S3 Cross-Account Replication with SSE-S3

Can I replicate SSE-S3 encrypted objects across accounts?

Yes, you can replicate SSE-S3 encrypted objects across accounts as long as you grant the s3:ObjectOwnerOverrideToBucketOwner permission.

Is SSE-KMS required for cross-account S3 replication?

No, SSE-KMS is not required. You can use SSE-S3, but you must configure the ownership override permission in both the IAM role and bucket policy.

How to Provide SSH Access to a Private EC2 Instance Without Internet Exposure?

Why is option B wrong when the EC2 instance already has the SSM Agent installed?

SSM Agent enables Session Manager only with an instance profile and private SSM endpoints; option B omits the role and opens inbound SSH unnecessarily.

Does the EC2 Instance Connect endpoint need to be in the private subnet?

Yes for this design: placing it in the private subnet lets administrators reach the private instance through the endpoint without an internet gateway or public IP.

S3 Event Notification Validation Failure Causes

Why isn't the IAM role sufficient for S3 to invoke Lambda?

IAM roles define what the Lambda function can do internally. Resource policies define who can invoke the function. S3 needs explicit permission via the resource policy.

Can stale notifications cause this validation error?

Yes, if any existing destination fails validation, S3 rejects the entire update. However, missing permissions on the new target is the primary architectural check.

Secure SSH Access to Private EC2 Instances

Why can't I use an Internet Gateway for SSH?

An Internet Gateway allows instances to reach the internet but does not support inbound SSH initiation to private subnets securely.

Is NAT Gateway suitable for inbound management?

No, NAT Gateways only support outbound internet traffic from private subnets, not inbound connections.

Automate EC2 Reboot with Systems Manager Maintenance Windows

Why can't I use a CloudWatch alarm to reboot instances daily?

CloudWatch alarms are event-driven and trigger when a metric crosses a threshold. They cannot be scheduled to fire at a specific time every day.

Does StartInstances reboot a running EC2 instance?

No. StartInstances starts an instance that is in a stopped state. To reboot a running instance, you must use StopInstances followed by StartInstances, or use the Restart action in SSM.

Scale a Stateless Web App and Make PostgreSQL Highly Available?

Why is upgrading the single EC2 instance not enough for this stateless app?

Vertical scaling adds temporary capacity but leaves the web server and database on one failure domain. It does not provide horizontal elasticity or automatic failover for PostgreSQL.

Does CloudFront solve the EC2 and PostgreSQL overload in this scenario?

No. CloudFront can cache and offload some content delivery, but it does not scale the stateless web server or make the single PostgreSQL database highly available.

Which Actions Does This IAM Policy Allow for a Developer?

Why does lambda:InvokeFunction not allow creating a Lambda execution role?

Creating a role for Lambda requires iam:CreateRole. InvokeFunction only runs an existing function, so option B is not granted by this policy.

Does elasticloadbalancing:DescribeLoadBalancers allow deleting a load balancer?

No. DescribeLoadBalancers is read-only; deletion needs elasticloadbalancing:DeleteLoadBalancer, which is not in the policy's Action list.

Avoiding Permanent Credentials with AWS STS

Why not just add a policy to the IAM user?

Adding a policy scopes permissions but still requires permanent Access Keys, violating the requirement to avoid them.

When should I use AssumeRoleWithSAML instead?

Use AssumeRoleWithSAML when integrating with an external Identity Provider (like AD FS or Okta) that issues SAML assertions, not for direct SaaS SDK usage.

How Should Traffic Route Only to Healthy Application Servers?

Why is a Route 53 health check with an NLB wrong for healthy application servers?

Route 53 health checks support DNS failover, not per-target routing inside the application tier. An ALB's target-group health checks remove individual unhealthy application servers from traffic.

Why can't a CloudWatch alarm alone keep traffic off an unhealthy application server?

A CloudWatch alarm can trigger notifications or a Lambda action, but it does not automatically deregister the instance from a load balancer's healthy target pool. The ALB health check performs that routing decision.

How to Automatically Install Auditing Software on All EC2 Instances Across Regions?

Why doesn't an EventBridge RunInstances rule install the auditing software?

EventBridge can react to RunInstances events, but it cannot inject an installer step into the instance launch or reboot the instance to install software. It also does not cover existing instances automatically.

Why are State Manager associations needed in each Region?

Systems Manager associations are Regional resources, so each Region needs its own association to target managed instances there. A single association does not automatically span all Regions.

How Do Private Subnet EC2 Instances Get Internet Access via NAT?

Why can't the NAT gateway be created in the private subnet?

A NAT gateway must sit in a public subnet with a route to an internet gateway; in a private subnet it has no outbound path and cannot translate traffic.

Does the public subnet's route table need a route to the NAT gateway?

No. Public instances use the internet gateway directly; only the private subnet's route table needs 0.0.0.0/0 pointing at the NAT gateway.

How to Shift Blue/Green ALB Traffic Gradually with Route 53 DNS?

Why can't latency-based routing send a small percentage of traffic to green?

Latency records are chosen by measured resolver-to-Region latency, not by an operator-set percentage, so you cannot dial a deliberate 5% ramp toward the green ALB.

How does Route 53 fall back automatically if the green ALB becomes unhealthy?

Each weighted alias record carries a health check; an unhealthy green record is excluded from answers, so all DNS responses go to the healthy blue ALB without manual intervention.

How Do You Configure Cost Explorer to Show Costs per Project?

Why is a cost category not enough to show project costs in Cost Explorer?

Cost categories group costs using existing tags or accounts, but they do not activate user-defined tags or apply Project tags, so they cannot replace the initial tagging setup.

Do user-defined cost allocation tags appear in Cost Explorer immediately after tagging?

No. The tag key must be activated in the Billing console first, and activation can take up to 24 hours before tag data appears in Cost Explorer.

How to Enforce S3 Bucket Tags and Policies with Self-Service Provisioning?

Why is a CloudFormation template parameter insufficient for enforcing the Confidential tag?

A distributed template can be modified or skipped by teams, and the parameter allows either tag; only Service Catalog products constrain the input and policy at provisioning.

Why does AWS Config with SSM Automation not meet the 'upon creation' requirement?

AWS Config evaluates buckets after they exist, so a noncompliant bucket can be created and used before remediation runs; it is detective, not preventive.

CloudFront CNAME Already Associated with Another Resource

Why can't the stack reuse www.example.com if it is already on another CloudFront distribution?

CloudFront requires each alternate domain name to be unique across distributions, so the existing association must be removed before the new stack can use it.

Does reducing CNAMEs to 10 fix the already-associated error?

No, CloudFront allows up to 100 CNAMEs per distribution; the limit is unrelated to the uniqueness conflict in the error.

How to Rate-Limit DDoS Protection for a CloudFront-Hosted S3 Website?

Why can't the AWS WAF web ACL be associated directly with the S3 bucket?

AWS WAF protects supported entry points such as CloudFront distributions and load balancers; an S3 bucket is not a direct WAF association target, so the web ACL must attach to CloudFront.

What scope should an AWS WAF web ACL use for CloudFront?

A web ACL associated with CloudFront is global-scoped, even though the console and API resources are created in us-east-1.

How do IPv6-only EC2 instances get outbound-only internet access?

Why can't a NAT gateway provide internet access for IPv6-only EC2 instances?

A NAT gateway translates IPv4 addresses only. IPv6 egress uses an egress-only internet gateway, which allows outbound connections and their return traffic but blocks inbound initiation.

What route entry must the custom route table contain for the IPv6-only subnets?

Add a ::/0 destination targeting the egress-only internet gateway, then associate that route table with the IPv6-only subnets so all IPv6 traffic follows it.

How to Store Each Team's Athena Results in Separate S3 Buckets?

Why is sharing the primary Athena workgroup with per-query result locations wrong?

The primary workgroup is shared, and a user-set result location is a client-side setting that workgroup enforcement can override, so per-team isolation is not guaranteed.

Do AWS Glue Data Catalog databases control Athena query result storage?

No. Glue databases organize table metadata for Athena; the query result S3 path is configured on the Athena workgroup, not on the Glue database.

How to Balance TCP Port 1028 Across Three EC2 Instances?

Why can't an Application Load Balancer handle the TCP port 1028 traffic?

ALB listeners only support HTTP, HTTPS and gRPC protocols, so a generic TCP service on port 1028 cannot be terminated or forwarded by an ALB.

Why is a Gateway Load Balancer wrong for balancing port 1028?

A GWLB distributes traffic to third-party virtual appliances using GENEVE on port 6081; it is not used to load balance application traffic to EC2 web/app servers.

How to Fix Forced Logouts Behind CloudFront and an ALB?

Why is header forwarding (C) not enough to keep sessions alive?

CloudFront handles cookies as a separate cache-behavior setting; forwarding headers does not guarantee the application's session cookie reaches the ALB and backend instance.

Does least outstanding requests (A) preserve ALB session affinity?

No, it only changes how the ALB chooses a target for new requests; it does not pin a returning user to the same EC2 instance holding their session state.

How to Terminate EC2 Instances Missing Required Tags Efficiently?

Why can't an IAM policy terminate a noncompliant EC2 instance?

IAM policies only authorize or deny API actions; they do not monitor resource tags or run remediation, so an IAM policy cannot terminate instances on its own.

Does an AWS Config required-tags rule support automatic termination?

Yes. AWS Config can evaluate required tags and trigger remediation through an SSM Automation runbook such as AWS-TerminateInstance when an EC2 instance is noncompliant.

How Do You Restore an EC2 Instance from AWS Backup Fastest?

Why not launch a new EC2 instance and restore the root volume instead?

That approach adds manual launch and volume-restore steps. AWS Backup can create the new EC2 instance directly from the EC2 recovery point, which is faster.

Does AWS Backup restore an EC2 instance in place?

EC2 restores create a new instance from the recovery point rather than overwriting the original instance, so the DR test uses a separate restored instance.

How Should EC2 Auto Scaling Maintain 50% CPU Headroom and Daily Peaks?

Why is a scheduled-only scaling policy insufficient for this EC2 fleet?

Scheduled scaling handles the predictable 09:00–17:00 load pattern but cannot react to unexpected bursts, so the fleet could lose its required 50% CPU headroom.

Why not set target tracking at 90% CPU instead of 50%?

A 90% target leaves only about 10% CPU headroom, which violates the requirement to keep 50% CPU available for bursts.

How to speed up S3 static content for US and Europe users?

Why is S3 Transfer Acceleration not the best fix for slow image downloads?

Transfer Acceleration optimizes transfers into S3, not edge caching for viewers; CloudFront serves cached images and videos from locations near US and European users.

Does CloudFront require making the S3 bucket public for static content?

No, CloudFront can access a private S3 bucket through Origin Access Control, so the static content stays protected while edge locations serve it.

How to Automatically Modify EC2 Spot Requests When Capacity Is Unavailable?

Why is CloudTrail not the right event source for Spot request state changes?

CloudTrail records API calls such as RequestSpotInstances, not internal Spot status transitions like instance-stopped-no-capacity; CloudWatch Events/EventBridge emits those status events.

Can Lambda add a new instance family to an existing Spot request?

A Lambda function can cancel and recreate the request or modify a Spot Fleet request configuration to include the additional instance family.

How to centralize CloudWatch metrics and alarms across accounts and Regions?

Why is option A's per-account console sharing insufficient for this dashboard?

The legacy cross-account cross-Region console setting is enabled in the account that views the dashboard, not in each application account, and it does not give the unified source-account link that cross-account observability provides.

Does CloudWatch cross-account observability work when the application accounts are in different Regions?

Yes. A source account in any Region can be linked to the monitoring account, so a single dashboard in one Region can show metrics and alarms from all of them.

How Do You Find Security Groups Open to the Internet on Port 3389?

Why can't GuardDuty list security groups open on port 3389?

GuardDuty analyzes flow logs, DNS logs, and CloudTrail events for malicious activity. It detects behavior such as port scanning but does not inventory security group ingress rules.

Can an SCP identify security groups with unrestricted RDP access?

No. An SCP is a permissions guardrail that allows or denies API actions across an organization; it does not scan or report existing security group rules.

How to Prevent Sensitive Data in Amazon SNS Messages?

Why can't Amazon Macie redact sensitive data before an SNS publish?

Macie discovers sensitive data in Amazon S3, not in SNS message payloads; it cannot sit in the Lambda-to-SNS path and redact messages.

Does an SNS data protection policy block or only audit sensitive data?

It can audit, deny, or redact based on the policy action and data identifiers you configure, so it can enforce protection rather than only report findings.

How to Launch a Cross-Account Encrypted AMI from CloudFormation?

Why is exporting the KMS key to the second account not the fix?

AWS KMS does not let you export standard customer managed key material for import into another account; cross-account use is granted through the key policy, not by moving the key.

Why can't the engineer make the encrypted AMI public instead?

Encrypted AMIs cannot be made public, and public sharing would not give the second account the KMS decrypt permissions required to launch an instance.

How Do You Get Email Alerts When New EC2 Instances Launch?

Why is the Lambda-polling-SNS design in option B wrong for EC2 launch alerts?

SNS pushes messages to subscribers rather than being polled, and Systems Manager does not publish EC2 launch events to SNS, so option B adds cost and delay without a real trigger.

Can AssociateInstanceEventWindow send an email when an EC2 instance launches?

No. An instance event window defines time ranges that suppress disruptive events such as reboots or migrations; it is not a notification target for launch events.

How to Get Notified When an AWS Site-to-Site VPN Tunnel Goes Down?

Why is EventBridge with Lambda not the best choice for VPN tunnel alerts?

Amazon EventBridge has no native Site-to-Site VPN tunnel-state event in this scenario; a CloudWatch alarm on tunnel state can directly trigger SNS instead.

Does CloudTrail capture Site-to-Site VPN tunnel availability?

No. CloudTrail records API activity such as CreateVpnConnection, not data-plane tunnel state; Athena queries over CloudTrail logs are not an immediate outage alert.

How to Search a Year of EC2 Error Logs in CloudWatch?

Why is the CloudWatch metric filter alone not enough for year-long search?

A metric filter converts matching log events into CloudWatch metrics; the searchable raw events and their retention live in the CloudWatch Logs log group, which must be kept for 365 days.

Can Amazon SQS store the error messages for a full year in option C?

No. SQS message retention is capped at 14 days, so an SQS and Lambda design cannot provide a one-year archive for searching.

How to Automatically Provision Tapes in AWS Tape Gateway?

Why is a Lambda function that creates tapes on 'Not Enough Space' not the best fix?

It reacts only after a backup job has already failed and adds custom code, logs, and alarms to maintain; Tape Gateway auto-create prevents the shortage natively.

What settings does Tape Gateway auto-create require?

You specify a minimum number of virtual tapes, a barcode prefix, and a tape pool so new tapes are created and assigned before jobs run out of capacity.

How to Apply a Base Configuration to New AWS Organizations Accounts?

Why is AWS Config aggregation not enough to apply a base configuration?

AWS Config records and aggregates resource compliance data; it does not deploy or modify resources, so it cannot enforce the baseline configuration itself.

Why not use a Lambda function to deploy the CloudFormation template?

A Lambda-based deployment needs custom cross-account roles, event detection, retries, and maintenance; StackSets automatic deployments provides this natively for organization accounts.

How Do You Quickly Undo Aurora MySQL Changes After RDS Migration?

Why can't I use an Aurora snapshot restore to undo the change?

Restoring a 5 TB snapshot creates a new cluster and requires endpoint or DNS changes, so it is too slow and disruptive for frequent uninterrupted micro updates.

What is the advantage of Aurora backtrack over a DB cluster snapshot?

Backtrack rewinds the existing cluster in place to a point before the bad update, avoiding a full 5 TB restore and endpoint reconfiguration.

How Do eu-central-1 EC2 Instances Connect to a us-east-1 Database?

Why can't I reference the eu-central-1 security group in the database security group inbound rule?

Security group referencing does not work across Regions, so the database's inbound rule must use the eu-central-1 VPC or instance private CIDR instead.

Why is a VPN connection less efficient than VPC peering here?

A VPN adds tunnel and gateway management overhead, while VPC peering gives direct private routing between the two VPCs for this cross-Region database connection.

How to Meet EC2 and RDS Backup Retention with Least Administrative Effort?

Why can't Data Lifecycle Manager alone handle both EC2 and RDS backups?

Data Lifecycle Manager creates EBS snapshots for EC2 volumes, not RDS database backups. RDS automated backups also cannot enforce 11-month or 7-year retention.

Why use multiple rules in one AWS Backup plan instead of separate plans?

Each rule defines its own frequency and lifecycle, so daily, weekly, monthly, and yearly retention can be enforced independently within a single tagged backup plan.

How to Trace ECS Microservice Purchase Latency with AWS X-Ray?

Why not use CloudWatch Container Insights for ECS transaction tracing?

Container Insights reports container and cluster metrics and logs, but it does not trace one request across services or generate an X-Ray-style service dependency map.

Does Amazon VPC Flow Logs provide a service map for microservice latency?

No. VPC Flow Logs capture network flow metadata, not application transaction spans, so they cannot show per-request latency between microservices.

How Does S3 Trigger API Gateway When a New Object Is Uploaded?

Why can't S3 event notifications call an API Gateway REST API directly?

S3 only supports SNS, SQS, Lambda, and EventBridge as notification destinations. API Gateway is not on that list, so the event must be relayed by EventBridge.

Why doesn't the s3:ObjectAcl:Put event work in option A?

ObjectAcl:Put fires only when an object's ACL changes, not when a new feedback item is uploaded. Uploads generate ObjectCreated events instead.

How should CloudWatch Synthetics monitor customer routes with 95% availability?

Why can't Route 53 health checks follow customer routes like a Synthetics canary?

Route 53 health checks test endpoint reachability, not scripted multi-step user journeys. They cannot replay the same routes and actions that a CloudWatch Synthetics canary script performs.

Does SuccessPercent below 95% mean 95% of canary runs had errors?

No. SuccessPercent is the percentage of canary runs that succeeded; an alarm below 95% fires when more than 5% of runs fail, matching the fewer-than-95%-error-free requirement.

How do you auto-remediate 0.0.0.0/0 security groups across AWS Organizations?

Why is an SCP not enough to remediate existing open security groups?

An SCP can deny new 0.0.0.0/0 rules, but it does not modify existing security groups. Remediation requires AWS Config with an action such as SSM Automation or Lambda.

Can AWS Config detect open security groups across all Organizations accounts?

Yes, with a delegated administrator and an organization aggregator, AWS Config can evaluate member accounts and run remediation actions centrally.

Why Are No RDS PostgreSQL Automated Backups Being Created?

Why does STORAGE_FULL stop RDS automated backups?

When the DB instance exhausts its allocated storage, RDS cannot write the backup data and enters STORAGE_FULL, so automated backup creation is blocked until space is recovered or storage is increased.

Does RDS require Multi-AZ for automated backups?

No. Multi-AZ improves availability and failover, but single-AZ RDS instances can still have automated backups as long as retention is nonzero and the instance is healthy.

How to Enforce S3 Bucket Versioning with AWS Config?

Why can't GuardDuty detect S3 buckets with versioning disabled?

GuardDuty is a threat-detection service that analyzes activity and produces security findings, not resource configuration compliance; it does not evaluate S3 versioning settings.

Why use the AWS-ConfigureS3BucketVersioning runbook instead of a Lambda function?

The SSM Automation runbook is an AWS-managed remediation that enables versioning without custom code, while a Lambda function requires you to build and maintain the logic.

Why Are EC2 Instances in One AZ Not Receiving ALB Traffic?

Why doesn't cross-zone load balancing fix the idle third AZ?

Cross-zone load balancing is enabled by default on ALBs and only redistributes traffic among targets in the AZs enabled for the load balancer. It does not add a missing subnet or AZ to the ALB.

Is a Route 53 CNAME record better than an alias for an ALB?

No. Route 53 alias records are the recommended way to point DNS at an ALB, and changing to a CNAME does not affect which Availability Zones the load balancer uses.

How Do You Change an EC2 Instance Type from t3.large to Compute Optimized?

Can an EC2 instance type be changed while the instance is running?

No. The instance must be stopped (not terminated) before the type can be modified; the new type takes effect when you start it again.

Why doesn't enabling hibernation help change the instance type?

Hibernation only preserves RAM contents to the EBS root volume across a stop/start; the instance still must be stopped to change its type, so hibernation adds no benefit here.

How Do You Alarm on EBS Disk Utilization Above 80% in CloudWatch?

Why can't I just alarm on an EBS metric for disk utilization?

EBS publishes volume I/O metrics only; filesystem occupancy is a guest-OS value that must be collected by the CloudWatch agent and published as disk_used_percent.

Why is option D wrong when it also mentions CloudWatchAgentServerPolicy?

D restates the role setup already covered by option A and never actually describes installing the agent, so it cannot serve as one of the three required distinct steps.

Which exact metric does the CloudWatch agent report for disk usage?

disk_used_percent, reported with dimensions such as path, device, and fstype; disk_used and disk_free in option F are not agent metric names.

How to automatically replicate new S3 objects to us-west-2 with least overhead?

Does S3 Cross-Region Replication require versioning on both buckets?

Yes. Versioning must be enabled on the source bucket and on the destination bucket, otherwise S3 will not save the replication configuration.

Why is a Lambda plus EventBridge copy function not the best answer here?

It works but adds custom code, retries, IAM setup, and monitoring to maintain, which is exactly the operational overhead the question asks you to avoid.

How Do You Make CloudFormation Create an RDS DB Instance Before an EC2 Instance?

Why doesn't reordering the RDS resource above the EC2 instance in the template work?

CloudFormation resolves a dependency graph and provisions resources without dependencies in parallel; the order resources appear in the template file has no effect on creation order.

When would a DependsOn attribute not be needed between an RDS instance and an EC2 instance?

If the EC2 resource already references the DB with Ref or GetAtt (for example in UserData), CloudFormation infers an implicit dependency and still creates the database first.

How to log all S3 access and alert on delete events?

Why isn't CloudWatch Logs with an alarm the best fit for immediate S3 delete alerts?

S3 event notifications to SNS are native and near-real-time for DeleteObject, while CloudWatch alarms require additional CloudTrail data-event and metric-filter setup to observe object deletes.

Does S3 server access logging alone meet the immediate delete notification requirement?

No; server access logging records requests to the bucket, but log delivery is not a real-time push. The risk team needs S3 event notifications to SNS filtered to DeleteObject for immediate alerts.

How to Trigger a Lambda Photo Workflow from S3 with Least Overhead?

Why is S3 to EventBridge to Lambda not the least-overhead choice?

EventBridge is a supported S3 destination, but it adds bus rules and routing configuration. Direct S3-to-Lambda invocation is simpler for this single 2-minute processing workflow.

Can an S3 event notification start a Step Functions state machine directly?

No. S3 natively targets Lambda, SNS, SQS, and EventBridge, not Step Functions, so option D requires an intermediary and more setup.

How to Request an ACM Certificate for an App in Another AWS Account?

Why can't the ACM certificate be requested in the shared account?

ACM certificates are account-scoped; a certificate in the shared account cannot be attached to the development account's application resources. The shared account only supplies the Route 53 validation records.

Do the Route 53 hosted zone and ACM certificate need to be in the same account?

No. ACM DNS validation only needs a CNAME record in the public hosted zone; the zone can belong to a different account, as long as the validation record is created there.

How Does Route 53 Enable Automated Failover to a DR Region?

Why is a latency-based routing policy with EventBridge weight updates wrong for DR failover?

Latency routing sends users to the lowest-latency Region, not a standby, and changing weights through EventBridge is custom automation rather than Route 53's built-in failover behavior.

Can Route 53 Resolver DNS Firewall redirect public traffic to us-west-2 during an outage?

No. Resolver DNS Firewall filters outbound DNS queries from VPCs; it does not control answers for a public hosted zone or perform health-based failover.

How Should You Load Test a New CloudFront Distribution?

Why must CloudFront load tests use multiple geographic regions?

CloudFront serves users from many edge locations, so a single-region test measures only one path and cannot reveal global latency or data-transfer behavior.

Why is an identical DNS request wrong for CloudFront load testing?

Identical DNS requests can pin all clients to one returned edge IP, so the test measures a single IP instead of exercising CloudFront's full set of edge addresses.

How to Encrypt Cross-Region EBS Backups with Least Overhead?

Why is Encrypted=False in option B incorrect for cross-Region copies?

Setting Encrypted=False leaves the destination snapshot unencrypted; to encrypt a copy, the copy operation must specify Encrypted=True and a KMS key in the destination Region.

Why not use an AWS Lambda function instead of Amazon DLM for EBS snapshots?

A custom Lambda workflow requires maintaining code, IAM permissions, scheduling, and error handling, while DLM is a managed service built for snapshot lifecycle and cross-Region copy.

How Can a VPC Lambda Access S3 Without Public IP Addresses?

Why is a NAT gateway wrong for private Lambda-to-S3 traffic?

A NAT gateway routes traffic through a public NAT IP address, so the Lambda function would still use public IPs to reach S3 and would violate the no-public-IP requirement.

Does an S3 interface endpoint require changing the Lambda's S3 DNS name?

Yes. Interface endpoints provide endpoint-specific DNS names, so the Lambda function must use the new S3 DNS name to resolve to the private endpoint ENI.

How Do You Add Failover to a Single-AZ RDS for MySQL Instance?

Why doesn't RDS Proxy provide the required failover for this DB instance?

RDS Proxy only pools and manages connections; it needs an already highly available database behind it. Without Multi-AZ, the Single-AZ instance remains a single point of failure.

Can an Auto Scaling group make the RDS DB instance highly available?

No. Auto Scaling groups scale EC2 instances, not RDS databases. Failover for RDS comes from Multi-AZ deployments, not scaling groups.

How Do You Enforce HTTPS for a CloudFront Custom Domain on AWS?

Why is 'allow HTTP and HTTPS' wrong for a CloudFront distribution that must be encrypted?

It leaves a plaintext path open, so viewers can still reach CloudFront over HTTP. Only the Redirect HTTP to HTTPS policy guarantees every request is encrypted in transit.

Why must www.example.com be added as an alternate domain name instead of just using the ACM certificate?

CloudFront only presents a custom certificate for hostnames listed as alternate domain names; otherwise it serves the default cloudfront.net certificate and the browser shows a name mismatch.

How to automate an EC2 reboot after a failed instance health check?

Why is the EC2 recover action in option B wrong for StatusCheckFailed_Instance?

Recover is designed for StatusCheckFailed_System host failures; instance-level failures such as an OS hang usually require a reboot instead.

Why does option D fail when it uses the AMI ID as the dimension?

StatusCheckFailed_Instance is published per instance ID, so an AMI ID dimension would never match a datapoint and the alarm would never fire.

How to Rotate RDS Administrator Passwords Annually and Most Efficiently?

Does Parameter Store support native rotation for RDS credentials?

No. SecureString parameters are encrypted but not rotated natively; you must build and schedule your own Lambda rotation, which is less operationally efficient than Secrets Manager.

Why is a scheduled Lambda with an S3 bucket less efficient than Secrets Manager?

You would own the rotation code, RDS password change call, retries, and error handling, while Secrets Manager provides a managed RDS rotation function out of the box.

How to Block EC2 Launches in Unauthorized Regions Across an Organization?

Why is a Region-condition IAM policy in every account less efficient than an SCP?

It must be attached and maintained in each account, does not cover every principal such as the account root user, and needs updating for each new account. A root-level SCP is inherited automatically.

Does an SCP attached at the organization root cover future AWS accounts?

Yes. SCPs attached at the root are inherited by all OUs and member accounts, so newly created accounts are restricted without any per-account IAM work.

How Can Lambda Securely List EC2 Instances in Another Account?

Why is storing IAM user access keys in Parameter Store less secure than assuming a role?

Access keys are long-lived secrets that must be rotated and can leak; STS temporary credentials from role assumption expire automatically and are scoped to the role.

What does the aws:PrincipalOrgID condition in option D actually control?

It limits who can invoke the Lambda function to principals in the organization, but it does not grant the function permission to list EC2 instances and Principal "*" is still broad.

How Do You Resolve an On-Premises SQL Server Name from a VPC?

Why is an inbound Resolver endpoint wrong for mssql.example.com?

Inbound endpoints accept DNS queries from on-premises into the VPC; they do not forward the VPC's own queries out to the on-premises DNS server that knows mssql.example.com.

Can a system rule forward example.com to on-premises DNS?

No. System rules are AWS-managed rules for private hosted zones; forwarding example.com to on-premises DNS requires a forwarding rule used with an outbound Resolver endpoint.

How Do You Alert on Lambda Runtime Over 10 Seconds via SNS?

Why is setting the Lambda timeout to 10 seconds not a valid monitoring solution?

A timeout ends the invocation with an error instead of sending a threshold notification, so you would break processing rather than observe slowness. You also need an alarm on the Duration metric to trigger SNS.

Can a CloudWatch alarm be based on a Logs Insights query like option D suggests?

No. CloudWatch alarms evaluate metrics, so log data must first be converted with a metric filter or Contributor Insights rule. Logs Insights query results cannot serve as an alarm source.

How to Alert on Savings Plans Utilization Below 90%?

Why is a CloudWatch alarm with an SQS queue wrong for Savings Plans email alerts?

CloudWatch alarm actions publish to Amazon SNS, not SQS, and SQS does not send email; an SNS topic with an email subscription is needed.

Does AWS have a standalone Savings Plans alert feature?

No; AWS Budgets provides Savings Plans budgets with utilization thresholds, and those alerts can publish to an SNS topic for email delivery.

Why do EC2 instances return HTTP 500 when status checks are healthy?

Why don't EC2 status checks catch an instance returning HTTP 500?

EC2 status checks only verify instance and host reachability, not the application. An instance can pass them while its web server still returns 500 errors to the ALB.

Why is enabling sticky sessions on the ALB target group wrong here?

Session affinity only pins a user to one target. If that target is serving 500 errors, stickiness keeps sending the customer to the same broken instance instead of replacing it.

How Do You Cache S3 Video Files at CloudFront Edge Locations?

Why isn't a CloudFront origin group the right choice for moving videos to S3?

Origin groups only fail over between primary and secondary origins based on HTTP status codes; they do not create path-based routing or cache settings for video requests.

Does URL signing help cache video files at CloudFront edge locations?

No. Signed URLs and custom policies control who can access content; caching is determined by the cache behavior's path pattern, origin, and TTL settings.

Purging Stale CloudFront Cache After S3 Content Updates

Why do CloudFront users still see old content after I update the S3 origin?

CloudFront edge caches keep serving an object until its cache time-to-live (TTL) expires, so a change at the S3 origin is not visible immediately. The cached copies must be removed or bypassed before users see the new content.

How does a CloudFront invalidation make users get the latest content?

An invalidation removes cached objects from CloudFront edge locations before their TTL expires, so the next viewer request is fetched from the S3 origin and returns the current version.

Does enabling S3 versioning or using S3 ACLs fix stale CloudFront content?

No. Versioning keeps previous object versions in S3 for recovery, and ACLs control permissions; neither purges CloudFront's edge caches, so users would still receive the outdated cached content.

Resolving Private IPv4 Exhaustion in AWS VPCs

Can I change the CIDR block of an existing subnet?

No, AWS does not allow you to modify the CIDR block of an existing subnet. You must create a new subnet with a different CIDR range.

Why can't I just add more IPs to the existing subnet?

Subnet CIDR ranges are fixed at creation time. To get more IPs, you must associate a secondary CIDR block to the VPC and create a new subnet within that new block.

Detailed Monitoring for One-Minute EC2 Metrics and SNS Alerts

How do CloudWatch alarms send email alerts?

A CloudWatch alarm transitions to an ALARM state when a metric crosses the threshold and publishes a notification to an Amazon SNS topic. Subscribers to that topic with an email protocol receive the alert.

Proving PCI DSS Compliance with AWS Artifact

What is AWS Artifact and what PCI DSS documents does it hold?

AWS Artifact is a self-service portal for on-demand access to AWS security and compliance reports and agreements. It hosts AWS's PCI DSS Attestation of Compliance and the associated compliance matrix showing which requirements AWS operates under the shared responsibility model, plus historical versions.

Can CloudTrail or CloudWatch logs be used as PCI DSS audit evidence?

Only for controls inside your own account, such as demonstrating monitored change activity. They cannot prove AWS's infrastructure-level PCI DSS compliance, so they never substitute for the Artifact reports.

Should auditors be given access to the production AWS account?

No. Granting administrative access violates least privilege and PCI DSS Requirement 7. Provide scoped, time-limited read-only evidence or screenshots instead, obtained through your own access-provisioning process.