A parks Lambda team wants fast unit tests on laptops before any cloud deploy, mocking AWS calls rather than hitting real DynamoDB. Which practice matches that goal?
Select an answer to reveal the explanation.
Short Explanation
Unit tests should run on the laptop like a dress rehearsal with stand-ins — mock DynamoDB, do not book the real stage yet. SAM-friendly local unit tests catch bugs before deploy. Save live AWS calls for later integration checks.
Full Explanation
DVA-C02 expects developers to write and run unit tests in development environments such as AWS SAM, using mocks for AWS service clients so feedback is fast and cheap. Production-only testing is late and risky. Amazon Q Developer can assist but does not replace tests or human review. Hitting real DynamoDB for every unit assertion slows the loop and couples tests to cloud state.