Home › Certifications › GCP Professional ML Engineer › Responsible AI, Security and Model Armor
15 multiple-choice questions and 7 flashcards on Responsible AI, Security and Model Armor, about 5% of the GCP Professional ML Engineer bank. Every one carries a written rationale.
Responsible AI, Security and Model Armor is one of 8 chapters in CoStudy's GCP Professional ML Engineer bank, and it holds 15 of the bank's 300 multiple-choice questions — roughly 5% of the total. That proportion is not arbitrary: chapters follow the certifying body's published exam outline, and the number of questions in each is set by that domain's published weight, so the share of your practice time this chapter takes matches the share of the real exam it accounts for.
Studying by chapter is worth doing once you have a diagnostic score. A single overall percentage tells you whether you are close; it does not tell you which domain is dragging. Working a weak chapter in isolation, and re-testing it in isolation, is the fastest way to move a score that has stalled — and it is why the mock exams in CoStudy report by domain rather than as one number.
8 questions drawn from this chapter, with the full rationale shown — the controlling principle behind the right answer, and why each wrong option tempts and fails.
VPC Service Controls protect against:
Answer: B — Data exfiltration beyond a service perimeter
A) Cloud Armor handles volumetric attacks. B) Correct — VPC Service Controls draw a perimeter around services so ML data and models cannot be copied to projects outside it, even with valid credentials. C) Code defects are caught by review and testing. D) Performance is a tuning problem.
A model team needs explainability on online predictions. Best approach?
Answer: D — Enable managed explanations on the endpoint at deployment time
A) Reinventing a managed capability. D) Correct — attribution methods such as sampled Shapley, integrated gradients, or XRAI are configured when the model is deployed. C) A different stage. B) A compliance risk.
A regulator requires that training data and model artifacts cannot be copied to projects outside an approved boundary, even by users with valid credentials. The MOST appropriate control is:
Answer: A — A VPC Service Controls perimeter around approved projects
A) Correct — a service perimeter constrains data movement across project boundaries regardless of the caller's IAM credentials, which is precisely the stated requirement. B) Customer-managed keys govern key control and revocation, not where authorized data may be copied. C) Uniform bucket-level access simplifies permission management within a bucket but does not stop cross-project egress. D) Audit logging detects exfiltration after it happens rather than preventing it.
A loan applicant must be told which factors drove their individual decline decision. Which explainability approach FITS best?
Answer: B — A per-prediction attribution for that applicant's input
B) Correct — an individual adverse-action explanation requires local attribution for the specific input, not aggregate model behavior. A) Global importance describes the model overall and cannot justify one person's outcome. C) Partial dependence shows average marginal effects across the population, again not case-specific. D) A confusion matrix summarizes error rates and explains no individual decision.
Which item is LEAST appropriate to include in a model card intended for downstream consumers?
Answer: C — The service account credentials used by the training pipeline
C) Correct as the misfit — credentials are secrets and must never appear in documentation intended for distribution. A) Stating intended and out-of-scope uses is a core purpose of a model card. B) Subgroup results let consumers judge where the model is reliable. D) Limitations and training data provenance are standard and expected content.
Off-by-one framework: which method works for image attribution on a CNN?
Answer: D — Integrated Gradients or XRAI, which is optimized for image input
A) Best suited to tabular features, not pixels. D) Correct — gradient-based attribution, with XRAI tuned for images. B/C) Natural-language evaluation metrics, not attribution methods.
Right feature wrong stage: bias monitoring belongs where?
Answer: C — Both: slice-level fairness at training and slice-level monitoring after deploy
C) The controlling idea is that bias is not a one-time property: the training-time evaluation establishes a baseline, and post-deployment slice monitoring catches populations that shift after release. A tempts because training is where fairness is usually measured, but a fair model can become unfair as inputs change. B tempts because a release gate feels decisive, yet a single check expires immediately. D tempts by deferring responsibility, which leaves the failure undetected.
A customer-facing assistant lets users paste arbitrary text that is appended to a system prompt. Which threat does this MOST directly create?
Answer: A — Prompt injection that overrides the assistant's instructions
A) Correct — concatenating untrusted text with trusted instructions is the structural condition for prompt injection, because the model cannot inherently distinguish the two. B) Inversion targets a model's memorized training data and is not what pasting instructions enables. C) Poisoning requires the input to reach a training corpus, which was not stated. D) Oversized payloads are a capacity concern handled by request limits, not the primary risk of untrusted instructions.
4 cards from the 7 in this chapter.
CMEK in Vertex AI?
Customer-Managed Encryption Keys — use your KMS keys for at-rest encryption. Compliance requirement for many industries.
Name the controls that enforce least privilege, network isolation and key control for an ML workload.
IAM with predefined or custom roles granted to per-purpose service accounts, so a training job cannot read production serving data and a pipeline runner holds only the roles its steps need • VPC Service Controls to draw a perimeter that blocks data exfiltration to projects outside it • CMEK so data at rest is encrypted with keys you manage and can revoke • Private Service Connect or private endpoints to keep traffic off the public internet.
Vertex Explainable AI?
Built-in SHAP, integrated gradients, sampled Shapley. Per-feature attribution to interpret predictions.
How do you detect bias in a model, and what does a feature attribution method add?
Evaluate metrics per protected or business-relevant slice rather than only in aggregate, and compare error rates across slices to expose harm that a global metric hides; also check the training data for representation gaps. Feature attributions (for example Shapley-based methods) explain which inputs drove a prediction, which surfaces reliance on a proxy variable and supports the case-level explanations that regulated decisions require.
These are a sample. The full Responsible AI, Security and Model Armor chapter runs 22 items with per-chapter progress tracking, on the web and in the iOS app.
Open GCP Professional ML Engineer in CoStudy →