exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 78 discussion

A company recently completed the migration from an on-premises data center to the AWS Cloud by using a replatforming strategy. One of the migrated servers is running a legacy Simple Mail Transfer Protocol (SMTP) service that a critical application relies upon. The application sends outbound email messages to the company’s customers. The legacy SMTP server does not support TLS encryption and uses TCP port 25. The application can use SMTP only.

The company decides to use Amazon Simple Email Service (Amazon SES) and to decommission the legacy SMTP server. The company has created and validated the SES domain. The company has lifted the SES limits.

What should the company do to modify the application to send email messages from Amazon SES?

  • A. Configure the application to connect to Amazon SES by using TLS Wrapper. Create an IAM role that has ses:SendEmail and ses:SendRawEmail permissions. Attach the IAM role to an Amazon EC2 instance.
  • B. Configure the application to connect to Amazon SES by using STARTTLS. Obtain Amazon SES SMTP credentials. Use the credentials to authenticate with Amazon SES.
  • C. Configure the application to use the SES API to send email messages. Create an IAM role that has ses:SendEmail and ses:SendRawEmail permissions. Use the IAM role as a service role for Amazon SES.
  • D. Configure the application to use AWS SDKs to send email messages. Create an IAM user for Amazon SES. Generate API access keys. Use the access keys to authenticate with Amazon SES.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
