Skip to content
Chapter 48Lesson 5

Quiz - Sender identity and deliverability

Quiz progress

0 / 0

A password-reset Server Action times out; the framework retries it while the user also clicks “resend.” Three send attempts are now in flight for one request. What stops three reset emails from going out?

Attaching the reset request’s stable id as the idempotencyKey on every attempt, so Resend recognizes the repeats and collapses them into one send.
Generating a fresh random idempotencyKey per attempt so each send is uniquely tracked.
Checking the suppression list before each send, which dedupes the duplicate attempts.

A spammer sets up flawless SPF and DKIM on evil.com, then sends mail with the visible From: set to security@yourbank.com. Both SPF and DKIM pass at the receiver. Why does this still get caught when DMARC is in force?

DMARC requires at least one passing check to be aligned with the visible From: domain — both checks passed on evil.com, not yourbank.com, so nothing aligns and DMARC fails.
DMARC re-runs SPF and DKIM with stricter cryptography that the spammer’s keys can’t satisfy.
DMARC blocks any message whose envelope sender and visible From: belong to different domains, which is always true for spoofed mail.

You want your domain protected by p=reject. What’s the correct way to get there?

Publish p=none first, watch the rua aggregate reports to find and authenticate every legitimate sender, then ramp through quarantine to reject on evidence — not the calendar.
Publish p=reject immediately — it’s the most secure setting, and any mail it bounces was unauthenticated and shouldn’t have been sent anyway.
Publish p=quarantine and leave it there permanently; reject is only needed for banks and is overkill for a SaaS.

A “your free trial ends in 3 days — upgrade now” email is account-specific and time-sensitive. Which subdomain should it send from, and why?

marketing.yourapp.com — a timer fired it, not the user, and its purpose is to sell, so it’s marketing no matter how account-specific the body reads.
send.yourapp.com — it’s about the user’s specific account and carries a real deadline, which makes it transactional.
The apex yourapp.com — billing-adjacent mail belongs with the human support correspondence.

Inside sendEmail, the suppression-list query throws — the database connection timed out. What should the wrapper do, and what’s the principle?

Fail closed — return a failure Result and surface the error — because a missed send is recoverable but a send to a suppressed address is not.
Fail open — send the email anyway, since a real user is waiting and the timeout is probably transient.
Skip suppression for this one send and proceed, logging that the check was bypassed.

A new sign-up’s first verification email goes to an address that hard-bounced two months ago. Select the statements that are correct about how the system should handle this. Select all that apply.

The verification send should pass bypassSuppression: true, because the user may have just fixed the mailbox and the flow exists to find that out.
The recipient address must be normalized — lowercased and trimmed — before the suppression lookup, or the query can miss the stored row.
Because the address is suppressed, the wrapper should silently return success without sending, to protect reputation.
bypassSuppression should default to true for all sends so legitimate users are never blocked by stale bounces.

Quiz complete

Score by topic