0
0
AWScloud~10 mins

Health checks with Route 53 in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a Route 53 health check that monitors an HTTP endpoint.

AWS
resource "aws_route53_health_check" "example" {
  fqdn              = "example.com"
  type              = "[1]"
  resource_path     = "/health"
  failure_threshold = 3
}
Drag options to blanks, or click blank then click option'
AHTTPS
BHTTPS_STR_MATCH
CHTTP
DTCP
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTPS when the endpoint is not secured.
Using TCP which only checks port availability.
2fill in blank
medium

Complete the code to specify the IP address for a Route 53 health check.

AWS
resource "aws_route53_health_check" "example" {
  ip_address        = "[1]"
  type              = "TCP"
  port              = 80
  failure_threshold = 3
}
Drag options to blanks, or click blank then click option'
A192.168.1.1
Blocalhost
C255.255.255.0
Dexample.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using a domain name instead of an IP address.
Using invalid IP formats like subnet masks.
3fill in blank
hard

Fix the error in the health check configuration to correctly monitor HTTPS with a string match.

AWS
resource "aws_route53_health_check" "example" {
  fqdn              = "example.com"
  type              = "[1]"
  resource_path     = "/status"
  search_string     = "Healthy"
  failure_threshold = 3
}
Drag options to blanks, or click blank then click option'
ATCP
BHTTP
CHTTPS
DHTTPS_STR_MATCH
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTPS without string match when a search string is specified.
Using TCP which does not support string matching.
4fill in blank
hard

Fill both blanks to create a health check that monitors an HTTP endpoint on port 8080 with a failure threshold of 5.

AWS
resource "aws_route53_health_check" "example" {
  fqdn              = "example.com"
  type              = "[1]"
  port              = [2]
  failure_threshold = 5
}
Drag options to blanks, or click blank then click option'
AHTTP
BHTTPS
C8080
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTPS type with port 8080 without SSL.
Using default port 80 instead of 8080.
5fill in blank
hard

Fill all three blanks to create a health check that monitors HTTPS on port 443, checks the path '/healthcheck', and uses a failure threshold of 4.

AWS
resource "aws_route53_health_check" "example" {
  fqdn              = "example.com"
  type              = "[1]"
  port              = [2]
  resource_path     = "[3]"
  failure_threshold = 4
}
Drag options to blanks, or click blank then click option'
AHTTPS
B80
C/healthcheck
D443
Attempts:
3 left
💡 Hint
Common Mistakes
Using port 80 with HTTPS.
Using wrong resource path.
Using HTTP type instead of HTTPS.