Courseiva

Generative AI Leader Google Cloud's Generative AI Offerings Practice Question

A gaming company is using Vertex AI Imagen to create concept art. They have a stable pipeline that generates images based on text prompts. Recently, they introduced a new feature: using a reference image to guide the style (image-to-image generation). However, when using a reference image, the generated images often have unnatural color shifts and artifacts. The team suspects that the reference image is being resized to a resolution that the model wasn't trained on. They are using the default Imagen settings. What is the most likely cause and the best solution?

⚠ Common exam trap

Watch out — candidates often confuse image quality issues with model hyperparameters (like inference steps or style weight) rather than recognizing that the fundamental input preprocessing—specifically resolution and aspect ratio—is the most common cause of artifacts in image-to-image generation with Imagen.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The reference image is being resized to a non-standard aspect ratio; preprocess the image to the recommended resolution and aspect ratio.

The default Imagen settings expect input images at specific resolutions (e.g., 256x256, 512x512, or 1024x1024) and a 1:1 aspect ratio. When a reference image is resized to a non-standard resolution or aspect ratio, the model's internal processing can introduce artifacts and unnatural color shifts due to misalignment with its training distribution. Preprocessing the image to the recommended resolution and aspect ratio ensures the model operates within its optimal input space, eliminating these issues.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Increase the number of inference steps to improve detail.

    Why it's wrong here

    Inference steps affect sampling refinement, not the preprocessing resize applied to the reference image. Increasing them helps when outputs look under-rendered or noisy from too few denoising iterations, which is unrelated to resolution mismatch causing colour shifts.

  • ✓

    The reference image is being resized to a non-standard aspect ratio; preprocess the image to the recommended resolution and aspect ratio.

    Why this is correct

    Imagen's default preprocessing resizes reference images, and mismatched aspect ratios distort content, producing colour shifts and artifacts. Preprocessing to the recommended resolution and aspect ratio preserves the model's expected input geometry, eliminating the distortion at its source.

  • ✗

    Reduce the style weight in the image-to-image prompt.

    Why it's wrong here

    Style weight governs how strongly the prompt's stylistic guidance influences output; it does not control the resolution to which the reference image is resized. Lowering it is useful when outputs over-apply a style, but here the artifacts stem from the resize step itself.

  • ✗

    Switch to a different image generation model.

    Why it's wrong here

    Swapping models abandons the working text-to-image pipeline and does not address the reference image being resized to a resolution Imagen was not trained on. A different generator is warranted only when the current model fundamentally lacks a required capability, not when a preprocessing setting needs correcting.

About these practice questions

Courseiva writes every Generative AI Leader question from scratch — 1,008 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This Generative AI Leader practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Generative AI Leader exam.