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

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 252 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 252
Topic #: 1
[All Professional Cloud Developer Questions]

You work for a financial services company that has a container-first approach. Your team develops microservices applications. A Cloud Build pipeline creates the container image, runs regression tests, and publishes the image to Artifact Registry. You need to ensure that only containers that have passed the regression tests are deployed to Google Kubernetes Engine (GKE) clusters. You have already enabled Binary Authorization on the GKE clusters. What should you do next?

  • A. Create an attestor and a policy. After a container image has successfully passed the regression tests, use Cloud Build to run Kritis Signer to create an attestation for the container image.
  • B. Deploy Voucher Server and Voucher Client components. After a container image has successfully passed the regression tests, run Voucher Client as a step in the Cloud Build pipeline.
  • C. Set the Pod Security Standard level to Restricted for the relevant namespaces. Use Cloud Build to digitally sign the container images that have passed the regression tests.
  • D. Create an attestor and a policy. Create an attestation for the container images that have passed the regression tests as a step in the Cloud Build pipeline.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mrgarfield
2 months, 2 weeks ago
Selected Answer: D
simpler thatn using Kritis
upvoted 1 times
...
pico
5 months, 3 weeks ago
Selected Answer: D
https://cloud.google.com/binary-authorization/docs/cloud-build Attestation Creation: The key difference is that you don't necessarily need to use Kritis Signer within Cloud Build to create the attestation. The Cloud Build documentation shows how you can use the gcloud beta container binauthz attestations create command directly within your Cloud Build steps to generate the attestation.
upvoted 3 times
...
JonathanSJ
9 months, 3 weeks ago
Selected Answer: D
I will go for D. D: The next step, after enable Binary Auth, is creating an attestor and a policy and then configure the attestation step in the cloud build pipeline. Not A because when you use kritis to sign an image you must provide the private key file from the attestor. And for that you must save the private key when you create the attestor for it later use. Its more complicated. Not C because pod security standard level to restricted don't enforce the use of signed images.
upvoted 4 times
JonathanSJ
9 months, 3 weeks ago
With option D the cloud build step could looks like: - name: 'gcr.io/cloud-builders/gcloud' entrypoint: 'bash' args: [ '-c', 'gcloud container binauthz create-signature --artifact-url gcr.io/<PROJECT_ID>/<IMAGE_NAME>:signed --attestor <ATTESTOR_NAME> --keyversion <KEY_VERSION> --project <PROJECT_ID>' ]
upvoted 1 times
...
...
__rajan__
1 year, 2 months ago
Selected Answer: A
A is correct.
upvoted 1 times
...
purushi
1 year, 3 months ago
Selected Answer: A
I go with A since it is detailed and more specific about Kritis digital signature.
upvoted 1 times
...
zanhsieh
1 year, 5 months ago
Selected Answer: A
A. For folks wonder what differences between Kritis Signer and Voucher Server Voucher Client, I asked Google Bard about it. Bard stated Kritis Signer is a command-line tools, whereas Voucher Server Voucher Client is a web-based tool. I then tried to verify that with Google search and Google image search (search "voucher server voucher client" then click Images). It seems Bard report correctly. Someone even wrote a Kritis Signer integrated pipeline with terraform (https://xebia.com/blog/how-to-automate-the-kritis-signer-on-google-cloud-platform/) . Also, yes, both Kritis Signer and Voucher Server Voucher Client have Google official documentations. However, if you look carefully on Voucher Server Voucher Client Google official doc, they use curl to the Voucher Server address, which indirectly prove Vouch Server Vouch Client is a web-based tool.
upvoted 1 times
...
closer89
1 year, 7 months ago
Selected Answer: C
question is not about checking vulnerabilities. its not A. The Kritis Signer is a command-line utility to check whether an image violates the policy on security vulnerabilities. its not a voucher too.
upvoted 1 times
closer89
1 year, 7 months ago
its D definitely https://cloud.google.com/binary-authorization/docs/cloud-build
upvoted 2 times
...
...
Pime13
1 year, 8 months ago
took my exam yesterday (01-03-2023) and this question was there
upvoted 3 times
...
Pime13
1 year, 9 months ago
info on voucher server: https://cloud.google.com/binary-authorization/docs/creating-attestations-voucher
upvoted 2 times
...
Pime13
1 year, 9 months ago
Selected Answer: A
Kritis Signer is an open source command-line tool that can create Binary Authorization attestations based on a policy that you configure. You can also use Kritis Signer to create attestations after checking an image for vulnerabilities identified by Container Analysis. https://cloud.google.com/binary-authorization/docs/creating-attestations-kritis
upvoted 1 times
...
mrvergara
1 year, 9 months ago
Selected Answer: A
Binary Authorization in GKE provides a way to enforce that only verified container images are deployed in a cluster. In this scenario, to ensure that only containers that have passed the regression tests are deployed, you would create an attestor and a policy in Binary Authorization, and use Kritis Signer to create an attestation for the container image after it has passed the tests. The attestation verifies that the image meets the policy's criteria and is authorized to be deployed. This provides a secure and automated way to enforce that only containers that have passed the required tests are deployed in the cluster.
upvoted 1 times
mrvergara
1 year, 9 months ago
Kritis Signer is a component of the Kritis project, which is an open-source implementation of Binary Authorization for Kubernetes. Kritis Signer is used to sign container images and create attestations, which verify that the image meets the criteria specified in a Binary Authorization policy. These attestations can be used to enforce that only authorized containers are deployed in a cluster, providing an additional layer of security for your containerized applications.
upvoted 2 times
...
...
TNT87
1 year, 9 months ago
Selected Answer: A
https://cloud.google.com/binary-authorization/docs/creating-attestations-kritis
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 ...