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.

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.