Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Google Cloud logo

Google CloudProfessional Cloud Developer

Domain 2Objective 3

2.3 Testing PROFESSIONAL-CLOUD-DEVELOPER Practice Questions (Page 1)

Part of the Building and testing applications domain, which accounts for ~23% of the PROFESSIONAL-CLOUD-DEVELOPER exam.

22questions here
5free pages
6concepts
~23%of the exam

Questions 1–5

  1. 1foundation · easy

    Which naming convention best describes a unit test that verifies the behavior of a method when an invalid input is provided?

    Select an answer first
  2. 2application · medium

    A developer is using an AI coding assistant to generate unit tests for a Python function that calculates shipping costs based on weight, destination zone, and a customer loyalty discount. The AI assistant produces a test that only checks the happy path with a standard weight and no discount. The developer wants to improve the test suite's effectiveness before committing. What should the developer do?

    Select an answer first
  3. 3foundation · easy

    How can a Cloud Build configuration specify the service account used to run integration test steps?

    Select an answer first
  4. 4foundation · easy

    What is the main difference between a unit test and an integration test?

    Select an answer first
  5. 5expert · hard

    A team's Cloud Build pipeline runs integration tests that need to access a Cloud Storage bucket in a different project. The build runs with a service account that has the Storage Object Viewer role on the bucket. The tests are failing with a 403 error. The team wants to fix the issue with the least privilege. What should they do?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Google Cloud. “PROFESSIONAL-CLOUD-DEVELOPER” is a trademark of its owner, used for identification only.