nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #339

PROFESSIONAL-CLOUD-DEVELOPER Question #339: Real Exam Question with Answer & Explanation

The correct answer is A: Deploy the code on Cloud Run. Configure your code to write errors to standard error.. Cost-Effective: Cloud Run is designed for stateless services with high traffic during the day and can scale down to zero when not in use, making it a cost-effective choice for your application's traffic pattern. Automatic Logging: Writing errors to standard error allows Cloud Run

Deploying Applications

Question

You have an on-premises containerized service written in the current stable version of Python 3 that is available only to users in the United States. The service has high traffic during the day and no traffic at night. You need to migrate this application to Google Cloud and track error logs after the migration in Error Reporting. You want to minimize the cost and effort of these tasks. What should you do?

Options

  • ADeploy the code on Cloud Run. Configure your code to write errors to standard error.
  • BDeploy the code on Cloud Run. Configure your code to stream errors to a Cloud Storage bucket.
  • CDeploy the code on a GKE Autopilot cluster. Configure your code to write error logs to standard
  • DDeploy the code on a GKE Autopilot cluster. Configure your code to write error logs to a Cloud

Explanation

Cost-Effective: Cloud Run is designed for stateless services with high traffic during the day and can scale down to zero when not in use, making it a cost-effective choice for your application's traffic pattern. Automatic Logging: Writing errors to standard error allows Cloud Run to automatically integrate with Google Cloud's logging infrastructure. This setup ensures that error logs are sent to Cloud Logging, which is compatible with Error Reporting. Simplicity: This option minimizes the operational overhead compared to managing GKE, making it easier to deploy and maintain your service.

Topics

#Cloud Run#Serverless Containers#Cost Optimization#Error Reporting

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions