AWS SAP-C02 exam preparation notes

AWS SAP-C02: AWS Certified Solutions Architect Professional (C02 version)

AWS Orgnization

Security

  1. Access to CloudHSM is not governed by IAM. It is managed by CloudHSM service itself. CloudTrail has 3 types of events: (1) Management events; (2) Data events; (3) CloudTrail Insights
  2. KMS multi-region key is a thing. It exists.
  3. WAF: layer 7 protection (e.g. SQL injection, XSS); AWS Shield: DDoS protection; VPC NALC: Layer 4 firewall
  4. AWS Firewall Manager: manage AWS Shield, WAF of multiple AWS accounts at one place
  5. AWS Security Hub: manage security alerts, compliance status of multple accounts at one place
  6. Amazon Inspector: SAST for EC2 Instance, ECR, Lambda Function

Route53

Records Type

Route 53 Record Type Use Case Failover Capability Remark
Simple Map a domain to a single resource (basic DNS record). No
Weighted Distribute traffic across multiple resources in defined percentages. No
Multi-Value Answer Return multiple healthy records (basic load balancing). Yes
Latency Direct clients to the AWS region with the lowest latency. Yes Active-Active
Failover Provide active-passive failover between primary and secondary resources. Yes Active-Passive
Geolocation Route traffic based on the geographic location of the requester. No
Geoproximity Route traffic based on geographic location, with bias control. No

Other notes

CloudFront v.s. Global Accelerator

CloudFront v.s. Global Accelerator

Summary:

  1. Both CloudFront and Global Accelerator leverages the AWS backbone network, so it speeds up your request;
  2. CloudFront does SSL termination at the edge, so we must create SSL certificates at us-east-1 region (the only ACM region for CloudFront), whereas Global Accelerator sends request to your service, so you create SSL certificates according to your service region for Global Accelerator;
  3. CloudFront only supports HTTP/HTTPS and WebSocket protocols, whereas Global Accelerator supports more general TCP and UDP protocols.

Additional notes:

Advanced Networking

On-premise & AWS networking

On Premise Data Center Accessing S3

(Source: Gateway endpoints for Amazon S3 - AWS Documentation )

❌ This won’t work: On-premise Data Center -> DirectConnect -> VPC Gateway Endpoint over Private VIF -> -> S3 ✅ This works: On-premise Data Center -> DirectConnect -> VPC Interace Endpoint over Private VIF -> S3 ✅ This also works: On-premise Data Center -> DirectConnect using Public VIF -> S3

The first option does not work because “Endpoint connections cannot be extended out of a VPC. Resources on the other side of a VPN connection, VPC peering connection, transit gateway, or Direct Connect connection in your VPC cannot use a gateway endpoint to communicate with Amazon S3.” (AWS Documentation )

From 2021, AWS introduced PrivateLink. Given that, VPC Endpoint Gateway becomes the option to connect on-premise data center to S3 over private network via VPC Interface Endpoint (AWS Documentation ).

In addition to on-premise to cloud connectivity, PrivateLink can also be used on the cloud. AWS Marketplace uses PrivateLink to distribute SaaS service.

Comparing with the VPC Peering connection, PrivateLink is more advantageous in this case because the customer can choose their VPC CIDR freely without considering the CIDR clash or overlap to the provider’s, and there is no need to manage route table.

Storage Gateway

  1. AWS Storage Gateway consists of a series of types, including volume gateway, file gateway, tape gateway;
  2. By default, data via those storage gateway traverses through the internet. The data is encrypted in transit;
  3. To ensure the data not to go through the internet, DirectConnect and PrivateLink is usually required.

VPC Endpoint

  1. VPC Endpoints consist of two types: gateway type and interface type;
  2. Gateway type of VPC Endpoint is used for S3 and DynamoDB;
  3. This is different from Storage Gateway. VPC Endpoint routes the traffic through AWS internal network.

REST API vs HTTP API

Feature / Capability REST API HTTP API
Age Older, full-featured Newer, lightweight
Price Higher Lower
Performance Slower Faster
Request/Response Transform (VTL) Yes (full VTL) No (only minimal mapping)
AWS Service Integration Yes (DynamoDB, SQS, SNS, etc.) No
Lambda Integration Yes Yes
HTTP Backend Integration Yes Yes
Auth Options IAM, Cognito, Custom Lambda, API Keys IAM, JWT (Cognito/OIDC), Lambda Auth
Usage Plans / API Keys Yes No
Advanced Features Validation, models, caching, etc. Minimal

Trivia

  1. There is no vCPU setting in Lambda. More memory means better computational power. If we need better CPU, we need to increase the RAM;
  2. ELB (Elastic Load Balancer) is an overarching terminology for ALB (Application), NLB (Network), CLB (Classic) and GLB (Gateway);
  3. Elastic IP cannot be attached to ALB, but can be attached to NLB.