scuzzy2010
Highly Voted 2 years, 3 months ago
Selected Answer: B
B is correct. https://docs.aws.amazon.com/ses/latest/dg/smtp-connect.html STARTTLS supports ports 25, 587, and 2587 TLSWRAPPER supports ports 465 and 2465
upvoted 19 times
God_Is_Love
2 years, 3 months ago
FYI Amazon SES supports STARTTLS encryption over port 587, which is the recommended port for email transmission. But existing port 25 can be configured too as in this case as the migration came from SMTP port 25
upvoted 5 times
...
...
Untamables
Highly Voted 2 years, 4 months ago
Selected Answer: B
In this scenario, you should use Amazon SES SMTP interface to send emails because the application can use SMTP only. https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html https://docs.aws.amazon.com/ses/latest/dg/smtp-credentials.html https://docs.aws.amazon.com/ses/latest/dg/smtp-connect.html
upvoted 9 times
...
amministrazione
Most Recent 9 months, 1 week ago
B. Configure the application to connect to Amazon SES by using STARTTLS. Obtain Amazon SES SMTP credentials. Use the credentials to authenticate with Amazon SES.
upvoted 1 times
...
8608f25
1 year, 3 months ago
Selected Answer: B
Here's why option B is the correct choice: STARTTLS Support: Amazon SES supports STARTTLS, a protocol command used to upgrade an existing insecure connection to a secure connection using TLS (Transport Layer Security). This is crucial since the legacy SMTP server does not support TLS, and STARTTLS can be used to initiate a secure connection. SMTP Credentials: Amazon SES requires authentication to send emails through its SMTP interface. This is achieved by using SMTP credentials, which are different from AWS access keys. SMTP credentials can be obtained from the Amazon SES console and are used to authenticate with the Amazon SES SMTP endpoint. Operational Simplicity: This approach allows the application to continue using SMTP for sending emails, which aligns with the application's existing capabilities. By using STARTTLS, the application can upgrade its connection to Amazon SES to a secure one, ensuring compliance with security best practices without significant changes to the application's email sending functionality.
upvoted 2 times
...
LazyAutonomy
1 year, 4 months ago
Selected Answer: A
Terrible Q. All answers are wrong. A is wrong because you cannot send emails through SES SMTP using SMTP credentials derived from temporary STS tokens (ie IAM roles). Must use an IAM user access keys to derive creds. B is wrong because the question imposes a constraint that prevents us from selecting an answer that requires upgrading or modifying the application itself. Could you just offload SMTP STARTTLS/AUTH to the local sendmail/postfix daemon? Maybe, if it were Linux, but what if it's Windows? Cygwin? WSL? C & D - wrong, for a similar rationale as B. But the question designer OBVIOUSLY doesn't know that IAM roles can't be used for SES SMTP auth, because these questions are written by inexperienced, unqualified people who are not themselves architects or engineers.
upvoted 2 times
LazyAutonomy
1 year, 4 months ago
To be fair, the question says this: "The legacy SMTP server does not support TLS encryption and uses TCP port 25. The application can use SMTP only." The question doesn't say the application cannot handle STARTTLS or SMTP AUTH. In theory, if an application claims to support SMTP, then it should support all features of SMTP, which includes STARTTLS and AUTH. It only says the legacy SMTP server cannot handle TLS. So I suppose perhaps B is correct after all :-)
upvoted 3 times
...
...
ninomfr64
1 year, 4 months ago
Selected Answer: B
A = this sends email via SES API while application can use SMTP only B = correct C = this sends email via SES API while application can use SMTP only D = this sends email via SES SDK (API) while application can use SMTP only
upvoted 2 times
ninomfr64
1 year, 4 months ago
Need to correct my comment on A. This is a TLS Wrapper (A) vs STARTTLS (B), where STARTTLS allows initiating an encrypted connection by first establishing an unencrypted connection. While TLS Wrapper is a means of initiating an encrypted connection without first establishing an unencrypted connection (it's the client's responsibility to connect to the endpoint using TLS, and to continue using TLS for the entire conversation). As our app con only work with SMTP we should go for B
upvoted 2 times
...
...
edder
1 year, 6 months ago
Selected Answer: B
The correct answer is B. A: We are unable to obtain authentication information. C,D: Does not meet SMTP requirements. B: This is the correct procedure. https://repost.aws/knowledge-center/ses-set-up-connect-smtp https://docs.aws.amazon.com/ses/latest/dg/security-protocols.html
upvoted 1 times
...
totten
1 year, 8 months ago
Selected Answer: B
Here's why option B is the correct choice: SMTP Protocol: The legacy SMTP server uses the SMTP protocol, and Amazon SES provides an SMTP interface for sending email, which is suitable for your application. STARTTLS: Using STARTTLS ensures that your communication with Amazon SES is encrypted, which is a best practice for secure email transmission. SMTP Credentials: Amazon SES SMTP credentials are required to authenticate your application with Amazon SES when sending emails. These credentials include an SMTP username and password.
upvoted 2 times
totten
1 year, 8 months ago
Option A mentions TLS Wrapper, which isn't a standard approach when using Amazon SES for sending email. Amazon SES supports STARTTLS for secure communication. Option C suggests using the SES API, which is a valid approach but requires code modifications to use the SES API instead of SMTP. Since your application can only use SMTP, this option might involve significant code changes. Option D mentions using AWS SDKs and IAM users, which is more suitable for programmatic access to SES but not for legacy SMTP applications that can only send via SMTP. Therefore, Option B is the most appropriate choice for configuring your application to send email messages from Amazon SES while preserving the SMTP protocol and ensuring secure communication.
upvoted 4 times
...
...
CuteRunRun
1 year, 10 months ago
Selected Answer: A
I selecte A
upvoted 1 times
...
NikkyDicky
1 year, 11 months ago
Selected Answer: B
It's B - to preserve SMTP protocol
upvoted 1 times
...
SkyZeroZx
1 year, 11 months ago
Selected Answer: B
B because is "legacy" app then use properties to set SMTP keyword === Obtain Amazon SES SMTP credentials
upvoted 1 times
...
F_Eldin
2 years ago
Selected Answer: A
https://aws.amazon.com/blogs/big-data/query-and-visualize-aws-cost-and-usage-data-using-amazon-athena-and-amazon-quicksight/
upvoted 1 times
...
rbm2023
2 years, 1 month ago
Selected Answer: B
Option A states that the company would require to do more changes in the application than a replatform migration strategy where we are supposed to migrate the application with minimal changes. In Option A using the TLS wrapper would require an additional layer of software (stunnel) to be installed and configured on the EC2 instance, which may introduce additional complexity and management overhead. In option B, we need to configure the application to connect to SES using STARTLS using SMTP credentials, since the legacy SMTP server does not support TLS encryption. This would require minimal change to the application.
upvoted 3 times
...
Cassa
2 years, 1 month ago
Selected Answer: B
To set up a STARTTLS connection, the SMTP client connects to the Amazon SES SMTP endpoint on port 25, 587, or 2587, issues an EHLO command, and waits for the server to announce that it supports the STARTTLS SMTP extension. The client then issues the STARTTLS command, initiating TLS negotiation. When negotiation is complete, the client issues an EHLO command over the new encrypted connection, and the SMTP session proceeds normally To set up a TLS Wrapper connection, the SMTP client connects to the Amazon SES SMTP endpoint on port 465 or 2465. The server presents its certificate, the client issues an EHLO command, and the SMTP session proceeds normally.
upvoted 2 times
...
mfsec
2 years, 2 months ago
Selected Answer: B
B. Configure the application to connect to Amazon SES by using STARTTLS.
upvoted 1 times
...
Dimidrol
2 years, 2 months ago
Selected Answer: B
B , https://docs.aws.amazon.com/ses/latest/dg/smtp-connect.html
upvoted 3 times
...
dev112233xx
2 years, 2 months ago
Selected Answer: A
B is wrong because STARTTLS uses port 25 and EC2 instances can’t send outbound traffic through port 25 (you must ask AWS to allow port 25)
upvoted 2 times
F_Eldin
2 years ago
https://docs.aws.amazon.com/ses/latest/dg/smtp-connect.html says: "Amazon Elastic Compute Cloud (Amazon EC2) throttles email traffic over port 25 by default. To avoid timeouts when sending email through the SMTP endpoint from EC2,submit a Request to Remove Email Sending Limitations" And the question explicitly says: "The company has lifted the SES limits."
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...