Skip to Content

SOA-C02: What would be the command line necessary to deploy one of the sites’ certificates to load balancer

Question

A SysOps administrator has been able to consolidate multiple, secure websites onto a single server, and each site is running on a different port. The administrator now wants to start a duplicate server in a second Availability Zone and put both behind a load balancer for high availability. What would be the command line necessary to deploy one of the sites’ certificates to the load balancer?

A. aws kms modify-listener –-load-balancer-name my-load-balancer
-–certificates CertificateArn=arn:aws:iam::123456789012:server-certifiate/my-new-server-cert
B. aws elb set-load-balancer-listener-ssl-certificate –load-balancer-name my-load-balancer –-load-balancer-port 443 –-ssl-certificate-id arn:aws:iam::123456789012:server-certificate/new-server-cert
C. aws ec2 put-ssl-certificate –-load-balancer-name my-load-balancer –-load-balancer-port 443 –-ssl-certificate-id arn:aws:iam::123456789012:server-certificate/new-server-cert
D. aws acm put-ssl-certificate –-load-balancer-name my-load-balancer –-load-balancer-port 443 –-ssl-certificate-id arn:aws:iam::123456789012:server-certificate/new-server-cert

Answer

B. aws elb set-load-balancer-listener-ssl-certificate –load-balancer-name my-load-balancer –-load-balancer-port 443 –-ssl-certificate-id arn:aws:iam::123456789012:server-certificate/new-server-cert

Explanation

The correct answer to deploy a site’s certificate to the load balancer is:

B. aws elb set-load-balancer-listener-ssl-certificate –load-balancer-name my-load-balancer –load-balancer-port 443 –ssl-certificate-id arn:aws:iam::123456789012:server-certificate/new-server-cert

Explanation:

In this scenario, the SysOps administrator wants to deploy a site’s certificate to a load balancer to ensure secure communication between the load balancer and the clients. To achieve this, the administrator can use the AWS Command Line Interface (CLI) with the aws elb set-load-balancer-listener-ssl-certificate command.

Here’s why option B is the correct solution:

  • The aws elb set-load-balancer-listener-ssl-certificate command is used to associate an SSL certificate with a load balancer listener.
  • The –load-balancer-name parameter specifies the name of the load balancer to which the certificate will be associated.
  • The –load-balancer-port parameter specifies the port on the load balancer where SSL is terminated. In this case, it is port 443, which is the standard port for HTTPS.
  • The –ssl-certificate-id parameter specifies the ARN (Amazon Resource Name) of the SSL certificate that will be associated with the load balancer listener. The ARN includes the AWS account ID and the certificate identifier.
  • By executing this command with the appropriate values for the load balancer name, load balancer port, and SSL certificate ID, the SysOps administrator can deploy the site’s certificate to the load balancer.

Now, let’s discuss why the other options are not the correct solutions:

A. The aws kms modify-listener command is not relevant to deploying a site’s certificate to a load balancer. This command is used for modifying AWS Key Management Service (KMS) listener policies, not SSL certificates for load balancers.

C. The aws ec2 put-ssl-certificate command is not the correct command for associating an SSL certificate with a load balancer. This command is used to upload an SSL certificate to use with Amazon EC2 instances, not load balancers.

D. The aws acm put-ssl-certificate command is not the correct command for associating an SSL certificate with a load balancer. This command is used to import an SSL certificate to AWS Certificate Manager (ACM), not to associate it with a load balancer.

In conclusion, to deploy a site’s certificate to the load balancer, the SysOps administrator should use the aws elb set-load-balancer-listener-ssl-certificate command with the appropriate parameters for the load balancer name, load balancer port, and SSL certificate ID.

Reference

Amazon AWS Certified SysOps Administrator – Associate certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified SysOps Administrator – Associate exam and earn Amazon AWS Certified SysOps Administrator – Associate certification.