def METHOD_NAME(self):
    """
    Responds to an HTTP GET request. This function uses Systems Manager parameters
    to determine how to respond to different kinds of requests, in order to simulate
    failures or to make the server more resilient to failure.
    Root path '/':
    * Returns a recommendation by getting a random item from the recommendations table.
    * The table name is specified by a Systems Manager parameter. When this parameter
      is set to a non-existent table, either an error response is returned or a static
      response is returned.
    * This example uses the ec2_metadata package to get metadata about the instance
      where the server is running and include metadata in the response.
    Health check path '/healthcheck':
    * When shallow checks are specified, always returns success.
    * When deep checks are specified, attempts to get data about the DynamoDB table and,
      if the connection attempt fails, returns an error response.
    """
    print("path: ", self.path)
    table = 'doc-example-resilient-architecture-table'
    failure_response = 'doc-example-resilient-architecture-failure-response'
    health_check = 'doc-example-resilient-architecture-health-check'
    param_response = self.ssm_client.get_parameters(Names=[table, failure_response, health_check])
    parameters = {p['Name']: p['Value'] for p in param_response['Parameters']}
    print(parameters)
    if self.path == '/':
        try:
            media_type = random.choice(['Book', 'Movie', 'Song'])
            item_id = random.randint(1, 3)
            response = self.dynamodb_client.get_item(
                TableName=parameters[table],
                Key={'MediaType': {'S': media_type}, 'ItemId': {'N': str(item_id)}})
            payload = response['Item']
        except ClientError as err:
            print(f"Recommendation service error: {err}")
            if parameters[failure_response] == 'static':
                payload = {
                    "MediaType": {"S": "Book"},
                    "ItemId":{"N": "0"},
                    "Title": {"S": "404 Not Found: A Coloring Book"},
                    "Creator": {"S": "The Oatmeal"}}
            else:
                raise err
        payload['Metadata'] = {
            'InstanceId': ec2_metadata.instance_id,
            'AvailabilityZone': ec2_metadata.availability_zone}
        self.send_response(200)
        self.send_header('Content-type', 'application/json')
        self.end_headers()
        self.wfile.write(bytes(json.dumps(payload), "utf-8"))
    elif self.path == '/healthcheck':
        response_code = 200
        success = True
        if parameters[health_check] == 'deep':
            try:
                response = self.dynamodb_client.describe_table(TableName=parameters[table])
                if response['Table']['TableStatus'] == 'ACTIVE':
                    response_code = 200
                    success = True
                else:
                    response_code = 503
                    success = False
            except ClientError as err:
                print(f"Recommendation service health check error: {err}")
                response_code = 503
                success = False
        self.send_response(response_code)
        self.send_header('Content-type', 'application/json')
        self.end_headers()
        self.wfile.write(bytes(json.dumps({'success': success}), "utf-8"))