AWS Certified CloudOps Engineer - Associate SOA-C03 Cheatsheet
AWS Certified CloudOps Engineer - Associate
Download free PDFMonitoring, Logging, Analysis, Remediation, and Performance Optimization (22%)
Metrics and the CloudWatch agent
- **EC2 basic monitoring** supplies most instance metrics every five minutes; **detailed monitoring** supplies one-minute data. Select a collection interval that can detect the duration of the problem.
- **Memory utilization**, filesystem space and process metrics require guest collection. Configure the **CloudWatch agent**, an instance role and network access; detailed monitoring alone does not expose guest memory or disk usage.
- Use **mem_used_percent** and **disk_used_percent** for percentage thresholds. EBS volume metrics describe storage I/O, not how full the guest filesystem is. Match metric dimensions to the intended instance, device and mount.
- Manage agent configuration centrally through **Systems Manager**. Use **append-config** to add collection such as Windows DHCP logs to a baseline; target only the tagged instances that need the extra configuration.
- The agent's **procstat** plugin collects selected process metrics. **ENA** metrics such as **conntrack_allowance_available** and **conntrack_allowance_exceeded** expose connection-tracking pressure on supported instances when configured for collection.
Alarms and automated response
- A **CloudWatch alarm** evaluates a metric's statistic, period, threshold and evaluation windows. **M out of N** datapoints and missing-data settings control sensitivity; choose **Sum** for event counts and an appropriate latency statistic for delays.
- Send alarm notifications through **SNS** and confirm email subscriptions. Supported alarm actions include **EC2 actions**, scaling and **Lambda** invocation; grant the destination permissions required for the action.
- **StatusCheckFailed_Instance** identifies guest-level problems; reboot can help some failures. **StatusCheckFailed_System** indicates underlying host trouble; supported EC2 recovery moves the instance to healthy hardware. Investigate recurring failures rather than repeatedly masking them.
- Use **HTTPCode_Target_5XX_Count** for errors returned by ALB targets; load-balancer-generated errors have separate metrics. Lambda **Duration** is measured in milliseconds: a ten-second threshold is **10,000 ms**.
- A **metric filter** plus alarm detects repeated exceptions, such as more than five matches in ten minutes. Use **EventBridge** to route state changes into a Systems Manager Automation runbook for a multistep response.
Choose the right log source
- **CloudWatch Logs** centralizes guest, application and supported service logs. Forward EC2 files with the agent; configure **RDS log exports** for supported engine logs. Set retention explicitly when a year of searchable history is required.
- **Logs Insights** queries existing events across selected log groups. Use **filter** to narrow errors and **stats count(*) by errorType** to group them. A **metric filter** creates a metric from newly ingested matching events; it does not backfill history.
- A **subscription filter** streams matching logs to a supported processing destination. It serves a different purpose from a metric filter that counts events for alarms.
- **ALB and CloudFront access logs** contain HTTP request details and status codes. **VPC Flow Logs** describe network flows and ACCEPT/REJECT decisions; they do not contain HTTP payloads or status codes.
- For flow logs missing from CloudWatch Logs, verify the delivery role's trust and permissions to create or use log groups and streams and publish events. Also check the destination, resource scope and delivery status.
Observe the customer experience
- **Synthetics canaries** test endpoints or scripted customer journeys on a schedule. Alarm on **SuccessPercent** for availability objectives. A basic heartbeat checks reachability; a journey script also validates important application actions.
- A private-VPC canary still needs access to its target, telemetry destinations and S3 artifacts. Provide NAT or appropriate service endpoints, working DNS, endpoint policies and execution-role permissions.
- **Application Signals** supports application health, service dependencies and **SLIs/SLOs**. Track latency, traffic, errors and saturation. **RUM** measures actual browser sessions; canaries provide controlled synthetic tests.
- **Distributed traces** follow a request across services. Instrument supported workloads with **OpenTelemetry/X-Ray** and propagate trace context; an ECS collector or sidecar exports traces for dependency and latency analysis.
- Use **cross-account observability** with source and monitoring accounts to share telemetry within a Region. The **cross-account cross-Region console** supports dashboards with metrics and alarm states across Regions; configure the appropriate sharing permissions.
Find the resource bottleneck
- Correlate **CPU**, memory, IOPS, throughput, latency and connection counts before changing capacity. **Compute Optimizer** recommendations depend on supported resources and sufficient metric history; missing results need an eligibility and data check.
- For **EBS**, compare provisioned IOPS and throughput with actual use and the EC2 instance's storage bandwidth limits. Increasing a volume's performance cannot overcome a lower instance limit.
- Use **CloudWatch Database Insights** to analyze database load, SQL waits and expensive statements (**Performance Insights** concepts). Query tuning and suitable indexes can reduce CPU and I/O pressure before resizing.
- **RDS Proxy** pools database connections and helps absorb connection surges. **Read replicas** offload eligible read traffic to separate endpoints; they do not remove write bottlenecks or automatically reroute application queries.
- A **cluster placement group** favors low latency and high throughput within one Availability Zone. **Spread** separates instances across hardware; **partition** separates groups of instances. Choose placement for the workload's failure and performance needs.
Utilization and cost controls
- Activate **user-defined cost allocation tags** in Billing before using them to group project costs in Cost Explorer or reports. Applying a resource tag and activating it for cost allocation are separate steps; allow processing time.
- **AWS Budgets** supports cost, usage and Savings Plans utilization or coverage tracking. Utilization measures how much commitment was used; coverage measures how much eligible usage received the benefit. Configure email or SNS alerts for the required threshold.
- **S3 Storage Lens** exposes storage patterns including incomplete multipart uploads. An **AbortIncompleteMultipartUpload** lifecycle rule removes abandoned parts after the chosen age; ordinary object expiration does not replace this rule.
- **S3 Bucket Keys** reduce KMS request traffic for SSE-KMS objects. Existing objects keep their encryption settings unless rewritten. **Trusted Advisor** check availability depends on the support offering; monitor supported quota usage with CloudWatch and SNS.
Reliability and Business Continuity (22%)
Scale capacity before demand wins
- An **Auto Scaling group** operates within one Region and can span Availability Zones. Configure private subnets in multiple zones and enough healthy capacity to survive a zone loss.
- **Target tracking** maintains a utilization target. **Scheduled scaling** prepares for known daily peaks; combine it with reactive scaling for unexpected demand. Minimum, desired and maximum capacity constrain the resulting fleet.
- A **warm pool** keeps initialized instances ready for scale-out. **Lifecycle hooks** hold instances while initialization or cleanup completes; send heartbeats and complete the hook. Account for instance warmup when evaluating scaling.
- **Horizontal scaling** adds instances behind a load balancer. Changing an EBS-backed EC2 instance type generally requires stop, change and start; consider compatibility and interruption before vertical scaling.
- **Lambda provisioned concurrency** preinitializes execution environments for predictable bursts. **Reserved concurrency** reserves and caps concurrency but does not prewarm environments. Schedule provisioned capacity before a known demand spike.
- Diversify **Spot** capacity across suitable instance types and Availability Zones through a mixed-instances policy or fleet. Use interruption-tolerant processing and an appropriate On-Demand baseline when capacity availability matters.
Healthy targets and stable sessions
- **ALB health checks** test the application path, port and response matcher. Enable **ELB health checks on the Auto Scaling group** when unhealthy applications must be replaced; EC2 status checks alone can report a crashed application as healthy.
- Ensure the load balancer enables every required **Availability Zone/subnet**, and register targets in the correct group. Check target health, security rules and cross-zone settings when healthy instances receive no traffic.
- **Round robin** distributes requests across targets; **least outstanding requests** favors targets with fewer active requests. **Weighted random** has compatibility limits, including lack of sticky-session support.
- **Target-group stickiness** maintains affinity to an instance. **Target-group-level stickiness on a weighted listener rule** maintains selection of a group. Forward required cookies through CloudFront, and avoid caching personalized responses across users.
- **Slow start** gradually increases traffic to newly healthy targets under supported algorithms. **Deregistration delay** drains in-flight requests during removal. Neither setting replaces an application readiness check or shared session storage.
Database and cache resilience
- An **RDS Multi-AZ DB instance deployment** supplies synchronous standby replication and managed failover. Its standby does not serve reads. A **Multi-AZ DB cluster** has a different topology that supports reader instances.
- **Read replicas** generally replicate asynchronously and can lag. Promotion is a separate action from standby failover. Test client retries, DNS caching and reconnection during a database failover.
- For **ElastiCache Redis OSS**, replicas across zones with Multi-AZ automatic failover reduce recovery time. Backups preserve recovery history but usually restore more slowly than promoting an existing replica.
- A **Global Datastore** asynchronously replicates supported Redis OSS data from a primary Region to secondary Regions. Plan for replication lag and failover; cross-Region caching does not promise simultaneous identical reads everywhere.
Recovery objectives and restore choices
- **RTO** is acceptable recovery time; **RPO** is acceptable data loss measured in time. Test actual recovery against both. Availability, retained history and regional disaster recovery solve different failure scenarios.
- **Backup and restore**, **pilot light**, **warm standby** and **active-active** trade running cost against recovery work. An active-active design alone does not guarantee zero data loss; replication and write-consistency semantics determine the RPO.
- **RDS/Aurora point-in-time recovery** restores a new database or cluster to a recoverable timestamp. Validate the result, security settings and application endpoint before cutover; it does not rewind the existing production cluster in place.
- **Aurora MySQL Backtrack** rewinds a supported cluster in place within its available backtrack window. It must be enabled for the cluster and is distinct from backups; it does not apply to Aurora PostgreSQL.
- Rewinding a database affects all changes after the chosen time, including valid writes. Coordinate writers, test consistency and keep independent backups. Monitor backup success, free storage and recovery windows rather than assuming a configured schedule succeeded.
Backup plans and snapshot mechanics
- **AWS Backup** centralizes supported EC2, EBS, RDS and other resource protection. Use tagged resource assignments and multiple schedule/retention rules for daily, weekly, monthly and yearly recovery points.
- **EBS snapshots** are incremental after the initial snapshot: subsequent snapshots store changed blocks. Each recovery point can reconstruct its volume; deleting one snapshot removes only blocks no remaining snapshot needs.
- **Data Lifecycle Manager** automates supported EBS snapshot and AMI lifecycles, including eligible cross-Region copies. Encrypt destination snapshot copies with an appropriate regional **KMS key**, including copies of unencrypted source snapshots.
- Test restoration into an isolated environment. An **EC2 recovery point** can restore a new instance with required IAM, network and encryption settings; successful backup creation alone does not establish a working application recovery.
- RDS automated backup retention also supports **PITR** and is required for features such as read replicas. Monitor storage-full and other failure states that can prevent backups; do not disable backups without assessing dependent features.
Protect versions and replicate objects
- **S3 Versioning** retains distinct object versions. A normal delete creates a delete marker; permanently deleting a version needs its version ID and permission. Allow propagation when enabling versioning before depending on it operationally.
- **S3 Object Lock** protects versions for a retention period or legal hold. **Compliance mode** prevents shortening retention or deleting protected versions, including by root. **Governance mode** permits authorized bypass.
- **Cross-Region Replication** requires versioning on source and destination, a replication role and destination authorization. For SSE-KMS objects, configure the replication rule and source-decrypt/destination-encrypt permissions.
- **Live replication** handles eligible new objects. Use **S3 Batch Replication** for existing objects and eligible retries. **Replication Time Control** addresses a replication-time objective; lifecycle rules do not copy objects to another Region.
- For cross-account access, check destination **Object Ownership**, bucket policy and KMS policy. Bucket owner enforced ownership or explicit replication ownership override can prevent ownership mismatches; replication success alone does not authorize readers.
Shared files and hybrid backup
- **FSx for Windows File Server** supplies SMB shares, Windows ACLs and directory integration. Choose **Multi-AZ** for automatic failover across zones and connect by the file system's DNS name.
- **EFS** provides shared NFS storage for compatible clients. **EBS** supplies block storage; Multi-Attach does not turn a block device into a managed SMB share or provide filesystem-level coordination.
- **Storage Gateway Tape Gateway** integrates with compatible tape-backup software. Enable **tape auto-create** with a minimum available-tape count and suitable tape pool to avoid manual replenishment. Check local gateway capacity separately.
Deployment, Provisioning, and Automation (22%)
CloudFormation dependencies and failures
- A **CloudFormation template** declares resources and their supported properties. **Parameters** and **Outputs** are optional. Read stack events and the first resource failure; do not assume every returned attribute is a writable property.
- **Ref** and **GetAtt** create implicit dependencies. Use **DependsOn** for an additional ordering requirement, such as creating a database before launching a server. Resource order in the file does not control creation order.
- Use **CreationPolicy/resource signals** when stack success must wait for software initialization. A resource being created does not necessarily mean the application inside it is ready.
- Preserve successful resources during failed creation with **OnFailure=DO_NOTHING** or the applicable disable-rollback setting. Inspect the failed stack and fix the cause; ordinary rollback can remove evidence.
- For another Region, copy or select a regional **AMI**, update mappings or parameters, and verify service availability and permissions. AMI IDs and many resource identifiers are regional; an Auto Scaling group does not span Regions.
Govern the infrastructure lifecycle
- **DeletionPolicy: Retain** preserves a resource when its stack is deleted or the resource is removed from the template. **Snapshot** works only for supported resource types. Check attached volume lifecycle settings when protecting EC2 data.
- **UpdateReplacePolicy** controls the old physical resource after replacement. **Termination protection** blocks stack deletion; it is a different control from retaining selected resources while deleting the stack.
- **Change sets** preview proposed stack changes. **Drift detection** compares supported live properties with their template values. For immediate policy-change alerts, match relevant **CloudTrail API events** in EventBridge instead of relying solely on periodic drift checks.
- **StackSets** deploy a common template across accounts and Regions. With Organizations service-managed permissions, automatic deployment can apply baselines to new accounts in targeted OUs. Plan delegated administration and removal/retention behavior.
- **Service Catalog** offers approved self-service products with preset policies and tags. Separate products for confidential and nonconfidential storage can apply classification controls consistently at provisioning time.
Systems Manager fleet automation
- A managed EC2 node needs a running **SSM Agent**, instance permissions such as **AmazonSSMManagedInstanceCore**, and reachable service endpoints. An installed agent alone does not make the instance manageable.
- **Run Command** executes commands across tagged nodes. Set **max concurrency** to limit simultaneous downloads or changes and **max errors** to stop a damaging rollout. Lambda concurrency does not control the number of nodes executing one command.
- **Distributor** packages software; **State Manager associations** install it and maintain desired state on matching existing and newly managed instances. Use **AWS-ConfigureAWSPackage** for supported package installation and updates.
- **Patch Manager** uses baselines to approve patches and scans to assess compliance. Schedule installation through patch policies or maintenance windows; target tags and handle each relevant account and Region.
- **Inventory** records collected software/configuration data; **Compliance** reports patch and association results. Check collection time and offline nodes before treating reports as current. Use managed **SSM Agent auto-update** to maintain the agent itself.
- **Automation runbooks** coordinate operational API steps. **Maintenance windows** schedule disruptive tasks, with concurrency controls for rolling restarts. EventBridge can start a runbook automatically from monitoring or security events.
Build images and release safely
- **EC2 Image Builder** automates image build, test and distribution. Put dependencies in versioned components and recipes; integrate supported security scanning into the pipeline rather than manually rebuilding every instance.
- To change an image recipe's base **AMI**, create a new recipe version and update the pipeline. Publish the resulting regional AMI IDs into launch templates or deployment parameters, then roll out the new image.
- **AMI sharing** grants launch access but does not by itself authorize use of encrypted EBS snapshots. Share the required customer managed KMS key permissions and use the correct copied AMI ID in the destination account or Region.
- **Blue/green deployment** uses separate old and new environments, including in supported **CodeDeploy** workflows. Shift traffic through supported controls after validation and retain the old fleet for rollback. **Rolling updates** replace instances in batches and require spare healthy capacity.
- Treat an **AMI ID** as an identifier scoped to its account and Region. Image copies and restore workflows can produce new identifiers; update dependent templates rather than assuming the original ID will be preserved.
Event-driven operations
- **EventBridge rules** match event structure and route to targets. Match nested fields at their actual path and preserve JSON types. **anything-but** excludes values; numeric filters compare numbers. Test patterns against representative events.
- A **custom event bus** separates application events. An **archive** retains matching events; replay resubmits a selected time range to its source bus. Use archive filtering or downstream rules to limit event types and make consumers idempotent.
- **Cross-account event delivery** needs sender IAM authorization and a receiving event-bus resource policy. A role allowing **PutEvents** does not replace the destination's permission to accept it.
- **EventBridge Scheduler** or scheduled rules automate recurring supported targets such as SNS. Use an event rule for EC2 launch or root sign-in notifications; use **SNS**, with a confirmed subscription, for email delivery.
- **S3 Event Notifications** can invoke Lambda or notify supported SNS/SQS destinations. Filter object-created events by prefix/suffix, such as **.txt**. Lambda's execution role authorizes its work; the function's resource policy permits S3 invocation.
- A notification update validates its destinations: stale deleted targets or missing destination policies can block configuration. Enable S3 delivery to **EventBridge** for broader target routing, including API Gateway integrations and SQS FIFO.
- S3 event delivery can be duplicated or arrive out of order. **FIFO queues** order messages within a message group after enqueueing; they cannot repair source-event order. Use idempotency and object version or sequencer checks when processing updates.
Security and Compliance (16%)
Least privilege and temporary access
- Attach an **IAM role through an instance profile** to EC2 and an **execution role** to Lambda. SDK credential providers obtain temporary credentials; avoid embedded access keys and grant only required actions on required resources.
- For an SQS worker, separate **SendMessage**, **ReceiveMessage** and **DeleteMessage** permissions according to its job. Include any additional operations the client actually needs; a service-wide wildcard is broader than necessary.
- **Cross-account AssumeRole** requires an accepting role trust policy and caller permission to assume that role, plus the role's service permissions. Lambda code calls STS and uses the returned temporary credentials for the target account.
- For external workloads, use supported **federation** or workload identity to obtain temporary credentials. Merely calling AssumeRole with a permanent access key still leaves a long-lived bootstrap credential to manage.
- A **customer managed policy** is reusable and versioned; attach it to an **IAM group** for multiple users. An **inline policy** belongs to one identity. AWS managed policies are maintained by AWS.
- An **explicit deny** overrides an allow. Evaluate identity and resource policies, SCPs, permission boundaries, session policies and KMS policies when troubleshooting access. A boundary limits permissions; it does not grant them.
Organization guardrails and tags
- **Service control policies** set permission ceilings for member accounts, including their root users. Attach a policy to the intended **OU** to limit its reach. SCPs do not grant permissions and do not constrain the management account or service-linked roles.
- Use deny statements and supported conditions to restrict services or **aws:RequestedRegion**. Preserve the necessary allow path through the organization hierarchy; replacing an allow policy with only a deny can unintentionally block other actions.
- Use **aws:RequestTag** and **aws:TagKeys** conditions on supported creation actions to require tags and permitted values. Cover both missing and invalid values; account for EC2's multiple resource types and tag-on-create authorization.
- **Tag policies** standardize supported tag keys, capitalization and values. They do not universally require every resource to have a tag. Combine preventive access policies with **AWS Config** checks for existing untagged resources.
- **Control Tower** helps establish governed accounts and controls. **StackSets** provisions baseline resources; **Config aggregators** centralize recorded inventory and compliance. These tools complement SCPs rather than turning detection into prevention.
Encryption keys and secrets
- **EBS encryption** uses supported **symmetric KMS keys**. A customer managed key provides a configurable key policy. Enable automatic rotation for eligible keys at the required interval; rotation retains old material for decrypting existing data.
- A **KMS alias** is a name pointing to a key; matching aliases in two accounts do not imply identical keys. Cross-account use needs the source key policy and caller IAM permissions. AWS managed keys cannot be shared like customer managed keys.
- For an **encrypted RDS snapshot**, use a shareable manual snapshot encrypted with a customer managed key. Grant snapshot and KMS access, then copy with a destination key as required before restoring; sharing the snapshot alone is insufficient.
- **Secrets Manager** stores and rotates database credentials. Configure the supported managed or Lambda rotation workflow and database reachability. Rotating a **KMS key** does not change a database administrator password.
- **Parameter Store SecureString** encrypts a parameter but does not automatically perform database-password rotation. Match secret-read permissions, KMS access and application refresh behavior to the chosen rotation method.
- **Encryption in transit** uses TLS and validated certificates; **encryption at rest** protects stored data. Both still require access control, key availability and correct network paths.
Detect, assess and remediate
- **Security Hub** centralizes findings and security-standard checks such as CIS AWS Foundations. Use Organizations integration, delegated administration and account enrollment settings to extend coverage to new accounts.
- **GuardDuty** detects threats from supported AWS telemetry. **Inspector** assesses supported workloads for vulnerabilities. **Macie** discovers sensitive data in S3. These services do not replace configuration rules or application-level authorization.
- **AWS Config** records resource configuration and evaluates rules. Examples include S3 logging, versioning, public read access, required tags and restricted SSH. Deploy the recorder and rules in each required account and Region.
- Attach **Systems Manager Automation remediation** to a Config rule for supported fixes, such as enabling bucket logging or versioning. Supply parameters and an execution role; guard against stale evaluations by checking current state before a destructive change.
- Use **EventBridge** to route Security Hub findings to Lambda or a runbook that removes a prohibited security-group rule. Make remediation scoped, repeatable and auditable; detecting noncompliance does not itself repair it.
- **IAM Access Analyzer** identifies supported external access and validates policies. **Trusted Advisor** can highlight exposed ports such as RDP **3389**; Config rules provide ongoing configuration checks and remediation paths.
Audit evidence and data protection
- **CloudTrail management events** record control-plane API activity. Enable **S3 data events** for object operations when required; ordinary event history is not a complete S3 object-access audit. **CloudTrail Insights** identifies supported unusual API activity patterns.
- **S3 server access logs** provide request-level access information with delayed, best-effort delivery. **Object-removal notifications** support prompt operational alerts; they are not a complete audit of all successful and failed API calls.
- Protect central audit storage through least privilege, restricted deletion, versioning and appropriate immutability. **S3 Block Public Access** reduces accidental public exposure; authorized role access, presigned URLs and CloudFront private-origin access can still serve approved users.
- **AWS Artifact** supplies AWS compliance reports such as PCI DSS evidence for AWS-managed infrastructure. **Audit Manager** organizes assessment evidence. The customer remains responsible for workload controls under the **shared responsibility model**.
- For supported **SNS standard topics**, a **message data protection policy** can audit or protect sensitive message content. S3 discovery by Macie is a separate control and does not redact an SNS message in transit.
- **Athena workgroups** separate query controls and result locations. Enforce each team's S3 output bucket, encryption and access policies at the workgroup level when centrally controlled result storage is required.
Networking and Content Delivery (18%)
Subnets, routes and packet filters
- A **public subnet** has a route to an internet gateway. Direct IPv4 internet access also needs a public or Elastic IP and permitted traffic. An internet gateway attaches to the VPC, not to an individual subnet.
- A private subnet's IPv4 default route can target a **public NAT gateway** in a public subnet. The NAT subnet needs an internet-gateway route and the NAT needs an Elastic IP. NAT supports outbound-initiated connections, not inbound SSH access.
- After consolidating NAT gateways, update every private subnet's **route table**. Zonal NAT designs should account for Availability Zone failure and cross-zone traffic cost; a remaining route to a removed gateway breaks egress.
- **Security groups** are stateful allow rules. **Network ACLs** are stateless, ordered allow/deny rules with first-match evaluation. Custom NACLs must permit request traffic and return **ephemeral ports** in the appropriate directions.
- An IPv4 subnet's CIDR cannot be expanded in place, and AWS reserves five addresses in each subnet. Add a suitable subnet, using an additional VPC CIDR when necessary; a subnet belongs to one Availability Zone.
- For outbound IPv6 access without unsolicited inbound internet connections, route **::/0** to an **egress-only internet gateway**. IPv6-to-IPv4 translation is a different requirement that uses DNS64/NAT64 where appropriate.
Private access to AWS services
- **Gateway endpoints** for S3 and DynamoDB use route-table entries. **Interface endpoints** use private network interfaces and **AWS PrivateLink**, with security groups and endpoint policies. SQS uses an interface endpoint, not a gateway endpoint.
- S3 supports both gateway and interface endpoints. Choose the endpoint for the caller's network path and requirements; gateway endpoints are usually suitable for in-VPC S3 traffic. Calling an endpoint still requires IAM and bucket/key authorization.
- A **VPC-connected Lambda** function needs reachable private subnets and suitable security groups to access RDS. Public-subnet placement does not give Lambda a public IP; provide NAT or service endpoints for calls to public AWS APIs.
- For isolated networks, inventory all dependencies: **SSM**, messaging, CloudWatch telemetry, S3 artifacts and KMS as applicable. Check private DNS, endpoint security groups, policies and routes when a service times out.
- A service's **private API endpoint** and its **VPC data-source connection** solve different paths. For analytics services such as QuickSight, verify the supported API, data source and connection mode before claiming the entire workflow stays inside a VPC.
Administrative and hybrid connectivity
- **EC2 Instance Connect** requires caller IAM permissions, a supported configured OS, the correct OS username and a network path for SSH. Temporary-key authorization does not bypass port **22** rules.
- An **EC2 Instance Connect Endpoint** reaches private instances without public IPs. Allow endpoint egress and target ingress for SSH using the appropriate endpoint security group or source range, accounting for client-IP preservation settings.
- **Session Manager** uses SSM Agent, node permissions and outbound service connectivity; it does not require inbound SSH. Scope operator session permissions separately from the instance's managed-node role.
- **Site-to-Site VPN** provides private corporate access over encrypted tunnels; **Direct Connect** provides a dedicated private path. Monitor VPN **TunnelState** in CloudWatch and notify through SNS when a tunnel is down.
- **VPC peering** can connect nonoverlapping VPCs across Regions. Configure both directions' routes and database ingress for the remote CIDR where required. Peering is not transitive.
- **Transit gateways** are regional routing hubs and can be shared across accounts through **AWS RAM**. For a multi-Region topology, peer regional transit gateways and configure VPC, attachment and peering routes deliberately.
Hybrid DNS and address management
- **Route 53 Resolver outbound endpoints** forward VPC DNS queries to on-premises resolvers. Associate a forwarding rule for the relevant domain with the VPC and permit DNS across the VPN or Direct Connect path.
- **Resolver inbound endpoints** let on-premises resolvers query AWS private namespaces. Configure on-premises conditional forwarding to endpoint IPs and use endpoint interfaces in multiple zones for availability.
- A **private hosted zone** serves associated VPCs; it is not directly associated with an on-premises network. Verify VPC DNS settings and forwarding rules before copying private host records into local hosts files.
- **Resolver DNS Firewall** filters DNS requests using rule groups; advanced protections address supported DNS threats. **WAF** inspects web requests and does not act as a general DNS firewall.
- **VPC IP Address Manager (IPAM)** manages address pools, allocation history and utilization across integrated accounts and Regions. Use scopes and pools to organize security domains; review unused Elastic IPs as part of address and cost management.
DNS records and healthy routing
- Use a **Route 53 alias A/AAAA record** for supported AWS targets such as an ALB or CloudFront, including the zone apex. A **CNAME** maps a non-apex name to another hostname; it cannot coexist with other record data at that name.
- **Weighted routing** controls relative traffic shares; **latency routing** chooses by network latency; **failover routing** selects a primary or secondary. Choose the policy for the deployment objective rather than expecting latency routing to perform a percentage rollout.
- Associate **health checks** or supported alias **Evaluate Target Health** settings with relevant records. In a layered latency/weighted design, unhealthy leaf endpoints must affect health at the correct level.
- **DNS failover** is affected by health detection, resolver caching and client behavior. A lower TTL alone does not detect failures, and a weighted DNS change is not an exact per-request traffic split.
- For blue/green environments behind separate ALBs, weighted aliases with health evaluation support gradual migration and unhealthy-endpoint exclusion. Validate the fallback behavior before using it as the recovery mechanism.
Traffic entry points and TLS
- **Application Load Balancer** provides HTTP/HTTPS layer-7 host and path routing. **Network Load Balancer** handles layer-4 TCP/UDP/TLS and supports static per-zone IP addresses. **Gateway Load Balancer** inserts compatible network appliances.
- On an ALB, configure an **HTTP listener on 80** to redirect to an **HTTPS listener on 443**, with a certificate on the HTTPS listener. A target group is not where the client-facing certificate is installed.
- Request an **ACM certificate** in the workload account and the Region required by its service. DNS validation records can reside in a hosted zone managed by a separate account; preserve validation records for managed renewal.
- **Global Accelerator** uses anycast static IPs and the AWS global network to reach healthy regional endpoints, including ALBs. **CloudFront** additionally caches supported content at edge locations; acceleration and caching serve different needs.
- **AWS WAF rate-based rules** control matching web request rates on supported resources. Use a CloudFront-scoped web ACL for CloudFront; do not attach WAF directly to an S3 bucket. **Shield** addresses DDoS protection.
CloudFront cache and origin controls
- For a custom domain, configure the **alternate domain name**, matching certificate and DNS to the distribution. A CloudFront ACM viewer certificate must be in **us-east-1**. Resolve an alternate-name conflict before assigning the same name to a different distribution.
- Set the **viewer protocol policy** on every relevant cache behavior to redirect HTTP to HTTPS or require HTTPS. Configure origin HTTPS separately where supported; viewer encryption does not automatically encrypt the origin connection.
- A **cache policy** defines the cache key and TTL bounds. Avoid unnecessary headers, cookies and query strings in the key to improve cache hits, while preserving values that change the response. An origin request policy controls additional forwarded values.
- If origin load stays high, verify client **DNS points to CloudFront**, the behavior allows caching, and TTL/header settings permit reuse. Keep user-specific or authorization-sensitive responses out of a shared public cache.
- Use **versioned object filenames** or **invalidation** to publish fresh content. S3 Versioning preserves object history but does not invalidate an already cached CloudFront response.
- Use **origin access control (OAC)** and a distribution-scoped bucket policy for a private S3 origin. Use signed URLs or cookies when viewer access must be restricted. A presigned S3 URL also grants temporary authorized object access.
- Add an **S3 origin** and a **path-pattern cache behavior** for video or static files while retaining an ALB origin for dynamic paths. Test from representative geographies using independent DNS resolution rather than pinning all load to one edge IP.