What is the purpose of a health check in cloud infrastructure?
A health check monitors if a service or instance is working properly. It helps the system know when to send traffic to healthy instances and avoid unhealthy ones.
Click to reveal answer
beginner
Name two types of health checks commonly used in Google Cloud Platform.
TCP health checks and HTTP(S) health checks. TCP checks if the port is open, HTTP(S) checks if a web service responds correctly.
Click to reveal answer
beginner
What does the 'check interval' setting control in a health check?
It controls how often the health check runs to test the service's health, for example every 5 seconds.
Click to reveal answer
intermediate
Why is it important to configure the 'unhealthy threshold' in a health check?
It defines how many failed checks in a row mark an instance as unhealthy, preventing false alarms from temporary glitches.
Click to reveal answer
beginner
How does a health check improve the reliability of a load balancer?
The load balancer uses health checks to send traffic only to healthy instances, avoiding downtime and improving user experience.
Click to reveal answer
Which protocol can be used for a simple health check that only verifies if a port is open?
AUDP
BHTTP
CHTTPS
DTCP
✗ Incorrect
TCP health checks verify if the port is open and accepting connections.
What does the 'healthy threshold' setting specify in a health check?
ATimeout for each check
BNumber of failed checks before marking unhealthy
CNumber of successful checks before marking healthy
DTime between checks
✗ Incorrect
The healthy threshold is how many successful checks in a row mark the instance as healthy.
If a health check timeout is too short, what might happen?
AHealth checks run less frequently
BFalse unhealthy reports due to slow responses
CMore traffic sent to unhealthy instances
DHealth checks ignore errors
✗ Incorrect
A short timeout can cause slow but healthy services to appear unhealthy.
Which Google Cloud service commonly uses health checks to manage traffic?
ACloud Load Balancing
BCloud Storage
CBigQuery
DCloud Functions
✗ Incorrect
Cloud Load Balancing uses health checks to route traffic only to healthy instances.
What is a key benefit of using HTTP(S) health checks over TCP health checks?
AThey can check the actual response content and status code
BThey are faster to run
CThey use less network bandwidth
DThey do not require a port number
✗ Incorrect
HTTP(S) health checks verify the response status and content, ensuring the service works correctly.
Explain how health checks help maintain application availability in cloud environments.
Think about how traffic is managed when some servers fail.
You got /4 concepts.
Describe the key configuration settings of a health check and their impact on reliability.
Consider how often and how strictly the system tests the service.
You got /5 concepts.
Practice
(1/5)
1.
What is the main purpose of a health check in Google Cloud Platform?
easy
A. To increase server storage capacity
B. To monitor if servers are working properly
C. To speed up network traffic
D. To backup data automatically
Solution
Step 1: Understand health check function
Health checks regularly test if servers respond correctly to requests.
Step 2: Identify main purpose
This helps detect unhealthy servers so they can be fixed or replaced.
Final Answer:
To monitor if servers are working properly -> Option B
Quick Check:
Health check = Monitor server health [OK]
Hint: Health checks watch server health, not storage or speed [OK]
Common Mistakes:
Confusing health checks with backups
Thinking health checks increase speed
Assuming health checks add storage
2.
Which of the following is the correct way to specify a TCP health check in a Google Cloud load balancer configuration?
The port value is "eighty" as a string, but it must be a numeric value like 80.
Step 2: Validate other fields
requestPath is valid for HTTP, checkIntervalSec can be 5, and type "HTTP" is correct.
Final Answer:
Port must be a number, not a string -> Option C
Quick Check:
Port number must be numeric [OK]
Hint: Port must be a number, not words [OK]
Common Mistakes:
Using string instead of number for port
Thinking requestPath is invalid for HTTP
Assuming checkIntervalSec minimum is 10
5.
You want to configure a health check that verifies your web app responds with HTTP 200 on path /status every 15 seconds, and marks the server unhealthy after 2 failures. Which configuration is correct?