CV0-004 Operations and Support • Complete Question Bank
Complete CV0-004 Operations and Support question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit.
```
$ iostat -x 1 3
avg-cpu: %user %nice %system %iowait %steal %idle
5.2 0.0 2.1 45.3 0.0 47.4
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
xvda 0.00 0.00 85.0 15.0 3400.0 600.0 80.0 4.5 45.0 40.0 70.0 10.0 90.0%
```Refer to the exhibit.
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::my-bucket/*"
}
]
}
```Refer to the exhibit. ``` [cloud-init] Output from: /var/log/cloud-init-output.log ... 2024-01-15 10:32:45,123 - util.py[WARNING]: Running module <module-name> (<module-path>) failed ... ```
Refer to the exhibit.
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::example-bucket/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": "192.0.2.0/24"
}
}
}
]
}
```Refer to the exhibit. ``` $ gcloud compute instances list NAME ZONE MACHINE_TYPE PREEMPTIBLE STATUS web-server us-east1-b e2-medium true RUNNING db-server us-east1-b e2-standard-2 STOPPED $ gcloud compute instances describe web-server --format='get(status,serviceAccounts.email)' status: RUNNING serviceAccounts.email: default@project.iam.gserviceaccount.com $ gcloud compute instances get-serial-port-output web-server ... [ 10.123456] cloud-init: User data script started [ 10.654321] cloud-init: ERROR: Failed to fetch metadata from metadata server ... ```
Refer to the exhibit.
```yaml
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 3
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: nginx
image: nginx:1.21
ports:
- containerPort: 80
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: frontend-service
spec:
type: LoadBalancer
selector:
app: frontend
ports:
- protocol: TCP
port: 80
targetPort: 80
```Refer to the exhibit. ``` Error: Unable to attach volume 'vol-0abcd1234' to instance 'i-0efgh5678'. Reason: The volume is already attached to instance 'i-0123ijkl'. ```
Refer to the exhibit. User-Agent: Mozilla/5.0 Status: 504 Gateway Timeout Upstream: 10.0.1.25:8080 Response Time: 30.001s
Refer to the exhibit. $ sudo smartctl -a /dev/sda | grep -E "Reallocated_Sector_Ct|Current_Pending_Sector|Offline_Uncorrectable" Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 15 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 5 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 3
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
Software as a Service
Platform as a Service
Infrastructure as a Service
Function as a Service
Desktop as a Service
Drag a concept onto its matching description — or click a concept then click the description.
Emulated computer running an OS
Lightweight, isolated application environment
Event-driven code without server management
Physical server dedicated to a single tenant
Drag a concept onto its matching description — or click a concept then click the description.
Manage user identities and access
Require multiple authentication factors
Protect stored data from unauthorized access
Protect data during transmission
Firewall rules for cloud resources
[2025-01-20 14:23:45] ERROR Backend "web-svr-01" health check failed (HTTP 502) [2025-01-20 14:23:46] ERROR Backend "web-svr-02" health check failed (HTTP 502) [2025-01-20 14:23:47] ERROR Backend "web-svr-03" health check failed (HTTP 502)
[admin@controller ~]$ cldctl config verify --icm policy.json Policy: policy.json Check: vm-sizes Result: 2 out of 10 VMs do not comply: vm-01 (t2.large), vm-07 (t2.xlarge) Expected size: t2.medium
[admin@controller ~]$ cldctl log asg-web --type scaling 2025-01-20 14:20:00 INFO Scaling event: Desired capacity changed from 2 to 3 2025-01-20 14:25:00 INFO Scaling event: Desired capacity changed from 3 to 2 2025-01-20 14:40:00 INFO Scaling event: Desired capacity changed from 2 to 3 2025-01-20 14:45:00 INFO Scaling event: Desired capacity changed from 3 to 2
Refer to the exhibit.
```
resource "aws_instance" "web" {
ami = "ami-12345678"
instance_type = "t2.micro"
subnet_id = "subnet-abc123"
vpc_security_group_ids = ["sg-xyz789"]
user_data = <<-EOF
#!/bin/bash
yum install -y httpd
service httpd start
EOF
}
resource "aws_lb_target_group" "web_tg" {
name = "web-tg"
port = 80
protocol = "HTTP"
vpc_id = "vpc-111111"
health_check {
path = "/health"
}
}
resource "aws_lb_listener" "web_listener" {
load_balancer_arn = aws_lb.web.arn
port = 80
default_action {
type = "forward"
target_group_arn = aws_lb_target_group.web_tg.arn
}
}
```Refer to the exhibit. ``` 2023-08-15 14:23:45 ERROR: Database connection timeout after 30 seconds. 2023-08-15 14:23:46 INFO: Retrying connection... 2023-08-15 14:23:46 ERROR: Max retries exceeded. 2023-08-15 14:24:00 ERROR: Failed to authenticate user 'app_user' on database 'app_db' from host '10.0.1.25'. 2023-08-15 14:24:01 WARN: Application shutting down. ```
Refer to the exhibit.
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ec2:TerminateInstances",
"Resource": "*",
"Condition": {
"IpAddress": {"aws:SourceIp": "10.0.0.0/8"}
}
}
]
}
```Refer to the exhibit. ``` [ERROR] Backup job failed at 2024-08-21 02:00:00. Reason: Volume snapshot creation timed out. Volume ID: vol-0a12345 Snapshot ID: snap-0b67890 ```
$ gcloud compute instances describe instance-1 --zone=us-central1-a
...
networkInterfaces:
- accessConfigs:
- name: external-nat
type: ONE_TO_ONE_NAT
natIP: 35.123.45.67
network: https://www.googleapis.com/compute/v1/projects/my-project/global/networks/default
subnetwork: https://www.googleapis.com/compute/v1/projects/my-project/regions/us-central1/subnetworks/default
networkIP: 10.128.0.2
...Error: ["Failed to retrieve secret. Your access key is invalid."]
Refer to the exhibit.
```
$ cloud-cli compute instances describe --instance-id i-12345
{
"instanceId": "i-12345",
"state": "running",
"instanceType": "t2.medium",
"networkInterfaces": [
{
"ip": "10.0.1.25",
"subnetId": "subnet-abc",
"vpcId": "vpc-xyz",
"securityGroups": ["sg-web"]
}
],
"blockDeviceMappings": [
{
"deviceName": "/dev/sda1",
"volumeId": "vol-111",
"status": "attached"
}
]
}
```Refer to the exhibit.
```
$ cloud-cli storage policies list --bucket-name prod-backup
{
"Id": "Policy1",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyInsecureConnections",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": "arn:aws:s3:::prod-backup/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}
]
}
```Refer to the exhibit. ``` 2019-08-21 14:32:10 ERROR [main] com.example.service.DatabaseConnector - Connection to database failed: java.sql.SQLTimeoutException: Timeout trying to connect to database at jdbc:mysql://db-prod.internal.example.com:3306/appdb 2019-08-21 14:33:15 ERROR [main] com.example.service.DatabaseConnector - Connection to database failed: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 2019-08-21 14:34:20 ERROR [main] com.example.service.DatabaseConnector - Connection to database failed: java.net.ConnectException: Connection refused (Connection refused) 2019-08-21 14:35:25 ERROR [main] com.example.service.DatabaseConnector - Connection to database failed: java.sql.SQLTimeoutException: Timeout trying to connect to database at jdbc:mysql://db-prod.internal.example.com:3306/appdb ```
Refer to the exhibit. ``` CloudWatch Logs: /var/log/syslog 2024-03-15T10:00:00Z [ERROR] Disk space usage: 95% 2024-03-15T10:05:00Z [ERROR] Disk space usage: 97% 2024-03-15T10:10:00Z [WARN] Application X: unable to write log file 2024-03-15T10:11:00Z [CRITICAL] Application X: out of memory 2024-03-15T10:12:00Z [INFO] Instance i-12345: state changing to stopping ```
Refer to the exhibit. [2025-02-20 14:32:15] ERROR: Connection timeout to database endpoint db.example.com:3306 [2025-02-20 14:32:20] WARN: Retry attempt 1 of 3... [2025-02-20 14:32:25] ERROR: All retries exhausted. Falling back to cached data.