# Create a Welcome Contact for Every New Account

**Type:** Apex trigger · **Difficulty:** Medium · **Object:** Account · **Topics:** Account, Contact, After Insert, Bulkification

Practice this problem interactively (write and run your Apex trigger against realistic data): https://www.forcechallenges.com/problems/create-welcome-contact-for-every-new-account

## Problem

After Accounts are created, create one Contact for each Account. Use the Account name as the Contact last name and link the Contact to its Account. Create all Contacts in one DML operation.

## Constraints

Use bulk-safe logic. Do not run SOQL or DML inside loops.

---
Source: ForceChallenges · last updated 2026-10-13
