Skip to main content

Last updated: May 2026

Practice Exam

SOA-C03AWS Certified CloudOps Engineer - Associate

Test your knowledge with official exam-style questions

Questions25Passing720Exam time

Questions and options are shuffled each attempt

AWS Certified CloudOps Engineer – AssociatePractice Set 1: All Questions & Explanations

Full question text, answer options, and explanations for this practice set — a spoiler-free alternative is the interactive quiz above for scored, shuffled practice.

  1. . A company's operations team needs to monitor the CPU utilization of all Amazon EC2 instances across multiple AWS accounts and receive an alert when any instance exceeds 85% CPU for more than 5 minutes. Which AWS service and feature combination MOST directly achieves this?

    • A. Amazon CloudWatch with cross-account observability and a CloudWatch Alarm with an Amazon SNS notification(correct)
    • B. AWS CloudTrail with CloudTrail Insights and an AWS Lambda alerting function
    • C. AWS Config with a custom rule checking CPU utilization
    • D. Amazon Inspector with a CPU utilization assessment template

    Explanation: Amazon CloudWatch natively collects EC2 CPU utilization metrics. CloudWatch cross-account observability allows a central monitoring account to view metrics from multiple linked accounts. A CloudWatch Alarm with a 5-minute evaluation period and 85% threshold triggers an Amazon SNS notification to the operations team. AWS CloudTrail captures API calls, not performance metrics. AWS Config evaluates resource configurations, not real-time performance metrics. Amazon Inspector assesses vulnerabilities, not CPU performance.

  2. . A company's application logs are being written to Amazon CloudWatch Logs from multiple Amazon EC2 instances. The security team wants to be alerted whenever a log entry contains the text 'ERROR: Unauthorized' in the application log group. Which solution achieves this with LEAST operational overhead?

    • A. Create a CloudWatch Logs metric filter on the log group to count occurrences of 'ERROR: Unauthorized', create a CloudWatch Alarm when the count exceeds 0, and send an Amazon SNS notification(correct)
    • B. Export logs to Amazon S3 hourly and use Amazon Athena to query for the error pattern
    • C. Write an AWS Lambda function that polls CloudWatch Logs every minute and searches for the pattern
    • D. Enable Amazon Detective on the CloudWatch Logs group

    Explanation: A CloudWatch Logs metric filter continuously scans log events in real time and increments a custom metric counter when a pattern matches. A CloudWatch Alarm fires when the metric exceeds 0, triggering an SNS notification — this is the native, no-code AWS solution for log-based alerting. Exporting to S3 and querying with Athena introduces up to an hour's delay and requires ongoing query management. A Lambda polling function requires custom code and may miss events between polls. Amazon Detective investigates security incidents using existing findings from GuardDuty and Security Hub, not raw CloudWatch Logs pattern matching.

  3. . A company's operations team receives an alert that an Amazon EC2 instance's disk space is at 92%. The instance runs an application that writes large temporary files. The team wants to automatically remediate future disk space alerts by triggering a cleanup script on the affected instance without manual intervention. Which solution provides automated remediation with LEAST operational overhead?

    • A. Configure a CloudWatch Alarm on the disk space metric to trigger an Amazon SNS notification that invokes an AWS Lambda function to run the cleanup via AWS Systems Manager Run Command(correct)
    • B. Set up a cron job on each EC2 instance to check disk space every minute and run the cleanup script
    • C. Use Amazon EventBridge to schedule a Lambda function to run disk cleanup on all instances every hour
    • D. SSH into each instance manually when an alert fires and run the cleanup script

    Explanation: Chaining a CloudWatch Alarm (on custom disk metric) → Amazon SNS → AWS Lambda → AWS Systems Manager Run Command creates a fully automated event-driven remediation pipeline: when disk usage exceeds the threshold, the cleanup script runs automatically on the affected instance with no human intervention and no agents beyond the SSM Agent (pre-installed on most AMIs). A per-instance cron job requires configuration on every instance and runs regardless of need. EventBridge scheduling runs cleanup for all instances even when not needed, wasting compute. Manual SSH is the highest-overhead option.

  4. . A company wants a centralized view of operational health across all AWS services and resources in its account, including application performance metrics, infrastructure metrics, log insights, and ServiceLens traces, in a single dashboard. Which AWS service provides this unified operational visibility?

    • A. AWS CloudTrail
    • B. Amazon CloudWatch(correct)
    • C. AWS Config
    • D. AWS Systems Manager OpsCenter

    Explanation: Amazon CloudWatch is the unified observability platform for AWS, providing metrics, logs, dashboards, alarms, Container Insights, Lambda Insights, Application Insights, ServiceLens (combining traces and metrics), and Log Insights — all in a single service. AWS CloudTrail tracks API call history for auditing but is not an operations dashboard. AWS Config records resource configuration states and compliance. AWS Systems Manager OpsCenter aggregates operational issues (OpsItems) for remediation but does not provide the full metrics/logs/traces observability stack.

  5. . A company's Amazon RDS for PostgreSQL instance is experiencing intermittent slow query performance. The database administrator wants to identify the specific SQL queries consuming the most database resources without installing third-party monitoring agents. Which native AWS capability provides query-level performance insights?

    • A. Amazon CloudWatch Enhanced Monitoring for RDS
    • B. Amazon RDS Performance Insights(correct)
    • C. AWS X-Ray tracing on the RDS endpoint
    • D. Amazon CloudWatch Logs subscription filters on the RDS log group

    Explanation: Amazon RDS Performance Insights is a native RDS feature that provides a database load dashboard showing which SQL queries, wait events, and users are consuming the most resources — enabling immediate identification of slow queries without third-party agents. CloudWatch Enhanced Monitoring provides OS-level metrics (CPU, memory, disk) from inside the DB instance, not query-level data. AWS X-Ray traces application-level requests and can show time spent on RDS calls from the application side, but does not show internal database query details. CloudWatch Logs subscription filters route logs to other services but do not provide structured query performance analysis.

  6. . A company has deployed AWS Lambda functions that process financial transactions. The operations team wants to track the number of Lambda invocations, errors, throttles, and duration in a central dashboard and be alerted if the error rate exceeds 1% over a 5-minute window. Which combination of AWS services achieves this with LEAST operational overhead?

    • A. Enable Amazon CloudWatch Lambda Insights and create CloudWatch Alarms on the Errors/Invocations metric ratio with SNS notification(correct)
    • B. Export Lambda logs to Amazon S3 and build a custom dashboard using Amazon QuickSight
    • C. Use AWS X-Ray to count invocations and create X-Ray groups for error rate monitoring
    • D. Configure AWS CloudTrail to track Lambda API calls and alert on InvokeFunction errors

    Explanation: Amazon CloudWatch Lambda Insights automatically collects detailed Lambda metrics (invocations, errors, throttles, duration, cold starts) and publishes them to CloudWatch Metrics. CloudWatch Alarms can evaluate a math expression comparing the Errors metric to Invocations over 5-minute periods, triggering an SNS notification when the ratio exceeds 1%. Exporting to S3 and QuickSight adds significant latency and complexity. AWS X-Ray provides tracing but is not designed for aggregate error rate alerting. CloudTrail tracks API calls (InvokeFunction API), not the function's internal error count.

  7. . A company's Amazon EC2 Auto Scaling group serves a web application. A health check failure causes an EC2 instance to be terminated. The operations team wants to ensure a replacement instance is automatically launched when this happens. Which Auto Scaling group feature provides this automatic replacement?

    • A. Amazon EC2 Auto Scaling scheduled scaling
    • B. Amazon EC2 Auto Scaling health checks with automatic instance replacement(correct)
    • C. Amazon CloudWatch alarm-based scaling
    • D. Amazon EC2 instance recovery using CloudWatch

    Explanation: Amazon EC2 Auto Scaling performs periodic health checks (EC2 status checks or ELB health checks) and automatically terminates unhealthy instances, launching replacement instances to maintain the desired capacity. Scheduled scaling changes capacity on a time-based schedule, not in response to health failures. CloudWatch alarm-based scaling changes capacity based on metric thresholds (e.g., CPU usage), not health check status. EC2 instance recovery restarts a single specific instance on healthy hardware after a system failure, but does not provide Auto Scaling group management.

  8. . A company runs a production workload on Amazon EC2 instances and must be able to recover specific files that were deleted from an Amazon EBS volume within the past 7 days. The company needs an automated backup solution with LEAST operational overhead. Which solution BEST meets this requirement?

    • A. Configure AWS Backup with a daily backup plan for the EBS volumes, with a 7-day retention period(correct)
    • B. Write a custom script that creates daily Amazon EBS snapshots and stores them in Amazon S3
    • C. Use Amazon Data Lifecycle Manager (Amazon DLM) to create hourly EBS snapshots retained for 7 days
    • D. Enable Amazon EBS fast snapshot restore for all volumes

    Explanation: AWS Backup provides centralized, policy-driven backup management for Amazon EBS volumes (and other AWS services) with configurable retention periods and no custom code required. A 7-day retention policy meets the requirement automatically. A custom snapshot script requires developing, testing, and maintaining code — higher operational overhead. Amazon DLM also automates EBS snapshots with retention policies and is a valid approach, but AWS Backup provides broader cross-service coverage and centralized auditing. EBS Fast Snapshot Restore improves the speed of restoring from snapshots — it does not create backups.

  9. . A company's critical application runs on Amazon EC2 instances behind an Application Load Balancer in a single AWS Region. The disaster recovery plan requires the application to fail over to a second AWS Region within 10 minutes if the primary Region becomes unavailable. Which approach MOST cost-effectively achieves this RTO?

    • A. Use Amazon Route 53 health checks with failover routing policy to a pre-configured warm standby environment in the secondary Region(correct)
    • B. Run identical full-scale production environments in both Regions simultaneously and split traffic equally
    • C. Take daily Amazon Machine Image (AMI) snapshots and restore them in the secondary Region when a disaster occurs
    • D. Use AWS Elastic Disaster Recovery (AWS DRS) to continuously replicate EC2 instances to a secondary Region

    Explanation: Amazon Route 53 failover routing with health checks redirects DNS to the warm standby environment in the secondary Region within minutes of detecting a primary Region failure. A warm standby maintains scaled-down but running infrastructure that scales up rapidly on failover — achieving a 10-minute RTO at lower cost than a full active-active setup. Running full-scale environments in both Regions doubles infrastructure cost. Daily AMI snapshots require time to restore instances in the secondary Region, likely exceeding a 10-minute RTO. AWS Elastic Disaster Recovery is excellent for server replication but adds cost and complexity beyond what is needed when the infrastructure blueprint (CloudFormation) is already defined.

  10. . A company has an Amazon RDS for MySQL database with automated backups enabled and a retention period of 7 days. A developer accidentally ran a DELETE statement without a WHERE clause at 14:30 today, removing all rows from a critical table. The operations team must recover the deleted data with LEAST data loss. Which recovery approach BEST meets this requirement?

    • A. Restore the RDS automated backup from last night (midnight) to a new RDS instance
    • B. Use Amazon RDS point-in-time restore to create a new DB instance with the database state restored to 14:29 today(correct)
    • C. Re-import data from the last Amazon S3 export of the database
    • D. Use Read Replica promotion to recover the deleted data

    Explanation: Amazon RDS point-in-time restore (PITR) uses automated backups and transaction logs to restore the database to any second within the retention period — restoring to 14:29 recovers all data up to one minute before the accidental deletion. Restoring from last night's backup loses approximately 14.5 hours of data. Re-importing from an S3 export loses all data since the last export. Promoting a Read Replica creates an independent instance but the replica already received the DELETE statement from the primary and contains the same deletion.

  11. . A company wants to test the resiliency of its multi-AZ application by intentionally terminating random Amazon EC2 instances to verify the Auto Scaling group replaces them correctly and the application remains available. The operations team wants to run these experiments in a controlled and repeatable way. Which AWS service MOST directly supports this chaos engineering use case?

    • A. AWS Fault Injection Service (AWS FIS)(correct)
    • B. Amazon CloudWatch Synthetics
    • C. AWS Trusted Advisor
    • D. Amazon Inspector

    Explanation: AWS Fault Injection Service (AWS FIS) is AWS's managed chaos engineering service that allows teams to run controlled fault injection experiments — including terminating EC2 instances, introducing latency, and stopping processes — on AWS resources using predefined experiment templates with stop conditions to maintain safety. Amazon CloudWatch Synthetics creates canary scripts that monitor application endpoints from the outside but does not inject faults. AWS Trusted Advisor provides best practice recommendations. Amazon Inspector assesses vulnerability in compute workloads.

  12. . A company needs to deploy a standardized Amazon VPC network configuration — including subnets, route tables, internet gateways, and NAT Gateways — consistently across 20 AWS accounts. The team wants to avoid manual console clicks and ensure all accounts have identical configurations. Which approach achieves this with LEAST operational overhead?

    • A. Create an AWS CloudFormation template for the VPC and deploy it using AWS CloudFormation StackSets across all accounts(correct)
    • B. Write a detailed runbook and have engineers manually configure each account's VPC through the AWS Management Console
    • C. Share VPC configurations from a central account using Amazon VPC sharing
    • D. Use AWS Config to create the VPC resources across all accounts

    Explanation: AWS CloudFormation StackSets allows a single CloudFormation template to be deployed simultaneously to multiple AWS accounts and Regions from a central administrator account, ensuring identical, repeatable, and version-controlled VPC configurations with minimal manual effort. Manual console configuration is error-prone and does not scale to 20 accounts. Amazon VPC sharing allows sharing subnets within an AWS Organization but does not deploy identical VPC configurations to separate accounts. AWS Config is a configuration compliance and assessment service, not an infrastructure provisioning tool.

  13. . A company uses AWS Systems Manager to manage its Amazon EC2 fleet. The operations team needs to run a patch compliance scan on all Linux instances in the production environment and apply approved patches during a maintenance window on Sundays at 2 AM, with a limit of 20% of instances being patched simultaneously. Which AWS Systems Manager capability MOST directly meets this requirement?

    • A. AWS Systems Manager Run Command with a custom shell script
    • B. AWS Systems Manager Patch Manager with a Maintenance Window and a patching rate of 20%(correct)
    • C. AWS Systems Manager State Manager with a patch association
    • D. AWS Systems Manager Session Manager with a scheduled session

    Explanation: AWS Systems Manager Patch Manager defines patch baselines (which patches are approved) and integrates with Maintenance Windows to schedule patching at specific times (Sunday 2 AM) with configurable concurrency (20% of targets) to limit impact on production availability. Run Command can execute scripts on EC2 instances but requires custom script development for patch management and does not natively manage patch baselines or concurrency during maintenance windows. State Manager maintains desired state configurations continuously, not on a specific one-time schedule. Session Manager provides interactive shell access but is not a patching service.

  14. . A company's operations team manages 500 Amazon EC2 instances and needs to run an ad hoc Python script on all instances tagged Environment=Production simultaneously to collect custom metrics. The instances do not have public IP addresses. Which AWS service enables running this script without SSH access or bastion hosts?

    • A. AWS Systems Manager Run Command targeting instances by tag(correct)
    • B. AWS OpsWorks with a Chef recipe
    • C. Amazon EC2 User Data script via instance metadata
    • D. AWS Lambda with VPC access to run the script remotely

    Explanation: AWS Systems Manager Run Command allows executing scripts on managed EC2 instances using the pre-installed SSM Agent, targeting instances by tags (Environment=Production), with no SSH or public IP required. The SSM Agent communicates with Systems Manager via AWS endpoints. AWS OpsWorks uses Chef/Puppet for configuration management but requires cookbook development and ongoing OpsWorks layer management. EC2 User Data runs only at instance launch, not on-demand for existing running instances. Lambda running scripts remotely would require network access to each instance and cannot execute native OS commands without SSH.

  15. . A company's infrastructure team maintains AWS CloudFormation templates for its production environment. During a stack update, a change to an Auto Scaling group launch template causes all existing EC2 instances to be replaced simultaneously, briefly interrupting service. The team wants to prevent disruptive simultaneous replacements during future stack updates. Which CloudFormation feature controls the update behavior of the Auto Scaling group?

    • A. CloudFormation DependsOn attribute on the Auto Scaling group
    • B. CloudFormation UpdatePolicy with AutoScalingRollingUpdate to replace instances in batches(correct)
    • C. CloudFormation DeletionPolicy set to Retain on the Auto Scaling group
    • D. CloudFormation CreationPolicy with a WaitCondition

    Explanation: The CloudFormation UpdatePolicy attribute with the AutoScalingRollingUpdate configuration controls how instances in an Auto Scaling group are replaced during a stack update — specifying maximum batch size (e.g., 1 at a time) and minimum instances in service to prevent simultaneous replacement and maintain availability. DependsOn controls resource creation ordering, not update behavior. DeletionPolicy Retain preserves the Auto Scaling group on stack deletion, not during updates. CreationPolicy with WaitCondition waits for signals during initial resource creation, not subsequent update operations.

  16. . A company wants to enforce that every Amazon EC2 instance launched in any account within its AWS Organization must use an approved Amazon Machine Image (AMI) from an internal catalog. If an unapproved AMI is detected, the instance should be automatically terminated. Which AWS solution implements this guardrail with LEAST custom code?

    • A. Use AWS Config with the approved-amis-by-id managed rule and AWS Config auto-remediation using AWS Systems Manager Automation to terminate non-compliant instances(correct)
    • B. Write an AWS Lambda function triggered by Amazon EventBridge to detect EC2 RunInstances API calls with unapproved AMI IDs and terminate the instances
    • C. Use AWS Organizations SCPs to deny the ec2:RunInstances action for all AMIs not in the approved list
    • D. Tag all approved AMIs and use AWS Config to report non-compliant instances quarterly

    Explanation: The AWS Config managed rule approved-amis-by-id continuously evaluates EC2 instances against an approved AMI list. When a non-compliant instance is detected, Config auto-remediation triggers an AWS Systems Manager Automation document (such as AWS-TerminateEC2Instance) to terminate it — requiring no custom code. A Lambda function with EventBridge achieves the same but requires writing and maintaining code. SCPs on ec2:RunInstances would be the most proactive control but the IAM condition key aws:RequestedRegion must be used carefully, and managing a full AMI ID allowlist in SCPs is complex and brittle. Quarterly Config reporting is a detective-only control without automatic remediation.

  17. . A company uses AWS CloudFormation to manage its infrastructure. After a failed stack update, the CloudFormation stack is in the UPDATE_ROLLBACK_FAILED state and cannot be deleted or updated. The operations team must return the stack to a stable state. Which action resolves this situation?

    • A. Delete the stack and recreate it from scratch
    • B. Use the ContinueUpdateRollback API call (or console action) to retry the rollback, skipping the resources causing the failure if necessary(correct)
    • C. Manually correct the failed resources through the AWS Management Console and wait for CloudFormation to detect the change
    • D. Enable AWS CloudFormation drift detection to identify and fix the failed resources

    Explanation: The ContinueUpdateRollback API call is the AWS-supported method for resolving the UPDATE_ROLLBACK_FAILED state. It retries the rollback for the resources that failed. If a specific resource continues to fail, the team can specify it in the ResourcesToSkip parameter to bypass it and complete the rollback to the last stable state. Deleting the stack removes all stack-managed resources unnecessarily. Manually correcting resources via the console may help if done before retrying the rollback, but alone will not unstick the stack. Drift detection identifies configuration differences but does not resolve the UPDATE_ROLLBACK_FAILED state.

  18. . A company must demonstrate compliance with its requirement that no Amazon S3 buckets in its AWS account are publicly accessible. The operations team needs a continuous, automated check that alerts them whenever a public bucket is created. Which AWS service MOST directly provides this continuous compliance monitoring?

    • A. Amazon Macie
    • B. AWS Config with the s3-bucket-public-read-prohibited managed rule(correct)
    • C. AWS CloudTrail with a filter for PutBucketAcl API calls
    • D. Amazon GuardDuty

    Explanation: The AWS Config managed rule s3-bucket-public-read-prohibited continuously evaluates S3 bucket ACLs and bucket policies, flagging any bucket that allows public read access as non-compliant and generating a notification via Amazon SNS or EventBridge. Amazon Macie discovers and classifies sensitive data in S3 — it does not check bucket public access configuration. AWS CloudTrail records PutBucketAcl API calls but requires a custom EventBridge rule or CloudWatch Logs metric filter to evaluate whether the resulting ACL is public. Amazon GuardDuty detects threats and malicious activity, not bucket configuration compliance.

  19. . A company's security team wants to ensure that all Amazon EC2 instances in its production environment have the SSM Agent installed and are managed by AWS Systems Manager. Any instance not registered with Systems Manager within 30 minutes of launch should trigger an alert. Which approach provides this detection?

    • A. Use AWS Config with the ec2-instance-managed-by-systems-manager managed rule to detect non-compliant instances and send an SNS alert(correct)
    • B. Schedule a daily AWS Lambda function to list EC2 instances and cross-reference the Systems Manager managed instance list
    • C. Require engineers to manually verify SSM Agent installation after every instance launch
    • D. Use Amazon Inspector to check for missing SSM Agent software on instances

    Explanation: The AWS Config managed rule ec2-instance-managed-by-systems-manager checks that all EC2 instances are registered as managed nodes in AWS Systems Manager. A non-compliant result triggers a Config notification via Amazon SNS or EventBridge, enabling alerting within minutes of launch. A daily Lambda check introduces up to 24 hours of detection delay — far beyond the 30-minute requirement. Manual verification is the highest operational overhead and most error-prone. Amazon Inspector assesses vulnerability of running instances but does not check SSM Agent presence or Systems Manager registration status.

  20. . A company's security team receives a finding from Amazon GuardDuty indicating that an Amazon EC2 instance in the production VPC is communicating with a known malicious IP address. The operations team must isolate the instance immediately to stop the attack while preserving forensic evidence. Which sequence of actions MOST effectively achieves this?

    • A. Terminate the EC2 instance immediately to stop the malicious communication
    • B. Remove the instance from its security groups and attach a forensic security group that denies all inbound and outbound traffic, then take an EBS snapshot of the instance for forensic analysis(correct)
    • C. Reboot the instance to interrupt the malicious session and run AWS Inspector
    • D. Revoke the instance's IAM role permissions to block further AWS API calls

    Explanation: Replacing the instance's security groups with a quarantine security group (no inbound/outbound rules) isolates the instance at the network layer without destroying evidence. Taking an EBS snapshot immediately preserves disk state and memory artifacts for forensic investigation. Terminating the instance destroys evidence. Rebooting interrupts the session but the instance returns to the same compromised state. Revoking IAM permissions prevents AWS API abuse but does not stop network-level malicious communication to external IPs.

  21. . A company must ensure that all IAM users in its AWS account have multi-factor authentication (MFA) enabled. The security team wants a continuous automated check and wants to be notified within minutes if a new IAM user is created without MFA. Which solution achieves this?

    • A. Use AWS Config with the iam-user-mfa-enabled managed rule, configured to send SNS notifications on non-compliance(correct)
    • B. Schedule a weekly IAM Credential Report review and manually check for users without MFA
    • C. Use Amazon GuardDuty to detect IAM users without MFA
    • D. Enable AWS Security Hub and review the findings dashboard daily

    Explanation: The AWS Config managed rule iam-user-mfa-enabled continuously evaluates all IAM users and flags any user without MFA as non-compliant. Config triggers near-real-time notifications via Amazon SNS or EventBridge when a user is found non-compliant — including newly created users. A weekly credential report review introduces up to 7 days of delay. Amazon GuardDuty detects security threats and anomalous behavior, not IAM configuration compliance. AWS Security Hub aggregates findings but relies on Config or other services to generate the IAM MFA check — and daily dashboard review is reactive, not automated notification within minutes.

  22. . A company has deployed an Application Load Balancer in front of its Amazon EC2 web servers. The operations team notices that some user requests are being routed to different instances between requests, breaking session-based authentication. The team wants requests from the same user to always be routed to the same instance. Which Application Load Balancer feature resolves this issue?

    • A. Enable sticky sessions (session affinity) on the ALB target group(correct)
    • B. Switch from an Application Load Balancer to a Network Load Balancer
    • C. Enable cross-zone load balancing on the ALB
    • D. Configure the ALB to use weighted target groups

    Explanation: Application Load Balancer sticky sessions (using duration-based or application-based cookies) bind a user's session to a specific target instance, ensuring subsequent requests from that user are routed to the same instance. Network Load Balancers operate at Layer 4 and also support persistence by client IP, but switching the load balancer type is unnecessary when the ALB already provides sticky sessions. Cross-zone load balancing distributes requests evenly across instances in all AZs — it does not bind sessions to specific instances. Weighted target groups route proportional traffic to different target groups for A/B testing, not for session affinity.

  23. . A company runs a web application on Amazon EC2 instances in a private subnet. The application must be accessible from the internet via HTTPS on port 443. The operations team needs to configure the Amazon VPC components correctly. Which combination of components is required to allow inbound HTTPS traffic to reach the EC2 instances?

    • A. An internet gateway attached to the VPC, a public subnet with a route to the internet gateway, an Application Load Balancer in the public subnet, and security groups allowing port 443 inbound on the ALB(correct)
    • B. A NAT Gateway in the private subnet and a route table directing traffic to the NAT Gateway
    • C. An internet gateway and a direct route from the private subnet to the internet gateway
    • D. AWS Direct Connect from the on-premises network to the private subnet

    Explanation: To allow internet users to reach EC2 instances in a private subnet: an internet gateway enables public internet connectivity to the VPC, a public subnet with a route to the IGW hosts the Application Load Balancer, the ALB receives HTTPS traffic on port 443 from the internet and forwards it to the private subnet EC2 instances, with security groups configured appropriately. A NAT Gateway enables outbound internet access from private subnets — not inbound access from the internet. Private subnets cannot have direct routes to an internet gateway by definition. AWS Direct Connect connects on-premises to AWS, not internet users to private subnets.

  24. . A company operates multiple Amazon VPCs across three AWS Regions and needs all VPCs to communicate with each other and with an on-premises data center through a single managed hub. As the number of VPCs grows, managing individual VPC peering connections is becoming unmanageable. Which AWS service simplifies this network architecture?

    • A. Amazon VPC peering with a full mesh of peering connections between all VPCs
    • B. AWS Transit Gateway with inter-Region peering(correct)
    • C. AWS PrivateLink endpoints between all VPCs
    • D. AWS Direct Connect with a single virtual private gateway per VPC

    Explanation: AWS Transit Gateway acts as a cloud router hub that connects multiple VPCs and on-premises networks in a star topology, eliminating the O(n²) full-mesh peering complexity. Inter-Region peering between Transit Gateways extends this connectivity across multiple AWS Regions. VPC peering creates point-to-point connections that do not scale — n VPCs require n(n-1)/2 peering connections with no transitive routing. AWS PrivateLink creates private service endpoints between VPCs but does not provide general network routing between all VPCs. Direct Connect with per-VPC virtual private gateways requires a separate VGW attachment per VPC and still requires peering between VPCs.

  25. . A company's web application is experiencing intermittent connectivity issues. Amazon VPC Flow Logs show that TCP connections to the application's Amazon EC2 instances on port 8080 are being REJECTED. The instances are in a private subnet behind an Application Load Balancer. The team has verified that the ALB security group allows inbound traffic on port 443. Which is the MOST likely cause of the REJECT entries?

    • A. The internet gateway is missing a route in the public subnet route table
    • B. The EC2 instances' security group does not allow inbound traffic on port 8080 from the ALB security group(correct)
    • C. The Application Load Balancer is not configured for HTTPS termination
    • D. Amazon CloudFront is blocking requests to the ALB

    Explanation: VPC Flow Log REJECT entries indicate that a security group or network ACL is denying the traffic. Since the flow logs show traffic reaching the EC2 instances' ENIs on port 8080 and being rejected, the most likely cause is that the EC2 instance security group does not have an inbound rule allowing port 8080 from the ALB's security group. Security group rules are stateful — if no rule matches, traffic is implicitly denied (REJECT). A missing internet gateway route would prevent traffic from reaching the ALB, not the instances. ALB HTTPS termination is an ALB configuration issue and would not cause flow log REJECTs on the instance. CloudFront would show connection errors at the edge, not flow log REJECTs in the VPC.