Course menuDVA-C03

Exams / DVA-C03 / Study guide / Certificates and encryption in transit

Certificates and encryption in transit: DVA-C03 study notes and practice questions

What to know about Certificates and encryption in transit for the DVA-C03 exam, from the Security domain (26% of the exam guide), then 2 free questions to test it. Part of the DVA-C03 study guide.

Last verified against current AWS documentation ·How we write our questions

What to know for the exam

Certificate questions ask how to encrypt traffic in transit, and which service issues or holds the certificate. Start by asking who will trust the certificate: the public internet, your own clients, or only your developers.

AWS Certificate Manager

ACM issues public certificates at no charge for services that integrate with it, such as Elastic Load Balancing, CloudFront and API Gateway. By default you cannot export the private key of an ACM public certificate, so it is used only by those integrated services. Since 2025 ACM can also issue exportable public certificates, for a fee, when you need the certificate on your own servers, such as EC2 instances. ACM renews these certificates automatically when DNS validation records stay in place. Email validation needs someone to respond, so DNS validation is the usual answer for automatic renewal.

ACM does not renew imported certificates. If you import a certificate from another certificate authority, you must renew and import it again before it expires.

Location matters:

  • CloudFront only uses certificates in the US East (N. Virginia) Region, us-east-1.
  • API Gateway edge-optimized custom domains also need the certificate in us-east-1.
  • Regional API Gateway endpoints, Application Load Balancers and other Regional services need the certificate in the same Region as the resource.

AWS Private CA

AWS Private CA lets you run a private certificate authority for internal names, mutual TLS between your services, and devices that are not on the internet. Certificates it issues are trusted only by clients that trust your private root. ACM can issue certificates from a private CA for integrated services, which keeps renewal automatic.

Generating certificates and keys for development

For local work, you can create a self-signed certificate with openssl, and an SSH key pair with ssh-keygen. A self-signed certificate is not trusted by browsers or other clients, so use it only for development and tests. EC2 key pairs can be created in AWS with aws ec2 create-key-pair, and the private key is returned once. Save it securely and do not commit it to source control.

Never use a development certificate or key in production, and never store a private key in an S3 bucket that others can read.

Enforcing encryption in transit

  • A wildcard such as *.example.com covers one level of subdomain only, and every CloudFront alternate domain name must be in the certificate.
  • A CloudFront viewer protocol policy can redirect HTTP to HTTPS or allow HTTPS only.
  • An S3 bucket policy that denies requests where aws:SecureTransport is false blocks plain HTTP.
  • Mutual TLS for API Gateway is set on a Regional custom domain with a truststore of client CA certificates in S3; disable the default execute-api endpoint so callers cannot skip it.

How to choose

Scenario wording Answer
Public HTTPS on CloudFront, ALB or API Gateway ACM public certificate, DNS validated
Edge-optimized API Gateway custom domain Certificate in us-east-1
Clients must present a certificate from your own CA Private CA, with mutual TLS
Certificate imported from another CA is about to expire Import a renewed certificate; ACM will not renew it
Quick HTTPS for a local test Self-signed certificate with openssl
Developer needs SSH access to an EC2 instance Key pair from ssh-keygen or create-key-pair

Common traps

  • Choosing email validation for a certificate that must renew on its own.
  • Requesting a certificate in the wrong Region for CloudFront or edge-optimized API Gateway.
  • Expecting ACM to renew an imported certificate.
  • Trying to export the private key of a standard ACM public certificate. Only a certificate requested as exportable can be exported.
  • Using self-signed certificates for production clients that do not trust them.
  • Enforcing HTTPS with a redirect and expecting the origin code to change. CloudFront can redirect viewers to HTTPS without code changes.

Try the 2 practice questions

A developer is setting up api.example.com as a custom domain name for an edge-optimized REST API deployed in eu-west-2.

A public certificate for the name was issued in AWS Certificate Manager (ACM) in eu-west-2, but API Gateway does not offer it when the custom domain is created. The API must stay edge-optimized.

What should the developer do?

Choose one answer.

  1. A. Request a public certificate for api.example.com in ACM in us-east-1 and select it for the custom domain.
  2. B. Change the API's endpoint type to Regional so that the eu-west-2 certificate can be used.
  3. C. Request a private certificate for the name from AWS Private CA in eu-west-2 and select that one.
  4. D. Keep the certificate in eu-west-2 and wait for ACM to replicate it to the API's CloudFront distribution.
Show the answer and explanation

Answer: A

Explanation

An edge-optimized API uses a CloudFront distribution, and API Gateway requires its custom domain certificate to be requested or imported in us-east-1, whatever Region the API is in. Moving the certificate between Regions is not automatic, and switching to a Regional endpoint would break the requirement to stay edge-optimized.

Study

A healthcare software team runs microservices that call each other over TLS using internal host names such as claims.internal.corp, which cannot be resolved on the public internet.

The team needs X.509 certificates issued from its own private certificate authority hierarchy and does not want to operate CA servers itself.

Which service should the team use?

Choose one answer.

  1. A. AWS Private Certificate Authority, with certificates requested through AWS Certificate Manager or its API.
  2. B. AWS Certificate Manager public certificates, requested for each internal host name and validated through DNS or email.
  3. C. AWS Key Management Service asymmetric keys, with the team signing each certificate request by hand using a shared key.
  4. D. AWS Secrets Manager, storing self-signed certificates for each service and rotating them automatically every few months.
Show the answer and explanation

Answer: A

  • A. Right: Correct. AWS Private CA lets you create root and subordinate CAs and issue private X.509 certificates for internal TLS without running your own CA infrastructure. Certificates can be requested through ACM or the Private CA API. Learn more: What is AWS Private CA? (opens in a new tab)
  • B. Wrong: ACM public certificates are domain validated, so the requester must prove control of the name through public DNS or email. Internal-only names cannot pass that check. A private CA is the way to issue certificates for them. Learn more: ACM public certificate characteristics (opens in a new tab)
  • C. Wrong: KMS can hold a signing key, but it is not a certificate authority. It does not build the CA hierarchy, issue certificates or track revocation for you.
  • D. Wrong: Secrets Manager stores and rotates secrets, but it does not issue certificates from a CA. Self-signed certificates would not give the services a shared hierarchy to trust.

Explanation

AWS Private CA is the managed service for creating private CA hierarchies and issuing X.509 certificates for internal workloads, with no CA servers to run. ACM public certificates need publicly validated names, and KMS or Secrets Manager do not issue certificates.

Study

Want more on Certificates and encryption in transit? The 5 full-length practice sets have 9 more Certificates and encryption in transit questions, 390 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets

Study Certificates and encryption in transit

More Security topics