First 50 of 200 questions. Each one lists the choices, the correct answer, and an explanation. The checker at the top of this page saves progress in this browser when it is available.
Continue in the practice tool above to load more questions, 50 at a time.
Question 1ECS and compute operations
Which Alibaba Cloud service provides resizable virtual servers with selectable CPU, memory, and disk configurations?
- Server Load Balancer (SLB)
- Object Storage Service (OSS)
- ApsaraDB for RDS
- Elastic Compute Service (ECS) Correct answer.
Explanation
ECS is the core IaaS offering that delivers configurable virtual machine instances. SLB distributes traffic, OSS stores objects, and RDS is a managed database, none of which provision general-purpose compute instances.
Question 2ECS and compute operations
An ECS instance type name such as ecs.g7.large primarily encodes which two pieces of information?
- Region and zone placement
- Operating system and network type
- Billing method and disk type
- Instance family and size Correct answer.
Explanation
ECS type naming follows a family-plus-size convention where the family letter indicates the workload class and the size suffix indicates the resource magnitude. Region, billing, and OS are chosen separately during instance creation.
Question 3ECS and compute operations
A team needs an ECS instance whose disk data persists after the instance is released. Which disk category satisfies this requirement?
- A cloud disk configured as a data disk Correct answer.
- Local ephemeral disk bundled with the instance
- The instance's system disk
- A swap partition on the system disk
Explanation
Cloud disks are independent block storage resources that survive instance release and can be reattached elsewhere. Local and system disks are tied to the instance lifecycle and are destroyed with it.
Question 4ECS and compute operations
Which ECS network construct provides an isolated virtual network in which you define subnets and route tables?
- Security group
- Elastic IP address
- Virtual Private Cloud (VPC) Correct answer.
- Internet NAT Gateway
Explanation
A VPC is the logically isolated network boundary that contains switches (subnets) and route tables. Security groups are instance-level firewalls, EIPs are public addresses, and NAT Gateways provide outbound internet access within a VPC.
Question 5ECS and compute operations
What is the primary purpose of an ECS image?
- To serve as a template for creating instances Correct answer.
- To cache frequently read objects
- To back up data disks on a schedule
- To encrypt network traffic between instances
Explanation
An image captures the OS, configuration, and installed software used as the template when launching new instances. Backups, caching, and encryption are handled by other services.
Question 6ECS and compute operations
An operator wants to automatically add or remove ECS instances based on CPU utilization. Which capability should be used?
- Auto Scaling Correct answer.
- Elastic Container Instance
- CloudMonitor alarm-only notification
- Resource Orchestration Service
Explanation
Auto Scaling adjusts the number of instances in a scaling group according to scaling rules tied to metrics such as CPU. CloudMonitor can raise alarms but does not itself change capacity.
Question 7ECS and compute operations
Which ECS feature lets you run a script automatically the first time an instance boots?
- Serial console
- User data Correct answer.
- Cloud Assistant inventory
- Instance metadata
Explanation
User data passes a startup script to the instance that runs on initial boot for automated configuration. Metadata exposes instance attributes, Cloud Assistant runs commands later, and the serial console is for interactive troubleshooting.
Question 8ECS and compute operations
Which statement correctly describes the relationship between a security group and an ECS instance?
- An instance can belong to multiple security groups Correct answer.
- A security group can contain only one instance
- Security groups are attached at the VPC level, not the instance level
- Security groups apply only to outbound traffic
Explanation
An ECS instance can be associated with one or more security groups, and the effective rules are the union of their allow rules. Security groups are instance-level stateful filters that govern both inbound and outbound traffic.
Question 9ECS and compute operations
An application on an ECS instance must call an Alibaba Cloud API without storing a long-term AccessKey on disk. Which approach is recommended?
- Embed an AccessKey pair in the application source code
- Use an instance RAM role to obtain temporary credentials Correct answer.
- Store the AccessKey in a world-readable file
- Disable the instance's security group
Explanation
An instance RAM role lets the instance obtain rotating temporary STS credentials through metadata, avoiding hard-coded long-term keys. Embedding keys in code or readable files creates a persistent credential leak.
Question 10ECS and compute operations
A workload requires very high random IOPS and the lowest possible latency for a database. Which cloud disk category is most appropriate?
- Basic cloud disk
- Standard SSD
- Ultra disk
- ESSD with a high PL performance level Correct answer.
Explanation
ESSD with an elevated performance level (PL) delivers the highest IOPS and lowest latency among cloud disk categories. Ultra and standard disks offer lower performance tiers.
Question 11ECS and compute operations
A user needs a fixed public IPv4 address that can be detached from one ECS instance and remapped to another. Which resource provides this?
- An Elastic IP address Correct answer.
- A public bandwidth package
- A VPC route entry
- A NAT Gateway EIP binding
Explanation
An Elastic IP is a standalone public IP that can be associated and reassociated across instances. Route entries and bandwidth packages do not provide a movable public address.
Question 12ECS and compute operations
After changing a security group rule to allow TCP port 443, users still cannot connect. Which step is most likely missing?
- Convert the security group to a VPC-level policy
- Attach an EIP to the security group
- Confirm the rule direction is inbound and the source CIDR includes the clients Correct answer.
- Restart the instance to apply the rule
Explanation
Security group rules take effect immediately, so the common cause is a wrong direction or a source range that excludes the client. Restarting is unnecessary and EIPs attach to instances, not groups.
Question 13ECS and compute operations
Which action reduces the risk of losing an ECS instance's system disk contents after accidental deletion?
- Enable a public bandwidth package
- Change the instance to a burstable type
- Enable automatic snapshots for the disk Correct answer.
- Increase the system disk size
Explanation
Automatic snapshots create point-in-time copies of a disk that can be used to restore data after deletion. Resizing, changing instance type, and bandwidth do not protect against data loss.
Question 14ECS and compute operations
An operator wants to run a shell command across hundreds of ECS instances and collect the output. Which service is designed for this?
- Cloud Assistant Correct answer.
- ActionTrail
- Server Load Balancer
- Resource Access Management
Explanation
Cloud Assistant executes commands and scripts on managed instances at scale and returns results. ActionTrail audits API calls, RAM governs permissions, and SLB balances traffic.
Question 15ECS and compute operations
A scaling group must keep at least two instances running at all times during a rolling configuration update. Which setting governs this?
- The scaling group's minimum size Correct answer.
- The cooldown period
- The health check grace period
- The scaling group's maximum size
Explanation
The minimum size sets the floor on instance count that Auto Scaling maintains. Maximum size caps growth, cooldown throttles consecutive actions, and grace period delays health checks.
Question 16ECS and compute operations
An instance in a VPC needs outbound internet access for software updates but must not accept inbound connections from the internet. Which design achieves this?
- Assign a public IP directly to the instance
- Route outbound traffic through a NAT Gateway Correct answer.
- Attach an EIP and open all inbound ports
- Place the instance in a subnet with a default route to the internet gateway
Explanation
A NAT Gateway lets instances in a private subnet initiate outbound connections without exposing them to inbound internet traffic. Direct public IPs or internet gateway routes expose the instance to inbound access.
Question 17ECS and compute operations
A team needs to create an identical fleet of 50 ECS instances with the same OS and preinstalled software. What is the most efficient approach?
- Clone the instance's security group 50 times
- Launch one instance, configure it, and create a custom image to deploy Correct answer.
- Use snapshots of each data disk
- Manually install software on each instance after launch
Explanation
A custom image captures the configured OS and software so all instances launch preconfigured. Manual installation is slow and error-prone, and snapshots and security groups do not template software.
Question 18ECS and compute operations
An operator wants to be notified when an ECS instance's CPU exceeds 80% for five minutes. Which service combination is appropriate?
- CloudMonitor alarm with a message notification Correct answer.
- Auto Scaling with a scheduled task
- ActionTrail with a log delivery rule
- VPC flow logs with a route change
Explanation
CloudMonitor evaluates metric thresholds and can trigger alarm notifications through message channels. ActionTrail audits API calls, flow logs record traffic, and scheduled tasks do not monitor metrics.
Question 19ECS and compute operations
A user wants to reduce cost for a batch job that can tolerate interruption and runs for a few hours. Which purchasing option best fits?
- Subscription (prepaid) for one year
- Pay-as-you-go on-demand instances
- Dedicated host
- Spot (preemptible) instances Correct answer.
Explanation
Spot instances offer large discounts in exchange for possible reclamation, which suits fault-tolerant batch work. Prepaid subscriptions commit for long periods, and dedicated hosts are for isolation needs.
Question 20ECS and compute operations
Which statement about ECS instance metadata access is correct?
- Metadata stores the instance's data disk contents
- Metadata requires an internet connection to retrieve
- Metadata is only available through the console
- Metadata is reachable from inside the instance via a link-local address Correct answer.
Explanation
The instance metadata service is reachable from within the instance over a link-local address and returns attributes such as instance ID and RAM role credentials. It does not require internet access and does not store disk data.
Question 21ECS and compute operations
An instance type family optimized for memory-intensive in-memory databases should be selected based on which characteristic?
- A large local ephemeral disk
- A high memory-to-vCPU ratio Correct answer.
- A high network bandwidth only
- A burstable CPU credit model
Explanation
Memory-optimized families provide a high memory-to-vCPU ratio suited to in-memory workloads. Network bandwidth, local disk, and burstable credits address different bottlenecks.
Question 22ECS and compute operations
A security group allows inbound SSH from 0.0.0.0/0, and the instance is later found compromised. Which change most directly reduces this exposure?
- Enable a public bandwidth package
- Change the instance's private IP address
- Increase the system disk size
- Restrict the inbound rule to a trusted administrative CIDR Correct answer.
Explanation
Limiting the source range of the SSH rule to trusted networks removes broad internet exposure. Bandwidth, private IP changes, and disk size do not restrict who can reach the port.
Question 23ECS and compute operations
An application must survive the failure of a single availability zone. Which deployment approach satisfies this?
- Distribute instances across multiple zones in the same region Correct answer.
- Place all instances behind a single NAT Gateway
- Deploy all instances in one zone with snapshots
- Deploy instances across multiple regions behind one SLB
Explanation
Spreading instances across zones within a region protects against a single-zone failure while keeping low-latency connectivity. Multi-region adds complexity beyond the stated requirement, and single-zone placement does not survive a zone outage.
Question 24ECS and compute operations
A team wants to replace an instance's system disk with a snapshot of a previously configured instance. Which operation achieves this?
- Create a new instance from a custom image built from that snapshot Correct answer.
- Clone the instance's security group
- Resize the existing system disk
- Attach the snapshot as a data disk to the running instance
Explanation
A snapshot can be used to create a custom image, which then serves as the system disk template for a new instance. Attaching a snapshot as a data disk does not replace the system disk.
Question 25ECS and compute operations
An operator needs to confirm which API calls were made against ECS resources and by which identity. Which service should be consulted?
- CloudMonitor
- ActionTrail Correct answer.
- Cloud Assistant
- Auto Scaling
Explanation
ActionTrail records API activity including the caller identity, which supports auditing and investigation. CloudMonitor tracks metrics, Cloud Assistant runs commands, and Auto Scaling manages capacity.
Question 26ECS and compute operations
An operator needs to attach a data disk to an ECS instance so that it is automatically mounted and formatted on first boot without manual intervention. Which approach accomplishes this?
- Configure the mount and format commands in the instance user data script. Correct answer.
- Enable the automatic disk initialization switch in the security group.
- Attach the disk and rely on the OS to auto-mount it by default.
- Convert the data disk to a system disk so it mounts automatically.
Explanation
User data scripts execute on first boot and can format and mount attached data disks automatically. The OS does not auto-mount newly attached cloud disks by default. Security groups do not control disk initialization.
Question 27ECS and compute operations
Which ECS instance type family characteristic is the primary selection criterion when choosing an instance for a compute-bound video encoding workload?
- The number of vCPUs and the CPU-to-memory ratio. Correct answer.
- The burst bandwidth of the attached cloud disk.
- The maximum number of attached elastic network interfaces.
- The number of secondary private IP addresses supported.
Explanation
Compute-bound workloads are matched to instance families by vCPU count and CPU-to-memory ratio. Network interfaces and disk burst bandwidth are secondary considerations. Secondary IP support is unrelated to compute capacity.
Question 28ECS and compute operations
Which statement describes how an ECS instance's system disk differs from its data disks?
- The system disk cannot be snapshotted, while data disks can.
- The system disk can be shared across multiple instances simultaneously; data disks cannot.
- The system disk holds the OS image and is created with the instance; data disks are attached separately. Correct answer.
- The system disk is always faster than any data disk because it uses local SSD.
Explanation
The system disk is provisioned from the selected image and contains the operating system. Data disks are independent block devices attached after creation. Both disk types can be snapshotted, and the system disk is not shareable across instances.
Question 29ECS and compute operations
An operator wants to stop an instance temporarily and later restart it with the same private IP address and disks preserved. Which action preserves the instance identity?
- Detach the system disk and delete the instance record.
- Convert the instance to a spot instance before stopping.
- Stop the instance in stopped mode rather than releasing it. Correct answer.
- Release the instance and recreate it from the same image.
Explanation
Stopping an instance (without release) preserves its disks and configuration so it can be restarted with the same identity. Releasing or deleting destroys the instance and its system disk unless separately retained.
Question 30ECS and compute operations
A workload runs on multiple instances behind a load balancer and must handle the loss of one instance without manual intervention. Which configuration achieves this?
- Use one instance with a larger instance type to absorb failures.
- Assign all instances the same public IP address.
- Place instances in a scaling group with health checks and a minimum capacity greater than one. Correct answer.
- Attach all instances to a single shared system disk.
Explanation
A scaling group with health checks automatically replaces unhealthy instances, and a minimum capacity above one ensures redundancy. Scaling vertically or sharing disks does not provide fault isolation.
Question 31ECS and compute operations
An operator must run a command on 200 ECS instances at once and verify exit codes for each. Which ECS capability is intended for this?
- Instance RAM roles.
- Cloud Assistant commands. Correct answer.
- Security group rule updates.
- Snapshot policies.
Explanation
Cloud Assistant executes commands or scripts on one or many instances and returns per-instance output and exit codes. Security groups, RAM roles, and snapshot policies serve different purposes.
Question 32ECS and compute operations
A user attached a new data disk to a running Linux instance but the OS does not show the additional capacity. What is the most likely explanation?
- The disk has not been partitioned, formatted, and mounted inside the OS. Correct answer.
- The security group is blocking the disk device.
- The disk must be converted to a system disk first.
- The instance lacks a public IP address.
Explanation
Attaching a data disk makes the block device available, but the OS must partition, format, and mount it before capacity is usable. Network configuration and public IPs are unrelated to local disk visibility.
Question 33ECS and compute operations
An operator wants to create a custom image from a configured ECS instance so the exact OS and software can be reused. Which prerequisite is required before creating the image?
- The instance must use a spot instance billing method.
- The instance must have a public IP address assigned.
- The instance must be in the stopped state or use a supported online image creation method. Correct answer.
- The instance must belong to at least two security groups.
Explanation
Creating a custom image generally requires stopping the instance or using a supported method that ensures a consistent disk state. Public IPs, security group membership, and billing method are not prerequisites.
Question 34ECS and compute operations
A user wants to change the instance type of an existing ECS instance to scale up CPU. Which condition must typically be met?
- The instance must be moved to a different region first.
- The instance must have no data disks attached.
- The instance must be released and recreated from a snapshot.
- The instance must be stopped before the instance type can be changed. Correct answer.
Explanation
Changing an instance type generally requires the instance to be stopped so the compute resources can be reallocated. Releasing and recreating is unnecessary, and data disks do not prevent a type change.
Question 35ECS and compute operations
An operator wants a scheduled automatic snapshot of an ECS data disk every night and retention limited to seven days. Which feature should be configured?
- A security group outbound rule.
- An automatic snapshot policy applied to the disk. Correct answer.
- A scaling group scheduled task.
- An instance user data script.
Explanation
Automatic snapshot policies define a schedule and retention period and are applied to disks. Scaling scheduled tasks and user data scripts do not manage disk snapshot retention.
Question 36ECS and compute operations
An operator must ensure that an ECS instance's OS disk and data disk are captured together in a consistent state for disaster recovery. Which approach is most appropriate?
- Copy the disks to another region without snapshots.
- Rely on the instance image alone without disk snapshots.
- Create separate snapshots at random times for each disk.
- Create a consistent snapshot group covering the involved disks. Correct answer.
Explanation
A snapshot group creates crash-consistent snapshots across multiple disks so they can be restored together. Independent snapshots taken at different times may not be mutually consistent. An image alone does not capture later data disk changes.
Question 37ECS and compute operations
A team needs instances in a VPC to resolve internal DNS names of other instances. Which configuration supports automatic hostname resolution within the VPC?
- Use the VPC's built-in DNS and private domain resolution with hostnames configured. Correct answer.
- Assign each instance a public IP address.
- Attach all instances to the same data disk.
- Disable the security group on all instances.
Explanation
VPC DNS and private domain features allow internal name resolution among instances. Public IPs expose instances externally but do not provide private name resolution. Security groups and shared disks do not affect DNS.
Question 38ECS and compute operations
An operator needs to run a short, interruption-tolerant batch job at the lowest cost and can accept that the instance may be reclaimed. Which purchasing model fits?
- Subscription instances.
- Reserved instance plans.
- Spot instances. Correct answer.
- Dedicated hosts.
Explanation
Spot instances offer large discounts but can be reclaimed, making them suitable for interruption-tolerant work. Subscription and reserved plans are for steady, long-running workloads, and dedicated hosts are for isolation and licensing needs.
Question 39ECS and compute operations
An instance must be reachable from the internet on port 80, but the operator wants to avoid exposing it directly. Which design achieves this?
- Assign the instance a public IP and allow all inbound traffic.
- Enable the instance's public bandwidth to the maximum value.
- Attach the instance to multiple security groups with open rules.
- Place the instance behind a load balancer and allow inbound traffic only from the load balancer. Correct answer.
Explanation
Placing the instance behind a load balancer and restricting inbound rules to the balancer's addresses hides the instance from direct internet exposure. Opening all inbound traffic or maximizing bandwidth increases exposure.
Question 40ECS and compute operations
An operator wants to attach an existing elastic network interface with a preconfigured private IP to a different instance during a failover. Which statement is correct?
- The ENI must be detached from the original instance before it can be attached to another. Correct answer.
- The ENI cannot be moved between instances once created.
- The ENI retains its private IP only if the instance is in the same security group.
- The ENI can be attached to two instances simultaneously for redundancy.
Explanation
An ENI is attached to one instance at a time; it must be detached before being attached elsewhere, and it retains its private IP when moved. Simultaneous attachment to two instances is not supported.
Question 41Networking (VPC, SLB, DNS, connectivity)
In an Alibaba Cloud VPC, which component provides the virtual firewall that controls inbound and outbound traffic for one or more ECS instances?
- Elastic IP address
- Route table
- Security group Correct answer.
- Virtual switch (vSwitch)
Explanation
A security group is a stateful virtual firewall bound to ECS instances that filters inbound and outbound traffic by rules. It operates at the instance level, independent of routing or public addressing.
Question 42Networking (VPC, SLB, DNS, connectivity)
Which Alibaba Cloud DNS record type is used to map a domain name to an IPv4 address?
- TXT
- MX
- A Correct answer.
- CNAME
Explanation
An A record maps a hostname directly to an IPv4 address. CNAME aliases one name to another, MX directs mail, and TXT carries arbitrary text such as verification strings.
Question 43Networking (VPC, SLB, DNS, connectivity)
What is the primary purpose of an Alibaba Cloud Server Load Balancer (SLB) instance?
- To distribute incoming traffic across multiple backend servers Correct answer.
- To cache static content at edge locations
- To assign public IP addresses to ECS instances
- To encrypt traffic between two VPCs
Explanation
SLB distributes client requests across a set of backend servers to improve availability and scalability. It health-checks backends and forwards traffic only to healthy ones.
Question 44Networking (VPC, SLB, DNS, connectivity)
Which Alibaba Cloud service lets ECS instances in a VPC without public IP addresses initiate outbound internet connections through a shared public address?
- VPN Gateway
- Smart Access Gateway
- Express Connect
- NAT Gateway Correct answer.
Explanation
NAT Gateway provides SNAT so private instances can reach the internet using the gateway's EIP while remaining unreachable from inbound internet traffic. It is the standard egress solution for private subnets.
Question 45Networking (VPC, SLB, DNS, connectivity)
What does a CIDR block of 192.168.0.0/24 provide when assigned to a VPC or vSwitch?
- 254 usable host addresses Correct answer.
- 128 usable host addresses
- 512 usable host addresses
- 256 usable host addresses
Explanation
A /24 leaves 8 host bits, giving 256 total addresses; reserving the network and broadcast addresses yields 254 usable addresses. Alibaba Cloud may also reserve a few addresses per vSwitch, so practical availability can be slightly lower.
Question 46Networking (VPC, SLB, DNS, connectivity)
Which SLB listener protocol operates at Layer 4 and forwards TCP connections without inspecting HTTP headers?
- HTTPS
- HTTP
- TCP Correct answer.
- HTTP/2
Explanation
A TCP listener balances at Layer 4, forwarding connections based on IP and port without parsing application payloads. HTTP and HTTPS listeners are Layer 7 and can inspect headers and paths.
Question 47Networking (VPC, SLB, DNS, connectivity)
Two ECS instances are placed in different vSwitches of the same VPC. By default, how is their private traffic handled?
- It must traverse a NAT Gateway
- It requires an EIP on each instance
- It is routed within the VPC without additional configuration Correct answer.
- It is blocked until a VPN is configured
Explanation
vSwitches within one VPC are connected by the VPC's internal routing, so instances can communicate over private IPs by default. Security groups still govern whether the traffic is permitted.
Question 48Networking (VPC, SLB, DNS, connectivity)
Which Alibaba Cloud feature resolves a domain name to different IP addresses for users in different geographic regions?
- Reverse DNS lookup
- GeoDNS (location-based resolution) Correct answer.
- Weighted round-robin
- CNAME flattening
Explanation
GeoDNS returns answers based on the resolver's geographic location, directing users to nearby endpoints. Weighted round-robin splits traffic by configured weights rather than by geography.
Question 49Networking (VPC, SLB, DNS, connectivity)
An administrator wants only instances in a specific security group to reach a backend ECS web server on port 80. Which security group rule achieves this most precisely?
- Allow the VPC CIDR on port 80
- Allow the source security group on port 80 Correct answer.
- Allow 0.0.0.0/0 on port 80
- Allow the vSwitch CIDR on port 80
Explanation
Authorizing a source security group as the rule source restricts access to instances that are members of that group, regardless of their IP addresses. This is more precise than allowing an entire CIDR range.
Question 50Networking (VPC, SLB, DNS, connectivity)
A company needs a single SLB to route requests for /api to one backend group and /images to another. Which listener type and feature should be used?
- TCP listener with connection draining
- UDP listener with health checks
- Layer 4 listener with session persistence
- HTTP or HTTPS listener with URL-based forwarding rules Correct answer.
Explanation
URL-based forwarding is a Layer 7 capability available on HTTP and HTTPS listeners, letting the SLB route by path or host. Layer 4 listeners cannot inspect the request path.