ACA ACA Container and Serverless Services 2 — Questions and Answers
Question 1: In Alibaba Cloud Function Compute, what billing model is used for execution?
- Fixed monthly subscription per function
- Billed by the number of instances reserved, regardless of invocations
- Pay-per-invocation based on number of requests and execution duration (GB-seconds) (Correct answer)
- Billed per vCPU-hour like a standard ECS instance
Correct answer: Pay-per-invocation based on number of requests and execution duration (GB-seconds)
Function Compute charges based on the number of function invocations and the compute time consumed (measured in GB-seconds), so you pay only when code runs.
Question 2: What is a Namespace in Alibaba Cloud Container Registry (ACR) used for?
- A network isolation boundary for container traffic
- A logical grouping of container image repositories for access management and organization (Correct answer)
- A Kubernetes namespace mapped directly to ACR
- A billing unit for container image storage
Correct answer: A logical grouping of container image repositories for access management and organization
An ACR Namespace organizes repositories under a common prefix and allows you to apply access control policies at the namespace level.
Question 3: Which Kubernetes resource type in ACK is used to expose a deployment to external internet traffic?
- ConfigMap
- PersistentVolumeClaim
- LoadBalancer Service (backed by Alibaba Cloud SLB) (Correct answer)
- DaemonSet
Correct answer: LoadBalancer Service (backed by Alibaba Cloud SLB)
Creating a Kubernetes Service of type LoadBalancer in ACK automatically provisions an Alibaba Cloud SLB to route external traffic to the pods.
Question 4: What is the purpose of Horizontal Pod Autoscaler (HPA) in an ACK cluster?
- To automatically provision new ACK worker nodes based on CPU demand
- To scale the number of pod replicas up or down based on CPU/memory or custom metrics (Correct answer)
- To distribute pods evenly across availability zones
- To upgrade the Kubernetes version automatically
Correct answer: To scale the number of pod replicas up or down based on CPU/memory or custom metrics
HPA monitors pod-level metrics and automatically adjusts the replica count of a deployment to match current workload demand.
Question 5: Which Alibaba Cloud service is commonly used with Function Compute to build RESTful APIs from serverless functions?
- Server Load Balancer (SLB)
- API Gateway (Correct answer)
- Content Delivery Network (CDN)
- Direct Mail Service
Correct answer: API Gateway
Alibaba Cloud API Gateway integrates natively with Function Compute, routing HTTP requests to functions and handling authentication, rate limiting, and monitoring.
Question 6: What does the Alibaba Cloud Serverless App Engine (SAE) primarily offer compared to ECS?
- Higher maximum CPU core counts per instance
- A fully managed PaaS for microservices that eliminates server and cluster management (Correct answer)
- Direct bare-metal access for performance-sensitive workloads
- An integrated DevSecOps pipeline with built-in scanning
Correct answer: A fully managed PaaS for microservices that eliminates server and cluster management
SAE provides a serverless application hosting layer where you deploy code or containers without managing servers, Kubernetes clusters, or scaling policies.
In Alibaba Cloud Function Compute, what billing model is used for execution?