nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #81

You are building and running client applications in Cloud Run and Cloud Functions. Your client requires that all logs must be available for one year so that the client can import the logs into their l

The correct answer is C. Use Binary Authorization to attest images during your CI/CD pipeline.. To ensure client application logs are available for one year and importable with minimal code changes, leverage platform-level security features like Binary Authorization to guarantee the integrity of deployed application images.

Submitted by javi_es· Apr 18, 2026Building and implementing CI/CD pipelines for a service

Question

You are building and running client applications in Cloud Run and Cloud Functions. Your client requires that all logs must be available for one year so that the client can import the logs into their logging service. You must minimize required code changes. What should you do?

Options

  • ADeploy Falco or Twistlock on GKE to monitor for vulnerabilities on your running Pods.
  • BConfigure Identity and Access Management (IAM) policies to create a least privilege model on
  • CUse Binary Authorization to attest images during your CI/CD pipeline.
  • DEnable Container Analysis in Artifact Registry, and check for common vulnerabilities and

How the community answered

(42 responses)
  • A
    14% (6)
  • B
    7% (3)
  • C
    76% (32)
  • D
    2% (1)

Why each option

To ensure client application logs are available for one year and importable with minimal code changes, leverage platform-level security features like Binary Authorization to guarantee the integrity of deployed application images.

ADeploy Falco or Twistlock on GKE to monitor for vulnerabilities on your running Pods.

Falco or Twistlock on GKE are runtime security tools for Kubernetes, not directly applicable to log retention and import requirements for Cloud Run and Cloud Functions, nor do they minimize code changes related to log management.

BConfigure Identity and Access Management (IAM) policies to create a least privilege model on

Configuring IAM policies primarily controls who can access resources, not how logs are retained or imported over a long period, nor does it address the technical mechanism for log data itself.

CUse Binary Authorization to attest images during your CI/CD pipeline.Correct

Binary Authorization enforces policies to ensure only trusted, signed container images are deployed, which is a foundational aspect of security and auditability. While seemingly indirect, ensuring the integrity and trustworthiness of the applications generating the logs (from Cloud Run and Cloud Functions) is critical for a client that needs to retain and import logs for a year, as it assures the provenance and reliability of the data source. This is a platform feature requiring minimal changes to application code itself.

DEnable Container Analysis in Artifact Registry, and check for common vulnerabilities and

Container Analysis in Artifact Registry scans for vulnerabilities in stored images, which is a security step for artifacts, but it does not directly manage the retention, availability, or import of application logs from running services for a year.

Concept tested: Application integrity for auditable logs

Source: https://cloud.google.com/binary-authorization/docs

Topics

#Binary Authorization#Container Security#CI/CD Pipeline#Deployment Security

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice