Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Data Engineer All Questions

View all questions & answers for the Professional Data Engineer exam

Exam Professional Data Engineer topic 1 question 273 discussion

Actual exam question from Google's Professional Data Engineer
Question #: 273
Topic #: 1
[All Professional Data Engineer Questions]

You are creating the CI/CD cycle for the code of the directed acyclic graphs (DAGs) running in Cloud Composer. Your team has two Cloud Composer instances: one instance for development and another instance for production. Your team is using a Git repository to maintain and develop the code of the DAGs. You want to deploy the DAGs automatically to Cloud Composer when a certain tag is pushed to the Git repository. What should you do?

  • A. 1. Use Cloud Build to copy the code of the DAG to the Cloud Storage bucket of the development instance for DAG testing.
    2. If the tests pass, use Cloud Build to copy the code to the bucket of the production instance.
  • B. 1. Use Cloud Build to build a container with the code of the DAG and the KubernetesPodOperator to deploy the code to the Google Kubernetes Engine (GKE) cluster of the development instance for testing.
    2. If the tests pass, use the KubernetesPodOperator to deploy the container to the GKE cluster of the production instance.
  • C. 1. Use Cloud Build to build a container and the KubernetesPodOperator to deploy the code of the DAG to the Google Kubernetes Engine (GKE) cluster of the development instance for testing.
    2. If the tests pass, copy the code to the Cloud Storage bucket of the production instance.
  • D. 1. Use Cloud Build to copy the code of the DAG to the Cloud Storage bucket of the development instance for DAG testing.
    2. If the tests pass, use Cloud Build to build a container with the code of the DAG and the KubernetesPodOperator to deploy the container to the Google Kubernetes Engine (GKE) cluster of the production instance.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BIGQUERY_ALT_ALT
Highly Voted 10 months, 2 weeks ago
Selected Answer: A
The Answer is A. Given that there are two instances (development and production) already available, and the goal is to deploy DAGs to Cloud Composer not entire composer infra build. Explanation: - This approach leverages Cloud Build to manage the deployment process. - It first deploys the code to the Cloud Storage bucket of the development instance for testing purposes. - If the tests are successful in the development environment, the same Cloud Build process is used to copy the code to the Cloud Storage bucket of the production instance. B. GKE-based approach is not standard for Cloud Composer. C. GKE used for testing is unconventional for DAG deployments. D. Involves unnecessary GKE deployment for production. Testing DAGs should use Composer instances directly, not Kubernetes containers in GKE.
upvoted 11 times
...
meh_33
Most Recent 3 months, 2 weeks ago
Selected Answer: A
Most confusing question to confuse us why GKE needed its already mentioned they have 2 composer environment
upvoted 2 times
...
JyoGCP
9 months, 1 week ago
Selected Answer: A
Option A
upvoted 2 times
...
Matt_108
10 months, 2 weeks ago
Selected Answer: A
Option A, DAGs are routinely stored in cloud storage buckets, Cloud Build act as a trigger for both the deployment process to test env and the test itslef https://cloud.google.com/composer/docs/dag-cicd-integration-guide
upvoted 4 times
...
Sofiia98
10 months, 3 weeks ago
Selected Answer: A
I vote fore A
upvoted 1 times
...
GCP001
10 months, 3 weeks ago
C. It looks the correct choice, first build, test and verify everything on dev enviornment and then just copy the files on prod bucket. https://cloud.google.com/composer/docs/dag-cicd-integration-guide
upvoted 1 times
Sofiia98
10 months, 3 weeks ago
But why do we need the Google Kubernetes Engine (GKE) cluster for this?
upvoted 1 times
GCP001
10 months, 1 week ago
Yea, it should be A
upvoted 1 times
...
...
...
Smakyel79
10 months, 3 weeks ago
Selected Answer: A
This approach is straightforward and leverages Cloud Build to automate the deployment process. It doesn't require containerization, making it simpler and possibly quicker.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...