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 3)

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 11–15

  1. 11foundation · easy

    What is the primary benefit of running integration tests automatically in Cloud Build as part of a CI/CD pipeline?

    Select an answer first
  2. 12foundation · easy

    In Cloud Build logs, what does a build step with an exit code of 1 typically indicate?

    Select an answer first
  3. 13application · medium

    A team is building a REST API that stores data in Firestore. They have unit tests for the request handlers that mock the Firestore client. Now they want to verify that the API correctly maps a Firestore document to the API response format. What should they do?

    Select an answer first
  4. 14application · medium

    A team's Cloud Build pipeline runs unit tests and then deploys to Cloud Run. They notice that a recent deployment was made even though the unit tests failed. Upon investigation, they find that the test step's command returns a zero exit code even when tests fail. What is the most likely cause?

    Select an answer first
  5. 15application · medium

    A team is writing unit tests for a service that sends a confirmation email after an order is placed. The service calls a third-party email API. The developer writes a test that directly invokes the service method and asserts that the email API was called with the correct payload. However, the test fails intermittently when the network is slow. What is the most likely cause of the flakiness?

    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.