How to achieve end-to-end encryption and WAF protection with an ALB?
Short answer
D Configure a third-party certificate on the EC2 instances for the communication between the ALB and the EC2 instances. Import the third-party certificate into AWS Certificate Manager (ACM). Associate the imported certificate with the ALB. Configure TLS connections to terminate at the ALB. Configure an AWS WAF web ACL. Associate the web ACL with the ALB.
Question
Key Takeaways
The core trap is the misconception that AWS Certificate Manager (ACM) cannot be used for backend (ALB-to-EC2) encryption; in reality, ACM certificates deployed to an ALB can be used to encrypt traffic to targets in the target group.
This question tests how to secure an Application Load Balancer (ALB) fronting EC2 instances with end-to-end encryption and AWS WAF. The community is split between B and D, with most choosing D because they believe ACM certificates cannot be used between the ALB and EC2 instances.
Common mistake: Many candidates choose D because they incorrectly believe ACM certificates cannot be used between an ALB and EC2 instances, leading them to import a third-party certificate onto the instances instead.
Expert Analysis
The correct answer is B. The scenario requires end-to-end encryption of web traffic and protection from web-based security issues, which points directly to an Application Load Balancer (ALB) combined with AWS WAF. An ALB natively supports TLS termination on the listener side and can also use an AWS Certificate Manager (ACM) certificate to encrypt traffic to the EC2 target group. This satisfies the end-to-end encryption requirement without requiring manual certificate management on the instances.
Why B is correct:
- TLS terminates at the ALB using a public ACM certificate.
- The ALB then re-encrypts traffic to the EC2 instances using another ACM certificate.
- An AWS WAF web ACL is associated with the ALB to inspect and protect against web exploits.
- This is the simplest, most AWS-native way to achieve end-to-end encryption.
Why A and C are wrong:
- A and C both propose using a Network Load Balancer (NLB). However, AWS WAF cannot be associated with an NLB; WAF only supports ALB, CloudFront, and API Gateway. This immediately disqualifies both options.
- Additionally, C suggests using self-signed certificates, which is not a best practice for public-facing applications and complicates trust management.
Official Reference
- https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html
- https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html
- https://docs.aws.amazon.com/waf/latest/developerguide/how-aws-waf-works.html
These links open the official vendor documentation in a new tab.
Exam Strategy
When a question mentions protecting web traffic and requires WAF, immediately eliminate any option involving a Network Load Balancer (NLB), as WAF does not support NLB. Then, prefer AWS-native services like ACM over third-party or self-signed certificates unless the scenario explicitly requires them.
Community Votes
71% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 6
-
JoellaLi 👍 6 Answered DACM certificates are supported by the following services: • Elastic Load Balancing To serve secure content over SSL/TLS, load balancers require that SSL/TLS certificates be installed on either the load balancer or the back-end Amazon EC2 instance. ACM is integrated with Elastic Load Balancing to deploy ACM certificates on the load balancer. • Amazon CloudFront To use an ACM certificate with CloudFront, make sure you request (or import) the certificate in the US East Region (us-east-1). • Amazon API Gateway With the proliferation of mobile devices and growth of the Internet of Things (IoT), it has become increasingly common to create APIs that can be used to access data and interact with back-end systems on AWS. • AWS Nitro Enclaves EC2 instances connected to Nitro Enclaves support ACM certificates. You cannot associate ACM certificates with an EC2 instance that is not connected to a Nitro Enclave.
-
KobDragoon 👍 4 Answered BWAF for security and ACM managed certificate for TLS encryptions. B looks fine to me
-
Blitz1 👍 3 Answered DThe debate is between B and D ...(because the question is actually saying that ALB is already used -> NLB is excluded from the beginning) Even if ACM is more easier to use ( i mean you don't need to go to a third party provider) when reading B answer it is saying : "Configure AWS Certificate Manager (ACM) certificates for the communication between the ALB and the EC2 instances." You cannot use ACM for communication between ALB and EC2. Actually in the target group you can specify protocol and port and the instances associated but there is no field where to specify which certificate to use. Also in (B) it is not saying to configure the certificates in EC2 which is wrong as well. The ACM is used for ALB and in the listener part you have the default certificate and the SNIs under certificates tab. Therefore D is the correct answer.
-
hedglin 👍 1B is correct. D is wrong, because this option involves using a third-party certificate, which adds complexity without providing any clear benefits over using ACM directly for certificate management. Terminating TLS at the ALB and applying the WAF ACL at the ALB level is correct, but the ALB's integration with ACM simplifies the process.
-
Spaurito 👍 1D - You can import a certificate for use with ALB, CF, etc. If you need on your EC2 instances, you will need to import to them as well, but they can be used. Do this on a regular basis it seems.
Show 1 more comment
-
VerRi 👍 1 Answered DYou cannot use ACM's cert between EC2 and ALB.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All ANS-C01 Questions
Access 137 questions with complete answers and detailed explanations.
View Full ANS-C01 Practice Test →