D2: Automated Integration Tests in Cloud Build
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
What is an integration test?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Automated Integration Tests in Cloud Build practice questions and answers
- What is an integration test?Verifies components work together (app + database + messaging).
- How to run integration tests in Cloud Build?Add build steps that run test containers against emulators or test environments.
- How to run dependencies during builds?Docker Compose or service containers in steps.
- When to fail a build?When tests fail, preventing deployment.
- Why use ephemeral test environments?Isolated, reproducible tests without polluting shared envs.
- How to deploy then test?Deploy to staging with --no-traffic or tagged revision, run tests, then promote.
- How to give tests credentials?Use the Cloud Build service account with least privilege.
- Where to store test reports?Cloud Storage artifacts or build logs.
- Why separate unit and integration stages?Fast feedback first, slower tests later.
- What is a smoke test?Quick post-deployment check that the service works.