Explain it simpler
Testing cloud apps works best in layers. Unit tests check small pieces of code on their own, quickly, using fake stand-ins for AWS. They run on every code change. Integration tests run against a real copy of your app deployed in a test environment, so they catch problems fakes cannot, like missing permissions. AWS AppConfig lets you change how your app behaves without changing its code. A feature flag is an on and off switch for a feature. You can ship code with the switch off, turn it on slowly for more and more users, and AppConfig will flip it back if alarms go off. It is like a new dish at a restaurant: tasted in the kitchen, tried at a staff meal, then offered to a few tables first.
At Pinecrest Grocers, the mobile team's new 'smart substitutions' feature passed all 400 unit tests on Monday. On Tuesday it reached production and every substitution request failed with an access denied error, because the function's role could not read the new inventory table. The mocks had happily returned data. Rolling back meant a full redeploy during the lunch rush. Now Ines, the tech lead, is asked to design a better approach: catch problems like that before production, and next time ship risky features in a way that can be switched off in seconds without deploying code. Where should each kind of test run, and how can a feature be turned off without a release?
A good testing strategy for cloud applications layers several kinds of tests, each catching different problems at a different cost and speed. Fast, cheap tests run constantly; slower, more realistic tests run less often but catch problems the fast ones cannot. The Developer Associate exam expects you to know where each layer fits in a CI/CD pipeline, what it can and cannot detect, and which AWS features support safe testing and gradual release.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.