professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A data engineering team is designing an automated data preparation pipeline in Google Cloud. They are using Vertex AI to prompt a Large Language Model (LLM) to extract structured business entities from semi-structured source specifications, generate BigQuery SQL transformation scripts, and produce Dataform data quality assertion rules.
The automated pipeline requires deterministic, production-grade output. It must eliminate hallucinations, strictly enforce dialect-specific query optimizations (such as rewriting multiple-reference CTEs into temporary tables), output code in an easily parseable format, and ensure no semantic drift or unverified business assumptions are introduced into the transformation logic.
Which prompt engineering strategy should the team implement to formulate the most effective and reliable system prompt for the LLM?
This strategy is a comprehensive, directive prompt design framework that establishes strict boundaries, explicit personas, exact syntactic targets, and negative constraints for the Large Language Model (LLM). When generating mission-critical data transformation code and data quality rules, LLMs require structured instructions that leave no ambiguity regarding expected dialect standards and behavioral limits.
Open-ended or under-constrained prompting leads to nondeterministic code structures, unoptimized queries, and logical hallucinations. By combining detailed task parameters with rigorous negative constraints and explicit output templates, the data team achieves reproducible, enterprise-grade code generation.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.